diff --git a/.gitignore b/.gitignore index f60b43ac..4b2e8308 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,18 @@ -_site -.sass-cache -.jekyll-cache -.jekyll-metadata -vendor -Gemfile.lock +.sass-cache/ +.jekyll-cache/ +.jekyll-metadata/ + +/.idea/ + +/_site/ + +/vendor/ +/node_modules/ + .bundle -/.idea/ \ No newline at end of file + +/Gemfile.lock +/package-lock.json +/yarn.lock +/pnpm-lock.yaml +/bun.lock diff --git a/_config.yml b/_config.yml index e76e9a43..75847b24 100644 --- a/_config.yml +++ b/_config.yml @@ -50,6 +50,11 @@ include: exclude: - README.md - LICENSE + - package.json + - package-lock.json + - yarn.lock + - pnpm-lock.yaml + - bun.lock keep_files: [] encoding: "utf-8" # markdown_ext: "markdown,mkdown,mkdn,mkd,md" @@ -330,7 +335,6 @@ post_process: /assets/js/main.min.js: - /assets/js/settings.js - /assets/js/theme.js - - /assets/js/meta.js - /assets/js/vendor/jquery/jquery-3.6.0.js - /assets/js/plugins/gumshoe.js - /assets/js/plugins/jquery.ba-throttle-debounce.js @@ -339,14 +343,15 @@ post_process: - /assets/js/plugins/jquery.magnific-popup.js - /assets/js/plugins/smooth-scroll.js - /assets/js/plugins/jquery.auto-redirect.js + - /assets/js/meta.ts.js - /assets/js/_main.js remove_dirs: - /assets/images/ - /assets/js/plugins/ - /assets/js/vendor/ remove_files: - - /assets/js/meta.js - /assets/js/_main.js - /assets/js/theme.js - /assets/js/settings.js + - /assets/js/meta.ts.js - /assets/js/main.min.js.map diff --git a/_plugins/typescript.rb b/_plugins/typescript.rb new file mode 100644 index 00000000..a8edd16d --- /dev/null +++ b/_plugins/typescript.rb @@ -0,0 +1,37 @@ +require "execjs" + +ExecJS.runtime = ExecJS::Runtimes::MiniRacer if ExecJS::Runtimes::MiniRacer.available? + +module TypescriptCompiler + class << self + def context=(input) + @context = input + end + + def compile(input) + @context.call("compile", input) + end + end +end + +class TypescriptConverter < Jekyll::Converter + def matches(ext) + ext =~ /^\.ts$/i + end + + def output_ext(ext) + "#{ext}.js" + end + + def convert(content) + TypescriptCompiler.compile(content) + end +end + +Jekyll::Hooks.register :site, :post_read do |site| + source = File.read(site.in_source_dir("_plugins/vendor/typescript/typescript.min.js")) + source += "\n" + source += File.read(site.in_source_dir("_plugins/vendor/typescript/compile.js")) + + TypescriptCompiler.context = ExecJS.compile(source) +end diff --git a/_plugins/vendor/typescript/compile.js b/_plugins/vendor/typescript/compile.js new file mode 100644 index 00000000..3d65483d --- /dev/null +++ b/_plugins/vendor/typescript/compile.js @@ -0,0 +1,33 @@ +function compile(code) { + const input = "index.ts"; + const output = "index.js"; + + const sources = new Map([[input, code]]); + const results = new Map(); + + ts.createProgram([input], { + module: ts.ModuleKind.ESNext, + target: ts.ScriptTarget.ESNext, + noResolve: true, + }, { + getSourceFile: function (fileName, languageVersion, _onError) { + const sourceText = this.readFile(fileName); + return sourceText !== undefined + ? ts.createSourceFile(fileName, sourceText, languageVersion) + : undefined; + }, + getDefaultLibFileName: (defaultLibOptions) => "/" + ts.getDefaultLibFileName(defaultLibOptions), + writeFile: (fileName, content) => results.set(fileName, content), + getCurrentDirectory: () => "/", + getDirectories: (_path) => [], + fileExists: () => true, + readFile: (fileName) => sources.get(fileName), + getCanonicalFileName: (fileName) => fileName, + useCaseSensitiveFileNames: () => true, + getNewLine: () => "\n", + getEnvironmentVariable: () => "", + resolveModuleNames: () => [], + }).emit(); + + return results.get(output); +} diff --git a/_plugins/vendor/typescript/typescript.min.js b/_plugins/vendor/typescript/typescript.min.js new file mode 100644 index 00000000..9d92e032 --- /dev/null +++ b/_plugins/vendor/typescript/typescript.min.js @@ -0,0 +1,27 @@ +/** + * Minified by jsDelivr using Terser v5.39.0. + * Original file: /npm/typescript@6.0.3/lib/typescript.js + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABILITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ +var ts={};(e=>{"use strict";var t=Object.defineProperty,n=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyNames,Object.prototype.hasOwnProperty,(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})}),r={};n(r,{ANONYMOUS:()=>wZ,AccessFlags:()=>Gr,AssertionLevel:()=>pt,AssignmentDeclarationKind:()=>oi,AssignmentKind:()=>Gg,Associativity:()=>ny,BreakpointResolver:()=>m7,BuilderFileEmit:()=>aW,BuilderProgramKind:()=>LW,BuilderState:()=>iW,CallHierarchy:()=>h7,CharacterCodes:()=>xi,CheckFlags:()=>qr,CheckMode:()=>nJ,ClassificationType:()=>ZG,ClassificationTypeNames:()=>YG,CommentDirectiveType:()=>Sr,Comparison:()=>a,CompletionInfoFlags:()=>WG,CompletionTriggerKind:()=>RG,Completions:()=>Fae,ContainerFlags:()=>nB,ContextFlags:()=>Ir,Debug:()=>_n,DiagnosticCategory:()=>ai,Diagnostics:()=>ua,DocumentHighlights:()=>A0,ElementFlags:()=>Kr,EmitFlags:()=>Ci,EmitHint:()=>Fi,EmitOnly:()=>Dr,EndOfLineState:()=>KG,ExitStatus:()=>Fr,ExportKind:()=>y0,Extension:()=>ki,ExternalEmitHelpers:()=>Ni,FileIncludeKind:()=>Cr,FilePreprocessingDiagnosticsKind:()=>wr,FileSystemEntryKind:()=>ro,FileWatcherEventKind:()=>Mi,FindAllReferences:()=>Ace,FlattenLevel:()=>Pz,FlowFlags:()=>kr,ForegroundColorEscapeSequences:()=>iV,FunctionFlags:()=>Oh,GeneratedIdentifierFlags:()=>vr,GetLiteralTextFlags:()=>np,GoToDefinition:()=>vle,HighlightSpanKind:()=>BG,IdentifierNameMap:()=>az,ImportKind:()=>h0,ImportsNotUsedAsValues:()=>mi,IndentStyle:()=>JG,IndexFlags:()=>Xr,IndexKind:()=>ei,InferenceFlags:()=>ri,InferencePriority:()=>ni,InlayHintKind:()=>MG,InlayHints:()=>Rle,InternalEmitFlags:()=>wi,InternalNodeBuilderFlags:()=>Lr,InternalSymbolName:()=>Ur,IntersectionFlags:()=>Ar,InvalidatedProjectKind:()=>NH,JSDocParsingMode:()=>Li,JsDoc:()=>qle,JsTyping:()=>nG,JsxEmit:()=>fi,JsxFlags:()=>gr,JsxReferenceKind:()=>Qr,LanguageFeatureMinimumTarget:()=>Di,LanguageServiceMode:()=>IG,LanguageVariant:()=>vi,LexicalEnvironmentFlags:()=>Pi,ListFormat:()=>Ai,LogLevel:()=>un,MapCode:()=>c_e,MemberOverrideStatus:()=>Er,ModifierFlags:()=>mr,ModuleDetectionKind:()=>li,ModuleInstanceState:()=>YM,ModuleKind:()=>pi,ModuleResolutionKind:()=>ci,ModuleSpecifierEnding:()=>BS,NavigateTo:()=>i2,NavigationBar:()=>m2,NewLineKind:()=>gi,NodeBuilderFlags:()=>Or,NodeCheckFlags:()=>Vr,NodeFactoryFlags:()=>ow,NodeFlags:()=>fr,NodeResolutionFeatures:()=>GR,ObjectFlags:()=>$r,OperationCanceledException:()=>Tr,OperatorPrecedence:()=>sy,OrganizeImports:()=>f_e,OrganizeImportsMode:()=>jG,OuterExpressionKinds:()=>Ei,OutliningElementsCollector:()=>$_e,OutliningSpanKind:()=>$G,OutputFileType:()=>HG,PackageJsonAutoImportPreference:()=>AG,PackageJsonDependencyGroup:()=>PG,PatternMatchKind:()=>o1,PollingInterval:()=>Bi,PollingWatchKind:()=>di,PragmaKindFlags:()=>Ii,PredicateSemantics:()=>yr,PreparePasteEdits:()=>Ffe,PrivateIdentifierKind:()=>cD,ProcessLevel:()=>Yz,ProgramUpdateLevel:()=>LU,QuotePreference:()=>dY,RegularExpressionFlags:()=>br,RelationComparisonResult:()=>hr,Rename:()=>tue,ScriptElementKind:()=>XG,ScriptElementKindModifier:()=>QG,ScriptKind:()=>hi,ScriptSnapshot:()=>TG,ScriptTarget:()=>yi,SemanticClassificationFormat:()=>LG,SemanticMeaning:()=>tX,SemicolonPreference:()=>zG,SignatureCheckMode:()=>rJ,SignatureFlags:()=>Zr,SignatureHelp:()=>cue,SignatureInfo:()=>oW,SignatureKind:()=>Yr,SmartSelectionRange:()=>Oue,SnippetKind:()=>Ti,StatisticType:()=>fK,StructureIsReused:()=>Nr,SymbolAccessibility:()=>Mr,SymbolDisplay:()=>Wue,SymbolDisplayPartKind:()=>VG,SymbolFlags:()=>zr,SymbolFormatFlags:()=>Rr,SyntaxKind:()=>pr,Ternary:()=>ii,ThrottledCancellationToken:()=>a7,TokenClass:()=>GG,TokenFlags:()=>xr,TransformFlags:()=>Si,TypeFacts:()=>eJ,TypeFlags:()=>Wr,TypeFormatFlags:()=>jr,TypeMapKind:()=>ti,TypePredicateKind:()=>Br,TypeReferenceSerializationKind:()=>Jr,UnionReduction:()=>Pr,UpToDateStatusType:()=>eH,VarianceFlags:()=>Hr,Version:()=>vn,VersionRange:()=>xn,WatchDirectoryFlags:()=>bi,WatchDirectoryKind:()=>ui,WatchFileKind:()=>_i,WatchLogLevel:()=>UU,WatchType:()=>M$,accessPrivateIdentifier:()=>Dz,addEmitFlags:()=>ww,addEmitHelper:()=>$w,addEmitHelpers:()=>Hw,addInternalEmitFlags:()=>Nw,addNodeFactoryPatcher:()=>sw,addObjectAllocatorPatcher:()=>zx,addRange:()=>ae,addRelatedInfo:()=>cT,addSyntheticLeadingComment:()=>Bw,addSyntheticTrailingComment:()=>qw,addToSeen:()=>kx,advancedAsyncSuperHelper:()=>UD,affectsDeclarationPathOptionDeclarations:()=>UO,affectsEmitOptionDeclarations:()=>qO,allKeysStartWithDot:()=>wM,altDirectorySeparator:()=>uo,and:()=>Yt,append:()=>re,appendIfUnique:()=>ce,arrayFrom:()=>Ie,arrayIsEqualTo:()=>ee,arrayIsHomogeneous:()=>TT,arrayOf:()=>Ae,arrayReverseIterator:()=>_e,arrayToMap:()=>je,arrayToMultiMap:()=>Me,arrayToNumericMap:()=>Re,assertType:()=>tn,assign:()=>Oe,asyncSuperHelper:()=>qD,attachFileToDiagnostics:()=>Xx,base64decode:()=>wb,base64encode:()=>Cb,binarySearch:()=>Se,binarySearchKey:()=>Te,bindSourceFile:()=>oB,breakIntoCharacterSpans:()=>k1,breakIntoWordSpans:()=>S1,buildLinkParts:()=>XY,buildOpts:()=>eL,buildOverload:()=>zfe,bundlerModuleNameResolver:()=>QR,canBeConvertedToAsync:()=>H1,canHaveDecorators:()=>EI,canHaveExportModifier:()=>HT,canHaveFlowNode:()=>Lg,canHaveIllegalDecorators:()=>XA,canHaveIllegalModifiers:()=>QA,canHaveIllegalType:()=>KA,canHaveIllegalTypeParameters:()=>GA,canHaveJSDoc:()=>jg,canHaveLocals:()=>cu,canHaveModifiers:()=>FI,canHaveModuleSpecifier:()=>yg,canHaveStatements:()=>XC,canHaveSymbol:()=>su,canIncludeBindAndCheckDiagnostics:()=>mT,canJsonReportNoInputFiles:()=>Sj,canProduceDiagnostics:()=>Aq,canUsePropertyAccess:()=>GT,canWatchAffectingLocation:()=>i$,canWatchAtTypes:()=>t$,canWatchDirectoryOrFile:()=>ZW,canWatchDirectoryOrFilePath:()=>e$,cartesianProduct:()=>on,cast:()=>tt,chainBundle:()=>ZJ,chainDiagnosticMessages:()=>tk,changeAnyExtension:()=>Ko,changeCompilerHostLikeToUseCache:()=>eV,changeExtension:()=>KS,changeFullExtension:()=>Go,changesAffectModuleResolution:()=>ed,changesAffectingProgramStructure:()=>td,characterCodeToRegularExpressionFlag:()=>Oa,childIsDecorated:()=>mm,classElementOrClassElementParameterIsDecorated:()=>hm,classHasClassThisAssignment:()=>qz,classHasDeclaredOrExplicitlyAssignedName:()=>Kz,classHasExplicitlyAssignedName:()=>Hz,classOrConstructorParameterIsDecorated:()=>gm,classicNameResolver:()=>WM,classifier:()=>j7,cleanExtendedConfigCache:()=>MU,clear:()=>D,clearMap:()=>px,clearSharedExtendedConfigFileWatcher:()=>RU,climbPastPropertyAccess:()=>mX,clone:()=>ze,cloneCompilerOptions:()=>jQ,closeFileWatcher:()=>ix,closeFileWatcherOf:()=>$U,codefix:()=>M7,collapseTextChangeRangesAcrossMultipleVersions:()=>Ys,collectExternalModuleInfo:()=>rz,combine:()=>ie,combinePaths:()=>Ro,commandLineOptionOfCustomType:()=>XO,commentPragmas:()=>Oi,commonOptionsWithBuild:()=>jO,compact:()=>te,compareBooleans:()=>It,compareComparableValues:()=>ht,compareDataObjects:()=>dx,compareDiagnostics:()=>ik,compareEmitHelpers:()=>_D,compareNumberOfDirectorySeparators:()=>US,comparePaths:()=>ea,comparePathsCaseInsensitive:()=>Zo,comparePathsCaseSensitive:()=>Yo,comparePatternKeys:()=>NM,compareProperties:()=>At,compareStringsCaseInsensitive:()=>kt,compareStringsCaseInsensitiveEslintCompatible:()=>St,compareStringsCaseSensitive:()=>Tt,compareStringsCaseSensitiveUI:()=>Pt,compareTextSpans:()=>vt,compareValues:()=>yt,compilerOptionsAffectDeclarationPath:()=>Hk,compilerOptionsAffectEmit:()=>$k,compilerOptionsAffectSemanticDiagnostics:()=>Wk,compilerOptionsDidYouMeanDiagnostics:()=>mL,compilerOptionsIndicateEsModules:()=>aY,computeCommonSourceDirectoryOfFilenames:()=>GU,computeLineAndCharacterOfPosition:()=>Ba,computeLineOfPosition:()=>Ja,computeLineStarts:()=>La,computePositionOfLineAndCharacter:()=>Ra,computeSignatureWithDiagnostics:()=>MW,computeSuggestionDiagnostics:()=>R1,computedOptions:()=>vk,concatenate:()=>$,concatenateDiagnosticMessageChains:()=>nk,consumesNodeCoreModules:()=>WZ,contains:()=>k,containsIgnoredPath:()=>LT,containsObjectRestOrSpread:()=>DI,containsParseError:()=>vd,containsPath:()=>ta,convertCompilerOptionsForTelemetry:()=>tR,convertCompilerOptionsFromJson:()=>Nj,convertJsonOption:()=>jj,convertToBase64:()=>Tb,convertToJson:()=>$L,convertToObject:()=>WL,convertToOptionsWithAbsolutePaths:()=>ij,convertToRelativePath:()=>oa,convertToTSConfig:()=>GL,convertTypeAcquisitionFromJson:()=>Fj,copyComments:()=>uZ,copyEntries:()=>ad,copyLeadingComments:()=>fZ,copyProperties:()=>Ue,copyTrailingAsLeadingComments:()=>gZ,copyTrailingComments:()=>mZ,couldStartTrivia:()=>Qa,countWhere:()=>T,createAbstractBuilder:()=>XW,createAccessorPropertyBackingField:()=>xI,createAccessorPropertyGetRedirector:()=>kI,createAccessorPropertySetRedirector:()=>SI,createBaseNodeFactory:()=>YC,createBinaryExpressionTrampoline:()=>fI,createBuilderProgram:()=>BW,createBuilderProgramUsingIncrementalBuildInfo:()=>VW,createBuilderStatusReporter:()=>sH,createCacheableExportInfoMap:()=>v0,createCachedDirectoryStructureHost:()=>OU,createClassifier:()=>P0,createCommentDirectivesMap:()=>zd,createCompilerDiagnostic:()=>Zx,createCompilerDiagnosticForInvalidCustomType:()=>aL,createCompilerDiagnosticFromMessageChain:()=>ek,createCompilerHost:()=>XU,createCompilerHostFromProgramHost:()=>J$,createCompilerHostWorker:()=>ZU,createDetachedDiagnostic:()=>Hx,createDiagnosticCollection:()=>uy,createDiagnosticForFileFromMessageChain:()=>Wp,createDiagnosticForNode:()=>Mp,createDiagnosticForNodeArray:()=>Bp,createDiagnosticForNodeArrayFromMessageChain:()=>qp,createDiagnosticForNodeFromMessageChain:()=>zp,createDiagnosticForNodeInSourceFile:()=>Jp,createDiagnosticForRange:()=>Hp,createDiagnosticMessageChainFromDiagnostic:()=>$p,createDiagnosticReporter:()=>m$,createDocumentPositionMapper:()=>KJ,createDocumentRegistry:()=>H0,createDocumentRegistryInternal:()=>K0,createEmitAndSemanticDiagnosticsBuilderProgram:()=>GW,createEmitHelperFactory:()=>lD,createEmptyExports:()=>cA,createEvaluator:()=>yC,createExpressionForJsxElement:()=>pA,createExpressionForJsxFragment:()=>fA,createExpressionForObjectLiteralElementLike:()=>yA,createExpressionForPropertyName:()=>hA,createExpressionFromEntityName:()=>gA,createExternalHelpersImportDeclarationIfNeeded:()=>jA,createFileDiagnostic:()=>Qx,createFileDiagnosticFromMessageChain:()=>Vp,createFlowNode:()=>rB,createForOfBindingStatement:()=>mA,createFutureSourceFile:()=>g0,createGetCanonicalFileName:()=>Vt,createGetIsolatedDeclarationErrors:()=>Lq,createGetSourceFile:()=>QU,createGetSymbolAccessibilityDiagnosticForNode:()=>Oq,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Iq,createGetSymbolWalker:()=>_B,createIncrementalCompilerHost:()=>X$,createIncrementalProgram:()=>Q$,createJsxFactoryExpression:()=>dA,createLanguageService:()=>l7,createLanguageServiceSourceFile:()=>n7,createMemberAccessForPropertyName:()=>lA,createModeAwareCache:()=>jR,createModeAwareCacheKey:()=>LR,createModeMismatchDetails:()=>fd,createModuleNotFoundChain:()=>pd,createModuleResolutionCache:()=>zR,createModuleResolutionLoader:()=>DV,createModuleResolutionLoaderUsingGlobalCache:()=>u$,createModuleSpecifierResolutionHost:()=>sY,createMultiMap:()=>We,createNameResolver:()=>xC,createNodeConverters:()=>tw,createNodeFactory:()=>cw,createOptionNameMap:()=>nL,createOverload:()=>Jfe,createPackageJsonImportFilter:()=>VZ,createPackageJsonInfo:()=>UZ,createParenthesizerRules:()=>ZC,createPatternMatcher:()=>s1,createPrinter:()=>EU,createPrinterWithDefaults:()=>wU,createPrinterWithRemoveComments:()=>DU,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>NU,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>FU,createProgram:()=>UV,createProgramDiagnostics:()=>nW,createProgramHost:()=>U$,createPropertyNameNodeForIdentifierOrLiteral:()=>UT,createQueue:()=>Ke,createRange:()=>Ob,createRedirectedBuilderProgram:()=>HW,createResolutionCache:()=>d$,createRuntimeTypeSerializer:()=>aq,createScanner:()=>hs,createSemanticDiagnosticsBuilderProgram:()=>KW,createSet:()=>Ge,createSolutionBuilder:()=>uH,createSolutionBuilderHost:()=>lH,createSolutionBuilderWithWatch:()=>dH,createSolutionBuilderWithWatchHost:()=>_H,createSortedArray:()=>Q,createSourceFile:()=>sO,createSourceMapGenerator:()=>PJ,createSourceMapSource:()=>bw,createSuperAccessVariableStatement:()=>_q,createSymbolTable:()=>Xu,createSymlinkCache:()=>Zk,createSyntacticTypeNodeBuilder:()=>tG,createSystemWatchFunctions:()=>ao,createTextChange:()=>KQ,createTextChangeFromStartLength:()=>HQ,createTextChangeRange:()=>Xs,createTextRangeFromNode:()=>VQ,createTextRangeFromSpan:()=>$Q,createTextSpan:()=>$s,createTextSpanFromBounds:()=>Hs,createTextSpanFromNode:()=>qQ,createTextSpanFromRange:()=>WQ,createTextSpanFromStringLiteralLikeContent:()=>UQ,createTextWriter:()=>Ly,createTokenRange:()=>Bb,createTypeChecker:()=>uJ,createTypeReferenceDirectiveResolutionCache:()=>qR,createTypeReferenceResolutionLoader:()=>EV,createWatchCompilerHost:()=>Y$,createWatchCompilerHostOfConfigFile:()=>$$,createWatchCompilerHostOfFilesAndCompilerOptions:()=>H$,createWatchFactory:()=>B$,createWatchHost:()=>R$,createWatchProgram:()=>Z$,createWatchStatusReporter:()=>v$,createWriteFileMeasuringIO:()=>YU,declarationNameToString:()=>Ap,decodeMappings:()=>BJ,decodedTextSpanIntersectsWith:()=>zs,deduplicate:()=>X,defaultHoverMaximumTruncationLength:()=>Hu,defaultInitCompilerOptions:()=>oL,defaultMaximumTruncationLength:()=>Wu,diagnosticCategoryName:()=>si,diagnosticToString:()=>l0,diagnosticsEqualityComparer:()=>ck,directoryProbablyExists:()=>Eb,directorySeparator:()=>_o,displayPart:()=>RY,displayPartsToString:()=>Q8,disposeEmitNodes:()=>Sw,documentSpansEqual:()=>DY,dumpTracingLegend:()=>dr,elementAt:()=>de,elideNodes:()=>gI,emitDetachedComments:()=>kv,emitFiles:()=>kU,emitFilesAndReportErrors:()=>I$,emitFilesAndReportErrorsAndGetExitStatus:()=>O$,emitModuleKindIsNonNodeESM:()=>Mk,emitNewLineBeforeLeadingCommentOfPosition:()=>xv,emitResolverSkipsTypeChecking:()=>xU,emitSkippedWithNoDiagnostics:()=>KV,emptyArray:()=>s,emptyFileSystemEntries:()=>oT,emptyMap:()=>c,emptyOptions:()=>OG,endsWith:()=>jt,ensurePathIsNonModuleName:()=>Ho,ensureScriptKind:()=>kS,ensureTrailingDirectorySeparator:()=>$o,entityNameToString:()=>Rp,enumerateInsertsAndDeletes:()=>rn,equalOwnProperties:()=>Le,equateStringsCaseInsensitive:()=>mt,equateStringsCaseSensitive:()=>gt,equateValues:()=>ft,escapeJsxAttributeString:()=>Fy,escapeLeadingUnderscores:()=>mc,escapeNonAsciiString:()=>Ty,escapeSnippetText:()=>zT,escapeString:()=>ky,escapeTemplateSubstitution:()=>py,evaluatorResult:()=>hC,every:()=>h,exclusivelyPrefixedNodeCoreModules:()=>NC,executeCommandLine:()=>PK,expandPreOrPostfixIncrementOrDecrementExpression:()=>vA,explainFiles:()=>D$,explainIfFileIsRedirectAndImpliedFormat:()=>N$,exportAssignmentIsAlias:()=>gh,expressionResultIsUnused:()=>OT,extend:()=>qe,extensionFromPath:()=>tT,extensionIsTS:()=>ZS,extensionsNotSupportingExtensionlessResolution:()=>IS,externalHelpersModuleNameText:()=>Vu,factory:()=>vw,fileExtensionIs:()=>So,fileExtensionIsOneOf:()=>To,fileIncludeReasonToDiagnostics:()=>P$,fileShouldUseJavaScriptRequire:()=>f0,filter:()=>C,filterMutate:()=>w,filterSemanticDiagnostics:()=>XV,find:()=>y,findAncestor:()=>dc,findBestPatternMatch:()=>Ht,findChildOfKind:()=>$X,findComputedPropertyNameCacheAssignment:()=>TI,findConfigFile:()=>HU,findConstructorDeclaration:()=>bC,findContainingList:()=>HX,findDiagnosticForNode:()=>KZ,findFirstNonJsxWhitespaceToken:()=>cQ,findIndex:()=>b,findLast:()=>v,findLastIndex:()=>x,findListItemInfo:()=>VX,findModifier:()=>SY,findNextToken:()=>_Q,findPackageJson:()=>qZ,findPackageJsons:()=>zZ,findPrecedingMatchingToken:()=>xQ,findPrecedingToken:()=>uQ,findSuperStatementIndexPath:()=>fz,findTokenOnLeftOfPosition:()=>lQ,findUseStrictPrologue:()=>TA,first:()=>me,firstDefined:()=>d,firstDefinedIterator:()=>p,firstIterator:()=>ge,firstOrOnly:()=>ZZ,firstOrUndefined:()=>pe,firstOrUndefinedIterator:()=>fe,fixupCompilerOptions:()=>r2,flatMap:()=>A,flatMapIterator:()=>O,flatMapToMutable:()=>I,flatten:()=>P,flattenCommaList:()=>wI,flattenDestructuringAssignment:()=>Az,flattenDestructuringBinding:()=>Lz,flattenDiagnosticMessageText:()=>gV,forEach:()=>_,forEachAncestor:()=>rd,forEachAncestorDirectory:()=>ca,forEachAncestorDirectoryStoppingAtGlobalCache:()=>OM,forEachChild:()=>rO,forEachChildRecursively:()=>iO,forEachDynamicImportOrRequireCall:()=>EC,forEachEmittedFile:()=>tU,forEachEnclosingBlockScopeContainer:()=>Pp,forEachEntry:()=>id,forEachExternalModuleToImportFrom:()=>k0,forEachImportClauseDeclaration:()=>wg,forEachKey:()=>od,forEachLeadingCommentRange:()=>as,forEachNameInAccessChainWalkingLeft:()=>Fx,forEachNameOfDefaultExport:()=>E0,forEachOptionsSyntaxByName:()=>BC,forEachProjectReference:()=>jC,forEachPropertyAssignment:()=>Vf,forEachResolvedProjectReference:()=>LC,forEachReturnStatement:()=>Nf,forEachRight:()=>u,forEachTrailingCommentRange:()=>ss,forEachTsConfigPropArray:()=>Hf,forEachUnique:()=>FY,forEachYieldExpression:()=>Ff,formatColorAndReset:()=>dV,formatDiagnostic:()=>rV,formatDiagnostics:()=>nV,formatDiagnosticsWithColorAndContext:()=>mV,formatGeneratedName:()=>bI,formatGeneratedNamePart:()=>yI,formatLocation:()=>fV,formatMessage:()=>Yx,formatStringFromArgs:()=>Ux,formatting:()=>Fde,generateDjb2Hash:()=>ji,generateTSConfig:()=>rj,getAdjustedReferenceLocation:()=>nQ,getAdjustedRenameLocation:()=>rQ,getAliasDeclarationFromName:()=>fh,getAllAccessorDeclarations:()=>fv,getAllDecoratorsOfClass:()=>xz,getAllDecoratorsOfClassElement:()=>kz,getAllJSDocTags:()=>cl,getAllJSDocTagsOfKind:()=>ll,getAllKeys:()=>Ee,getAllProjectOutputs:()=>yU,getAllSuperTypeNodes:()=>kh,getAllowImportingTsExtensions:()=>bk,getAllowJSCompilerOption:()=>Lk,getAllowSyntheticDefaultImports:()=>Dk,getAlwaysStrict:()=>Rk,getAncestor:()=>Ch,getAnyExtensionFromPath:()=>Ao,getAreDeclarationMapsEnabled:()=>Ok,getAssignedExpandoInitializer:()=>Hm,getAssignedName:()=>Dc,getAssignmentDeclarationKind:()=>ng,getAssignmentDeclarationPropertyAccessKind:()=>dg,getAssignmentTargetKind:()=>Qg,getAutomaticTypeDirectiveNames:()=>NR,getBaseFileName:()=>Eo,getBinaryOperatorPrecedence:()=>ly,getBuildInfo:()=>TU,getBuildInfoFileVersionMap:()=>WW,getBuildInfoText:()=>SU,getBuildOrderFromAnyBuildOrder:()=>aH,getBuilderCreationParameters:()=>jW,getBuilderFileEmit:()=>cW,getCanonicalDiagnostic:()=>Kp,getCheckFlags:()=>ox,getClassExtendsHeritageElement:()=>bh,getClassLikeDeclarationOfSymbol:()=>hx,getCombinedLocalAndExportSymbolFlags:()=>cx,getCombinedModifierFlags:()=>oc,getCombinedNodeFlags:()=>sc,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>ac,getCommentRange:()=>Lw,getCommonSourceDirectory:()=>mU,getCommonSourceDirectoryOfConfig:()=>hU,getCompilerOptionValue:()=>Kk,getComputedCommonSourceDirectory:()=>gU,getConditions:()=>wR,getConfigFileParsingDiagnostics:()=>BV,getConstantValue:()=>Vw,getContainerFlags:()=>cB,getContainerNode:()=>FX,getContainingClass:()=>Xf,getContainingClassExcludingClassDecorators:()=>Zf,getContainingClassStaticBlock:()=>Qf,getContainingFunction:()=>Kf,getContainingFunctionDeclaration:()=>Gf,getContainingFunctionOrClassStaticBlock:()=>Yf,getContainingNodeArray:()=>jT,getContainingObjectLiteralElement:()=>u7,getContextualTypeFromParent:()=>bZ,getContextualTypeFromParentOrAncestorTypeNode:()=>QX,getDeclarationDiagnostics:()=>jq,getDeclarationEmitExtensionForPath:()=>$y,getDeclarationEmitOutputFilePath:()=>Vy,getDeclarationEmitOutputFilePathWorker:()=>Wy,getDeclarationFileExtension:()=>vO,getDeclarationFromName:()=>uh,getDeclarationModifierFlagsFromSymbol:()=>ax,getDeclarationOfKind:()=>Ku,getDeclarationsOfKind:()=>Gu,getDeclaredExpandoInitializer:()=>$m,getDecorators:()=>Nc,getDefaultCompilerOptions:()=>Y8,getDefaultFormatCodeSettings:()=>qG,getDefaultLibFileName:()=>Fs,getDefaultLibFilePath:()=>p7,getDefaultLikeExportInfo:()=>N0,getDefaultLikeExportNameFromDeclaration:()=>t0,getDefaultResolutionModeForFileWorker:()=>HV,getDiagnosticText:()=>kL,getDiagnosticsWithinSpan:()=>GZ,getDirectoryPath:()=>Fo,getDirectoryToWatchFailedLookupLocation:()=>o$,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>c$,getDocumentPositionMapper:()=>O1,getDocumentSpansEqualityComparer:()=>NY,getESModuleInterop:()=>wk,getEditsForFileRename:()=>Q0,getEffectiveBaseTypeNode:()=>vh,getEffectiveConstraintOfTypeParameter:()=>dl,getEffectiveContainerForJSDocTemplateTag:()=>zg,getEffectiveImplementsTypeNodes:()=>xh,getEffectiveInitializer:()=>Wm,getEffectiveJSDocHost:()=>Vg,getEffectiveModifierFlags:()=>zv,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>qv,getEffectiveModifierFlagsNoCache:()=>$v,getEffectiveReturnTypeNode:()=>hv,getEffectiveSetAccessorTypeAnnotationNode:()=>vv,getEffectiveTypeAnnotationNode:()=>mv,getEffectiveTypeParameterDeclarations:()=>ul,getEffectiveTypeRoots:()=>vR,getElementOrPropertyAccessArgumentExpressionOrName:()=>_g,getElementOrPropertyAccessName:()=>ug,getElementsOfBindingOrAssignmentPattern:()=>$A,getEmitDeclarations:()=>Pk,getEmitFlags:()=>Zd,getEmitHelpers:()=>Gw,getEmitModuleDetectionKind:()=>Tk,getEmitModuleFormatOfFileWorker:()=>WV,getEmitModuleKind:()=>kk,getEmitModuleResolutionKind:()=>Sk,getEmitScriptTarget:()=>xk,getEmitStandardClassFields:()=>Vk,getEnclosingBlockScopeContainer:()=>Ep,getEnclosingContainer:()=>Fp,getEncodedSemanticClassifications:()=>J0,getEncodedSyntacticClassifications:()=>W0,getEndLinePosition:()=>wd,getEntityNameFromTypeNode:()=>_m,getEntrypointsFromPackageJsonInfo:()=>gM,getErrorCountForSummary:()=>x$,getErrorSpanForNode:()=>Qp,getErrorSummaryText:()=>C$,getEscapedTextOfIdentifierOrLiteral:()=>Vh,getEscapedTextOfJsxAttributeName:()=>rC,getEscapedTextOfJsxNamespacedName:()=>aC,getExpandoInitializer:()=>Km,getExportAssignmentExpression:()=>hh,getExportInfoMap:()=>D0,getExportNeedsImportStarHelper:()=>ez,getExpressionAssociativity:()=>ry,getExpressionPrecedence:()=>oy,getExternalHelpersModuleName:()=>OA,getExternalModuleImportEqualsDeclarationExpression:()=>Cm,getExternalModuleName:()=>Sg,getExternalModuleNameFromDeclaration:()=>zy,getExternalModuleNameFromPath:()=>qy,getExternalModuleNameLiteral:()=>MA,getExternalModuleRequireArgument:()=>wm,getFallbackOptions:()=>WU,getFileEmitOutput:()=>rW,getFileMatcherPatterns:()=>hS,getFileNamesFromConfigSpecs:()=>Uj,getFileWatcherEventKind:()=>Qi,getFilesInErrorForSummary:()=>k$,getFirstConstructorWithBody:()=>ov,getFirstIdentifier:()=>lb,getFirstNonSpaceCharacterPosition:()=>lZ,getFirstProjectOutput:()=>bU,getFixableErrorSpanExpression:()=>QZ,getFormatCodeSettingsForWriting:()=>_0,getFullWidth:()=>cd,getFunctionFlags:()=>Lh,getHeritageClause:()=>Th,getHostSignatureFromJSDoc:()=>Ug,getIdentifierAutoGenerate:()=>oD,getIdentifierGeneratedImportReference:()=>sD,getIdentifierTypeArguments:()=>rD,getImmediatelyInvokedFunctionExpression:()=>om,getImpliedNodeFormatForEmitWorker:()=>$V,getImpliedNodeFormatForFile:()=>JV,getImpliedNodeFormatForFileWorker:()=>zV,getImportNeedsImportDefaultHelper:()=>nz,getImportNeedsImportStarHelper:()=>tz,getIndentString:()=>Iy,getInferredLibraryNameResolveFrom:()=>IV,getInitializedVariables:()=>tx,getInitializerOfBinaryExpression:()=>pg,getInitializerOfBindingOrAssignmentElement:()=>JA,getInterfaceBaseTypeNodes:()=>Sh,getInternalEmitFlags:()=>ep,getInvokedExpression:()=>um,getIsFileExcluded:()=>w0,getIsolatedModules:()=>Ck,getJSDocAugmentsTag:()=>Rc,getJSDocClassTag:()=>Bc,getJSDocCommentRanges:()=>vf,getJSDocCommentsAndTags:()=>Rg,getJSDocDeprecatedTag:()=>Gc,getJSDocDeprecatedTagNoCache:()=>Xc,getJSDocEnumTag:()=>Qc,getJSDocHost:()=>Wg,getJSDocImplementsTags:()=>Mc,getJSDocOverloadTags:()=>qg,getJSDocOverrideTagNoCache:()=>Kc,getJSDocParameterTags:()=>Pc,getJSDocParameterTagsNoCache:()=>Ac,getJSDocPrivateTag:()=>qc,getJSDocPrivateTagNoCache:()=>Uc,getJSDocProtectedTag:()=>Vc,getJSDocProtectedTagNoCache:()=>Wc,getJSDocPublicTag:()=>Jc,getJSDocPublicTagNoCache:()=>zc,getJSDocReadonlyTag:()=>$c,getJSDocReadonlyTagNoCache:()=>Hc,getJSDocReturnTag:()=>Zc,getJSDocReturnType:()=>il,getJSDocRoot:()=>$g,getJSDocSatisfiesExpressionType:()=>tC,getJSDocSatisfiesTag:()=>tl,getJSDocTags:()=>al,getJSDocTemplateTag:()=>el,getJSDocThisTag:()=>Yc,getJSDocType:()=>rl,getJSDocTypeAliasName:()=>HA,getJSDocTypeAssertionType:()=>FA,getJSDocTypeParameterDeclarations:()=>yv,getJSDocTypeParameterTags:()=>Oc,getJSDocTypeParameterTagsNoCache:()=>Lc,getJSDocTypeTag:()=>nl,getJSXImplicitImportBase:()=>Xk,getJSXRuntimeImport:()=>Qk,getJSXTransformEnabled:()=>Gk,getKeyForCompilerOptions:()=>AR,getLanguageVariant:()=>uk,getLastChild:()=>xx,getLeadingCommentRanges:()=>us,getLeadingCommentRangesOfNode:()=>yf,getLeftmostAccessExpression:()=>Nx,getLeftmostExpression:()=>Ex,getLibFileNameFromLibReference:()=>OC,getLibNameFromLibReference:()=>IC,getLibraryNameFromLibFileName:()=>OV,getLineAndCharacterOfPosition:()=>qa,getLineInfo:()=>LJ,getLineOfLocalPosition:()=>rv,getLineStartPositionForPosition:()=>IX,getLineStarts:()=>Ma,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Qb,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Xb,getLinesBetweenPositions:()=>za,getLinesBetweenRangeEndAndRangeStart:()=>Wb,getLinesBetweenRangeEndPositions:()=>$b,getLiteralText:()=>rp,getLocalNameForExternalImport:()=>RA,getLocalSymbolForExportDefault:()=>xb,getLocaleSpecificMessage:()=>$x,getLocaleTimeString:()=>y$,getMappedContextSpan:()=>IY,getMappedDocumentSpan:()=>AY,getMappedLocation:()=>PY,getMatchedFileSpec:()=>F$,getMatchedIncludeSpec:()=>E$,getMeaningFromDeclaration:()=>nX,getMeaningFromLocation:()=>rX,getMembersOfDeclaration:()=>Pf,getModeForFileReference:()=>hV,getModeForResolutionAtIndex:()=>yV,getModeForUsageLocation:()=>bV,getModifiedTime:()=>zi,getModifiers:()=>Fc,getModuleInstanceState:()=>ZM,getModuleNameStringLiteralAt:()=>tW,getModuleSpecifierEndingPreference:()=>JS,getModuleSpecifierOfBareOrAccessedRequire:()=>Bm,getModuleSpecifierResolverHost:()=>cY,getNameForExportedSymbol:()=>e0,getNameFromImportAttribute:()=>mC,getNameFromIndexInfo:()=>Ip,getNameFromPropertyName:()=>rY,getNameOfAccessExpression:()=>wx,getNameOfCompilerOptionValue:()=>ej,getNameOfDeclaration:()=>wc,getNameOfExpando:()=>Xm,getNameOfJSDocTypedef:()=>Sc,getNameOfScriptTarget:()=>Uk,getNameOrArgument:()=>lg,getNameTable:()=>_7,getNamespaceDeclarationNode:()=>Tg,getNewLineCharacter:()=>Ib,getNewLineKind:()=>c0,getNewLineOrDefaultFromHost:()=>YY,getNewTargetContainer:()=>rm,getNextJSDocCommentLocation:()=>Bg,getNodeChildren:()=>iA,getNodeForGeneratedName:()=>hI,getNodeId:()=>cJ,getNodeKind:()=>EX,getNodeModifiers:()=>NQ,getNodeModulePathParts:()=>WT,getNonAssignedNameOfDeclaration:()=>Cc,getNonAssignmentOperatorForCompoundAssignment:()=>uz,getNonAugmentationDeclaration:()=>gp,getNonDecoratorTokenPosOfNode:()=>Ud,getNonIncrementalBuildInfoRoots:()=>$W,getNormalizedAbsolutePath:()=>Jo,getNormalizedAbsolutePathWithoutRoot:()=>Uo,getNormalizedPathComponents:()=>Bo,getObjectFlags:()=>yx,getOperatorAssociativity:()=>iy,getOperatorPrecedence:()=>cy,getOptionFromName:()=>hL,getOptionsForLibraryResolution:()=>UR,getOptionsNameMap:()=>rL,getOptionsSyntaxByArrayElementValue:()=>RC,getOptionsSyntaxByValue:()=>MC,getOrCreateEmitNode:()=>kw,getOrUpdate:()=>B,getOriginalNode:()=>uc,getOriginalNodeId:()=>XJ,getOutputDeclarationFileName:()=>cU,getOutputDeclarationFileNameWorker:()=>lU,getOutputExtension:()=>aU,getOutputFileNames:()=>vU,getOutputJSFileNameWorker:()=>uU,getOutputPathsFor:()=>iU,getOwnEmitOutputFilePath:()=>Uy,getOwnKeys:()=>Fe,getOwnValues:()=>Pe,getPackageJsonTypesVersionsPaths:()=>yR,getPackageNameFromTypesPackageName:()=>qM,getPackageScopeForPath:()=>vM,getParameterSymbolFromJSDoc:()=>Jg,getParentNodeInSpan:()=>xY,getParseTreeNode:()=>fc,getParsedCommandLineOfConfigFile:()=>SL,getPathComponents:()=>Io,getPathFromPathComponents:()=>Oo,getPathUpdater:()=>Y0,getPathsBasePath:()=>Gy,getPatternFromSpec:()=>fS,getPendingEmitKindWithSeen:()=>bW,getPositionOfLineAndCharacter:()=>ja,getPossibleGenericSignatures:()=>SQ,getPossibleOriginalInputExtensionForExtension:()=>Hy,getPossibleOriginalInputPathWithoutChangingExt:()=>Ky,getPossibleTypeArgumentsInfo:()=>TQ,getPreEmitDiagnostics:()=>tV,getPrecedingNonSpaceCharacterPosition:()=>_Z,getPrivateIdentifier:()=>Cz,getProperties:()=>mz,getProperty:()=>Ne,getPropertyAssignmentAliasLikeExpression:()=>yh,getPropertyNameForPropertyNameNode:()=>zh,getPropertyNameFromType:()=>_C,getPropertyNameOfBindingOrAssignmentElement:()=>UA,getPropertySymbolFromBindingElement:()=>bY,getPropertySymbolsFromContextualType:()=>d7,getQuoteFromPreference:()=>mY,getQuotePreference:()=>fY,getRangesWhere:()=>W,getRefactorContextSpan:()=>XZ,getReferencedFileLocation:()=>RV,getRegexFromPattern:()=>yS,getRegularExpressionForWildcard:()=>uS,getRegularExpressionsForWildcards:()=>dS,getRelativePathFromDirectory:()=>ia,getRelativePathFromFile:()=>aa,getRelativePathToDirectoryOrUrl:()=>sa,getRenameLocation:()=>pZ,getReplacementSpanForContextToken:()=>zQ,getResolutionDiagnostic:()=>ZV,getResolutionModeOverride:()=>SV,getResolveJsonModule:()=>Ek,getResolvePackageJsonExports:()=>Nk,getResolvePackageJsonImports:()=>Fk,getResolvedExternalModuleName:()=>By,getResolvedModuleFromResolution:()=>ud,getResolvedTypeReferenceDirectiveFromResolution:()=>dd,getRestIndicatorOfBindingOrAssignmentElement:()=>qA,getRestParameterElementType:()=>Ef,getRightMostAssignedExpression:()=>Ym,getRootDeclaration:()=>Zh,getRootDirectoryOfResolutionCache:()=>l$,getRootLength:()=>No,getScriptKind:()=>oZ,getScriptKindFromFileName:()=>SS,getScriptTargetFeatures:()=>tp,getSelectedEffectiveModifierFlags:()=>Mv,getSelectedSyntacticModifierFlags:()=>Bv,getSemanticClassifications:()=>M0,getSemanticJsxChildren:()=>_y,getSetAccessorTypeAnnotationNode:()=>sv,getSetAccessorValueParameter:()=>av,getSetExternalModuleIndicator:()=>mk,getShebang:()=>ps,getSingleVariableOfVariableStatement:()=>Ig,getSnapshotText:()=>eY,getSnippetElement:()=>Qw,getSourceFileOfModule:()=>xd,getSourceFileOfNode:()=>bd,getSourceFilePathInNewDir:()=>Yy,getSourceFileVersionAsHashFromText:()=>z$,getSourceFilesToEmit:()=>Xy,getSourceMapRange:()=>Fw,getSourceMapper:()=>I1,getSourceTextOfNodeFromSourceFile:()=>Vd,getSpanOfTokenAtPosition:()=>Gp,getSpellingSuggestion:()=>Ot,getStartPositionOfLine:()=>Td,getStartPositionOfRange:()=>Gb,getStartsOnNewLine:()=>Iw,getStaticPropertiesAndClassStaticBlock:()=>hz,getStrictOptionValue:()=>qk,getStringComparer:()=>Ct,getSubPatternFromSpec:()=>mS,getSuperCallFromStatement:()=>dz,getSuperContainer:()=>im,getSupportedCodeFixes:()=>Z8,getSupportedExtensions:()=>OS,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>LS,getSwitchedType:()=>CZ,getSymbolId:()=>lJ,getSymbolNameForPrivateIdentifier:()=>Wh,getSymbolTarget:()=>aZ,getSyntacticClassifications:()=>V0,getSyntacticModifierFlags:()=>Uv,getSyntacticModifierFlagsNoCache:()=>Hv,getSynthesizedDeepClone:()=>JC,getSynthesizedDeepCloneWithReplacements:()=>zC,getSynthesizedDeepClones:()=>UC,getSynthesizedDeepClonesWithReplacements:()=>VC,getSyntheticLeadingComments:()=>Rw,getSyntheticTrailingComments:()=>Jw,getTargetLabel:()=>gX,getTargetOfBindingOrAssignmentElement:()=>zA,getTemporaryModuleResolutionState:()=>yM,getTextOfConstantValue:()=>ip,getTextOfIdentifierOrLiteral:()=>Uh,getTextOfJSDocComment:()=>_l,getTextOfJsxAttributeName:()=>iC,getTextOfJsxNamespacedName:()=>sC,getTextOfNode:()=>Xd,getTextOfNodeFromSourceText:()=>Gd,getTextOfPropertyName:()=>jp,getThisContainer:()=>em,getThisParameter:()=>cv,getTokenAtPosition:()=>aQ,getTokenPosOfNode:()=>qd,getTokenSourceMapRange:()=>Pw,getTouchingPropertyName:()=>iQ,getTouchingToken:()=>oQ,getTrailingCommentRanges:()=>ds,getTrailingSemicolonDeferringWriter:()=>jy,getTransformers:()=>Uq,getTsBuildInfoEmitOutputFilePath:()=>nU,getTsConfigObjectLiteralExpression:()=>Wf,getTsConfigPropArrayElementValue:()=>$f,getTypeAnnotationNode:()=>gv,getTypeArgumentOrTypeParameterList:()=>FQ,getTypeKeywordOfTypeOnlyImport:()=>CY,getTypeNode:()=>tD,getTypeNodeIfAccessible:()=>DZ,getTypeParameterFromJsDoc:()=>Hg,getTypeParameterOwner:()=>Zs,getTypesPackageName:()=>JM,getUILocale:()=>Ft,getUniqueName:()=>dZ,getUniqueSymbolId:()=>cZ,getUseDefineForClassFields:()=>jk,getWatchErrorSummaryDiagnosticMessage:()=>S$,getWatchFactory:()=>VU,group:()=>Be,groupBy:()=>Je,guessIndentation:()=>ju,handleNoEmitOptions:()=>GV,handleWatchOptionsConfigDirTemplateSubstitution:()=>pj,hasAbstractModifier:()=>Iv,hasAccessorModifier:()=>Lv,hasAmbientModifier:()=>Ov,hasChangesInResolutions:()=>yd,hasContextSensitiveParameters:()=>RT,hasDecorators:()=>Rv,hasDocComment:()=>wQ,hasDynamicName:()=>Bh,hasEffectiveModifier:()=>Nv,hasEffectiveModifiers:()=>wv,hasEffectiveReadonlyModifier:()=>jv,hasExtension:()=>ko,hasImplementationTSFileExtension:()=>MS,hasIndexSignature:()=>TZ,hasInferredType:()=>TC,hasInitializer:()=>Pu,hasInvalidEscape:()=>my,hasJSDocNodes:()=>Fu,hasJSDocParameterTags:()=>jc,hasJSFileExtension:()=>jS,hasJsonModuleEmitEnabled:()=>Bk,hasOnlyExpressionInitializer:()=>Au,hasOverrideModifier:()=>Av,hasPossibleExternalModuleReference:()=>Dp,hasProperty:()=>De,hasPropertyAccessExpressionWithName:()=>hX,hasQuestionToken:()=>Dg,hasRecordedExternalHelpers:()=>LA,hasResolutionModeOverride:()=>dC,hasRestParameter:()=>Bu,hasScopeMarker:()=>G_,hasStaticModifier:()=>Pv,hasSyntacticModifier:()=>Fv,hasSyntacticModifiers:()=>Dv,hasTSFileExtension:()=>RS,hasTabstop:()=>XT,hasTrailingDirectorySeparator:()=>Co,hasType:()=>Eu,hasTypeArguments:()=>Kg,hasZeroOrOneAsteriskCharacter:()=>Yk,hostGetCanonicalFileName:()=>My,hostUsesCaseSensitiveFileNames:()=>Ry,idText:()=>hc,identifierIsThisKeyword:()=>pv,identifierToKeywordKind:()=>yc,identity:()=>at,identitySourceMapConsumer:()=>GJ,ignoreSourceNewlines:()=>Zw,ignoredPaths:()=>Yi,importFromModuleSpecifier:()=>bg,importSyntaxAffectsModuleResolution:()=>gk,indexOfAnyCharCode:()=>S,indexOfNode:()=>Yd,indicesOf:()=>K,inferredTypesContainingFile:()=>AV,injectClassNamedEvaluationHelperBlockIfMissing:()=>Gz,injectClassThisAssignmentIfMissing:()=>Uz,insertImports:()=>TY,insertSorted:()=>Y,insertStatementAfterCustomPrologue:()=>Md,insertStatementAfterStandardPrologue:()=>Rd,insertStatementsAfterCustomPrologue:()=>jd,insertStatementsAfterStandardPrologue:()=>Ld,intersperse:()=>g,intrinsicTagNameToString:()=>cC,introducesArgumentsExoticObject:()=>Rf,inverseJsxOptionMap:()=>PO,isAbstractConstructorSymbol:()=>gx,isAbstractModifier:()=>vN,isAccessExpression:()=>Cx,isAccessibilityModifier:()=>LQ,isAccessor:()=>p_,isAccessorModifier:()=>xN,isAliasableExpression:()=>mh,isAmbientModule:()=>cp,isAmbientPropertyDeclaration:()=>vp,isAnyDirectorySeparator:()=>mo,isAnyImportOrBareOrAccessedRequire:()=>Tp,isAnyImportOrReExport:()=>Np,isAnyImportOrRequireStatement:()=>Cp,isAnyImportSyntax:()=>Sp,isAnySupportedFileExtension:()=>nT,isApplicableVersionedTypesKey:()=>PM,isArgumentExpressionOfElementAccess:()=>TX,isArray:()=>Xe,isArrayBindingElement:()=>C_,isArrayBindingOrAssignmentElement:()=>A_,isArrayBindingOrAssignmentPattern:()=>P_,isArrayBindingPattern:()=>dF,isArrayLiteralExpression:()=>fF,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>RQ,isArrayTypeNode:()=>HN,isArrowFunction:()=>TF,isAsExpression:()=>BF,isAssertClause:()=>NE,isAssertEntry:()=>FE,isAssertionExpression:()=>$_,isAssertsKeyword:()=>mN,isAssignmentDeclaration:()=>Vm,isAssignmentExpression:()=>ob,isAssignmentOperator:()=>nb,isAssignmentPattern:()=>T_,isAssignmentTarget:()=>Yg,isAsteriskToken:()=>iN,isAsyncFunction:()=>jh,isAsyncModifier:()=>fN,isAutoAccessorPropertyDeclaration:()=>f_,isAwaitExpression:()=>NF,isAwaitKeyword:()=>gN,isBigIntLiteral:()=>$D,isBinaryExpression:()=>PF,isBinaryLogicalOperator:()=>Xv,isBinaryOperatorToken:()=>sI,isBindableObjectDefinePropertyCall:()=>rg,isBindableStaticAccessExpression:()=>ag,isBindableStaticElementAccessExpression:()=>sg,isBindableStaticNameExpression:()=>cg,isBindingElement:()=>pF,isBindingElementOfBareOrAccessedRequire:()=>Mm,isBindingName:()=>r_,isBindingOrAssignmentElement:()=>D_,isBindingOrAssignmentPattern:()=>N_,isBindingPattern:()=>S_,isBlock:()=>KF,isBlockLike:()=>m0,isBlockOrCatchScoped:()=>ap,isBlockScope:()=>bp,isBlockScopedContainerTopLevel:()=>dp,isBooleanLiteral:()=>s_,isBreakOrContinueStatement:()=>wl,isBreakStatement:()=>oE,isBuildCommand:()=>EK,isBuildInfoFile:()=>eU,isBuilderProgram:()=>w$,isBundle:()=>dP,isCallChain:()=>hl,isCallExpression:()=>yF,isCallExpressionTarget:()=>oX,isCallLikeExpression:()=>j_,isCallLikeOrFunctionLikeExpression:()=>L_,isCallOrNewExpression:()=>R_,isCallOrNewExpressionTarget:()=>sX,isCallSignatureDeclaration:()=>MN,isCallToHelper:()=>VD,isCaseBlock:()=>kE,isCaseClause:()=>rP,isCaseKeyword:()=>TN,isCaseOrDefaultClause:()=>Su,isCatchClause:()=>aP,isCatchClauseVariableDeclaration:()=>BT,isCatchClauseVariableDeclarationOrBindingElement:()=>sp,isCheckJsEnabledForFile:()=>iT,isCircularBuildOrder:()=>oH,isClassDeclaration:()=>gE,isClassElement:()=>u_,isClassExpression:()=>jF,isClassInstanceProperty:()=>m_,isClassLike:()=>d_,isClassMemberModifier:()=>Zl,isClassNamedEvaluationHelperBlock:()=>$z,isClassOrTypeElement:()=>v_,isClassStaticBlockDeclaration:()=>ON,isClassThisAssignmentBlock:()=>zz,isColonToken:()=>sN,isCommaExpression:()=>wA,isCommaListExpression:()=>WF,isCommaSequence:()=>DA,isCommaToken:()=>tN,isComment:()=>EQ,isCommonJsExportPropertyAssignment:()=>Lf,isCommonJsExportedExpression:()=>Of,isCompoundAssignment:()=>_z,isComputedNonLiteralName:()=>Op,isComputedPropertyName:()=>wN,isConciseBody:()=>Z_,isConditionalExpression:()=>AF,isConditionalTypeNode:()=>eF,isConstAssertion:()=>vC,isConstTypeReference:()=>Sl,isConstructSignatureDeclaration:()=>BN,isConstructorDeclaration:()=>LN,isConstructorTypeNode:()=>VN,isContextualKeyword:()=>Fh,isContinueStatement:()=>iE,isCustomPrologue:()=>ff,isDebuggerStatement:()=>dE,isDeclaration:()=>uu,isDeclarationBindingElement:()=>w_,isDeclarationFileName:()=>yO,isDeclarationName:()=>_h,isDeclarationNameOfEnumOrNamespace:()=>ex,isDeclarationReadonly:()=>nf,isDeclarationStatement:()=>du,isDeclarationWithTypeParameterChildren:()=>kp,isDeclarationWithTypeParameters:()=>xp,isDecorator:()=>FN,isDecoratorTarget:()=>lX,isDefaultClause:()=>iP,isDefaultImport:()=>Cg,isDefaultModifier:()=>pN,isDefaultedExpandoInitializer:()=>Gm,isDeleteExpression:()=>CF,isDeleteTarget:()=>ch,isDeprecatedDeclaration:()=>a0,isDestructuringAssignment:()=>ab,isDiskPathRoot:()=>yo,isDoStatement:()=>ZF,isDocumentRegistryEntry:()=>$0,isDotDotDotToken:()=>eN,isDottedName:()=>_b,isDynamicName:()=>Jh,isEffectiveExternalModule:()=>hp,isEffectiveStrictModeSourceFile:()=>yp,isElementAccessChain:()=>gl,isElementAccessExpression:()=>hF,isEmittedFileOfProgram:()=>qU,isEmptyArrayLiteral:()=>bb,isEmptyBindingElement:()=>nc,isEmptyBindingPattern:()=>tc,isEmptyObjectLiteral:()=>vb,isEmptyStatement:()=>XF,isEmptyStringLiteral:()=>ym,isEntityName:()=>t_,isEntityNameExpression:()=>cb,isEnumConst:()=>tf,isEnumDeclaration:()=>vE,isEnumMember:()=>_P,isEqualityOperatorKind:()=>kZ,isEqualsGreaterThanToken:()=>lN,isExclamationToken:()=>oN,isExcludedFile:()=>Vj,isExclusivelyTypeOnlyImportOrExport:()=>vV,isExpandoPropertyDeclaration:()=>uC,isExportAssignment:()=>jE,isExportDeclaration:()=>RE,isExportModifier:()=>dN,isExportName:()=>kA,isExportNamespaceAsDefaultDeclaration:()=>Wd,isExportOrDefaultModifier:()=>mI,isExportSpecifier:()=>BE,isExportsIdentifier:()=>Zm,isExportsOrModuleExportsOrAlias:()=>sB,isExpression:()=>W_,isExpressionNode:()=>bm,isExpressionOfExternalModuleImportEqualsDeclaration:()=>NX,isExpressionOfOptionalChainRoot:()=>bl,isExpressionStatement:()=>QF,isExpressionWithTypeArguments:()=>MF,isExpressionWithTypeArgumentsInClassExtendsClause:()=>sb,isExternalModule:()=>_O,isExternalModuleAugmentation:()=>fp,isExternalModuleImportEqualsDeclaration:()=>Tm,isExternalModuleIndicator:()=>Q_,isExternalModuleNameRelative:()=>ws,isExternalModuleReference:()=>VE,isExternalModuleSymbol:()=>Yu,isExternalOrCommonJsModule:()=>Zp,isFileLevelReservedGeneratedIdentifier:()=>Kl,isFileLevelUniqueName:()=>Dd,isFileProbablyExternalModule:()=>jI,isFirstDeclarationOfSymbolParameter:()=>OY,isFixablePromiseHandler:()=>q1,isForInOrOfStatement:()=>Y_,isForInStatement:()=>nE,isForInitializer:()=>tu,isForOfStatement:()=>rE,isForStatement:()=>tE,isFullSourceFile:()=>Nm,isFunctionBlock:()=>Bf,isFunctionBody:()=>eu,isFunctionDeclaration:()=>mE,isFunctionExpression:()=>SF,isFunctionExpressionOrArrowFunction:()=>JT,isFunctionLike:()=>i_,isFunctionLikeDeclaration:()=>a_,isFunctionLikeKind:()=>l_,isFunctionLikeOrClassStaticBlockDeclaration:()=>o_,isFunctionOrConstructorTypeNode:()=>k_,isFunctionOrModuleBlock:()=>__,isFunctionSymbol:()=>hg,isFunctionTypeNode:()=>UN,isGeneratedIdentifier:()=>$l,isGeneratedPrivateIdentifier:()=>Hl,isGetAccessor:()=>Nu,isGetAccessorDeclaration:()=>jN,isGetOrSetAccessorDeclaration:()=>fl,isGlobalScopeAugmentation:()=>pp,isGlobalSourceFile:()=>Yp,isGrammarError:()=>Ed,isHeritageClause:()=>oP,isHoistedFunction:()=>mf,isHoistedVariableStatement:()=>hf,isIdentifier:()=>_N,isIdentifierANonContextualKeyword:()=>Ah,isIdentifierName:()=>ph,isIdentifierOrThisTypeNode:()=>ZA,isIdentifierPart:()=>ms,isIdentifierStart:()=>fs,isIdentifierText:()=>gs,isIdentifierTypePredicate:()=>qf,isIdentifierTypeReference:()=>ST,isIfStatement:()=>YF,isIgnoredFileFromWildCardWatching:()=>zU,isImplicitGlob:()=>pS,isImportAttribute:()=>PE,isImportAttributeName:()=>Wl,isImportAttributes:()=>EE,isImportCall:()=>_f,isImportClause:()=>wE,isImportDeclaration:()=>CE,isImportEqualsDeclaration:()=>TE,isImportKeyword:()=>SN,isImportMeta:()=>uf,isImportOrExportSpecifier:()=>Bl,isImportOrExportSpecifierName:()=>iZ,isImportSpecifier:()=>LE,isImportTypeAssertionContainer:()=>DE,isImportTypeNode:()=>cF,isImportable:()=>b0,isInComment:()=>CQ,isInCompoundLikeAssignment:()=>Zg,isInExpressionContext:()=>xm,isInJSDoc:()=>Im,isInJSFile:()=>Em,isInJSXText:()=>vQ,isInJsonFile:()=>Pm,isInNonReferenceComment:()=>BQ,isInReferenceComment:()=>MQ,isInRightSideOfInternalImportEqualsDeclaration:()=>iX,isInString:()=>mQ,isInTemplateString:()=>yQ,isInTopLevelContext:()=>nm,isInTypeQuery:()=>uv,isIncrementalBuildInfo:()=>PW,isIncrementalBundleEmitBuildInfo:()=>EW,isIncrementalCompilation:()=>Ik,isIndexSignatureDeclaration:()=>JN,isIndexedAccessTypeNode:()=>oF,isInferTypeNode:()=>tF,isInfinityOrNaNString:()=>MT,isInitializedProperty:()=>yz,isInitializedVariable:()=>nx,isInsideJsxElement:()=>bQ,isInsideJsxElementOrAttribute:()=>gQ,isInsideNodeModules:()=>$Z,isInsideTemplateLiteral:()=>OQ,isInstanceOfExpression:()=>hb,isInstantiatedModule:()=>_J,isInterfaceDeclaration:()=>hE,isInternalDeclaration:()=>qu,isInternalModuleImportEqualsDeclaration:()=>Dm,isInternalName:()=>bA,isIntersectionTypeNode:()=>ZN,isIntrinsicJsxName:()=>Py,isIterationStatement:()=>H_,isJSDoc:()=>DP,isJSDocAllType:()=>vP,isJSDocAugmentsTag:()=>EP,isJSDocAuthorTag:()=>PP,isJSDocCallbackTag:()=>IP,isJSDocClassTag:()=>AP,isJSDocCommentContainingNode:()=>Cu,isJSDocConstructSignature:()=>Ng,isJSDocDeprecatedTag:()=>JP,isJSDocEnumTag:()=>qP,isJSDocFunctionType:()=>TP,isJSDocImplementsTag:()=>QP,isJSDocImportTag:()=>eA,isJSDocIndexSignature:()=>Om,isJSDocLikeText:()=>LI,isJSDocLink:()=>gP,isJSDocLinkCode:()=>hP,isJSDocLinkLike:()=>Mu,isJSDocLinkPlain:()=>yP,isJSDocMemberName:()=>mP,isJSDocNameReference:()=>fP,isJSDocNamepathType:()=>wP,isJSDocNamespaceBody:()=>iu,isJSDocNode:()=>Tu,isJSDocNonNullableType:()=>kP,isJSDocNullableType:()=>xP,isJSDocOptionalParameter:()=>QT,isJSDocOptionalType:()=>SP,isJSDocOverloadTag:()=>BP,isJSDocOverrideTag:()=>MP,isJSDocParameterTag:()=>UP,isJSDocPrivateTag:()=>LP,isJSDocPropertyLikeTag:()=>Nl,isJSDocPropertyTag:()=>XP,isJSDocProtectedTag:()=>jP,isJSDocPublicTag:()=>OP,isJSDocReadonlyTag:()=>RP,isJSDocReturnTag:()=>VP,isJSDocSatisfiesExpression:()=>eC,isJSDocSatisfiesTag:()=>YP,isJSDocSeeTag:()=>zP,isJSDocSignature:()=>FP,isJSDocTag:()=>wu,isJSDocTemplateTag:()=>HP,isJSDocThisTag:()=>WP,isJSDocThrowsTag:()=>ZP,isJSDocTypeAlias:()=>Fg,isJSDocTypeAssertion:()=>NA,isJSDocTypeExpression:()=>pP,isJSDocTypeLiteral:()=>NP,isJSDocTypeTag:()=>$P,isJSDocTypedefTag:()=>KP,isJSDocUnknownTag:()=>GP,isJSDocUnknownType:()=>bP,isJSDocVariadicType:()=>CP,isJSXTagName:()=>vm,isJsonEqual:()=>gT,isJsonSourceFile:()=>ef,isJsxAttribute:()=>YE,isJsxAttributeLike:()=>vu,isJsxAttributeName:()=>oC,isJsxAttributes:()=>ZE,isJsxCallLike:()=>ku,isJsxChild:()=>yu,isJsxClosingElement:()=>KE,isJsxClosingFragment:()=>QE,isJsxElement:()=>WE,isJsxExpression:()=>tP,isJsxFragment:()=>GE,isJsxNamespacedName:()=>nP,isJsxOpeningElement:()=>HE,isJsxOpeningFragment:()=>XE,isJsxOpeningLikeElement:()=>xu,isJsxOpeningLikeElementTagName:()=>_X,isJsxSelfClosingElement:()=>$E,isJsxSpreadAttribute:()=>eP,isJsxTagNameExpression:()=>hu,isJsxText:()=>KD,isJumpStatementTarget:()=>yX,isKeyword:()=>wh,isKeywordOrPunctuation:()=>Nh,isKnownSymbol:()=>$h,isLabelName:()=>bX,isLabelOfLabeledStatement:()=>vX,isLabeledStatement:()=>lE,isLateVisibilityPaintedStatement:()=>wp,isLeftHandSideExpression:()=>B_,isLet:()=>cf,isLineBreak:()=>Wa,isLiteralComputedPropertyDeclarationName:()=>dh,isLiteralExpression:()=>Ol,isLiteralExpressionOfObject:()=>Ll,isLiteralImportTypeNode:()=>df,isLiteralKind:()=>Il,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>DX,isLiteralTypeLiteral:()=>V_,isLiteralTypeNode:()=>sF,isLocalName:()=>xA,isLogicalOperator:()=>Qv,isLogicalOrCoalescingAssignmentExpression:()=>Zv,isLogicalOrCoalescingAssignmentOperator:()=>Yv,isLogicalOrCoalescingBinaryExpression:()=>tb,isLogicalOrCoalescingBinaryOperator:()=>eb,isMappedTypeNode:()=>aF,isMemberName:()=>pl,isMetaProperty:()=>qF,isMethodDeclaration:()=>IN,isMethodOrAccessor:()=>g_,isMethodSignature:()=>AN,isMinusToken:()=>rN,isMissingDeclaration:()=>zE,isMissingPackageJsonInfo:()=>ER,isModifier:()=>e_,isModifierKind:()=>Ql,isModifierLike:()=>h_,isModuleAugmentationExternal:()=>mp,isModuleBlock:()=>xE,isModuleBody:()=>nu,isModuleDeclaration:()=>bE,isModuleExportName:()=>JE,isModuleExportsAccessExpression:()=>tg,isModuleIdentifier:()=>eg,isModuleName:()=>nI,isModuleOrEnumDeclaration:()=>au,isModuleReference:()=>gu,isModuleSpecifierLike:()=>yY,isModuleWithStringLiteralName:()=>lp,isNameOfFunctionDeclaration:()=>wX,isNameOfModuleDeclaration:()=>CX,isNamedDeclaration:()=>Tc,isNamedEvaluation:()=>Xh,isNamedEvaluationSource:()=>Gh,isNamedExportBindings:()=>Dl,isNamedExports:()=>ME,isNamedImportBindings:()=>ou,isNamedImports:()=>OE,isNamedImportsOrExports:()=>Dx,isNamedTupleMember:()=>GN,isNamespaceBody:()=>ru,isNamespaceExport:()=>IE,isNamespaceExportDeclaration:()=>SE,isNamespaceImport:()=>AE,isNamespaceReexportDeclaration:()=>Sm,isNewExpression:()=>vF,isNewExpressionTarget:()=>aX,isNewScopeNode:()=>AC,isNoSubstitutionTemplateLiteral:()=>XD,isNodeArray:()=>Al,isNodeArrayMultiLine:()=>Hb,isNodeDescendantOf:()=>lh,isNodeKind:()=>Fl,isNodeLikeSystem:()=>ln,isNodeModulesDirectory:()=>la,isNodeWithPossibleHoistedDeclaration:()=>eh,isNonContextualKeyword:()=>Eh,isNonGlobalAmbientModule:()=>_p,isNonNullAccess:()=>ZT,isNonNullChain:()=>Cl,isNonNullExpression:()=>zF,isNonStaticMethodOrAccessorWithPrivateName:()=>vz,isNotEmittedStatement:()=>qE,isNullishCoalesce:()=>kl,isNumber:()=>Ze,isNumericLiteral:()=>WD,isNumericLiteralName:()=>qT,isObjectBindingElementWithoutPropertyName:()=>vY,isObjectBindingOrAssignmentElement:()=>E_,isObjectBindingOrAssignmentPattern:()=>F_,isObjectBindingPattern:()=>uF,isObjectLiteralElement:()=>Iu,isObjectLiteralElementLike:()=>b_,isObjectLiteralExpression:()=>mF,isObjectLiteralMethod:()=>Jf,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>zf,isObjectTypeDeclaration:()=>Sx,isOmittedExpression:()=>RF,isOptionalChain:()=>yl,isOptionalChainRoot:()=>vl,isOptionalDeclaration:()=>YT,isOptionalJSDocPropertyLikeTag:()=>KT,isOptionalTypeNode:()=>XN,isOuterExpression:()=>EA,isOutermostOptionalChain:()=>xl,isOverrideModifier:()=>bN,isPackageJsonInfo:()=>FR,isPackedArrayLiteral:()=>IT,isParameter:()=>NN,isParameterPropertyDeclaration:()=>ec,isParameterPropertyModifier:()=>Yl,isParenthesizedExpression:()=>kF,isParenthesizedTypeNode:()=>nF,isParseTreeNode:()=>pc,isPartOfParameterDeclaration:()=>Yh,isPartOfTypeNode:()=>wf,isPartOfTypeOnlyImportOrExportDeclaration:()=>Ul,isPartOfTypeQuery:()=>km,isPartiallyEmittedExpression:()=>VF,isPatternMatch:()=>Qt,isPinnedComment:()=>Jd,isPlainJsFile:()=>kd,isPlusToken:()=>nN,isPossiblyTypeArgumentPosition:()=>kQ,isPostfixUnaryExpression:()=>EF,isPotentiallyExecutableNode:()=>QC,isPrefixUnaryExpression:()=>FF,isPrimitiveLiteralValue:()=>kC,isPrivateIdentifier:()=>uN,isPrivateIdentifierClassElementDeclaration:()=>Gl,isPrivateIdentifierPropertyAccessExpression:()=>Xl,isPrivateIdentifierSymbol:()=>Hh,isProgramUptoDate:()=>MV,isPrologueDirective:()=>pf,isPropertyAccessChain:()=>ml,isPropertyAccessEntityNameExpression:()=>ub,isPropertyAccessExpression:()=>gF,isPropertyAccessOrQualifiedName:()=>O_,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>I_,isPropertyAssignment:()=>sP,isPropertyDeclaration:()=>PN,isPropertyName:()=>n_,isPropertyNameLiteral:()=>qh,isPropertySignature:()=>EN,isPrototypeAccess:()=>pb,isPrototypePropertyAssignment:()=>fg,isPunctuation:()=>Dh,isPushOrUnshiftIdentifier:()=>Qh,isQualifiedName:()=>CN,isQuestionDotToken:()=>cN,isQuestionOrExclamationToken:()=>YA,isQuestionOrPlusOrMinusToken:()=>tI,isQuestionToken:()=>aN,isReadonlyKeyword:()=>hN,isReadonlyKeywordOrPlusOrMinusToken:()=>eI,isRecognizedTripleSlashComment:()=>Bd,isReferenceFileLocation:()=>jV,isReferencedFile:()=>LV,isRegularExpressionLiteral:()=>GD,isRequireCall:()=>Lm,isRequireVariableStatement:()=>zm,isRestParameter:()=>Ju,isRestTypeNode:()=>QN,isReturnStatement:()=>aE,isReturnStatementWithFixablePromiseHandler:()=>z1,isRightSideOfAccessExpression:()=>mb,isRightSideOfInstanceofExpression:()=>yb,isRightSideOfPropertyAccess:()=>SX,isRightSideOfQualifiedName:()=>kX,isRightSideOfQualifiedNameOrPropertyAccess:()=>fb,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>gb,isRootedDiskPath:()=>ho,isSameEntityName:()=>Qm,isSatisfiesExpression:()=>JF,isSemicolonClassElement:()=>HF,isSetAccessor:()=>Du,isSetAccessorDeclaration:()=>RN,isShiftOperatorOrHigher:()=>rI,isShorthandAmbientModuleSymbol:()=>up,isShorthandPropertyAssignment:()=>cP,isSideEffectImport:()=>CC,isSignedNumericLiteral:()=>Mh,isSimpleCopiableExpression:()=>cz,isSimpleInlineableExpression:()=>lz,isSimpleParameterList:()=>Fz,isSingleOrDoubleQuote:()=>qm,isSolutionConfig:()=>kj,isSourceElement:()=>gC,isSourceFile:()=>uP,isSourceFileFromLibrary:()=>d0,isSourceFileJS:()=>Fm,isSourceFileNotJson:()=>Am,isSourceMapping:()=>zJ,isSpecialPropertyDeclaration:()=>mg,isSpreadAssignment:()=>lP,isSpreadElement:()=>LF,isStatement:()=>fu,isStatementButNotDeclaration:()=>pu,isStatementOrBlock:()=>mu,isStatementWithLocals:()=>Sd,isStatic:()=>Ev,isStaticModifier:()=>yN,isString:()=>Ye,isStringANonContextualKeyword:()=>Ph,isStringAndEmptyAnonymousObjectIntersection:()=>IQ,isStringDoubleQuoted:()=>Um,isStringLiteral:()=>HD,isStringLiteralLike:()=>Ru,isStringLiteralOrJsxExpression:()=>bu,isStringLiteralOrTemplate:()=>SZ,isStringOrNumericLiteralLike:()=>Rh,isStringOrRegularExpressionOrTemplateLiteral:()=>PQ,isStringTextContainingNode:()=>Vl,isSuperCall:()=>lf,isSuperKeyword:()=>kN,isSuperProperty:()=>am,isSupportedSourceFileName:()=>zS,isSwitchStatement:()=>cE,isSyntaxList:()=>tA,isSyntheticExpression:()=>UF,isSyntheticReference:()=>UE,isTagName:()=>xX,isTaggedTemplateExpression:()=>bF,isTaggedTemplateTag:()=>cX,isTemplateExpression:()=>IF,isTemplateHead:()=>QD,isTemplateLiteral:()=>M_,isTemplateLiteralKind:()=>jl,isTemplateLiteralToken:()=>Rl,isTemplateLiteralTypeNode:()=>_F,isTemplateLiteralTypeSpan:()=>lF,isTemplateMiddle:()=>YD,isTemplateMiddleOrTemplateTail:()=>Ml,isTemplateSpan:()=>$F,isTemplateTail:()=>ZD,isTextWhiteSpaceLike:()=>EY,isThis:()=>PX,isThisContainerOrFunctionBlock:()=>tm,isThisIdentifier:()=>_v,isThisInTypeQuery:()=>dv,isThisInitializedDeclaration:()=>cm,isThisInitializedObjectBindingExpression:()=>lm,isThisProperty:()=>sm,isThisTypeNode:()=>rF,isThisTypeParameter:()=>VT,isThisTypePredicate:()=>Uf,isThrowStatement:()=>_E,isToken:()=>Pl,isTokenKind:()=>El,isTraceEnabled:()=>iR,isTransientSymbol:()=>Qu,isTrivia:()=>Ih,isTryStatement:()=>uE,isTupleTypeNode:()=>KN,isTypeAlias:()=>Eg,isTypeAliasDeclaration:()=>yE,isTypeAssertionExpression:()=>xF,isTypeDeclaration:()=>$T,isTypeElement:()=>y_,isTypeKeyword:()=>XQ,isTypeKeywordTokenOrIdentifier:()=>YQ,isTypeLiteralNode:()=>$N,isTypeNode:()=>x_,isTypeNodeKind:()=>Tx,isTypeOfExpression:()=>wF,isTypeOnlyExportDeclaration:()=>zl,isTypeOnlyImportDeclaration:()=>Jl,isTypeOnlyImportOrExportDeclaration:()=>ql,isTypeOperatorNode:()=>iF,isTypeParameterDeclaration:()=>DN,isTypePredicateNode:()=>zN,isTypeQueryNode:()=>WN,isTypeReferenceNode:()=>qN,isTypeReferenceType:()=>Ou,isTypeUsableAsPropertyName:()=>lC,isUMDExportSymbol:()=>vx,isUnaryExpression:()=>z_,isUnaryExpressionWithWrite:()=>U_,isUnicodeIdentifierStart:()=>Da,isUnionTypeNode:()=>YN,isUrl:()=>go,isValidBigIntString:()=>xT,isValidESSymbolDeclaration:()=>jf,isValidTypeOnlyAliasUseSite:()=>kT,isValueSignatureDeclaration:()=>th,isVarAwaitUsing:()=>rf,isVarConst:()=>af,isVarConstLike:()=>sf,isVarUsing:()=>of,isVariableDeclaration:()=>pE,isVariableDeclarationInVariableStatement:()=>If,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Rm,isVariableDeclarationInitializedToRequire:()=>jm,isVariableDeclarationList:()=>fE,isVariableLike:()=>Af,isVariableStatement:()=>GF,isVoidExpression:()=>DF,isWatchSet:()=>rx,isWhileStatement:()=>eE,isWhiteSpaceLike:()=>Ua,isWhiteSpaceSingleLine:()=>Va,isWithStatement:()=>sE,isWriteAccess:()=>_x,isWriteOnlyAccess:()=>lx,isYieldExpression:()=>OF,jsxModeNeedsExplicitImport:()=>u0,keywordPart:()=>BY,last:()=>ye,lastOrUndefined:()=>he,length:()=>l,libMap:()=>OO,libs:()=>IO,lineBreakPart:()=>ZY,loadModuleFromGlobalCache:()=>KM,loadWithModeAwareCache:()=>PV,makeIdentifierFromModuleName:()=>op,makeImport:()=>_Y,makeStringLiteral:()=>uY,mangleScopedPackageName:()=>zM,map:()=>N,mapAllOrFail:()=>j,mapDefined:()=>R,mapDefinedIterator:()=>M,mapEntries:()=>U,mapIterator:()=>F,mapOneOrMany:()=>YZ,mapToDisplayParts:()=>eZ,matchFiles:()=>vS,matchPatternOrExact:()=>aT,matchedText:()=>$t,matchesExclude:()=>$j,matchesExcludeWorker:()=>Hj,maxBy:()=>bt,maybeBind:()=>Ve,maybeSetLocalizedDiagnosticMessages:()=>Wx,memoize:()=>ut,memoizeOne:()=>dt,min:()=>xt,minAndMax:()=>lT,missingFileModifiedTime:()=>Ji,modifierToFlag:()=>Gv,modifiersToFlags:()=>Kv,moduleExportNameIsDefault:()=>Kd,moduleExportNameTextEscaped:()=>Hd,moduleExportNameTextUnescaped:()=>$d,moduleOptionDeclaration:()=>MO,moduleResolutionIsEqualTo:()=>_d,moduleResolutionNameAndModeGetter:()=>wV,moduleResolutionOptionDeclarations:()=>VO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Jk,moduleResolutionUsesNodeModules:()=>lY,moduleSpecifierToValidIdentifier:()=>r0,moduleSpecifiers:()=>uB,moduleSupportsImportAttributes:()=>zk,moduleSymbolToValidIdentifier:()=>n0,moveEmitHelpers:()=>Xw,moveRangeEnd:()=>Lb,moveRangePastDecorators:()=>Rb,moveRangePastModifiers:()=>Mb,moveRangePos:()=>jb,moveSyntheticComments:()=>Uw,mutateMap:()=>mx,mutateMapSkippingNewValues:()=>fx,needsParentheses:()=>vZ,needsScopeMarker:()=>X_,newCaseClauseTracker:()=>p0,newPrivateEnvironment:()=>Tz,noEmitNotification:()=>Xq,noEmitSubstitution:()=>Gq,noTransformers:()=>qq,noTruncationMaximumTruncationLength:()=>$u,nodeCanBeDecorated:()=>dm,nodeCoreModules:()=>FC,nodeHasName:()=>kc,nodeIsDecorated:()=>pm,nodeIsMissing:()=>Nd,nodeIsPresent:()=>Fd,nodeIsSynthesized:()=>ty,nodeModuleNameResolver:()=>YR,nodeModulesPathPart:()=>iM,nodeNextJsonConfigResolver:()=>ZR,nodeOrChildIsDecorated:()=>fm,nodeOverlapsWithStartEnd:()=>BX,nodePosToString:()=>Cd,nodeSeenTracker:()=>ZQ,nodeStartsNewLexicalEnvironment:()=>ey,noop:()=>nt,noopFileWatcher:()=>L$,normalizePath:()=>zo,normalizeSlashes:()=>Lo,normalizeSpans:()=>Ws,not:()=>en,notImplemented:()=>_t,notImplementedResolver:()=>CU,nullNodeConverters:()=>rw,nullParenthesizerRules:()=>ew,nullTransformationContext:()=>Yq,objectAllocator:()=>Bx,operatorPart:()=>zY,optionDeclarations:()=>JO,optionMapToObject:()=>QL,optionsAffectingProgramStructure:()=>$O,optionsForBuild:()=>ZO,optionsForWatch:()=>LO,optionsHaveChanges:()=>nd,or:()=>Zt,orderedRemoveItem:()=>Jt,orderedRemoveItemAt:()=>zt,packageIdToPackageName:()=>md,packageIdToString:()=>gd,parameterIsThisKeyword:()=>lv,parameterNamePart:()=>qY,parseBaseNodeFactory:()=>PI,parseBigInt:()=>vT,parseBuildCommand:()=>xL,parseCommandLine:()=>gL,parseCommandLineWorker:()=>dL,parseConfigFileTextToJson:()=>CL,parseConfigFileWithSystem:()=>b$,parseConfigHostFromCompilerHostLike:()=>QV,parseCustomTypeOption:()=>cL,parseIsolatedEntityName:()=>cO,parseIsolatedJSDocComment:()=>dO,parseJSDocTypeExpressionForTests:()=>pO,parseJsonConfigFileContent:()=>aj,parseJsonSourceFileConfigFileContent:()=>sj,parseJsonText:()=>lO,parseListTypeOption:()=>lL,parseNodeFactory:()=>AI,parseNodeModuleFromPath:()=>aM,parsePackageName:()=>CM,parsePseudoBigInt:()=>hT,parseValidBigInt:()=>bT,pasteEdits:()=>Pfe,patchWriteFileEnsuringDirectory:()=>so,pathContainsNodeModules:()=>oM,pathIsAbsolute:()=>vo,pathIsBareSpecifier:()=>xo,pathIsRelative:()=>bo,patternText:()=>Wt,performIncrementalCompilation:()=>K$,performance:()=>Un,positionBelongsToNode:()=>zX,positionIsASICandidate:()=>IZ,positionIsSynthesized:()=>YS,positionsAreOnSameLine:()=>Kb,preProcessFile:()=>P1,probablyUsesSemicolons:()=>OZ,processCommentPragmas:()=>bO,processPragmasIntoFields:()=>xO,processTaggedTemplateExpression:()=>Zz,programContainsEsModules:()=>oY,programContainsModules:()=>iY,projectReferenceIsEqualTo:()=>ld,propertyNamePart:()=>UY,pseudoBigIntToString:()=>yT,punctuationPart:()=>JY,pushIfUnique:()=>se,quote:()=>xZ,quotePreferenceFromString:()=>pY,rangeContainsPosition:()=>LX,rangeContainsPositionExclusive:()=>jX,rangeContainsRange:()=>Yb,rangeContainsRangeExclusive:()=>OX,rangeContainsStartEnd:()=>RX,rangeEndIsOnSameLineAsRangeStart:()=>Vb,rangeEndPositionsAreOnSameLine:()=>qb,rangeEquals:()=>ue,rangeIsOnSingleLine:()=>Jb,rangeOfNode:()=>_T,rangeOfTypeParameters:()=>uT,rangeOverlapsWithStartEnd:()=>MX,rangeStartIsOnSameLineAsRangeEnd:()=>Ub,rangeStartPositionsAreOnSameLine:()=>zb,readBuilderProgram:()=>G$,readConfigFile:()=>TL,readJson:()=>Nb,readJsonConfigFile:()=>wL,readJsonOrUndefined:()=>Db,reduceEachLeadingCommentRange:()=>cs,reduceEachTrailingCommentRange:()=>ls,reduceLeft:()=>Ce,reduceLeftIterator:()=>f,reducePathComponents:()=>jo,refactor:()=>u3,regExpEscape:()=>rS,regularExpressionFlagToCharacterCode:()=>Ia,relativeComplement:()=>ne,removeAllComments:()=>Tw,removeEmitHelper:()=>Kw,removeExtension:()=>HS,removeFileExtension:()=>WS,removeIgnoredPath:()=>QW,removeMinAndVersionNumbers:()=>Bt,removePrefix:()=>Gt,removeSuffix:()=>Rt,removeTrailingDirectorySeparator:()=>Wo,repeatString:()=>tY,replaceElement:()=>ke,replaceFirstStar:()=>fC,resolutionExtensionIsTSOrJson:()=>eT,resolveConfigFileProjectName:()=>tH,resolveJSModule:()=>KR,resolveLibrary:()=>VR,resolveModuleName:()=>$R,resolveModuleNameFromCache:()=>WR,resolvePackageNameToPackageJson:()=>DR,resolvePath:()=>Mo,resolveProjectReferencePath:()=>YV,resolveTripleslashReference:()=>KU,resolveTypeReferenceDirective:()=>TR,resolvingEmptyArray:()=>Uu,returnFalse:()=>rt,returnNoopFileWatcher:()=>j$,returnTrue:()=>it,returnUndefined:()=>ot,returnsPromise:()=>J1,rewriteModuleSpecifier:()=>Ez,sameFlatMap:()=>L,sameMap:()=>E,sameMapping:()=>JJ,scanTokenAtPosition:()=>Xp,scanner:()=>eX,semanticDiagnosticsOptionDeclarations:()=>zO,serializeCompilerOptions:()=>tj,server:()=>Vhe,servicesVersion:()=>A8,setCommentRange:()=>jw,setConfigFileInOptions:()=>cj,setConstantValue:()=>Ww,setEmitFlags:()=>Cw,setGetSourceFileAsHashVersioned:()=>q$,setIdentifierAutoGenerate:()=>iD,setIdentifierGeneratedImportReference:()=>aD,setIdentifierTypeArguments:()=>nD,setInternalEmitFlags:()=>Dw,setLocalizedDiagnosticMessages:()=>Vx,setNodeChildren:()=>oA,setNodeFlags:()=>FT,setObjectAllocator:()=>qx,setOriginalNode:()=>xw,setParent:()=>ET,setParentRecursive:()=>PT,setPrivateIdentifier:()=>wz,setSnippetElement:()=>Yw,setSourceMapRange:()=>Ew,setStackTraceLimit:()=>Ri,setStartsOnNewLine:()=>Ow,setSyntheticLeadingComments:()=>Mw,setSyntheticTrailingComments:()=>zw,setSys:()=>lo,setSysLog:()=>to,setTextRange:()=>NI,setTextRangeEnd:()=>wT,setTextRangePos:()=>CT,setTextRangePosEnd:()=>DT,setTextRangePosWidth:()=>NT,setTokenSourceMapRange:()=>Aw,setTypeNode:()=>eD,setUILocale:()=>Et,setValueDeclaration:()=>gg,shouldAllowImportingTsExtension:()=>HM,shouldPreserveConstEnums:()=>Ak,shouldRewriteModuleSpecifier:()=>kg,shouldUseUriStyleNodeCoreModules:()=>s0,showModuleSpecifier:()=>bx,signatureHasRestParameter:()=>mJ,signatureToDisplayParts:()=>rZ,single:()=>be,singleElementArray:()=>nn,singleIterator:()=>z,singleOrMany:()=>xe,singleOrUndefined:()=>ve,skipAlias:()=>sx,skipConstraint:()=>nY,skipOuterExpressions:()=>PA,skipParentheses:()=>sh,skipPartiallyEmittedExpressions:()=>Tl,skipTrivia:()=>Ya,skipTypeChecking:()=>dT,skipTypeCheckingIgnoringNoCheck:()=>pT,skipTypeParentheses:()=>ah,skipWhile:()=>cn,sliceAfter:()=>sT,some:()=>V,sortAndDeduplicate:()=>Z,sortAndDeduplicateDiagnostics:()=>Ds,sourceFileAffectingCompilerOptions:()=>WO,sourceFileMayBeEmitted:()=>Qy,sourceMapCommentRegExp:()=>IJ,sourceMapCommentRegExpDontCareLineStart:()=>AJ,spacePart:()=>MY,spanMap:()=>q,startEndContainsRange:()=>Zb,startEndOverlapsWithStartEnd:()=>JX,startOnNewLine:()=>IA,startTracing:()=>ur,startsWith:()=>Kt,startsWithDirectory:()=>na,startsWithUnderscore:()=>o0,startsWithUseStrict:()=>CA,stringContainsAt:()=>i0,stringToToken:()=>Pa,stripQuotes:()=>Ey,supportedDeclarationExtensions:()=>PS,supportedJSExtensionsFlat:()=>NS,supportedLocaleDirectories:()=>lc,supportedTSExtensionsFlat:()=>CS,supportedTSImplementationExtensions:()=>AS,suppressLeadingAndTrailingTrivia:()=>WC,suppressLeadingTrivia:()=>$C,suppressTrailingTrivia:()=>HC,symbolEscapedNameNoDefault:()=>hY,symbolName:()=>vc,symbolNameNoDefault:()=>gY,symbolToDisplayParts:()=>nZ,sys:()=>co,sysLog:()=>eo,tagNamesAreEquivalent:()=>NO,takeWhile:()=>sn,targetOptionDeclaration:()=>RO,targetToLibMap:()=>Ns,testFormatSettings:()=>UG,textChangeRangeIsUnchanged:()=>Gs,textChangeRangeNewSpan:()=>Ks,textChanges:()=>ede,textOrKeywordPart:()=>VY,textPart:()=>WY,textRangeContainsPositionInclusive:()=>Is,textRangeContainsTextSpan:()=>js,textRangeIntersectsWithTextSpan:()=>Us,textSpanContainsPosition:()=>As,textSpanContainsTextRange:()=>Ls,textSpanContainsTextSpan:()=>Os,textSpanEnd:()=>Es,textSpanIntersection:()=>Vs,textSpanIntersectsWith:()=>Js,textSpanIntersectsWithPosition:()=>qs,textSpanIntersectsWithTextSpan:()=>Bs,textSpanIsEmpty:()=>Ps,textSpanOverlap:()=>Ms,textSpanOverlapsWith:()=>Rs,textSpansEqual:()=>wY,textToKeywordObj:()=>fa,timestamp:()=>qn,toArray:()=>Qe,toBuilderFileEmit:()=>qW,toBuilderStateFileInfoForMultiEmit:()=>zW,toEditorSettings:()=>G8,toFileNameLowerCase:()=>lt,toPath:()=>Vo,toProgramEmitPending:()=>UW,toSorted:()=>le,tokenIsIdentifierOrKeyword:()=>da,tokenIsIdentifierOrKeywordOrGreaterThan:()=>pa,tokenToString:()=>Ea,trace:()=>rR,tracing:()=>$n,tracingEnabled:()=>Hn,transferSourceFileChildren:()=>sA,transform:()=>f7,transformClassFields:()=>iq,transformDeclarations:()=>Bq,transformECMAScriptModule:()=>Eq,transformES2015:()=>Cq,transformES2016:()=>Sq,transformES2017:()=>lq,transformES2018:()=>uq,transformES2019:()=>dq,transformES2020:()=>pq,transformES2021:()=>fq,transformESDecorators:()=>cq,transformESNext:()=>mq,transformGenerators:()=>wq,transformImpliedNodeFormatDependentModule:()=>Pq,transformJsx:()=>xq,transformLegacyDecorators:()=>sq,transformModule:()=>Dq,transformNamedEvaluation:()=>Qz,transformNodes:()=>Qq,transformSystemModule:()=>Fq,transformTypeScript:()=>rq,transpile:()=>n2,transpileDeclaration:()=>X1,transpileModule:()=>G1,transpileOptionValueCompilerOptions:()=>HO,tryAddToSet:()=>J,tryAndIgnoreErrors:()=>BZ,tryCast:()=>et,tryDirectoryExists:()=>MZ,tryExtractTSExtension:()=>kb,tryFileExists:()=>RZ,tryGetClassExtendingExpressionWithTypeArguments:()=>rb,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>ib,tryGetDirectories:()=>LZ,tryGetExtensionFromPath:()=>rT,tryGetImportFromModuleSpecifier:()=>xg,tryGetJSDocSatisfiesTypeNode:()=>nC,tryGetModuleNameFromFile:()=>BA,tryGetModuleSpecifierFromDeclaration:()=>vg,tryGetNativePerformanceHooks:()=>Bn,tryGetPropertyAccessOrIdentifierToString:()=>db,tryGetPropertyNameOfBindingOrAssignmentElement:()=>VA,tryGetSourceMappingURL:()=>jJ,tryGetTextOfPropertyName:()=>Lp,tryParseJson:()=>Fb,tryParsePattern:()=>GS,tryParsePatterns:()=>QS,tryParseRawSourceMap:()=>MJ,tryReadDirectory:()=>jZ,tryReadFile:()=>DL,tryRemoveDirectoryPrefix:()=>tS,tryRemoveExtension:()=>$S,tryRemovePrefix:()=>Xt,tryRemoveSuffix:()=>Mt,tscBuildOption:()=>YO,typeAcquisitionDeclarations:()=>tL,typeAliasNamePart:()=>$Y,typeDirectiveIsEqualTo:()=>hd,typeKeywords:()=>GQ,typeParameterNamePart:()=>HY,typeToDisplayParts:()=>tZ,unchangedPollThresholds:()=>Wi,unchangedTextChangeRange:()=>Qs,unescapeLeadingUnderscores:()=>gc,unmangleScopedPackageName:()=>UM,unorderedRemoveItem:()=>Ut,unprefixedNodeCoreModules:()=>DC,unsetNodeChildren:()=>aA,unwrapInnermostStatementOfLabel:()=>Mf,unwrapParenthesizedExpression:()=>SC,updateErrorForNoInputFiles:()=>Tj,updateLanguageServiceSourceFile:()=>r7,updateMissingFilePathsWatch:()=>BU,updateResolutionField:()=>pR,updateSharedExtendedConfigFileWatcher:()=>jU,updateSourceFile:()=>uO,updateWatchingWildcardDirectories:()=>JU,usesWildcardTypes:()=>hk,usingSingleLineStringWriter:()=>sd,utf16EncodeAsString:()=>xs,validateLocaleAndSetLanguage:()=>_c,version:()=>o,versionMajorMinor:()=>i,visitArray:()=>bJ,visitCommaListElements:()=>DJ,visitEachChild:()=>NJ,visitFunctionBody:()=>CJ,visitIterationBody:()=>wJ,visitLexicalEnvironment:()=>kJ,visitNode:()=>yJ,visitNodes:()=>vJ,visitParameterList:()=>SJ,walkUpBindingElementsAndPatterns:()=>rc,walkUpOuterExpressions:()=>AA,walkUpParenthesizedExpressions:()=>ih,walkUpParenthesizedTypes:()=>rh,walkUpParenthesizedTypesAndGetParentAndChild:()=>oh,whitespaceOrMapCommentRegExp:()=>OJ,writeCommentRange:()=>Sv,writeFile:()=>ev,writeFileEnsuringDirectories:()=>nv,zipWith:()=>m}),e.exports=r;var i="6.0",o="6.0.3",a=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(a||{}),s=[],c=new Map;function l(e){return void 0!==e?e.length:0}function _(e,t){if(void 0!==e)for(let n=0;n=0;n--){const r=t(e[n],n);if(r)return r}}function d(e,t){if(void 0!==e)for(let n=0;n=0;r--){const n=e[r];if(t(n,r))return n}}function b(e,t,n){if(void 0===e)return-1;for(let r=n??0;r=0;r--)if(t(e[r],r))return r;return-1}function k(e,t,n=ft){if(void 0!==e)for(let r=0;r{const[i,o]=t(r,e);n.set(i,o)})),n}function V(e,t){if(void 0!==e){if(void 0===t)return e.length>0;for(let n=0;nn(e[t],e[r])||yt(t,r)))}(e,r,n);let i=e[r[0]];const o=[r[0]];for(let n=1;ne[t]))}function X(e,t,n){return 0===e.length?[]:1===e.length?e.slice():n?G(e,t,n):function(e,t){const n=[];for(let r=0;r0&&r(t,e[n-1]))return!1;if(n0&&_n.assertGreaterThanOrEqual(n(t[o],t[o-1]),0);t:for(const a=i;ia&&_n.assertGreaterThanOrEqual(n(e[i],e[i-1]),0),n(t[o],e[i])){case-1:r.push(t[o]);continue e;case 0:continue e;case 1:continue t}}return r}function re(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function ie(e,t){return void 0===e?t:void 0===t?e:Xe(e)?Xe(t)?$(e,t):re(e,t):Xe(t)?re(t,e):[e,t]}function oe(e,t){return t<0?e.length+t:t}function ae(e,t,n,r){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(n,r);n=void 0===n?0:oe(t,n),r=void 0===r?t.length:oe(t,r);for(let i=n;i=0;t--)yield e[t]}function ue(e,t,n,r){for(;nnull==e?void 0:e.at(t):(e,t)=>{if(void 0!==e&&(t=oe(e,t))>1),s=n(e[i],i);switch(Math.sign(r(s,t))){case-1:o=i+1;break;case 0:return i;case 1:a=i-1}}return~o}function Ce(e,t,n,r,i){if(e&&e.length>0){const o=e.length;if(o>0){let a=void 0===r||r<0?0:r;const s=void 0===i||a+i>o-1?o-1:a+i;let c;for(arguments.length<=2?(c=e[a],a++):c=n;a<=s;)c=t(c,e[a],a),a++;return c}}return n}var we=Object.prototype.hasOwnProperty;function De(e,t){return we.call(e,t)}function Ne(e,t){return we.call(e,t)?e[t]:void 0}function Fe(e){const t=[];for(const n in e)we.call(e,n)&&t.push(n);return t}function Ee(e){const t=[];do{const n=Object.getOwnPropertyNames(e);for(const e of n)se(t,e)}while(e=Object.getPrototypeOf(e));return t}function Pe(e){const t=[];for(const n in e)we.call(e,n)&&t.push(e[n]);return t}function Ae(e,t){const n=new Array(e);for(let r=0;r100&&n>t.length>>1){const e=t.length-n;t.copyWithin(0,n),t.length=e,n=0}return e},isEmpty:r}}function Ge(e,t){const n=new Map;let r=0;function*i(){for(const e of n.values())Xe(e)?yield*e:yield e}const o={has(r){const i=e(r);if(!n.has(i))return!1;const o=n.get(i);return Xe(o)?k(o,r,t):t(o,r)},add(i){const o=e(i);if(n.has(o)){const e=n.get(o);if(Xe(e))k(e,i,t)||(e.push(i),r++);else{const a=e;t(a,i)||(n.set(o,[a,i]),r++)}}else n.set(o,i),r++;return this},delete(i){const o=e(i);if(!n.has(o))return!1;const a=n.get(o);if(Xe(a)){for(let e=0;ei(),values:()=>i(),*entries(){for(const e of i())yield[e,e]},[Symbol.iterator]:()=>i(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return o}function Xe(e){return Array.isArray(e)}function Qe(e){return Xe(e)?e:[e]}function Ye(e){return"string"==typeof e}function Ze(e){return"number"==typeof e}function et(e,t){return void 0!==e&&t(e)?e:void 0}function tt(e,t){return void 0!==e&&t(e)?e:_n.fail(`Invalid cast. The supplied value ${e} did not pass the test '${_n.getFunctionName(t)}'.`)}function nt(e){}function rt(){return!1}function it(){return!0}function ot(){}function at(e){return e}function st(e){return e.toLowerCase()}var ct=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function lt(e){return ct.test(e)?e.replace(ct,st):e}function _t(){throw new Error("Not implemented")}function ut(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function dt(e){const t=new Map;return n=>{const r=`${typeof n}:${n}`;let i=t.get(r);return void 0!==i||t.has(r)||(i=e(n),t.set(r,i)),i}}var pt=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(pt||{});function ft(e,t){return e===t}function mt(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()}function gt(e,t){return ft(e,t)}function ht(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e-1===t(e,n)?e:n))}function kt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function St(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toLowerCase())<(t=t.toLowerCase())?-1:e>t?1:0}function Tt(e,t){return ht(e,t)}function Ct(e){return e?kt:Tt}var wt,Dt,Nt=(()=>function(e){const t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(e,n)=>function(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=n(e,t);return r<0?-1:r>0?1:0}(e,n,t)})();function Ft(){return Dt}function Et(e){Dt!==e&&(Dt=e,wt=void 0)}function Pt(e,t){return wt??(wt=Nt(Dt)),wt(e,t)}function At(e,t,n,r){return e===t?0:void 0===e?-1:void 0===t?1:r(e[n],t[n])}function It(e,t){return yt(e?1:0,t?1:0)}function Ot(e,t,n){const r=Math.max(2,Math.floor(.34*e.length));let i,o=Math.floor(.4*e.length)+1;for(const a of t){const t=n(a);if(void 0!==t&&Math.abs(t.length-e.length)<=r){if(t===e)continue;if(t.length<3&&t.toLowerCase()!==e.toLowerCase())continue;const n=Lt(e,t,o-.1);if(void 0===n)continue;_n.assert(nn?a-n:1),l=Math.floor(t.length>n+a?n+a:t.length);i[0]=a;let _=a;for(let e=1;en)return;const u=r;r=i,i=u}const a=r[t.length];return a>n?void 0:a}function jt(e,t,n){const r=e.length-t.length;return r>=0&&(n?mt(e.slice(r),t):e.indexOf(t,r)===r)}function Rt(e,t){return jt(e,t)?e.slice(0,e.length-t.length):e}function Mt(e,t){return jt(e,t)?e.slice(0,e.length-t.length):void 0}function Bt(e){let t=e.length;for(let n=t-1;n>0;n--){let r=e.charCodeAt(n);if(r>=48&&r<=57)do{--n,r=e.charCodeAt(n)}while(n>0&&r>=48&&r<=57);else{if(!(n>4)||110!==r&&78!==r)break;if(--n,r=e.charCodeAt(n),105!==r&&73!==r)break;if(--n,r=e.charCodeAt(n),109!==r&&77!==r)break;--n,r=e.charCodeAt(n)}if(45!==r&&46!==r)break;t=n}return t===e.length?e:e.slice(0,t)}function Jt(e,t){for(let n=0;ne===t))}function Vt(e){return e?at:lt}function Wt({prefix:e,suffix:t}){return`${e}*${t}`}function $t(e,t){return _n.assert(Qt(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function Ht(e,t,n){let r,i=-1;for(let o=0;oi&&Qt(s,n)&&(i=s.prefix.length,r=a)}return r}function Kt(e,t,n){return n?mt(e.slice(0,t.length),t):0===e.lastIndexOf(t,0)}function Gt(e,t){return Kt(e,t)?e.substr(t.length):e}function Xt(e,t,n=at){return Kt(n(e),n(t))?e.substring(t.length):void 0}function Qt({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&Kt(n,e)&&jt(n,t)}function Yt(e,t){return n=>e(n)&&t(n)}function Zt(...e){return(...t)=>{let n;for(const r of e)if(n=r(...t),n)return n;return n}}function en(e){return(...t)=>!e(...t)}function tn(e){}function nn(e){return void 0===e?void 0:[e]}function rn(e,t,n,r,i,o){o??(o=nt);let a=0,s=0;const c=e.length,l=t.length;let _=!1;for(;a(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(un||{});(e=>{let t=0;function n(t){return e.currentLogLevel<=t}function r(t,r){e.loggingHost&&n(t)&&e.loggingHost.log(t,r)}function i(e){r(3,e)}var o;e.currentLogLevel=2,e.isDebugging=!1,e.shouldLog=n,e.log=i,(o=i=e.log||(e.log={})).error=function(e){r(1,e)},o.warn=function(e){r(2,e)},o.log=function(e){r(3,e)},o.trace=function(e){r(4,e)};const a={};function s(e){return t>=e}function c(t,n){return!!s(t)||(a[n]={level:t,assertion:e[n]},e[n]=nt,!1)}function l(e,t){const n=new Error(e?`Debug Failure. ${e}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||l),n}function _(e,t,n,r){e||(t=t?`False expression: ${t}`:"False expression.",n&&(t+="\r\nVerbose Debug Information: "+("string"==typeof n?n:n())),l(t,r||_))}function u(e,t,n){null==e&&l(t,n||u)}function d(e,t,n){for(const r of e)u(r,t,n||d)}function p(e,t="Illegal value:",n){return l(`${t} ${"object"==typeof e&&De(e,"kind")&&De(e,"pos")?"SyntaxKind: "+b(e.kind):JSON.stringify(e)}`,n||p)}function f(e){}function g(e){if("function"!=typeof e)return"";if(De(e,"name"))return e.name;{const t=Function.prototype.toString.call(e),n=/^function\s+([\w$]+)\s*\(/.exec(t);return n?n[1]:""}}function y(e=0,t,n){const r=function(e){const t=v.get(e);if(t)return t;const n=[];for(const t in e){const r=e[t];"number"==typeof r&&n.push([r,t])}const r=le(n,((e,t)=>yt(e[0],t[0])));return v.set(e,r),r}(t);if(0===e)return r.length>0&&0===r[0][0]?r[0][1]:"0";if(n){const t=[];let n=e;for(const[i,o]of r){if(i>e)break;0!==i&&i&e&&(t.push(o),n&=~i)}if(0===n)return t.join("|")}else for(const[t,n]of r)if(t===e)return n;return e.toString()}e.getAssertionLevel=function(){return t},e.setAssertionLevel=function(n){const r=t;if(t=n,n>r)for(const t of Fe(a)){const r=a[t];void 0!==r&&e[t]!==r.assertion&&n>=r.level&&(e[t]=r,a[t]=void 0)}},e.shouldAssert=s,e.fail=l,e.failBadSyntaxKind=function e(t,n,r){return l(`${n||"Unexpected node."}\r\nNode ${b(t.kind)} was unexpected.`,r||e)},e.assert=_,e.assertEqual=function e(t,n,r,i,o){if(t!==n){l(`Expected ${t} === ${n}. ${r?i?`${r} ${i}`:r:""}`,o||e)}},e.assertLessThan=function e(t,n,r,i){t>=n&&l(`Expected ${t} < ${n}. ${r||""}`,i||e)},e.assertLessThanOrEqual=function e(t,n,r){t>n&&l(`Expected ${t} <= ${n}`,r||e)},e.assertGreaterThanOrEqual=function e(t,n,r){t= ${n}`,r||e)},e.assertIsDefined=u,e.checkDefined=function e(t,n,r){return u(t,n,r||e),t},e.assertEachIsDefined=d,e.checkEachDefined=function e(t,n,r){return d(t,n,r||e),t},e.assertNever=p,e.assertEachNode=function e(t,n,r,i){c(1,"assertEachNode")&&_(void 0===n||h(t,n),r||"Unexpected node.",(()=>`Node array did not pass test '${g(n)}'.`),i||e)},e.assertNode=function e(t,n,r,i){c(1,"assertNode")&&_(void 0!==t&&(void 0===n||n(t)),r||"Unexpected node.",(()=>`Node ${b(null==t?void 0:t.kind)} did not pass test '${g(n)}'.`),i||e)},e.assertNotNode=function e(t,n,r,i){c(1,"assertNotNode")&&_(void 0===t||void 0===n||!n(t),r||"Unexpected node.",(()=>`Node ${b(t.kind)} should not have passed test '${g(n)}'.`),i||e)},e.assertOptionalNode=function e(t,n,r,i){c(1,"assertOptionalNode")&&_(void 0===n||void 0===t||n(t),r||"Unexpected node.",(()=>`Node ${b(null==t?void 0:t.kind)} did not pass test '${g(n)}'.`),i||e)},e.assertOptionalToken=function e(t,n,r,i){c(1,"assertOptionalToken")&&_(void 0===n||void 0===t||t.kind===n,r||"Unexpected node.",(()=>`Node ${b(null==t?void 0:t.kind)} was not a '${b(n)}' token.`),i||e)},e.assertMissingNode=function e(t,n,r){c(1,"assertMissingNode")&&_(void 0===t,n||"Unexpected node.",(()=>`Node ${b(t.kind)} was unexpected'.`),r||e)},e.type=f,e.getFunctionName=g,e.formatSymbol=function(e){return`{ name: ${gc(e.escapedName)}; flags: ${C(e.flags)}; declarations: ${N(e.declarations,(e=>b(e.kind)))} }`},e.formatEnum=y;const v=new Map;function b(e){return y(e,pr,!1)}function x(e){return y(e,fr,!0)}function k(e){return y(e,mr,!0)}function S(e){return y(e,Si,!0)}function T(e){return y(e,Ci,!0)}function C(e){return y(e,zr,!0)}function w(e){return y(e,Wr,!0)}function D(e){return y(e,Zr,!0)}function F(e){return y(e,$r,!0)}function E(e){return y(e,kr,!0)}e.formatSyntaxKind=b,e.formatSnippetKind=function(e){return y(e,Ti,!1)},e.formatScriptKind=function(e){return y(e,hi,!1)},e.formatNodeFlags=x,e.formatNodeCheckFlags=function(e){return y(e,Vr,!0)},e.formatModifierFlags=k,e.formatTransformFlags=S,e.formatEmitFlags=T,e.formatSymbolFlags=C,e.formatTypeFlags=w,e.formatSignatureFlags=D,e.formatObjectFlags=F,e.formatFlowFlags=E,e.formatRelationComparisonResult=function(e){return y(e,hr,!0)},e.formatCheckMode=function(e){return y(e,nJ,!0)},e.formatSignatureCheckMode=function(e){return y(e,rJ,!0)},e.formatTypeFacts=function(e){return y(e,eJ,!0)};let P,A,I=!1;function O(e){"__debugFlowFlags"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value(){const e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return`${e}${t?` (${E(t)})`:""}`}},__debugFlowFlags:{get(){return y(this.flags,kr,!0)}},__debugToString:{value(){return R(this)}}})}function L(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:e=>`NodeArray ${e=String(e).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]")}`}})}e.attachFlowNodeDebugInfo=function(e){return I&&("function"==typeof Object.setPrototypeOf?(P||(P=Object.create(Object.prototype),O(P)),Object.setPrototypeOf(e,P)):O(e)),e},e.attachNodeArrayDebugInfo=function(e){I&&("function"==typeof Object.setPrototypeOf?(A||(A=Object.create(Array.prototype),L(A)),Object.setPrototypeOf(e,A)):L(e))},e.enableDebugInfo=function(){if(I)return;const e=new WeakMap,t=new WeakMap;Object.defineProperties(Bx.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=33554432&this.flags?"TransientSymbol":"Symbol",t=-33554433&this.flags;return`${e} '${vc(this)}'${t?` (${C(t)})`:""}`}},__debugFlags:{get(){return C(this.flags)}}}),Object.defineProperties(Bx.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=402431&this.flags?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:12&this.flags?"NullableType":3072&this.flags?`LiteralType ${JSON.stringify(this.value)}`:4096&this.flags?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:16384&this.flags?"UniqueESSymbolType":65536&this.flags?"EnumType":134217728&this.flags?"UnionType":268435456&this.flags?"IntersectionType":2097152&this.flags?"IndexType":33554432&this.flags?"IndexedAccessType":67108864&this.flags?"ConditionalType":16777216&this.flags?"SubstitutionType":524288&this.flags?"TypeParameter":1048576&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",t=1048576&this.flags?-142607680&this.objectFlags:0;return`${e}${this.symbol?` '${vc(this.symbol)}'`:""}${t?` (${F(t)})`:""}`}},__debugFlags:{get(){return w(this.flags)}},__debugObjectFlags:{get(){return 1048576&this.flags?F(this.objectFlags):""}},__debugTypeToString:{value(){let t=e.get(this);return void 0===t&&(t=this.checker.typeToString(this),e.set(this,t)),t}}}),Object.defineProperties(Bx.getSignatureConstructor().prototype,{__debugFlags:{get(){return D(this.flags)}},__debugSignatureToString:{value(){var e;return null==(e=this.checker)?void 0:e.signatureToString(this)}}});const n=[Bx.getNodeConstructor(),Bx.getIdentifierConstructor(),Bx.getTokenConstructor(),Bx.getSourceFileConstructor()];for(const e of n)De(e.prototype,"__debugKind")||Object.defineProperties(e.prototype,{__tsDebuggerDisplay:{value(){return`${$l(this)?"GeneratedIdentifier":_N(this)?`Identifier '${hc(this)}'`:uN(this)?`PrivateIdentifier '${hc(this)}'`:HD(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:WD(this)?`NumericLiteral ${this.text}`:$D(this)?`BigIntLiteral ${this.text}n`:DN(this)?"TypeParameterDeclaration":NN(this)?"ParameterDeclaration":LN(this)?"ConstructorDeclaration":jN(this)?"GetAccessorDeclaration":RN(this)?"SetAccessorDeclaration":MN(this)?"CallSignatureDeclaration":BN(this)?"ConstructSignatureDeclaration":JN(this)?"IndexSignatureDeclaration":zN(this)?"TypePredicateNode":qN(this)?"TypeReferenceNode":UN(this)?"FunctionTypeNode":VN(this)?"ConstructorTypeNode":WN(this)?"TypeQueryNode":$N(this)?"TypeLiteralNode":HN(this)?"ArrayTypeNode":KN(this)?"TupleTypeNode":XN(this)?"OptionalTypeNode":QN(this)?"RestTypeNode":YN(this)?"UnionTypeNode":ZN(this)?"IntersectionTypeNode":eF(this)?"ConditionalTypeNode":tF(this)?"InferTypeNode":nF(this)?"ParenthesizedTypeNode":rF(this)?"ThisTypeNode":iF(this)?"TypeOperatorNode":oF(this)?"IndexedAccessTypeNode":aF(this)?"MappedTypeNode":sF(this)?"LiteralTypeNode":GN(this)?"NamedTupleMember":cF(this)?"ImportTypeNode":b(this.kind)}${this.flags?` (${x(this.flags)})`:""}`}},__debugKind:{get(){return b(this.kind)}},__debugNodeFlags:{get(){return x(this.flags)}},__debugModifierFlags:{get(){return k($v(this))}},__debugTransformFlags:{get(){return S(this.transformFlags)}},__debugIsParseTreeNode:{get(){return pc(this)}},__debugEmitFlags:{get(){return T(Zd(this))}},__debugGetText:{value(e){if(ty(this))return"";let n=t.get(this);if(void 0===n){const r=fc(this),i=r&&bd(r);n=i?Vd(i,r,e):"",t.set(this,n)}return n}}});I=!0},e.formatVariance=function(e){const t=7&e;let n=0===t?"in out":3===t?"[bivariant]":2===t?"in":1===t?"out":4===t?"[independent]":"";return 8&e?n+=" (unmeasurable)":16&e&&(n+=" (unreliable)"),n};class j{__debugToString(){var e;switch(this.kind){case 3:return(null==(e=this.debugInfo)?void 0:e.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return m(this.sources,this.targets||N(this.sources,(()=>"any")),((e,t)=>`${e.__debugTypeToString()} -> ${"string"==typeof t?t:t.__debugTypeToString()}`)).join(", ");case 2:return m(this.sources,this.targets,((e,t)=>`${e.__debugTypeToString()} -> ${t().__debugTypeToString()}`)).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split("\n").join("\n ")}\nm2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`;default:return p(this)}}}function R(e){let t,n=-1;function r(e){return e.id||(e.id=n,n--),e.id}var i;let o;var a;(i=t||(t={})).lr="─",i.ud="│",i.dr="╭",i.dl="╮",i.ul="╯",i.ur="╰",i.udr="├",i.udl="┤",i.dlr="┬",i.ulr="┴",i.udlr="╫",(a=o||(o={}))[a.None=0]="None",a[a.Up=1]="Up",a[a.Down=2]="Down",a[a.Left=4]="Left",a[a.Right=8]="Right",a[a.UpDown=3]="UpDown",a[a.LeftRight=12]="LeftRight",a[a.UpLeft=5]="UpLeft",a[a.UpRight=9]="UpRight",a[a.DownLeft=6]="DownLeft",a[a.DownRight=10]="DownRight",a[a.UpDownLeft=7]="UpDownLeft",a[a.UpDownRight=11]="UpDownRight",a[a.UpLeftRight=13]="UpLeftRight",a[a.DownLeftRight=14]="DownLeftRight",a[a.UpDownLeftRight=15]="UpDownLeftRight",a[a.NoChildren=16]="NoChildren";const s=Object.create(null),c=[],l=[],_=m(e,new Set);for(const e of c)e.text=v(e.flowNode,e.circular),h(e);const u=function e(t){let n=0;for(const r of p(t))n=Math.max(n,e(r));return n+1}(_),d=function(e){const t=x(Array(e),0);for(const e of c)t[e.level]=Math.max(t[e.level],e.text.length);return t}(u);return function e(t,n){if(-1===t.lane){t.lane=n,t.endLane=n;const r=p(t);for(let i=0;i0&&n++;const o=r[i];e(o,n),o.endLane>t.endLane&&(n=o.endLane)}t.endLane=n}}(_,0),function(){const e=d.length,t=bt(c,0,(e=>e.lane))+1,n=x(Array(t),""),r=d.map((()=>Array(t))),i=d.map((()=>x(Array(t),0)));for(const e of c){r[e.level][e.lane]=e;const t=p(e);for(let n=0;n0&&(o|=1),n0&&(o|=1),t0?i[n-1][e]:0,r=e>0?i[n][e-1]:0;let o=i[n][e];o||(8&t&&(o|=12),2&r&&(o|=3),i[n][e]=o)}for(let t=0;t0?e.repeat(t):"";let n="";for(;n.length=0,"Invalid argument: major"),_n.assert(t>=0,"Invalid argument: minor"),_n.assert(n>=0,"Invalid argument: patch");const o=r?Xe(r)?r:r.split("."):s,a=i?Xe(i)?i:i.split("."):s;_n.assert(h(o,(e=>fn.test(e))),"Invalid argument: prerelease"),_n.assert(h(a,(e=>gn.test(e))),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=n,this.prerelease=o,this.build=a}static tryParse(t){const n=bn(t);if(!n)return;const{major:r,minor:i,patch:o,prerelease:a,build:s}=n;return new e(r,i,o,a,s)}compareTo(e){return this===e?0:void 0===e?1:yt(this.major,e.major)||yt(this.minor,e.minor)||yt(this.patch,e.patch)||function(e,t){if(e===t)return 0;if(0===e.length)return 0===t.length?0:1;if(0===t.length)return-1;const n=Math.min(e.length,t.length);for(let r=0;r=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i;function Dn(e){const t=[];for(let n of e.trim().split(kn)){if(!n)continue;const e=[];n=n.trim();const r=Cn.exec(n);if(r){if(!Fn(r[1],r[2],e))return}else for(const t of n.split(Sn)){const n=wn.exec(t.trim());if(!n||!En(n[1],n[2],e))return}t.push(e)}return t}function Nn(e){const t=Tn.exec(e);if(!t)return;const[,n,r="*",i="*",o,a]=t;return{version:new vn(Pn(n)?0:parseInt(n,10),Pn(n)||Pn(r)?0:parseInt(r,10),Pn(n)||Pn(r)||Pn(i)?0:parseInt(i,10),o,a),major:n,minor:r,patch:i}}function Fn(e,t,n){const r=Nn(e);if(!r)return!1;const i=Nn(t);return!!i&&(Pn(r.major)||n.push(An(">=",r.version)),Pn(i.major)||n.push(Pn(i.minor)?An("<",i.version.increment("major")):Pn(i.patch)?An("<",i.version.increment("minor")):An("<=",i.version)),!0)}function En(e,t,n){const r=Nn(t);if(!r)return!1;const{version:i,major:o,minor:a,patch:s}=r;if(Pn(o))"<"!==e&&">"!==e||n.push(An("<",vn.zero));else switch(e){case"~":n.push(An(">=",i)),n.push(An("<",i.increment(Pn(a)?"major":"minor")));break;case"^":n.push(An(">=",i)),n.push(An("<",i.increment(i.major>0||Pn(a)?"major":i.minor>0||Pn(s)?"minor":"patch")));break;case"<":case">=":n.push(Pn(a)||Pn(s)?An(e,i.with({prerelease:"0"})):An(e,i));break;case"<=":case">":n.push(Pn(a)?An("<="===e?"<":">=",i.increment("major").with({prerelease:"0"})):Pn(s)?An("<="===e?"<":">=",i.increment("minor").with({prerelease:"0"})):An(e,i));break;case"=":case void 0:Pn(a)||Pn(s)?(n.push(An(">=",i.with({prerelease:"0"}))),n.push(An("<",i.increment(Pn(a)?"major":"minor").with({prerelease:"0"})))):n.push(An("=",i));break;default:return!1}return!0}function Pn(e){return"*"===e||"x"===e||"X"===e}function An(e,t){return{operator:e,operand:t}}function In(e,t){for(const n of t)if(!On(e,n.operator,n.operand))return!1;return!0}function On(e,t,n){const r=e.compareTo(n);switch(t){case"<":return r<0;case"<=":return r<=0;case">":return r>0;case">=":return r>=0;case"=":return 0===r;default:return _n.assertNever(t)}}function Ln(e){return N(e,jn).join(" ")}function jn(e){return`${e.operator}${e.operand}`}var Rn=function(){const e=function(){if(ln())try{const{performance:e}=require("perf_hooks");if(e)return{shouldWriteNativeEvents:!1,performance:e}}catch{}if("object"==typeof performance)return{shouldWriteNativeEvents:!0,performance:performance}}();if(!e)return;const{shouldWriteNativeEvents:t,performance:n}=e,r={shouldWriteNativeEvents:t,performance:void 0,performanceTime:void 0};return"number"==typeof n.timeOrigin&&"function"==typeof n.now&&(r.performanceTime=n),r.performanceTime&&"function"==typeof n.mark&&"function"==typeof n.measure&&"function"==typeof n.clearMarks&&"function"==typeof n.clearMeasures&&(r.performance=n),r}(),Mn=null==Rn?void 0:Rn.performanceTime;function Bn(){return Rn}var Jn,zn,qn=Mn?()=>Mn.now():Date.now,Un={};function Vn(e,t,n,r){return e?Wn(t,n,r):Kn}function Wn(e,t,n){let r=0;return{enter:function(){1==++r&&er(t)},exit:function(){0==--r?(er(n),tr(e,t,n)):r<0&&_n.fail("enter/exit count does not match.")}}}n(Un,{clearMarks:()=>sr,clearMeasures:()=>ar,createTimer:()=>Wn,createTimerIf:()=>Vn,disable:()=>_r,enable:()=>lr,forEachMark:()=>or,forEachMeasure:()=>ir,getCount:()=>nr,getDuration:()=>rr,isEnabled:()=>cr,mark:()=>er,measure:()=>tr,nullTimer:()=>Kn});var $n,Hn,Kn={enter:nt,exit:nt},Gn=!1,Xn=qn(),Qn=new Map,Yn=new Map,Zn=new Map;function er(e){if(Gn){const t=Yn.get(e)??0;Yn.set(e,t+1),Qn.set(e,qn()),null==zn||zn.mark(e),"function"==typeof onProfilerEvent&&onProfilerEvent(e)}}function tr(e,t,n){if(Gn){const r=(void 0!==n?Qn.get(n):void 0)??qn(),i=(void 0!==t?Qn.get(t):void 0)??Xn,o=Zn.get(e)||0;Zn.set(e,o+(r-i)),null==zn||zn.measure(e,t,n)}}function nr(e){return Yn.get(e)||0}function rr(e){return Zn.get(e)||0}function ir(e){Zn.forEach(((t,n)=>e(n,t)))}function or(e){Qn.forEach(((t,n)=>e(n)))}function ar(e){void 0!==e?Zn.delete(e):Zn.clear(),null==zn||zn.clearMeasures(e)}function sr(e){void 0!==e?(Yn.delete(e),Qn.delete(e)):(Yn.clear(),Qn.clear()),null==zn||zn.clearMarks(e)}function cr(){return Gn}function lr(e=co){var t;return Gn||(Gn=!0,Jn||(Jn=Bn()),(null==Jn?void 0:Jn.performance)&&(Xn=Jn.performance.timeOrigin,(Jn.shouldWriteNativeEvents||(null==(t=null==e?void 0:e.cpuProfilingEnabled)?void 0:t.call(e))||(null==e?void 0:e.debugMode))&&(zn=Jn.performance))),!0}function _r(){Gn&&(Qn.clear(),Yn.clear(),Zn.clear(),zn=void 0,Gn=!1)}(e=>{let t,n,r=0,i=0;const o=[];let a;const s=[];let c;var l;e.startTracing=function(c,l,_){if(_n.assert(!$n,"Tracing already started"),void 0===t)try{t=require("fs")}catch(e){throw new Error(`tracing requires having fs\n(original error: ${e.message||e})`)}n=c,o.length=0,void 0===a&&(a=Ro(l,"legend.json")),t.existsSync(l)||t.mkdirSync(l,{recursive:!0});const u="build"===n?`.${process.pid}-${++r}`:"server"===n?`.${process.pid}`:"",d=Ro(l,`trace${u}.json`),p=Ro(l,`types${u}.json`);s.push({configFilePath:_,tracePath:d,typesPath:p}),i=t.openSync(d,"w"),$n=e;const f={cat:"__metadata",ph:"M",ts:1e3*qn(),pid:1,tid:1};t.writeSync(i,"[\n"+[{name:"process_name",args:{name:"tsc"},...f},{name:"thread_name",args:{name:"Main"},...f},{name:"TracingStartedInBrowser",...f,cat:"disabled-by-default-devtools.timeline"}].map((e=>JSON.stringify(e))).join(",\n"))},e.stopTracing=function(){_n.assert($n,"Tracing is not in progress"),_n.assert(!!o.length==("server"!==n)),t.writeSync(i,"\n]\n"),t.closeSync(i),$n=void 0,o.length?function(e){var n,r,i,o,a,c,l,_,u,d,p,m,g,h,y,v,b,x,k;er("beginDumpTypes");const S=s[s.length-1].typesPath,T=t.openSync(S,"w"),C=new Map;t.writeSync(T,"[");const w=e.length;for(let s=0;se.id)),referenceLocation:f(e.node)}}let A={};if(67108864&S.flags){const e=S;A={conditionalCheckType:null==(c=e.checkType)?void 0:c.id,conditionalExtendsType:null==(l=e.extendsType)?void 0:l.id,conditionalTrueType:(null==(_=e.resolvedTrueType)?void 0:_.id)??-1,conditionalFalseType:(null==(u=e.resolvedFalseType)?void 0:u.id)??-1}}let I={};if(16777216&S.flags){const e=S;I={substitutionBaseType:null==(d=e.baseType)?void 0:d.id,constraintType:null==(p=e.constraint)?void 0:p.id}}let O={};if(1024&D){const e=S;O={reverseMappedSourceType:null==(m=e.source)?void 0:m.id,reverseMappedMappedType:null==(g=e.mappedType)?void 0:g.id,reverseMappedConstraintType:null==(h=e.constraintType)?void 0:h.id}}let L,j={};if(256&D){const e=S;j={evolvingArrayElementType:e.elementType.id,evolvingArrayFinalType:null==(y=e.finalArrayType)?void 0:y.id}}const R=S.checker.getRecursionIdentity(S);R&&(L=C.get(R),L||(L=C.size,C.set(R,L)));const M={id:S.id,intrinsicName:S.intrinsicName,symbolName:(null==N?void 0:N.escapedName)&&gc(N.escapedName),recursionId:L,isTuple:!!(8&D)||void 0,unionTypes:134217728&S.flags?null==(v=S.types)?void 0:v.map((e=>e.id)):void 0,intersectionTypes:268435456&S.flags?S.types.map((e=>e.id)):void 0,aliasTypeArguments:null==(b=S.aliasTypeArguments)?void 0:b.map((e=>e.id)),keyofType:2097152&S.flags?null==(x=S.type)?void 0:x.id:void 0,...E,...P,...A,...I,...O,...j,destructuringPattern:f(S.pattern),firstDeclaration:f(null==(k=null==N?void 0:N.declarations)?void 0:k[0]),flags:_n.formatTypeFlags(S.flags).split("|"),display:F};t.writeSync(T,JSON.stringify(M)),s0),d(_.length-1,1e3*qn(),e),_.length--},e.popAll=function(){const e=1e3*qn();for(let t=_.length-1;t>=0;t--)d(t,e);_.length=0};const u=1e4;function d(e,t,n){const{phase:r,name:i,args:o,time:a,separateBeginAndEnd:s}=_[e];s?(_n.assert(!n,"`results` are not supported for events with `separateBeginAndEnd`"),p("E",r,i,o,void 0,t)):u-a%u<=t-a&&p("X",r,i,{...o,results:n},'"dur":'+(t-a),a)}function p(e,r,o,a,s,c=1e3*qn()){"server"===n&&"checkTypes"===r||(er("beginTracing"),t.writeSync(i,`,\n{"pid":1,"tid":1,"ph":"${e}","cat":"${r}","ts":${c},"name":"${o}"`),s&&t.writeSync(i,`,${s}`),a&&t.writeSync(i,`,"args":${JSON.stringify(a)}`),t.writeSync(i,"}"),er("endTracing"),tr("Tracing","beginTracing","endTracing"))}function f(e){const t=bd(e);return t?{path:t.path,start:n(qa(t,e.pos)),end:n(qa(t,e.end))}:void 0;function n(e){return{line:e.line+1,character:e.character+1}}}e.dumpLegend=function(){a&&t.writeFileSync(a,JSON.stringify(s))}})(Hn||(Hn={}));var ur=Hn.startTracing,dr=Hn.dumpLegend,pr=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.DeferKeyword=166]="DeferKeyword",e[e.QualifiedName=167]="QualifiedName",e[e.ComputedPropertyName=168]="ComputedPropertyName",e[e.TypeParameter=169]="TypeParameter",e[e.Parameter=170]="Parameter",e[e.Decorator=171]="Decorator",e[e.PropertySignature=172]="PropertySignature",e[e.PropertyDeclaration=173]="PropertyDeclaration",e[e.MethodSignature=174]="MethodSignature",e[e.MethodDeclaration=175]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=176]="ClassStaticBlockDeclaration",e[e.Constructor=177]="Constructor",e[e.GetAccessor=178]="GetAccessor",e[e.SetAccessor=179]="SetAccessor",e[e.CallSignature=180]="CallSignature",e[e.ConstructSignature=181]="ConstructSignature",e[e.IndexSignature=182]="IndexSignature",e[e.TypePredicate=183]="TypePredicate",e[e.TypeReference=184]="TypeReference",e[e.FunctionType=185]="FunctionType",e[e.ConstructorType=186]="ConstructorType",e[e.TypeQuery=187]="TypeQuery",e[e.TypeLiteral=188]="TypeLiteral",e[e.ArrayType=189]="ArrayType",e[e.TupleType=190]="TupleType",e[e.OptionalType=191]="OptionalType",e[e.RestType=192]="RestType",e[e.UnionType=193]="UnionType",e[e.IntersectionType=194]="IntersectionType",e[e.ConditionalType=195]="ConditionalType",e[e.InferType=196]="InferType",e[e.ParenthesizedType=197]="ParenthesizedType",e[e.ThisType=198]="ThisType",e[e.TypeOperator=199]="TypeOperator",e[e.IndexedAccessType=200]="IndexedAccessType",e[e.MappedType=201]="MappedType",e[e.LiteralType=202]="LiteralType",e[e.NamedTupleMember=203]="NamedTupleMember",e[e.TemplateLiteralType=204]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=205]="TemplateLiteralTypeSpan",e[e.ImportType=206]="ImportType",e[e.ObjectBindingPattern=207]="ObjectBindingPattern",e[e.ArrayBindingPattern=208]="ArrayBindingPattern",e[e.BindingElement=209]="BindingElement",e[e.ArrayLiteralExpression=210]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=211]="ObjectLiteralExpression",e[e.PropertyAccessExpression=212]="PropertyAccessExpression",e[e.ElementAccessExpression=213]="ElementAccessExpression",e[e.CallExpression=214]="CallExpression",e[e.NewExpression=215]="NewExpression",e[e.TaggedTemplateExpression=216]="TaggedTemplateExpression",e[e.TypeAssertionExpression=217]="TypeAssertionExpression",e[e.ParenthesizedExpression=218]="ParenthesizedExpression",e[e.FunctionExpression=219]="FunctionExpression",e[e.ArrowFunction=220]="ArrowFunction",e[e.DeleteExpression=221]="DeleteExpression",e[e.TypeOfExpression=222]="TypeOfExpression",e[e.VoidExpression=223]="VoidExpression",e[e.AwaitExpression=224]="AwaitExpression",e[e.PrefixUnaryExpression=225]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=226]="PostfixUnaryExpression",e[e.BinaryExpression=227]="BinaryExpression",e[e.ConditionalExpression=228]="ConditionalExpression",e[e.TemplateExpression=229]="TemplateExpression",e[e.YieldExpression=230]="YieldExpression",e[e.SpreadElement=231]="SpreadElement",e[e.ClassExpression=232]="ClassExpression",e[e.OmittedExpression=233]="OmittedExpression",e[e.ExpressionWithTypeArguments=234]="ExpressionWithTypeArguments",e[e.AsExpression=235]="AsExpression",e[e.NonNullExpression=236]="NonNullExpression",e[e.MetaProperty=237]="MetaProperty",e[e.SyntheticExpression=238]="SyntheticExpression",e[e.SatisfiesExpression=239]="SatisfiesExpression",e[e.TemplateSpan=240]="TemplateSpan",e[e.SemicolonClassElement=241]="SemicolonClassElement",e[e.Block=242]="Block",e[e.EmptyStatement=243]="EmptyStatement",e[e.VariableStatement=244]="VariableStatement",e[e.ExpressionStatement=245]="ExpressionStatement",e[e.IfStatement=246]="IfStatement",e[e.DoStatement=247]="DoStatement",e[e.WhileStatement=248]="WhileStatement",e[e.ForStatement=249]="ForStatement",e[e.ForInStatement=250]="ForInStatement",e[e.ForOfStatement=251]="ForOfStatement",e[e.ContinueStatement=252]="ContinueStatement",e[e.BreakStatement=253]="BreakStatement",e[e.ReturnStatement=254]="ReturnStatement",e[e.WithStatement=255]="WithStatement",e[e.SwitchStatement=256]="SwitchStatement",e[e.LabeledStatement=257]="LabeledStatement",e[e.ThrowStatement=258]="ThrowStatement",e[e.TryStatement=259]="TryStatement",e[e.DebuggerStatement=260]="DebuggerStatement",e[e.VariableDeclaration=261]="VariableDeclaration",e[e.VariableDeclarationList=262]="VariableDeclarationList",e[e.FunctionDeclaration=263]="FunctionDeclaration",e[e.ClassDeclaration=264]="ClassDeclaration",e[e.InterfaceDeclaration=265]="InterfaceDeclaration",e[e.TypeAliasDeclaration=266]="TypeAliasDeclaration",e[e.EnumDeclaration=267]="EnumDeclaration",e[e.ModuleDeclaration=268]="ModuleDeclaration",e[e.ModuleBlock=269]="ModuleBlock",e[e.CaseBlock=270]="CaseBlock",e[e.NamespaceExportDeclaration=271]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=272]="ImportEqualsDeclaration",e[e.ImportDeclaration=273]="ImportDeclaration",e[e.ImportClause=274]="ImportClause",e[e.NamespaceImport=275]="NamespaceImport",e[e.NamedImports=276]="NamedImports",e[e.ImportSpecifier=277]="ImportSpecifier",e[e.ExportAssignment=278]="ExportAssignment",e[e.ExportDeclaration=279]="ExportDeclaration",e[e.NamedExports=280]="NamedExports",e[e.NamespaceExport=281]="NamespaceExport",e[e.ExportSpecifier=282]="ExportSpecifier",e[e.MissingDeclaration=283]="MissingDeclaration",e[e.ExternalModuleReference=284]="ExternalModuleReference",e[e.JsxElement=285]="JsxElement",e[e.JsxSelfClosingElement=286]="JsxSelfClosingElement",e[e.JsxOpeningElement=287]="JsxOpeningElement",e[e.JsxClosingElement=288]="JsxClosingElement",e[e.JsxFragment=289]="JsxFragment",e[e.JsxOpeningFragment=290]="JsxOpeningFragment",e[e.JsxClosingFragment=291]="JsxClosingFragment",e[e.JsxAttribute=292]="JsxAttribute",e[e.JsxAttributes=293]="JsxAttributes",e[e.JsxSpreadAttribute=294]="JsxSpreadAttribute",e[e.JsxExpression=295]="JsxExpression",e[e.JsxNamespacedName=296]="JsxNamespacedName",e[e.CaseClause=297]="CaseClause",e[e.DefaultClause=298]="DefaultClause",e[e.HeritageClause=299]="HeritageClause",e[e.CatchClause=300]="CatchClause",e[e.ImportAttributes=301]="ImportAttributes",e[e.ImportAttribute=302]="ImportAttribute",e[e.AssertClause=301]="AssertClause",e[e.AssertEntry=302]="AssertEntry",e[e.ImportTypeAssertionContainer=303]="ImportTypeAssertionContainer",e[e.PropertyAssignment=304]="PropertyAssignment",e[e.ShorthandPropertyAssignment=305]="ShorthandPropertyAssignment",e[e.SpreadAssignment=306]="SpreadAssignment",e[e.EnumMember=307]="EnumMember",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.JSDocTypeExpression=310]="JSDocTypeExpression",e[e.JSDocNameReference=311]="JSDocNameReference",e[e.JSDocMemberName=312]="JSDocMemberName",e[e.JSDocAllType=313]="JSDocAllType",e[e.JSDocUnknownType=314]="JSDocUnknownType",e[e.JSDocNullableType=315]="JSDocNullableType",e[e.JSDocNonNullableType=316]="JSDocNonNullableType",e[e.JSDocOptionalType=317]="JSDocOptionalType",e[e.JSDocFunctionType=318]="JSDocFunctionType",e[e.JSDocVariadicType=319]="JSDocVariadicType",e[e.JSDocNamepathType=320]="JSDocNamepathType",e[e.JSDoc=321]="JSDoc",e[e.JSDocComment=321]="JSDocComment",e[e.JSDocText=322]="JSDocText",e[e.JSDocTypeLiteral=323]="JSDocTypeLiteral",e[e.JSDocSignature=324]="JSDocSignature",e[e.JSDocLink=325]="JSDocLink",e[e.JSDocLinkCode=326]="JSDocLinkCode",e[e.JSDocLinkPlain=327]="JSDocLinkPlain",e[e.JSDocTag=328]="JSDocTag",e[e.JSDocAugmentsTag=329]="JSDocAugmentsTag",e[e.JSDocImplementsTag=330]="JSDocImplementsTag",e[e.JSDocAuthorTag=331]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=332]="JSDocDeprecatedTag",e[e.JSDocClassTag=333]="JSDocClassTag",e[e.JSDocPublicTag=334]="JSDocPublicTag",e[e.JSDocPrivateTag=335]="JSDocPrivateTag",e[e.JSDocProtectedTag=336]="JSDocProtectedTag",e[e.JSDocReadonlyTag=337]="JSDocReadonlyTag",e[e.JSDocOverrideTag=338]="JSDocOverrideTag",e[e.JSDocCallbackTag=339]="JSDocCallbackTag",e[e.JSDocOverloadTag=340]="JSDocOverloadTag",e[e.JSDocEnumTag=341]="JSDocEnumTag",e[e.JSDocParameterTag=342]="JSDocParameterTag",e[e.JSDocReturnTag=343]="JSDocReturnTag",e[e.JSDocThisTag=344]="JSDocThisTag",e[e.JSDocTypeTag=345]="JSDocTypeTag",e[e.JSDocTemplateTag=346]="JSDocTemplateTag",e[e.JSDocTypedefTag=347]="JSDocTypedefTag",e[e.JSDocSeeTag=348]="JSDocSeeTag",e[e.JSDocPropertyTag=349]="JSDocPropertyTag",e[e.JSDocThrowsTag=350]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=351]="JSDocSatisfiesTag",e[e.JSDocImportTag=352]="JSDocImportTag",e[e.SyntaxList=353]="SyntaxList",e[e.NotEmittedStatement=354]="NotEmittedStatement",e[e.NotEmittedTypeElement=355]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.SyntheticReferenceExpression=358]="SyntheticReferenceExpression",e[e.Count=359]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=166]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=183]="FirstTypeNode",e[e.LastTypeNode=206]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=166]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=244]="FirstStatement",e[e.LastStatement=260]="LastStatement",e[e.FirstNode=167]="FirstNode",e[e.FirstJSDocNode=310]="FirstJSDocNode",e[e.LastJSDocNode=352]="LastJSDocNode",e[e.FirstJSDocTagNode=328]="FirstJSDocTagNode",e[e.LastJSDocTagNode=352]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=166]="LastContextualKeyword",e))(pr||{}),fr=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.Unreachable=1073741824]="Unreachable",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(fr||{}),mr=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(mr||{}),gr=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(gr||{}),hr=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(hr||{}),yr=(e=>(e[e.None=0]="None",e[e.Always=1]="Always",e[e.Never=2]="Never",e[e.Sometimes=3]="Sometimes",e))(yr||{}),vr=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(vr||{}),br=(e=>(e[e.None=0]="None",e[e.HasIndices=1]="HasIndices",e[e.Global=2]="Global",e[e.IgnoreCase=4]="IgnoreCase",e[e.Multiline=8]="Multiline",e[e.DotAll=16]="DotAll",e[e.Unicode=32]="Unicode",e[e.UnicodeSets=64]="UnicodeSets",e[e.Sticky=128]="Sticky",e[e.AnyUnicodeMode=96]="AnyUnicodeMode",e[e.Modifiers=28]="Modifiers",e))(br||{}),xr=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.PrecedingJSDocLeadingAsterisks=32768]="PrecedingJSDocLeadingAsterisks",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(xr||{}),kr=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(kr||{}),Sr=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(Sr||{}),Tr=class{},Cr=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(Cr||{}),wr=(e=>(e[e.FilePreprocessingLibReferenceDiagnostic=0]="FilePreprocessingLibReferenceDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(wr||{}),Dr=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e[e.BuilderSignature=2]="BuilderSignature",e))(Dr||{}),Nr=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(Nr||{}),Fr=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(Fr||{}),Er=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(Er||{}),Pr=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(Pr||{}),Ar=(e=>(e[e.None=0]="None",e[e.NoSupertypeReduction=1]="NoSupertypeReduction",e[e.NoConstraintReduction=2]="NoConstraintReduction",e))(Ar||{}),Ir=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.IgnoreNodeInferences=4]="IgnoreNodeInferences",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(Ir||{}),Or=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(Or||{}),Lr=(e=>(e[e.None=0]="None",e[e.WriteComputedProps=1]="WriteComputedProps",e[e.NoSyntacticPrinter=2]="NoSyntacticPrinter",e[e.DoNotIncludeSymbolChain=4]="DoNotIncludeSymbolChain",e[e.AllowUnresolvedNames=8]="AllowUnresolvedNames",e))(Lr||{}),jr=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",e))(jr||{}),Rr=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(Rr||{}),Mr=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e[e.NotResolved=3]="NotResolved",e))(Mr||{}),Br=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(Br||{}),Jr=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(Jr||{}),zr=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(zr||{}),qr=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(qr||{}),Ur=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(Ur||{}),Vr=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(Vr||{}),Wr=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.Undefined=4]="Undefined",e[e.Null=8]="Null",e[e.Void=16]="Void",e[e.String=32]="String",e[e.Number=64]="Number",e[e.BigInt=128]="BigInt",e[e.Boolean=256]="Boolean",e[e.ESSymbol=512]="ESSymbol",e[e.StringLiteral=1024]="StringLiteral",e[e.NumberLiteral=2048]="NumberLiteral",e[e.BigIntLiteral=4096]="BigIntLiteral",e[e.BooleanLiteral=8192]="BooleanLiteral",e[e.UniqueESSymbol=16384]="UniqueESSymbol",e[e.EnumLiteral=32768]="EnumLiteral",e[e.Enum=65536]="Enum",e[e.NonPrimitive=131072]="NonPrimitive",e[e.Never=262144]="Never",e[e.TypeParameter=524288]="TypeParameter",e[e.Object=1048576]="Object",e[e.Index=2097152]="Index",e[e.TemplateLiteral=4194304]="TemplateLiteral",e[e.StringMapping=8388608]="StringMapping",e[e.Substitution=16777216]="Substitution",e[e.IndexedAccess=33554432]="IndexedAccess",e[e.Conditional=67108864]="Conditional",e[e.Union=134217728]="Union",e[e.Intersection=268435456]="Intersection",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.Reserved3=-2147483648]="Reserved3",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=12]="Nullable",e[e.Literal=15360]="Literal",e[e.Unit=97292]="Unit",e[e.Freshable=80896]="Freshable",e[e.StringOrNumberLiteral=3072]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=19456]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=15388]="DefinitelyFalsy",e[e.PossiblyFalsy=15868]="PossiblyFalsy",e[e.Intrinsic=402431]="Intrinsic",e[e.StringLike=12583968]="StringLike",e[e.NumberLike=67648]="NumberLike",e[e.BigIntLike=4224]="BigIntLike",e[e.BooleanLike=8448]="BooleanLike",e[e.EnumLike=98304]="EnumLike",e[e.ESSymbolLike=16896]="ESSymbolLike",e[e.VoidLike=20]="VoidLike",e[e.Primitive=12713980]="Primitive",e[e.DefinitelyNonNullable=13893600]="DefinitelyNonNullable",e[e.DisjointDomains=12812284]="DisjointDomains",e[e.UnionOrIntersection=402653184]="UnionOrIntersection",e[e.StructuredType=403701760]="StructuredType",e[e.TypeVariable=34078720]="TypeVariable",e[e.InstantiableNonPrimitive=117964800]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=14680064]="InstantiablePrimitive",e[e.Instantiable=132644864]="Instantiable",e[e.StructuredOrInstantiable=536346624]="StructuredOrInstantiable",e[e.ObjectFlagsType=403963917]="ObjectFlagsType",e[e.Simplifiable=102760448]="Simplifiable",e[e.Singleton=394239]="Singleton",e[e.Narrowable=536575971]="Narrowable",e[e.IncludesMask=416808959]="IncludesMask",e[e.IncludesMissingType=524288]="IncludesMissingType",e[e.IncludesNonWideningType=2097152]="IncludesNonWideningType",e[e.IncludesWildcard=33554432]="IncludesWildcard",e[e.IncludesEmptyObject=67108864]="IncludesEmptyObject",e[e.IncludesInstantiable=16777216]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=286523411]="NotPrimitiveUnion",e))(Wr||{}),$r=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.ObjectTypeKindMask=142607679]="ObjectTypeKindMask",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))($r||{}),Hr=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(Hr||{}),Kr=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(Kr||{}),Gr=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.AllowMissing=16]="AllowMissing",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(Gr||{}),Xr=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(Xr||{}),Qr=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(Qr||{}),Yr=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(Yr||{}),Zr=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(Zr||{}),ei=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(ei||{}),ti=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(ti||{}),ni=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(ni||{}),ri=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(ri||{}),ii=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(ii||{}),oi=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(oi||{}),ai=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(ai||{});function si(e,t=!0){const n=ai[e.category];return t?n.toLowerCase():n}var ci=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(ci||{}),li=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(li||{}),_i=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(_i||{}),ui=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(ui||{}),di=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(di||{}),pi=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.Node18=101]="Node18",e[e.Node20=102]="Node20",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(pi||{}),fi=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(fi||{}),mi=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(mi||{}),gi=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(gi||{}),hi=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(hi||{}),yi=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ES2025=12]="ES2025",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e[e.LatestStandard=12]="LatestStandard",e))(yi||{}),vi=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(vi||{}),bi=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(bi||{}),xi=(e=>(e[e.EOF=-1]="EOF",e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(xi||{}),ki=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(ki||{}),Si=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Si||{}),Ti=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Ti||{}),Ci=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(Ci||{}),wi=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(wi||{}),Di={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99},Ni=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.SetFunctionName=4194304]="SetFunctionName",e[e.PropKey=8388608]="PropKey",e[e.AddDisposableResourceAndDisposeResources=16777216]="AddDisposableResourceAndDisposeResources",e[e.RewriteRelativeImportExtension=33554432]="RewriteRelativeImportExtension",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(Ni||{}),Fi=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))(Fi||{}),Ei=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.ExpressionsWithTypeArguments=16]="ExpressionsWithTypeArguments",e[e.Satisfies=32]="Satisfies",e[e.Assertions=38]="Assertions",e[e.All=63]="All",e[e.ExcludeJSDocTypeAssertion=-2147483648]="ExcludeJSDocTypeAssertion",e))(Ei||{}),Pi=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(Pi||{}),Ai=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(Ai||{}),Ii=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(Ii||{}),Oi={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},Li=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(Li||{});function ji(e){let t=5381;for(let n=0;n(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(Mi||{}),Bi=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(Bi||{}),Ji=new Date(0);function zi(e,t){return e.getModifiedTime(t)||Ji}function qi(e){return{250:e.Low,500:e.Medium,2e3:e.High}}var Ui={Low:32,Medium:64,High:256},Vi=qi(Ui),Wi=qi(Ui);function $i(e,t,n,r,i){let o=n;for(let s=t.length;r&&s;a(),s--){const a=t[n];if(!a)continue;if(a.isClosed){t[n]=void 0;continue}r--;const s=Xi(a,zi(e,a.fileName));a.isClosed?t[n]=void 0:(null==i||i(a,n,s),t[n]&&(o{o.isClosed=!0,Ut(t,o)}}};function a(e){const t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function s(e,t){t.pollIndex=l(t,t.pollingInterval,t.pollIndex,Vi[t.pollingInterval]),t.length?p(t.pollingInterval):(_n.assert(0===t.pollIndex),t.pollScheduled=!1)}function c(e,t){l(n,250,0,n.length),s(0,t),!t.pollScheduled&&n.length&&p(250)}function l(t,r,i,o){return $i(e,t,i,o,(function(e,i,o){o?(e.unchangedPolls=0,t!==n&&(t[i]=void 0,a=e,n.push(a),d(250))):e.unchangedPolls!==Wi[r]?e.unchangedPolls++:t===n?(e.unchangedPolls=1,t[i]=void 0,u(e,250)):2e3!==r&&(e.unchangedPolls++,t[i]=void 0,u(e,250===r?500:2e3));var a}))}function _(e){switch(e){case 250:return r;case 500:return i;case 2e3:return o}}function u(e,t){_(t).push(e),d(t)}function d(e){_(e).pollScheduled||p(e)}function p(t){_(t).pollScheduled=e.setTimeout(250===t?c:s,t,250===t?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",_(t))}}function Ki(e,t,n,r){const i=We(),o=r?new Map:void 0,a=new Map,s=Vt(t);return function(t,r,c,l){const _=s(t);1===i.add(_,r).length&&o&&o.set(_,n(t)||Ji);const u=Fo(_)||".",d=a.get(u)||function(t,r,c){const l=e(t,1,((e,r)=>{if(!Ye(r))return;const a=Jo(r,t),c=s(a),l=a&&i.get(c);if(l){let t,r=1;if(o){const i=o.get(c);if("change"===e&&(t=n(a)||Ji,t.getTime()===i.getTime()))return;t||(t=n(a)||Ji),o.set(c,t),i===Ji?r=0:t===Ji&&(r=2)}for(const e of l)e(a,r,t)}}),!1,500,c);return l.referenceCount=0,a.set(r,l),l}(Fo(t)||".",u,l);return d.referenceCount++,{close:()=>{1===d.referenceCount?(d.close(),a.delete(u)):d.referenceCount--,i.remove(_,r)}}}}function Gi(e,t,n,r,i){const o=Vt(t)(n),a=e.get(o);return a?a.callbacks.push(r):e.set(o,{watcher:i(((t,n,r)=>{var i;return null==(i=e.get(o))?void 0:i.callbacks.slice().forEach((e=>e(t,n,r)))})),callbacks:[r]}),{close:()=>{const t=e.get(o);t&&Jt(t.callbacks,r)&&!t.callbacks.length&&(e.delete(o),$U(t))}}}function Xi(e,t){const n=e.mtime.getTime(),r=t.getTime();return n!==r&&(e.mtime=t,e.callback(e.fileName,Qi(n,r),t),!0)}function Qi(e,t){return 0===e?0:0===t?2:1}var Yi=["/node_modules/.","/.git","/.#"],Zi=nt;function eo(e){return Zi(e)}function to(e){Zi=e}function no({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:n,getAccessibleSortedChildDirectories:r,fileSystemEntryExists:i,realpath:o,setTimeout:a,clearTimeout:c}){const l=new Map,_=We(),u=new Map;let d;const p=Ct(!t),f=Vt(t);return(t,n,r,i)=>r?m(t,i,n):e(t,n,r,i);function m(t,n,r,o){const p=f(t);let m=l.get(p);m?m.refCount++:(m={watcher:e(t,(e=>{var r;x(e,n)||((null==n?void 0:n.synchronousWatchDirectory)?((null==(r=l.get(p))?void 0:r.targetWatcher)||g(t,p,e),b(t,p,n)):function(e,t,n,r){const o=l.get(t);if(o&&i(e,1))return void function(e,t,n,r){const i=u.get(t);i?i.fileNames.push(n):u.set(t,{dirName:e,options:r,fileNames:[n]});d&&(c(d),d=void 0);d=a(h,1e3,"timerToUpdateChildWatches")}(e,t,n,r);g(e,t,n),v(o),y(o)}(t,p,e,n))}),!1,n),refCount:1,childWatches:s,targetWatcher:void 0,links:void 0},l.set(p,m),b(t,p,n)),o&&(m.links??(m.links=new Set)).add(o);const k=r&&{dirName:t,callback:r};return k&&_.add(p,k),{dirName:t,close:()=>{var e;const t=_n.checkDefined(l.get(p));k&&_.remove(p,k),o&&(null==(e=t.links)||e.delete(o)),t.refCount--,t.refCount||(l.delete(p),t.links=void 0,$U(t),v(t),t.childWatches.forEach(ix))}}}function g(e,t,n,r){var i,o;let a,s;Ye(n)?a=n:s=n,_.forEach(((e,n)=>{if((!s||!0!==s.get(n))&&(n===t||Kt(t,n)&&t[n.length]===_o))if(s)if(r){const e=s.get(n);e?e.push(...r):s.set(n,r.slice())}else s.set(n,!0);else e.forEach((({callback:e})=>e(a)))})),null==(o=null==(i=l.get(t))?void 0:i.links)||o.forEach((t=>{const n=n=>Ro(t,ia(e,n,f));s?g(t,f(t),s,null==r?void 0:r.map(n)):g(t,f(t),n(a))}))}function h(){var e;d=void 0,eo(`sysLog:: onTimerToUpdateChildWatches:: ${u.size}`);const t=qn(),n=new Map;for(;!d&&u.size;){const t=u.entries().next();_n.assert(!t.done);const{value:[r,{dirName:i,options:o,fileNames:a}]}=t;u.delete(r);const s=b(i,r,o);(null==(e=l.get(r))?void 0:e.targetWatcher)||g(i,r,n,s?void 0:a)}eo(`sysLog:: invokingWatchers:: Elapsed:: ${qn()-t}ms:: ${u.size}`),_.forEach(((e,t)=>{const r=n.get(t);r&&e.forEach((({callback:e,dirName:t})=>{Xe(r)?r.forEach(e):e(t)}))}));eo(`sysLog:: Elapsed:: ${qn()-t}ms:: onTimerToUpdateChildWatches:: ${u.size} ${d}`)}function y(e){if(!e)return;const t=e.childWatches;e.childWatches=s;for(const e of t)e.close(),y(l.get(f(e.dirName)))}function v(e){(null==e?void 0:e.targetWatcher)&&(e.targetWatcher.close(),e.targetWatcher=void 0)}function b(e,t,n){const a=l.get(t);if(!a)return!1;const c=zo(o(e));let _,u;return 0===p(c,e)?_=rn(i(e,1)?R(r(e),(t=>{const r=Jo(t,e);return x(r,n)||0!==p(r,zo(o(r)))?void 0:r})):s,a.childWatches,((e,t)=>p(e,t.dirName)),(function(e){d(m(e,n))}),ix,d):a.targetWatcher&&0===p(c,a.targetWatcher.dirName)?(_=!1,_n.assert(a.childWatches===s)):(v(a),a.targetWatcher=m(c,n,void 0,e),a.childWatches.forEach(ix),_=!0),a.childWatches=u||s,_;function d(e){(u||(u=[])).push(e)}}function x(e,r){return V(Yi,(n=>function(e,n){return!!e.includes(n)||!t&&f(e).includes(n)}(e,n)))||io(e,r,t,n)}}var ro=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(ro||{});function io(e,t,n,r){return((null==t?void 0:t.excludeDirectories)||(null==t?void 0:t.excludeFiles))&&($j(e,null==t?void 0:t.excludeFiles,n,r())||$j(e,null==t?void 0:t.excludeDirectories,n,r()))}function oo(e,t,n,r,i){return(o,a)=>{if("rename"===o){const o=a?zo(Ro(e,a)):e;a&&io(o,n,r,i)||t(o)}}}function ao({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:n,clearTimeout:r,fsWatchWorker:i,fileSystemEntryExists:o,useCaseSensitiveFileNames:a,getCurrentDirectory:s,fsSupportsRecursiveFsWatch:c,getAccessibleSortedChildDirectories:l,realpath:_,tscWatchFile:u,useNonPollingWatchers:d,tscWatchDirectory:p,inodeWatching:f,fsWatchWithTimestamp:m,sysLog:g}){const h=new Map,y=new Map,v=new Map;let b,x,k,S,T=!1;return{watchFile:C,watchDirectory:function(e,t,i,u){if(c)return P(e,1,oo(e,t,u,a,s),i,500,WU(u));S||(S=no({useCaseSensitiveFileNames:a,getCurrentDirectory:s,fileSystemEntryExists:o,getAccessibleSortedChildDirectories:l,watchDirectory:F,realpath:_,setTimeout:n,clearTimeout:r}));return S(e,t,i,u)}};function C(e,n,r,i){i=function(e,t){if(e&&void 0!==e.watchFile)return e;switch(u){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return N(4,1,e);case"UseFsEventsWithFallbackDynamicPolling":return N(4,2,e);case"UseFsEventsOnParentDirectory":t=!0;default:return t?N(5,1,e):{watchFile:4}}}(i,d);const o=_n.checkDefined(i.watchFile);switch(o){case 0:return E(e,n,250,void 0);case 1:return E(e,n,r,void 0);case 2:return w()(e,n,r,void 0);case 3:return D()(e,n,void 0,void 0);case 4:return P(e,0,function(e,t,n){return(r,i,o)=>{"rename"===r?(o||(o=n(e)||Ji),t(e,o!==Ji?0:2,o)):t(e,1,o)}}(e,n,t),!1,r,WU(i));case 5:return k||(k=Ki(P,a,t,m)),k(e,n,r,WU(i));default:_n.assertNever(o)}}function w(){return b||(b=Hi({getModifiedTime:t,setTimeout:n}))}function D(){return x||(x=function(e){const t=[];let n,r=0;return function(n,r){const i={fileName:n,callback:r,mtime:zi(e,n)};return t.push(i),o(),{close:()=>{i.isClosed=!0,Ut(t,i)}}};function i(){n=void 0,r=$i(e,t,r,Vi[250]),o()}function o(){t.length&&!n&&(n=e.setTimeout(i,2e3,"pollQueue"))}}({getModifiedTime:t,setTimeout:n}))}function N(e,t,n){const r=null==n?void 0:n.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===r?t:r}}function F(e,t,n,r){_n.assert(!n);const i=function(e){if(e&&void 0!==e.watchDirectory)return e;switch(p){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const t=null==e?void 0:e.fallbackPolling;return{watchDirectory:0,fallbackPolling:void 0!==t?t:void 0}}}(r),o=_n.checkDefined(i.watchDirectory);switch(o){case 1:return E(e,(()=>t(e)),500,void 0);case 2:return w()(e,(()=>t(e)),500,void 0);case 3:return D()(e,(()=>t(e)),void 0,void 0);case 0:return P(e,1,oo(e,t,r,a,s),n,500,WU(i));default:_n.assertNever(o)}}function E(t,n,r,i){return Gi(h,a,t,n,(n=>e(t,n,r,i)))}function P(e,n,r,s,c,l){return Gi(s?v:y,a,e,r,(r=>function(e,n,r,a,s,c){let l,_;f&&(l=e.substring(e.lastIndexOf(_o)),_=l.slice(_o.length));let u=o(e,n)?p():v();return{close:()=>{u&&(u.close(),u=void 0)}};function d(t){u&&(g(`sysLog:: ${e}:: Changing watcher to ${t===p?"Present":"Missing"}FileSystemEntryWatcher`),u.close(),u=t())}function p(){if(T)return g(`sysLog:: ${e}:: Defaulting to watchFile`),y();try{const t=(1!==n&&m?A:i)(e,a,f?h:r);return t.on("error",(()=>{r("rename",""),d(v)})),t}catch(t){return T||(T="ENOSPC"===t.code),g(`sysLog:: ${e}:: Changing to watchFile`),y()}}function h(n,i){let o;if(i&&jt(i,"~")&&(o=i,i=i.slice(0,i.length-1)),"rename"!==n||i&&i!==_&&!jt(i,l))o&&r(n,o),r(n,i);else{const a=t(e)||Ji;o&&r(n,o,a),r(n,i,a),f?d(a===Ji?v:p):a===Ji&&d(v)}}function y(){return C(e,function(e){return(t,n,r)=>e(1===n?"change":"rename","",r)}(r),s,c)}function v(){return C(e,((n,i,o)=>{0===i&&(o||(o=t(e)||Ji),o!==Ji&&(r("rename","",o),d(p)))}),s,c)}}(e,n,r,s,c,l)))}function A(e,n,r){let o=t(e)||Ji;return i(e,n,((n,i,a)=>{"change"===n&&(a||(a=t(e)||Ji),a.getTime()===o.getTime())||(o=a||t(e)||Ji,r(n,i,o))}))}}function so(e){const t=e.writeFile;e.writeFile=(n,r,i)=>nv(n,r,!!i,((n,r,i)=>t.call(e,n,r,i)),(t=>e.createDirectory(t)),(t=>e.directoryExists(t)))}var co=(()=>{let e;return ln()&&(e=function(){const e=/^native |^\([^)]+\)$|^(?:internal[\\/]|[\w\s]+(?:\.js)?$)/,t=require("fs"),n=require("path"),r=require("os");let i,o;try{i=require("crypto")}catch{i=void 0}let a="./profile.cpuprofile";const s="darwin"===process.platform,c="linux"===process.platform||s,l={throwIfNoEntry:!1},_=r.platform(),u="win32"!==_&&"win64"!==_&&!C((v=__filename,v.replace(/\w/g,(e=>{const t=e.toUpperCase();return e===t?e.toLowerCase():t})))),d=t.realpathSync.native?"win32"===process.platform?function(e){return e.length<260?t.realpathSync.native(e):t.realpathSync(e)}:t.realpathSync.native:t.realpathSync,p=__filename.endsWith("sys.js")?n.join(n.dirname(__dirname),"__fake__.js"):__filename,f="win32"===process.platform||s,m=ut((()=>process.cwd())),{watchFile:g,watchDirectory:h}=ao({pollingWatchFileWorker:function(e,n,r){let i;return t.watchFile(e,{persistent:!0,interval:r},o),{close:()=>t.unwatchFile(e,o)};function o(t,r){const o=0==+r.mtime||2===i;if(0==+t.mtime){if(o)return;i=2}else if(o)i=0;else{if(+t.mtime==+r.mtime)return;i=1}n(e,i,t.mtime)}},getModifiedTime:D,setTimeout:setTimeout,clearTimeout:clearTimeout,fsWatchWorker:function(e,n,r){return t.watch(e,f?{persistent:!0,recursive:!!n}:{persistent:!0},r)},useCaseSensitiveFileNames:u,getCurrentDirectory:m,fileSystemEntryExists:T,fsSupportsRecursiveFsWatch:f,getAccessibleSortedChildDirectories:e=>S(e).directories,realpath:w,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:c,fsWatchWithTimestamp:s,sysLog:eo}),y={args:process.argv.slice(2),newLine:r.EOL,useCaseSensitiveFileNames:u,write(e){process.stdout.write(e)},getWidthOfTerminal:()=>process.stdout.columns,writeOutputIsTTY:()=>process.stdout.isTTY,readFile:function(e,n){let r;try{r=t.readFileSync(e)}catch{return}let i=r.length;if(i>=2&&254===r[0]&&255===r[1]){i&=-2;for(let e=0;e=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):i>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")},writeFile:function(e,n,r){let i;r&&(n="\ufeff"+n);try{i=t.openSync(e,"w"),t.writeSync(i,n,void 0,"utf8")}finally{void 0!==i&&t.closeSync(i)}},watchFile:g,watchDirectory:h,preferNonRecursiveWatch:!f,resolvePath:e=>n.resolve(e),fileExists:C,directoryExists:function(e){return T(e,1)},getAccessibleFileSystemEntries:S,createDirectory(e){if(!y.directoryExists(e))try{t.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:()=>p,getCurrentDirectory:m,getDirectories:function(e){return S(e).directories.slice()},getEnvironmentVariable:e=>process.env[e]||"",readDirectory:function(e,t,n,r,i){return vS(e,t,n,r,u,process.cwd(),i,S,w)},getModifiedTime:D,setModifiedTime:function(e,n){try{t.utimesSync(e,n,n)}catch{return}},deleteFile:function(e){try{return t.unlinkSync(e)}catch{return}},createHash:i?N:ji,createSHA256Hash:i?N:void 0,getMemoryUsage:()=>(global.gc&&global.gc(),process.memoryUsage().heapUsed),getFileSize(e){const t=b(e);return(null==t?void 0:t.isFile())?t.size:0},exit(e){x((()=>process.exit(e)))},enableCPUProfiler:function(e,t){if(o)return t(),!1;const n=require("inspector");if(!n||!n.Session)return t(),!1;const r=new n.Session;return r.connect(),r.post("Profiler.enable",(()=>{r.post("Profiler.start",(()=>{o=r,a=e,t()}))})),!0},disableCPUProfiler:x,cpuProfilingEnabled:()=>!!o||k(process.execArgv,"--cpu-prof")||k(process.execArgv,"--prof"),realpath:w,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||V(process.execArgv,(e=>/^--(?:inspect|debug)(?:-brk)?(?:=\d+)?$/i.test(e)))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{require("source-map-support").install()}catch{}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:()=>{process.stdout.write("")},setBlocking:()=>{var e;const t=null==(e=process.stdout)?void 0:e._handle;t&&t.setBlocking&&t.setBlocking(!0)},base64decode:e=>Buffer.from(e,"base64").toString("utf8"),base64encode:e=>Buffer.from(e).toString("base64"),require:(e,t)=>{try{const n=KR(t,e,y);return{module:require(n),modulePath:n,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};var v;return y;function b(e){try{return t.statSync(e,l)}catch{return}}function x(r){if(o&&"stopping"!==o){const i=o;return o.post("Profiler.stop",((s,{profile:c})=>{var l;if(!s){(null==(l=b(a))?void 0:l.isDirectory())&&(a=n.join(a,`${(new Date).toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`));try{t.mkdirSync(n.dirname(a),{recursive:!0})}catch{}t.writeFileSync(a,JSON.stringify(function(t){let r=0;const i=new Map,o=Lo(n.dirname(p)),a=`file://${1===No(o)?"":"/"}${o}`;for(const n of t.nodes)if(n.callFrame.url){const t=Lo(n.callFrame.url);ta(a,t,u)?n.callFrame.url=sa(a,t,a,Vt(u),!0):e.test(t)||(n.callFrame.url=(i.has(t)?i:i.set(t,`external${r}.js`)).get(t),r++)}return t}(c)))}o=void 0,i.disconnect(),r()})),o="stopping",!0}return r(),!1}function S(e){try{const n=t.readdirSync(e||".",{withFileTypes:!0}),r=[],i=[];for(const t of n){const n="string"==typeof t?t:t.name;if("."===n||".."===n)continue;let o;if("string"==typeof t||t.isSymbolicLink()){if(o=b(Ro(e,n)),!o)continue}else o=t;o.isFile()?r.push(n):o.isDirectory()&&i.push(n)}return r.sort(),i.sort(),{files:r,directories:i}}catch{return oT}}function T(e,t){const n=b(e);if(!n)return!1;switch(t){case 0:return n.isFile();case 1:return n.isDirectory();default:return!1}}function C(e){return T(e,0)}function w(e){try{return d(e)}catch{return e}}function D(e){var t;return null==(t=b(e))?void 0:t.mtime}function N(e){const t=i.createHash("sha256");return t.update(e),t.digest("hex")}}()),e&&so(e),e})();function lo(e){co=e}co&&co.getEnvironmentVariable&&(!function(e){if(!e.getEnvironmentVariable)return;const t=function(e,t){const r=n("TSC_WATCH_POLLINGINTERVAL");return!!r&&(i("Low"),i("Medium"),i("High"),!0);function i(e){t[e]=r[e]||t[e]}}(0,Bi);function n(t){let n;return r("Low"),r("Medium"),r("High"),n;function r(r){const i=function(t,n){return e.getEnvironmentVariable(`${t}_${n.toUpperCase()}`)}(t,r);i&&((n||(n={}))[r]=Number(i))}}function r(e,r){const i=n(e);return(t||i)&&qi(i?{...r,...i}:r)}Vi=r("TSC_WATCH_POLLINGCHUNKSIZE",Ui)||Vi,Wi=r("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",Ui)||Wi}(co),_n.setAssertionLevel(/^development$/i.test(co.getEnvironmentVariable("NODE_ENV"))?1:0)),co&&co.debugMode&&(_n.isDebugging=!0);var _o="/",uo="\\",po="://",fo=/\\/g;function mo(e){return 47===e||92===e}function go(e){return Do(e)<0}function ho(e){return Do(e)>0}function yo(e){const t=Do(e);return t>0&&t===e.length}function vo(e){return 0!==Do(e)}function bo(e){return/^\.\.?(?:$|[\\/])/.test(e)}function xo(e){return!vo(e)&&!bo(e)}function ko(e){return Eo(e).includes(".")}function So(e,t){return e.length>t.length&&jt(e,t)}function To(e,t){for(const n of t)if(So(e,n))return!0;return!1}function Co(e){return e.length>0&&mo(e.charCodeAt(e.length-1))}function wo(e){return e>=97&&e<=122||e>=65&&e<=90}function Do(e){if(!e)return 0;const t=e.charCodeAt(0);if(47===t||92===t){if(e.charCodeAt(1)!==t)return 1;const n=e.indexOf(47===t?_o:uo,2);return n<0?e.length:n+1}if(wo(t)&&58===e.charCodeAt(1)){const t=e.charCodeAt(2);if(47===t||92===t)return 3;if(2===e.length)return 2}const n=e.indexOf(po);if(-1!==n){const t=n+po.length,r=e.indexOf(_o,t);if(-1!==r){const i=e.slice(0,n),o=e.slice(t,r);if("file"===i&&(""===o||"localhost"===o)&&wo(e.charCodeAt(r+1))){const t=function(e,t){const n=e.charCodeAt(t);if(58===n)return t+1;if(37===n&&51===e.charCodeAt(t+1)){const n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(e,r+2);if(-1!==t){if(47===e.charCodeAt(t))return~(t+1);if(t===e.length)return~t}}return~(r+1)}return~e.length}return 0}function No(e){const t=Do(e);return t<0?~t:t}function Fo(e){const t=No(e=Lo(e));return t===e.length?e:(e=Wo(e)).slice(0,Math.max(t,e.lastIndexOf(_o)))}function Eo(e,t,n){if(No(e=Lo(e))===e.length)return"";const r=(e=Wo(e)).slice(Math.max(No(e),e.lastIndexOf(_o)+1)),i=void 0!==t&&void 0!==n?Ao(r,t,n):void 0;return i?r.slice(0,r.length-i.length):r}function Po(e,t,n){if(Kt(t,".")||(t="."+t),e.length>=t.length&&46===e.charCodeAt(e.length-t.length)){const r=e.slice(e.length-t.length);if(n(r,t))return r}}function Ao(e,t,n){if(t)return function(e,t,n){if("string"==typeof t)return Po(e,t,n)||"";for(const r of t){const t=Po(e,r,n);if(t)return t}return""}(Wo(e),t,n?mt:gt);const r=Eo(e),i=r.lastIndexOf(".");return i>=0?r.substring(i):""}function Io(e,t=""){return function(e,t){const n=e.substring(0,t),r=e.substring(t).split(_o);return r.length&&!he(r)&&r.pop(),[n,...r]}(e=Ro(t,e),No(e))}function Oo(e,t){if(0===e.length)return"";return(e[0]&&$o(e[0]))+e.slice(1,t).join(_o)}function Lo(e){return e.includes("\\")?e.replace(fo,_o):e}function jo(e){if(!V(e))return[];const t=[e[0]];for(let n=1;n1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(r)}}return t}function Ro(e,...t){e&&(e=Lo(e));for(let n of t)n&&(n=Lo(n),e=e&&0===No(n)?$o(e)+n:n);return e}function Mo(e,...t){return zo(V(t)?Ro(e,...t):Lo(e))}function Bo(e,t){return jo(Io(e,t))}function Jo(e,t){let n=No(e);0===n&&t?n=No(e=Ro(t,e)):e=Lo(e);const r=qo(e);if(void 0!==r)return r.length>n?Wo(r):r;const i=e.length,o=e.substring(0,n);let a,s=n,c=s,l=s,_=0!==n;for(;sc&&(a??(a=e.substring(0,c-1)),c=s);let r=e.indexOf(_o,s+1);-1===r&&(r=i);const u=r-c;if(1===u&&46===e.charCodeAt(s))a??(a=e.substring(0,l));else if(2===u&&46===e.charCodeAt(s)&&46===e.charCodeAt(s+1))if(_)if(void 0===a)a=l-2>=0?e.substring(0,Math.max(n,e.lastIndexOf(_o,l-2))):e.substring(0,l);else{const e=a.lastIndexOf(_o);a=-1!==e?a.substring(0,Math.max(n,e)):o,a.length===n&&(_=0!==n)}else void 0!==a?a+=a.length===n?"..":"/..":l=s+2;else void 0!==a?(a.length!==n&&(a+=_o),_=!0,a+=e.substring(c,r)):(_=!0,l=r);s=r+1}return a??(i>n?Wo(e):e)}function zo(e){let t=qo(e=Lo(e));return void 0!==t?t:(t=Jo(e,""),t&&Co(e)?$o(t):t)}function qo(e){if(!Xo.test(e))return e;let t=e.replace(/\/\.\//g,"/");return t.startsWith("./")&&(t=t.slice(2)),t===e||(e=t,Xo.test(e))?void 0:e}function Uo(e,t){return 0===(n=Bo(e,t)).length?"":n.slice(1).join(_o);var n}function Vo(e,t,n){return n(ho(e)?zo(e):Jo(e,t))}function Wo(e){return Co(e)?e.substr(0,e.length-1):e}function $o(e){return Co(e)?e:e+_o}function Ho(e){return vo(e)||bo(e)?e:"./"+e}function Ko(e,t,n,r){const i=void 0!==n&&void 0!==r?Ao(e,n,r):Ao(e);return i?e.slice(0,e.length-i.length)+(Kt(t,".")?t:"."+t):e}function Go(e,t){const n=vO(e);return n?e.slice(0,e.length-n.length)+(Kt(t,".")?t:"."+t):Ko(e,t)}var Xo=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function Qo(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=e.substring(0,No(e)),i=t.substring(0,No(t)),o=kt(r,i);if(0!==o)return o;const a=e.substring(r.length),s=t.substring(i.length);if(!Xo.test(a)&&!Xo.test(s))return n(a,s);const c=jo(Io(e)),l=jo(Io(t)),_=Math.min(c.length,l.length);for(let e=1;e<_;e++){const t=n(c[e],l[e]);if(0!==t)return t}return yt(c.length,l.length)}function Yo(e,t){return Qo(e,t,Tt)}function Zo(e,t){return Qo(e,t,kt)}function ea(e,t,n,r){return"string"==typeof n?(e=Ro(n,e),t=Ro(n,t)):"boolean"==typeof n&&(r=n),Qo(e,t,Ct(r))}function ta(e,t,n,r){if("string"==typeof n?(e=Ro(n,e),t=Ro(n,t)):"boolean"==typeof n&&(r=n),void 0===e||void 0===t)return!1;if(e===t)return!0;const i=jo(Io(e)),o=jo(Io(t));if(o.length0==No(t)>0,"Paths must either both be absolute or both be relative");return Oo(ra(e,t,"boolean"==typeof n&&n?mt:gt,"function"==typeof n?n:at))}function oa(e,t,n){return ho(e)?sa(t,e,t,n,!1):e}function aa(e,t,n){return Ho(ia(Fo(e),t,n))}function sa(e,t,n,r,i){const o=ra(Mo(n,e),Mo(n,t),gt,r),a=o[0];if(i&&ho(a)){const e=a.charAt(0)===_o?"file://":"file:///";o[0]=e+a}return Oo(o)}function ca(e,t){for(;;){const n=t(e);if(void 0!==n)return n;const r=Fo(e);if(r===e)return;e=r}}function la(e){return jt(e,"/node_modules")}function _a(e,t,n,r,i,o,a){return{code:e,category:t,key:n,message:r,reportsUnnecessary:i,elidedInCompatabilityPyramid:o,reportsDeprecated:a}}var ua={Unterminated_string_literal:_a(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:_a(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:_a(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:_a(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:_a(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:_a(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:_a(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:_a(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:_a(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:_a(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:_a(1014,1,"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:_a(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:_a(1016,1,"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:_a(1017,1,"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:_a(1018,1,"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:_a(1019,1,"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:_a(1020,1,"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:_a(1021,1,"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:_a(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:_a(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:_a(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:_a(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:_a(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:_a(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:_a(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:_a(1034,1,"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:_a(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:_a(1036,1,"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:_a(1038,1,"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:_a(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:_a(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:_a(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:_a(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:_a(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:_a(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:_a(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:_a(1049,1,"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:_a(1051,1,"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:_a(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:_a(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:_a(1054,1,"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_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:_a(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:_a(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:_a(1058,1,"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:_a(1059,1,"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:_a(1060,1,"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:_a(1061,1,"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:_a(1062,1,"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:_a(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:_a(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:_a(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:_a(1066,1,"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:_a(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:_a(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:_a(1070,1,"_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:_a(1071,1,"_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:_a(1079,1,"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:_a(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:_a(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:_a(1090,1,"_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:_a(1091,1,"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:_a(1092,1,"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:_a(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:_a(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:_a(1095,1,"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:_a(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:_a(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:_a(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:_a(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:_a(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:_a(1101,1,"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:_a(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:_a(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:_a(1104,1,"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:_a(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:_a(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:_a(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:_a(1108,1,"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:_a(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:_a(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:_a(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:_a(1113,1,"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:_a(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:_a(1115,1,"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:_a(1116,1,"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:_a(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:_a(1118,1,"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:_a(1119,1,"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:_a(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:_a(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:_a(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:_a(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:_a(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:_a(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:_a(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:_a(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:_a(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:_a(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:_a(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:_a(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:_a(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:_a(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:_a(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:_a(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:_a(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:_a(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:_a(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:_a(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:_a(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:_a(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:_a(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:_a(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:_a(1147,1,"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:_a(1148,1,"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:_a(1149,1,"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."),_0_declarations_must_be_initialized:_a(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:_a(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:_a(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:_a(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:_a(1162,1,"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:_a(1163,1,"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:_a(1164,1,"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:_a(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:_a(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:_a(1168,1,"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:_a(1169,1,"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:_a(1170,1,"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:_a(1171,1,"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:_a(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:_a(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:_a(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:_a(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:_a(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:_a(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:_a(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:_a(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:_a(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:_a(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:_a(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:_a(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:_a(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:_a(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:_a(1186,1,"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:_a(1187,1,"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:_a(1188,1,"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:_a(1189,1,"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:_a(1190,1,"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:_a(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:_a(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:_a(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:_a(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:_a(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:_a(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:_a(1197,1,"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:_a(1198,1,"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:_a(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:_a(1200,1,"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:_a(1202,1,"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:_a(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:_a(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:_a(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:_a(1207,1,"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."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:_a(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:_a(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:_a(1211,1,"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:_a(1212,1,"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:_a(1213,1,"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:_a(1214,1,"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:_a(1215,1,"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:_a(1216,1,"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:_a(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:_a(1221,1,"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:_a(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:_a(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:_a(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:_a(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:_a(1226,1,"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:_a(1227,1,"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:_a(1228,1,"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:_a(1229,1,"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:_a(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:_a(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:_a(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:_a(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:_a(1234,1,"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_at_the_top_level_of_a_namespace_or_module:_a(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:_a(1236,1,"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:_a(1237,1,"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:_a(1238,1,"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:_a(1239,1,"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:_a(1240,1,"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:_a(1241,1,"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:_a(1242,1,"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:_a(1243,1,"_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:_a(1244,1,"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:_a(1245,1,"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:_a(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:_a(1247,1,"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:_a(1248,1,"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:_a(1249,1,"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_ES5:_a(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:_a(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:_a(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:_a(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:_a(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:_a(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:_a(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:_a(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:_a(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:_a(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:_a(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:_a(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:_a(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:_a(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:_a(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:_a(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:_a(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:_a(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:_a(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:_a(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:_a(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:_a(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:_a(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:_a(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:_a(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:_a(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:_a(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:_a(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:_a(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:_a(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:_a(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:_a(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:_a(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:_a(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:_a(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:_a(1286,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:_a(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:_a(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:_a(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:_a(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:_a(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:_a(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:_a(1293,1,"ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled:_a(1294,1,"This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294","This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript:_a(1295,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript."),with_statements_are_not_allowed_in_an_async_function_block:_a(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:_a(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:_a(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:_a(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:_a(1313,1,"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:_a(1314,1,"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:_a(1315,1,"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:_a(1316,1,"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:_a(1317,1,"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:_a(1318,1,"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:_a(1319,1,"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:_a(1320,1,"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:_a(1321,1,"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:_a(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext:_a(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve:_a(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'node20', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:_a(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:_a(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:_a(1327,1,"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:_a(1328,1,"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:_a(1329,1,"_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:_a(1330,1,"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:_a(1331,1,"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:_a(1332,1,"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:_a(1333,1,"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:_a(1334,1,"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:_a(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:_a(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:_a(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:_a(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:_a(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:_a(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext:_a(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', or 'nodenext'."),A_label_is_not_allowed_here:_a(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:_a(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:_a(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:_a(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:_a(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:_a(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:_a(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:_a(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:_a(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:_a(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:_a(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertion_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:_a(1355,1,"A_const_assertion_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_o_1355","A 'const' assertion can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:_a(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:_a(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:_a(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:_a(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:_a(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:_a(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:_a(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:_a(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:_a(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:_a(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:_a(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:_a(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:_a(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:_a(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:_a(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:_a(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:_a(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:_a(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:_a(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:_a(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:_a(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:_a(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:_a(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:_a(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:_a(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:_a(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:_a(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:_a(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:_a(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:_a(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:_a(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:_a(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:_a(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:_a(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:_a(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:_a(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:_a(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:_a(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:_a(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:_a(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:_a(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:_a(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:_a(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:_a(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:_a(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:_a(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:_a(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:_a(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:_a(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:_a(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:_a(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:_a(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:_a(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:_a(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:_a(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:_a(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:_a(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:_a(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:_a(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:_a(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:_a(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:_a(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:_a(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:_a(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:_a(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:_a(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:_a(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:_a(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:_a(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:_a(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:_a(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:_a(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:_a(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:_a(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:_a(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:_a(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:_a(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:_a(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:_a(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:_a(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:_a(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:_a(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:_a(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:_a(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:_a(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:_a(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:_a(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:_a(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:_a(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:_a(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",'File is ECMAScript module because \'{0}\' has field "type" with value "module"'),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:_a(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",'File is CommonJS module because \'{0}\' has field "type" whose value is not "module"'),File_is_CommonJS_module_because_0_does_not_have_field_type:_a(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460","File is CommonJS module because '{0}' does not have field \"type\""),File_is_CommonJS_module_because_package_json_was_not_found:_a(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:_a(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:_a(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:_a(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:_a(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:_a(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:_a(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:_a(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:_a(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:_a(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:_a(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:_a(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:_a(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479","The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead."),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:_a(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:_a(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481","To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field `\"type\": \"module\"` to '{1}'."),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:_a(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:_a(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:_a(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:_a(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:_a(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:_a(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:_a(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:_a(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:_a(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:_a(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:_a(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:_a(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:_a(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:_a(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:_a(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:_a(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:_a(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:_a(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:_a(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:_a(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:_a(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:_a(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:_a(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:_a(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:_a(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:_a(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:_a(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:_a(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:_a(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:_a(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:_a(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:_a(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:_a(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:_a(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:_a(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:_a(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:_a(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:_a(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:_a(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:_a(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:_a(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:_a(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:_a(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:_a(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:_a(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:_a(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:_a(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:_a(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:_a(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:_a(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:_a(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:_a(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:_a(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:_a(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:_a(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:_a(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:_a(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:_a(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:_a(1540,1,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead."),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:_a(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:_a(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:_a(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543","Importing a JSON file into an ECMAScript module requires a 'type: \"json\"' import attribute when 'module' is set to '{0}'."),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:_a(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),using_declarations_are_not_allowed_in_ambient_contexts:_a(1545,1,"using_declarations_are_not_allowed_in_ambient_contexts_1545","'using' declarations are not allowed in ambient contexts."),await_using_declarations_are_not_allowed_in_ambient_contexts:_a(1546,1,"await_using_declarations_are_not_allowed_in_ambient_contexts_1546","'await using' declarations are not allowed in ambient contexts."),using_declarations_are_not_allowed_in_case_or_default_clauses_unless_contained_within_a_block:_a(1547,1,"using_declarations_are_not_allowed_in_case_or_default_clauses_unless_contained_within_a_block_1547","'using' declarations are not allowed in 'case' or 'default' clauses unless contained within a block."),await_using_declarations_are_not_allowed_in_case_or_default_clauses_unless_contained_within_a_block:_a(1548,1,"await_using_declarations_are_not_allowed_in_case_or_default_clauses_unless_contained_within_a_block_1548","'await using' declarations are not allowed in 'case' or 'default' clauses unless contained within a block."),Ignore_the_tsconfig_found_and_build_with_commandline_options_and_files:_a(1549,3,"Ignore_the_tsconfig_found_and_build_with_commandline_options_and_files_1549","Ignore the tsconfig found and build with commandline options and files."),The_types_of_0_are_incompatible_between_these_types:_a(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:_a(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:_a(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:_a(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:_a(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:_a(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:_a(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:_a(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:_a(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:_a(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:_a(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:_a(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:_a(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:_a(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:_a(2301,1,"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:_a(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:_a(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:_a(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:_a(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:_a(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:_a(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:_a(2308,1,"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:_a(2309,1,"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:_a(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:_a(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:_a(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:_a(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:_a(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:_a(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:_a(2316,1,"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:_a(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:_a(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:_a(2319,1,"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:_a(2320,1,"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:_a(2321,1,"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:_a(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:_a(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:_a(2324,1,"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:_a(2325,1,"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:_a(2326,1,"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:_a(2327,1,"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:_a(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:_a(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:_a(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:_a(2331,1,"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:_a(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:_a(2334,1,"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:_a(2335,1,"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:_a(2336,1,"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:_a(2337,1,"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:_a(2338,1,"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:_a(2339,1,"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:_a(2340,1,"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:_a(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:_a(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:_a(2344,1,"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:_a(2345,1,"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:_a(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:_a(2347,1,"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:_a(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:_a(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:_a(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:_a(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:_a(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:_a(2353,1,"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:_a(2354,1,"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_undefined_void_nor_any_must_return_a_value:_a(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:_a(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:_a(2357,1,"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:_a(2358,1,"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_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:_a(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:_a(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:_a(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:_a(2364,1,"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:_a(2365,1,"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:_a(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:_a(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:_a(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:_a(2369,1,"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:_a(2370,1,"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:_a(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:_a(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:_a(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:_a(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:_a(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:_a(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:_a(2377,1,"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:_a(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:_a(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:_a(2383,1,"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:_a(2384,1,"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:_a(2385,1,"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:_a(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:_a(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:_a(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:_a(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:_a(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:_a(2391,1,"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:_a(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:_a(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:_a(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:_a(2395,1,"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:_a(2396,1,"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:_a(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:_a(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:_a(2399,1,"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:_a(2400,1,"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."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:_a(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:_a(2402,1,"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:_a(2403,1,"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:_a(2404,1,"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:_a(2405,1,"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:_a(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:_a(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:_a(2408,1,"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:_a(2409,1,"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:_a(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:_a(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:_a(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:_a(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:_a(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:_a(2415,1,"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:_a(2416,1,"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:_a(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:_a(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:_a(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:_a(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:_a(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:_a(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:_a(2425,1,"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:_a(2426,1,"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:_a(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:_a(2428,1,"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:_a(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:_a(2431,1,"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:_a(2432,1,"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:_a(2433,1,"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:_a(2434,1,"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:_a(2435,1,"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:_a(2436,1,"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:_a(2437,1,"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:_a(2438,1,"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:_a(2439,1,"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:_a(2440,1,"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:_a(2441,1,"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:_a(2442,1,"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:_a(2443,1,"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:_a(2444,1,"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:_a(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:_a(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:_a(2447,1,"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:_a(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:_a(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:_a(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:_a(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:_a(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:_a(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:_a(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:_a(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:_a(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:_a(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:_a(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:_a(2461,1,"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:_a(2462,1,"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:_a(2463,1,"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:_a(2464,1,"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:_a(2465,1,"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:_a(2466,1,"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:_a(2467,1,"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:_a(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:_a(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:_a(2472,1,"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:_a(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:_a(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),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(2475,1,"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:_a(2476,1,"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:_a(2477,1,"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:_a(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:_a(2480,1,"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:_a(2481,1,"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:_a(2483,1,"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:_a(2484,1,"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:_a(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:_a(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:_a(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:_a(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:_a(2491,1,"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:_a(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:_a(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:_a(2494,1,"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:_a(2495,1,"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_ES5_Consider_using_a_standard_function_expression:_a(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:_a(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:_a(2498,1,"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:_a(2499,1,"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:_a(2500,1,"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:_a(2501,1,"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:_a(2502,1,"_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:_a(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:_a(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:_a(2505,1,"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:_a(2506,1,"_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:_a(2507,1,"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:_a(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:_a(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:_a(2510,1,"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:_a(2511,1,"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:_a(2512,1,"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:_a(2513,1,"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."),A_tuple_type_cannot_be_indexed_with_a_negative_value:_a(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:_a(2515,1,"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:_a(2516,1,"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:_a(2517,1,"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:_a(2518,1,"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:_a(2519,1,"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:_a(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:_a(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:_a(2523,1,"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:_a(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:_a(2526,1,"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:_a(2527,1,"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:_a(2528,1,"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:_a(2529,1,"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:_a(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:_a(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:_a(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:_a(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:_a(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:_a(2536,1,"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:_a(2537,1,"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:_a(2538,1,"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:_a(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:_a(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:_a(2542,1,"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:_a(2543,1,"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:_a(2544,1,"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:_a(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:_a(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:_a(2548,1,"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:_a(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:_a(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:_a(2551,1,"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:_a(2552,1,"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:_a(2553,1,"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:_a(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:_a(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:_a(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:_a(2558,1,"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:_a(2559,1,"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:_a(2560,1,"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:_a(2561,1,"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:_a(2562,1,"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:_a(2563,1,"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:_a(2564,1,"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:_a(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:_a(2566,1,"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:_a(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:_a(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:_a(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:_a(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:_a(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:_a(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:_a(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:_a(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:_a(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:_a(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:_a(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:_a(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:_a(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:_a(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:_a(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:_a(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:_a(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:_a(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:_a(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:_a(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:_a(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:_a(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:_a(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:_a(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:_a(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:_a(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:_a(2602,1,"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:_a(2603,1,"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:_a(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:_a(2606,1,"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:_a(2607,1,"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:_a(2608,1,"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:_a(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:_a(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:_a(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:_a(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:_a(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:_a(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:_a(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:_a(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:_a(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:_a(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:_a(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:_a(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:_a(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:_a(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:_a(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:_a(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:_a(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:_a(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:_a(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:_a(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:_a(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:_a(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:_a(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:_a(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:_a(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:_a(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:_a(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:_a(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:_a(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:_a(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:_a(2649,1,"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."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:_a(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:_a(2651,1,"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:_a(2652,1,"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:_a(2653,1,"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}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:_a(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:_a(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:_a(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:_a(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:_a(2658,1,"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:_a(2659,1,"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:_a(2660,1,"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:_a(2661,1,"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:_a(2662,1,"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:_a(2663,1,"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:_a(2664,1,"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:_a(2665,1,"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:_a(2666,1,"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:_a(2667,1,"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:_a(2668,1,"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:_a(2669,1,"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:_a(2670,1,"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:_a(2671,1,"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:_a(2672,1,"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:_a(2673,1,"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:_a(2674,1,"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:_a(2675,1,"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:_a(2676,1,"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:_a(2677,1,"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:_a(2678,1,"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:_a(2679,1,"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:_a(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:_a(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:_a(2683,1,"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:_a(2684,1,"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:_a(2685,1,"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:_a(2686,1,"_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:_a(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:_a(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:_a(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:_a(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:_a(2692,1,"_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:_a(2693,1,"_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:_a(2694,1,"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:_a(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:_a(2696,1,"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:_a(2697,1,"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:_a(2698,1,"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:_a(2699,1,"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:_a(2700,1,"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:_a(2701,1,"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:_a(2702,1,"_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:_a(2703,1,"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:_a(2704,1,"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_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:_a(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 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:_a(2706,1,"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:_a(2707,1,"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:_a(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:_a(2709,1,"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:_a(2710,1,"_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:_a(2711,1,"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_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:_a(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 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:_a(2713,1,"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:_a(2714,1,"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:_a(2715,1,"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:_a(2716,1,"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:_a(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:_a(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:_a(2719,1,"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:_a(2720,1,"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:_a(2721,1,"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:_a(2722,1,"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:_a(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:_a(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0:_a(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 and above with module {0}."),Cannot_find_lib_definition_for_0:_a(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:_a(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:_a(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:_a(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:_a(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:_a(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:_a(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:_a(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:_a(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:_a(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:_a(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:_a(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:_a(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:_a(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:_a(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:_a(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:_a(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:_a(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:_a(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:_a(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:_a(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:_a(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:_a(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:_a(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:_a(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:_a(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:_a(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:_a(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:_a(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:_a(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:_a(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:_a(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:_a(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:_a(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:_a(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:_a(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:_a(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:_a(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:_a(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:_a(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:_a(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:_a(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:_a(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:_a(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:_a(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:_a(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:_a(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:_a(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:_a(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:_a(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:_a(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:_a(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:_a(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:_a(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:_a(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:_a(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:_a(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:_a(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:_a(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:_a(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:_a(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:_a(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:_a(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:_a(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:_a(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:_a(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:_a(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:_a(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:_a(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:_a(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:_a(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:_a(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:_a(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:_a(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:_a(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:_a(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:_a(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:_a(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:_a(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:_a(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:_a(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:_a(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:_a(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:_a(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:_a(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:_a(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:_a(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:_a(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks:_a(2815,1,"arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815","'arguments' cannot be referenced in property initializers or class static initialization blocks."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:_a(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:_a(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:_a(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:_a(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:_a(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:_a(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:_a(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:_a(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:_a(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:_a(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:_a(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:_a(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:_a(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:_a(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:_a(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:_a(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:_a(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:_a(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:_a(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:_a(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:_a(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:_a(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:_a(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:_a(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:_a(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:_a(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:_a(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:_a(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:_a(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:_a(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:_a(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:_a(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:_a(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:_a(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:_a(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:_a(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:_a(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:_a(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:_a(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:_a(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:_a(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:_a(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:_a(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:_a(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:_a(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:_a(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:_a(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:_a(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:_a(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:_a(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:_a(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:_a(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:_a(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert:_a(2880,1,"Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880","Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),This_expression_is_never_nullish:_a(2881,1,"This_expression_is_never_nullish_2881","This expression is never nullish."),Cannot_find_module_or_type_declarations_for_side_effect_import_of_0:_a(2882,1,"Cannot_find_module_or_type_declarations_for_side_effect_import_of_0_2882","Cannot find module or type declarations for side-effect import of '{0}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_2_from_1_This_is_likely_not_portable_A_type_annotation_is_necessary:_a(2883,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_2_from_1_This_is_likely_not_portable_A_2883","The inferred type of '{0}' cannot be named without a reference to '{2}' from '{1}'. This is likely not portable. A type annotation is necessary."),Import_declaration_0_is_using_private_name_1:_a(4e3,1,"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:_a(4002,1,"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:_a(4004,1,"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:_a(4006,1,"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:_a(4008,1,"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:_a(4010,1,"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:_a(4012,1,"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:_a(4014,1,"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:_a(4016,1,"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:_a(4019,1,"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:_a(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:_a(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:_a(4022,1,"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:_a(4023,1,"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:_a(4024,1,"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:_a(4025,1,"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:_a(4026,1,"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:_a(4027,1,"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:_a(4028,1,"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:_a(4029,1,"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:_a(4030,1,"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:_a(4031,1,"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:_a(4032,1,"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:_a(4033,1,"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:_a(4034,1,"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:_a(4035,1,"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:_a(4036,1,"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:_a(4037,1,"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:_a(4038,1,"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:_a(4039,1,"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:_a(4040,1,"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:_a(4041,1,"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:_a(4042,1,"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:_a(4043,1,"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:_a(4044,1,"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:_a(4045,1,"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:_a(4046,1,"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:_a(4047,1,"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:_a(4048,1,"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:_a(4049,1,"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:_a(4050,1,"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:_a(4051,1,"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:_a(4052,1,"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:_a(4053,1,"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:_a(4054,1,"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:_a(4055,1,"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:_a(4056,1,"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:_a(4057,1,"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:_a(4058,1,"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:_a(4059,1,"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:_a(4060,1,"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:_a(4061,1,"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:_a(4062,1,"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:_a(4063,1,"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:_a(4064,1,"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:_a(4065,1,"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:_a(4066,1,"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:_a(4067,1,"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:_a(4068,1,"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:_a(4069,1,"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:_a(4070,1,"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:_a(4071,1,"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:_a(4072,1,"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:_a(4073,1,"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:_a(4074,1,"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:_a(4075,1,"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:_a(4076,1,"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:_a(4077,1,"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:_a(4078,1,"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:_a(4081,1,"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:_a(4082,1,"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:_a(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:_a(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:_a(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_a(4091,1,"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:_a(4092,1,"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_anonymous_class_type_may_not_be_private_or_protected:_a(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type 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:_a(4095,1,"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:_a(4096,1,"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:_a(4097,1,"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:_a(4098,1,"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:_a(4099,1,"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:_a(4100,1,"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:_a(4101,1,"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:_a(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:_a(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:_a(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:_a(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:_a(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:_a(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:_a(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:_a(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:_a(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:_a(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:_a(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:_a(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:_a(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:_a(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:_a(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:_a(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:_a(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:_a(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:_a(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:_a(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:_a(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:_a(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:_a(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:_a(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic:_a(4127,1,"This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127","This member cannot have an 'override' modifier because its name is dynamic."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:_a(4128,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128","This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),The_current_host_does_not_support_the_0_option:_a(5001,1,"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:_a(5009,1,"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:_a(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),The_common_source_directory_of_0_is_1_The_rootDir_setting_must_be_explicitly_set_to_this_or_another_path_to_adjust_your_output_s_file_layout:_a(5011,1,"The_common_source_directory_of_0_is_1_The_rootDir_setting_must_be_explicitly_set_to_this_or_another__5011","The common source directory of '{0}' is '{1}'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout."),Cannot_read_file_0_Colon_1:_a(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:_a(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:_a(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:_a(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:_a(5033,1,"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:_a(5042,1,"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:_a(5047,1,"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:_a(5051,1,"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:_a(5052,1,"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:_a(5053,1,"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:_a(5054,1,"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:_a(5055,1,"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:_a(5056,1,"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:_a(5057,1,"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:_a(5058,1,"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:_a(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:_a(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:_a(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:_a(5063,1,"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:_a(5064,1,"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:_a(5065,1,"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:_a(5066,1,"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:_a(5067,1,"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:_a(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:_a(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:_a(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:_a(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:_a(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:_a(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:_a(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:_a(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:_a(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:_a(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:_a(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:_a(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:_a(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:_a(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:_a(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:_a(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:_a(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:_a(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:_a(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:_a(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:_a(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:_a(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:_a(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:_a(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:_a(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:_a(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_commonjs_or_es2015_or_later:_a(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_commonjs_or_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_one_of_noEmit_emitDeclarationOnly_or_rewriteRelativeImportExtensions_is_set:_a(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_one_of_noEmit_emitDeclarationOnly_or_rewrite_5096","Option 'allowImportingTsExtensions' can only be used when one of 'noEmit', 'emitDeclarationOnly', or 'rewriteRelativeImportExtensions' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:_a(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:_a(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:_a(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101","Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '\"ignoreDeprecations\": \"{2}\"' to silence this error."),Option_0_has_been_removed_Please_remove_it_from_your_configuration:_a(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:_a(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:_a(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:_a(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:_a(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:_a(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107","Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '\"ignoreDeprecations\": \"{3}\"' to silence this error."),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:_a(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:_a(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:_a(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information:_a(5111,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information_5111","Visit https://aka.ms/ts6 for migration information."),tsconfig_json_is_present_but_will_not_be_loaded_if_files_are_specified_on_commandline_Use_ignoreConfig_to_skip_this_error:_a(5112,1,"tsconfig_json_is_present_but_will_not_be_loaded_if_files_are_specified_on_commandline_Use_ignoreConf_5112","tsconfig.json is present but will not be loaded if files are specified on commandline. Use '--ignoreConfig' to skip this error."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:_a(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:_a(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:_a(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:_a(6004,3,"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:_a(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:_a(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:_a(6007,3,"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:_a(6008,3,"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:_a(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:_a(6010,3,"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:_a(6011,3,"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:_a(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:_a(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:_a(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:_a(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:_a(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:_a(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:_a(6019,3,"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:_a(6020,3,"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:_a(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:_a(6024,3,"options_6024","options"),file:_a(6025,3,"file_6025","file"),Examples_Colon_0:_a(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:_a(6027,3,"Options_Colon_6027","Options:"),Version_0:_a(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:_a(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:_a(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:_a(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:_a(6034,3,"KIND_6034","KIND"),FILE:_a(6035,3,"FILE_6035","FILE"),VERSION:_a(6036,3,"VERSION_6036","VERSION"),LOCATION:_a(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:_a(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:_a(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:_a(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:_a(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:_a(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:_a(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:_a(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:_a(6046,1,"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:_a(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:_a(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:_a(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:_a(6052,3,"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:_a(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:_a(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:_a(6055,3,"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:_a(6056,3,"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:_a(6058,3,"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:_a(6059,1,"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:_a(6060,3,"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:_a(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:_a(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:_a(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:_a(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:_a(6070,3,"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:_a(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:_a(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:_a(6073,3,"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:_a(6074,3,"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:_a(6075,3,"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:_a(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:_a(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:_a(6078,3,"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:_a(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:_a(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:_a(6082,1,"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:_a(6083,3,"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:_a(6084,3,"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:_a(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:_a(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:_a(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:_a(6088,3,"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:_a(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:_a(6090,3,"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:_a(6091,3,"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:_a(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:_a(6093,3,"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:_a(6094,3,"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_types_Colon_1:_a(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:_a(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:_a(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:_a(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:_a(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:_a(6100,3,"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:_a(6101,3,"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:_a(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:_a(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:_a(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:_a(6106,3,"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:_a(6107,3,"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:_a(6108,3,"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:_a(6109,3,"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:_a(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:_a(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:_a(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:_a(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:_a(6114,1,"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:_a(6115,3,"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:_a(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:_a(6119,3,"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:_a(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:_a(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:_a(6122,3,"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:_a(6123,3,"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:_a(6124,3,"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:_a(6125,3,"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:_a(6126,3,"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:_a(6127,3,"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:_a(6128,3,"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:_a(6130,3,"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:_a(6131,1,"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:_a(6132,3,"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:_a(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:_a(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:_a(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:_a(6136,3,"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:_a(6137,1,"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:_a(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:_a(6139,3,"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:_a(6140,1,"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:_a(6141,3,"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:_a(6142,1,"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:_a(6144,3,"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}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:_a(6146,3,"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:_a(6147,3,"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:_a(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:_a(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:_a(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:_a(6151,3,"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:_a(6152,3,"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:_a(6153,3,"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:_a(6154,3,"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:_a(6155,3,"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:_a(6156,3,"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:_a(6157,3,"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:_a(6158,3,"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:_a(6159,3,"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:_a(6160,3,"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:_a(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:_a(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:_a(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:_a(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:_a(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:_a(6166,3,"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:_a(6167,3,"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:_a(6168,3,"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:_a(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:_a(6170,3,"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:_a(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:_a(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:_a(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:_a(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:_a(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_a(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:_a(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:_a(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:_a(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:_a(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:_a(6191,3,"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:_a(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:_a(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:_a(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:_a(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:_a(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:_a(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:_a(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:_a(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:_a(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:_a(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:_a(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:_a(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:_a(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:_a(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:_a(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:_a(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:_a(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:_a(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:_a(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:_a(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:_a(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:_a(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:_a(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:_a(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:_a(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:_a(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:_a(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:_a(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:_a(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:_a(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:_a(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:_a(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:_a(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:_a(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:_a(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:_a(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:_a(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:_a(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:_a(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:_a(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:_a(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:_a(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:_a(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:_a(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:_a(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:_a(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:_a(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:_a(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:_a(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:_a(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:_a(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:_a(6244,3,"Modules_6244","Modules"),File_Management:_a(6245,3,"File_Management_6245","File Management"),Emit:_a(6246,3,"Emit_6246","Emit"),JavaScript_Support:_a(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:_a(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:_a(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:_a(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:_a(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:_a(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:_a(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:_a(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:_a(6255,3,"Projects_6255","Projects"),Output_Formatting:_a(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:_a(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:_a(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:_a(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:_a(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:_a(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:_a(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:_a(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:_a(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:_a(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:_a(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:_a(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:_a(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:_a(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:_a(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:_a(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:_a(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:_a(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:_a(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:_a(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278","There are types at '{0}', but this result could not be resolved when respecting package.json \"exports\". The '{1}' library may need to update its package.json or typings."),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:_a(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:_a(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:_a(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:_a(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:_a(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),File_Layout:_a(6284,3,"File_Layout_6284","File Layout"),Environment_Settings:_a(6285,3,"Environment_Settings_6285","Environment Settings"),See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule:_a(6286,3,"See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule_6286","See also https://aka.ms/tsconfig/module"),For_nodejs_Colon:_a(6287,3,"For_nodejs_Colon_6287","For nodejs:"),and_npm_install_D_types_Slashnode:_a(6290,3,"and_npm_install_D_types_Slashnode_6290","and npm install -D @types/node"),Other_Outputs:_a(6291,3,"Other_Outputs_6291","Other Outputs"),Stricter_Typechecking_Options:_a(6292,3,"Stricter_Typechecking_Options_6292","Stricter Typechecking Options"),Style_Options:_a(6293,3,"Style_Options_6293","Style Options"),Recommended_Options:_a(6294,3,"Recommended_Options_6294","Recommended Options"),Enable_project_compilation:_a(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:_a(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:_a(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:_a(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:_a(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:_a(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:_a(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:_a(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:_a(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:_a(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:_a(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:_a(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:_a(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:_a(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:_a(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:_a(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:_a(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:_a(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:_a(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:_a(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:_a(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:_a(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:_a(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:_a(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:_a(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:_a(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:_a(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:_a(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:_a(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:_a(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:_a(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:_a(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:_a(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:_a(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:_a(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:_a(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:_a(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:_a(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:_a(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_a(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:_a(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:_a(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:_a(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:_a(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:_a(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:_a(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:_a(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:_a(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:_a(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:_a(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:_a(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:_a(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:_a(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:_a(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:_a(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:_a(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:_a(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:_a(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:_a(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:_a(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:_a(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:_a(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:_a(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:_a(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:_a(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:_a(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:_a(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:_a(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:_a(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:_a(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:_a(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:_a(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:_a(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:_a(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:_a(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:_a(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:_a(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files:_a(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:_a(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:_a(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:_a(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:_a(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:_a(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:_a(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:_a(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:_a(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:_a(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:_a(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:_a(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:_a(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:_a(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:_a(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:_a(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:_a(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:_a(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:_a(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:_a(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:_a(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:_a(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:_a(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:_a(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:_a(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:_a(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:_a(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:_a(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:_a(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:_a(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:_a(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:_a(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:_a(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:_a(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:_a(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:_a(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:_a(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:_a(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:_a(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:_a(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:_a(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:_a(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:_a(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:_a(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:_a(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:_a(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:_a(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:_a(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:_a(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:_a(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:_a(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:_a(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:_a(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:_a(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:_a(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:_a(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:_a(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:_a(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:_a(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:_a(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:_a(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:_a(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:_a(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:_a(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:_a(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:_a(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:_a(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:_a(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:_a(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:_a(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:_a(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:_a(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:_a(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:_a(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:_a(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:_a(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:_a(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:_a(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:_a(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:_a(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:_a(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:_a(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:_a(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:_a(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:_a(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:_a(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:_a(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:_a(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:_a(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:_a(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:_a(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:_a(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:_a(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:_a(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:_a(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:_a(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:_a(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:_a(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:_a(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:_a(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:_a(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:_a(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:_a(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:_a(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:_a(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:_a(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:_a(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:_a(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:_a(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:_a(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:_a(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:_a(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:_a(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:_a(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:_a(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:_a(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:_a(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript:_a(6721,3,"Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721","Do not allow runtime constructs that are not part of ECMAScript."),Default_catch_clause_variables_as_unknown_instead_of_any:_a(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:_a(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:_a(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:_a(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:_a(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),Enable_lib_replacement:_a(6808,3,"Enable_lib_replacement_6808","Enable lib replacement."),Ensure_types_are_ordered_stably_and_deterministically_across_compilations:_a(6809,3,"Ensure_types_are_ordered_stably_and_deterministically_across_compilations_6809","Ensure types are ordered stably and deterministically across compilations."),one_of_Colon:_a(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:_a(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:_a(6902,3,"type_Colon_6902","type:"),default_Colon:_a(6903,3,"default_Colon_6903","default:"),true_unless_strict_is_false:_a(6905,3,"true_unless_strict_is_false_6905","`true`, unless `strict` is `false`"),false_unless_composite_is_set:_a(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:_a(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:_a(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:_a(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),nodenext_if_module_is_nodenext_node16_if_module_is_node16_or_node18_otherwise_bundler:_a(69010,3,"nodenext_if_module_is_nodenext_node16_if_module_is_node16_or_node18_otherwise_bundler_69010","`nodenext` if `module` is `nodenext`; `node16` if `module` is `node16` or `node18`; otherwise, `bundler`."),Computed_from_the_list_of_input_files:_a(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:_a(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:_a(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:_a(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:_a(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:_a(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:_a(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:_a(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:_a(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:_a(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:_a(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:_a(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:_a(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:_a(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:_a(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:_a(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:_a(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:_a(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:_a(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:_a(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:_a(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),false_unless_checkJs_is_set:_a(6932,3,"false_unless_checkJs_is_set_6932","`false`, unless `checkJs` is set"),Variable_0_implicitly_has_an_1_type:_a(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:_a(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:_a(7008,1,"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:_a(7009,1,"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:_a(7010,1,"_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:_a(7011,1,"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."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:_a(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:_a(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:_a(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:_a(7015,1,"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:_a(7016,1,"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:_a(7017,1,"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:_a(7018,1,"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:_a(7019,1,"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:_a(7020,1,"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:_a(7022,1,"_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:_a(7023,1,"_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:_a(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:_a(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:_a(7026,1,"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:_a(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:_a(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:_a(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:_a(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:_a(7031,1,"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:_a(7032,1,"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:_a(7033,1,"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:_a(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:_a(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:_a(7036,1,"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:_a(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:_a(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:_a(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:_a(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:_a(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:_a(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:_a(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:_a(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:_a(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:_a(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:_a(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:_a(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:_a(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:_a(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:_a(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:_a(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:_a(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:_a(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:_a(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:_a(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:_a(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:_a(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:_a(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:_a(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:_a(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:_a(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:_a(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:_a(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:_a(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:_a(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:_a(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:_a(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:_a(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:_a(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:_a(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:_a(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:_a(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:_a(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:_a(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:_a(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:_a(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:_a(8020,1,"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:_a(8021,1,"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:_a(8022,1,"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:_a(8023,1,"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:_a(8024,1,"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:_a(8025,1,"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:_a(8026,1,"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:_a(8027,1,"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:_a(8028,1,"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:_a(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:_a(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:_a(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:_a(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:_a(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:_a(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:_a(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:_a(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:_a(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:_a(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:_a(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:_a(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:_a(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:_a(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:_a(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:_a(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:_a(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:_a(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:_a(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:_a(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:_a(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:_a(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:_a(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:_a(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:_a(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:_a(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:_a(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:_a(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:_a(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:_a(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:_a(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:_a(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:_a(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:_a(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:_a(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:_a(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:_a(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:_a(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:_a(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:_a(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:_a(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:_a(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:_a(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:_a(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:_a(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:_a(17e3,1,"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:_a(17001,1,"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:_a(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:_a(17004,1,"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:_a(17005,1,"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:_a(17006,1,"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:_a(17007,1,"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:_a(17008,1,"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:_a(17009,1,"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:_a(17010,1,"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:_a(17011,1,"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:_a(17012,1,"_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:_a(17013,1,"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:_a(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:_a(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:_a(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:_a(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:_a(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:_a(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:_a(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:_a(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:_a(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:_a(18002,1,"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:_a(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:_a(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:_a(80002,2,"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:_a(80003,2,"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:_a(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:_a(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:_a(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:_a(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:_a(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:_a(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:_a(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:_a(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:_a(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:_a(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:_a(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:_a(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:_a(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:_a(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:_a(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:_a(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:_a(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:_a(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:_a(90013,3,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:_a(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:_a(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:_a(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:_a(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:_a(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:_a(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:_a(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:_a(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:_a(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:_a(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:_a(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:_a(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:_a(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:_a(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:_a(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:_a(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:_a(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:_a(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:_a(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:_a(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:_a(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:_a(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:_a(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:_a(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:_a(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:_a(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:_a(90055,3,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:_a(90056,3,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:_a(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:_a(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:_a(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:_a(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:_a(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:_a(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:_a(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:_a(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:_a(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:_a(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:_a(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:_a(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:_a(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:_a(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:_a(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:_a(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:_a(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:_a(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:_a(95005,3,"Extract_function_95005","Extract function"),Extract_constant:_a(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:_a(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:_a(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:_a(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:_a(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:_a(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:_a(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:_a(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:_a(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:_a(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:_a(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:_a(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:_a(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:_a(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:_a(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:_a(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:_a(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:_a(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:_a(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:_a(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:_a(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:_a(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:_a(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:_a(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:_a(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:_a(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:_a(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:_a(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:_a(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:_a(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:_a(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:_a(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:_a(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:_a(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:_a(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:_a(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:_a(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:_a(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:_a(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:_a(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:_a(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:_a(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:_a(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:_a(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:_a(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:_a(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:_a(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:_a(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:_a(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:_a(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:_a(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:_a(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:_a(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:_a(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:_a(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:_a(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:_a(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:_a(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:_a(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:_a(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:_a(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:_a(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:_a(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:_a(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:_a(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:_a(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:_a(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:_a(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:_a(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:_a(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:_a(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:_a(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:_a(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:_a(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:_a(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:_a(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:_a(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:_a(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:_a(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:_a(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:_a(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:_a(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:_a(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:_a(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:_a(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:_a(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:_a(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:_a(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:_a(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:_a(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:_a(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:_a(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:_a(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:_a(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:_a(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:_a(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:_a(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:_a(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:_a(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:_a(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:_a(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:_a(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:_a(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:_a(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:_a(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:_a(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:_a(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:_a(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:_a(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:_a(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:_a(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:_a(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:_a(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:_a(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:_a(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:_a(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:_a(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:_a(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:_a(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:_a(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:_a(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:_a(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:_a(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:_a(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:_a(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:_a(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:_a(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:_a(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:_a(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:_a(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:_a(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:_a(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:_a(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:_a(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:_a(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:_a(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:_a(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:_a(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:_a(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:_a(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:_a(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:_a(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:_a(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:_a(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:_a(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:_a(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:_a(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:_a(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:_a(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:_a(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:_a(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:_a(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:_a(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:_a(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:_a(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:_a(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:_a(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:_a(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:_a(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:_a(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:_a(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:_a(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:_a(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:_a(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:_a(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:_a(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:_a(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:_a(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:_a(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:_a(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:_a(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:_a(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:_a(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:_a(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:_a(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:_a(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:_a(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:_a(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:_a(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:_a(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:_a(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:_a(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:_a(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:_a(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:_a(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:_a(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:_a(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:_a(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:_a(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:_a(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:_a(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:_a(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:_a(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:_a(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:_a(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:_a(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:_a(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:_a(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:_a(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:_a(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:_a(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:_a(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:_a(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:_a(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:_a(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:_a(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:_a(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:_a(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:_a(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:_a(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:_a(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:_a(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:_a(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:_a(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:_a(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:_a(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:_a(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:_a(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:_a(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:_a(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:_a(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:_a(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:_a(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:_a(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:_a(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:_a(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:_a(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:_a(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:_a(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:_a(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:_a(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:_a(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:_a(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'."),Default_imports_are_not_allowed_in_a_deferred_import:_a(18058,1,"Default_imports_are_not_allowed_in_a_deferred_import_18058","Default imports are not allowed in a deferred import."),Named_imports_are_not_allowed_in_a_deferred_import:_a(18059,1,"Named_imports_are_not_allowed_in_a_deferred_import_18059","Named imports are not allowed in a deferred import."),Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve:_a(18060,1,"Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve_18060","Deferred imports are only supported when the '--module' flag is set to 'esnext' or 'preserve'."),_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer:_a(18061,1,"_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer_18061","'{0}' is not a valid meta-property for keyword 'import'. Did you mean 'meta' or 'defer'?")};function da(e){return e>=80}function pa(e){return 32===e||da(e)}var fa={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,defer:166,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},ma=new Map(Object.entries(fa)),ga=new Map(Object.entries({...fa,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),ha=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),ya=new Map([[1,Di.RegularExpressionFlagsHasIndices],[16,Di.RegularExpressionFlagsDotAll],[32,Di.RegularExpressionFlagsUnicode],[64,Di.RegularExpressionFlagsUnicodeSets],[128,Di.RegularExpressionFlagsSticky]]),va=[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],ba=[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],xa=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],ka=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,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,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],Sa=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Ta=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,Ca=/@(?:see|link)/i;function wa(e,t){if(e=2?xa:va)}function Na(e){const t=[];return e.forEach(((e,n)=>{t[e]=n})),t}var Fa=Na(ga);function Ea(e){return Fa[e]}function Pa(e){return ga.get(e)}var Aa=Na(ha);function Ia(e){return Aa[e]}function Oa(e){return ha.get(e)}function La(e){const t=[];let n=0,r=0;for(;n127&&Wa(i)&&(t.push(r),r=n)}}return t.push(r),t}function ja(e,t,n,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,r):Ra(Ma(e),t,n,e.text,r)}function Ra(e,t,n,r,i){(t<0||t>=e.length)&&(i?t=t<0?0:t>=e.length?e.length-1:t:_n.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${void 0!==r?ee(e,La(r)):"unknown"}`));const o=e[t]+n;return i?o>e[t+1]?e[t+1]:"string"==typeof r&&o>r.length?r.length:o:(t=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function Wa(e){return 10===e||13===e||8232===e||8233===e}function $a(e){return e>=48&&e<=57}function Ha(e){return $a(e)||e>=65&&e<=70||e>=97&&e<=102}function Ka(e){return e>=65&&e<=90||e>=97&&e<=122}function Ga(e){return Ka(e)||$a(e)||95===e}function Xa(e){return e>=48&&e<=55}function Qa(e,t){const n=e.charCodeAt(t);switch(n){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 n>127}}function Ya(e,t,n,r,i){if(YS(t))return t;let o=!1;for(;;){const a=e.charCodeAt(t);switch(a){case 13:10===e.charCodeAt(t+1)&&t++;case 10:if(t++,n)return t;o=!!i;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(r)break;if(47===e.charCodeAt(t+1)){for(t+=2;t127&&Ua(a)){t++;continue}}return t}}var Za=7;function es(e,t){if(_n.assert(t>=0),0===t||Wa(e.charCodeAt(t-1))){const n=e.charCodeAt(t);if(t+Za=0&&n127&&Ua(a)){u&&Wa(a)&&(_=!0),n++;continue}break e}}return u&&(p=i(s,c,l,_,o,p)),p}function as(e,t,n,r){return os(!1,e,t,!1,n,r)}function ss(e,t,n,r){return os(!1,e,t,!0,n,r)}function cs(e,t,n,r,i){return os(!0,e,t,!1,n,r,i)}function ls(e,t,n,r,i){return os(!0,e,t,!0,n,r,i)}function _s(e,t,n,r,i,o=[]){return o.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),o}function us(e,t){return cs(e,t,_s,void 0,void 0)}function ds(e,t){return ls(e,t,_s,void 0,void 0)}function ps(e){const t=ns.exec(e);if(t)return t[0]}function fs(e,t){return Ka(e)||36===e||95===e||e>127&&Da(e,t)}function ms(e,t,n){return Ga(e)||36===e||1===n&&(45===e||58===e)||e>127&&function(e,t){return wa(e,t>=2?ka:ba)}(e,t)}function gs(e,t,n){let r=ys(e,0);if(!fs(r,t))return!1;for(let i=vs(r);il,getStartPos:()=>l,getTokenEnd:()=>s,getTextPos:()=>s,getToken:()=>d,getTokenStart:()=>u,getTokenPos:()=>u,getTokenText:()=>g.substring(u,s),getTokenValue:()=>p,hasUnicodeEscape:()=>!!(1024&f),hasExtendedUnicodeEscape:()=>!!(8&f),hasPrecedingLineBreak:()=>!!(1&f),hasPrecedingJSDocComment:()=>!!(2&f),hasPrecedingJSDocLeadingAsterisks:()=>!!(32768&f),isIdentifier:()=>80===d||d>118,isReservedWord:()=>d>=83&&d<=118,isUnterminated:()=>!!(4&f),getCommentDirectives:()=>m,getNumericLiteralFlags:()=>25584&f,getTokenFlags:()=>f,reScanGreaterToken:function(){if(32===d){if(62===S(s))return 62===S(s+1)?61===S(s+2)?(s+=3,d=73):(s+=2,d=50):61===S(s+1)?(s+=2,d=72):(s++,d=49);if(61===S(s))return s++,d=34}return d},reScanAsteriskEqualsToken:function(){return _n.assert(67===d,"'reScanAsteriskEqualsToken' should only be called on a '*='"),s=u+1,d=64},reScanSlashToken:function(t){if(44===d||69===d){const n=u+1;s=n;let r=!1,i=!1,a=!1;for(;;){const e=T(s);if(-1===e||Wa(e)){f|=4;break}if(r)r=!1;else{if(47===e&&!a)break;91===e?a=!0:92===e?r=!0:93===e?a=!1:a||40!==e||63!==T(s+1)||60!==T(s+2)||61===T(s+3)||33===T(s+3)||(i=!0)}s++}const l=s;if(4&f){s=n,r=!1;let e=0,t=!1,i=0;for(;s{!function(t,n,r){var i,a,l,d,f=!!(64&t),m=!!(96&t),h=m||!n,y=!1,v=0,b=[];function x(e){for(;;){if(b.push(d),d=void 0,w(e),d=b.pop(),124!==T(s))return;s++}}function w(t){let n=!1;for(;;){const r=s,i=T(s);switch(i){case-1:return;case 94:case 36:s++,n=!1;break;case 92:switch(T(++s)){case 98:case 66:s++,n=!1;break;default:N(),n=!0}break;case 40:if(63===T(++s))switch(T(++s)){case 61:case 33:s++,n=!h;break;case 60:const t=s;switch(T(++s)){case 61:case 33:s++,n=!1;break;default:A(!1),H(62),e<5&&C(ua.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later,t,s-t),v++,n=!0}break;default:const r=s,i=D(0);45===T(s)&&(s++,D(i),s===r+1&&C(ua.Subpattern_flags_must_be_present_when_there_is_a_minus_sign,r,s-r)),H(58),n=!0}else v++,n=!0;x(!0),H(41);break;case 123:const o=++s;F();const a=p;if(!h&&!a){n=!0;break}if(44===T(s)){s++,F();const e=p;if(a)e&&Number.parseInt(a)>Number.parseInt(e)&&(h||125===T(s))&&C(ua.Numbers_out_of_order_in_quantifier,o,s-o);else{if(!e&&125!==T(s)){C(ua.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,r,1,String.fromCharCode(i)),n=!0;break}C(ua.Incomplete_quantifier_Digit_expected,o,0)}}else if(!a){h&&C(ua.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,r,1,String.fromCharCode(i)),n=!0;break}if(125!==T(s)){if(!h){n=!0;break}C(ua._0_expected,s,0,String.fromCharCode(125)),s--}case 42:case 43:case 63:63===T(++s)&&s++,n||C(ua.There_is_nothing_available_for_repetition,r,s-r),n=!1;break;case 46:s++,n=!0;break;case 91:s++,f?j():L(),H(93),n=!0;break;case 41:if(t)return;case 93:case 125:(h||41===i)&&C(ua.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(i)),s++,n=!0;break;case 47:case 124:return;default:$(),n=!0}}}function D(t){for(;;){const n=k(s);if(-1===n||!ms(n,e))break;const r=vs(n),i=Oa(n);void 0===i?C(ua.Unknown_regular_expression_flag,s,r):t&i?C(ua.Duplicate_regular_expression_flag,s,r):28&i?(t|=i,W(i,r)):C(ua.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern,s,r),s+=r}return t}function N(){switch(_n.assertEqual(S(s-1),92),T(s)){case 107:60===T(++s)?(s++,A(!0),H(62)):(h||r)&&C(ua.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets,s-2,2);break;case 113:if(f){s++,C(ua.q_is_only_available_inside_character_class,s-2,2);break}default:_n.assert(q()||E()||P(!0))}}function E(){_n.assertEqual(S(s-1),92);const e=T(s);if(e>=49&&e<=57){const e=s;return F(),l=re(l,{pos:e,end:s,value:+p}),!0}return!1}function P(e){_n.assertEqual(S(s-1),92);let t=T(s);switch(t){case-1:return C(ua.Undetermined_character_escape,s-1,1),"\\";case 99:if(t=T(++s),Ka(t))return s++,String.fromCharCode(31&t);if(h)C(ua.c_must_be_followed_by_an_ASCII_letter,s-2,2);else if(e)return s--,"\\";return String.fromCharCode(t);case 94:case 36:case 47:case 92:case 46:case 42:case 43:case 63:case 40:case 41:case 91:case 93:case 123:case 125:case 124:return s++,String.fromCharCode(t);default:return s--,O(4|(n?8:0)|(m?16:0)|(e?32:0))}}function A(t){_n.assertEqual(S(s-1),60),u=s,V(k(s),e),s===u?C(ua.Expected_a_capturing_group_name):t?a=re(a,{pos:u,end:s,name:p}):(null==d?void 0:d.has(p))||b.some((e=>null==e?void 0:e.has(p)))?C(ua.Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other,u,s-u):(d??(d=new Set),d.add(p),i??(i=new Set),i.add(p))}function I(e){return 93===e||-1===e||s>=c}function L(){for(_n.assertEqual(S(s-1),91),94===T(s)&&s++;;){if(I(T(s)))return;const e=s,t=z();if(45===T(s)){if(I(T(++s)))return;!t&&h&&C(ua.A_character_class_range_must_not_be_bounded_by_another_character_class,e,s-1-e);const n=s,r=z();if(!r&&h){C(ua.A_character_class_range_must_not_be_bounded_by_another_character_class,n,s-n);continue}if(!t)continue;const i=ys(t,0),o=ys(r,0);t.length===vs(i)&&r.length===vs(o)&&i>o&&C(ua.Range_out_of_order_in_character_class,e,s-e)}}}function j(){_n.assertEqual(S(s-1),91);let e=!1;94===T(s)&&(s++,e=!0);let t=!1,n=T(s);if(I(n))return;let r,i=s;switch(g.slice(s,s+2)){case"--":case"&&":C(ua.Expected_a_class_set_operand),y=!1;break;default:r=M()}switch(T(s)){case 45:if(45===T(s+1))return e&&y&&C(ua.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y,R(3),void(y=!e&&t);break;case 38:if(38===T(s+1))return R(2),e&&y&&C(ua.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y,void(y=!e&&t);C(ua.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n));break;default:e&&y&&C(ua.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,i,s-i),t=y}for(;n=T(s),-1!==n;){switch(n){case 45:if(n=T(++s),I(n))return void(y=!e&&t);if(45===n){s++,C(ua.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),i=s-2,r=g.slice(i,s);continue}{r||C(ua.A_character_class_range_must_not_be_bounded_by_another_character_class,i,s-1-i);const n=s,o=M();if(e&&y&&C(ua.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,n,s-n),t||(t=y),!o){C(ua.A_character_class_range_must_not_be_bounded_by_another_character_class,n,s-n);break}if(!r)break;const a=ys(r,0),c=ys(o,0);r.length===vs(a)&&o.length===vs(c)&&a>c&&C(ua.Range_out_of_order_in_character_class,i,s-i)}break;case 38:i=s,38===T(++s)?(s++,C(ua.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),38===T(s)&&(C(ua.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n)),s++)):C(ua.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s-1,1,String.fromCharCode(n)),r=g.slice(i,s);continue}if(I(T(s)))break;switch(i=s,g.slice(s,s+2)){case"--":case"&&":C(ua.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s,2),s+=2,r=g.slice(i,s);break;default:r=M()}}y=!e&&t}function R(e){let t=y;for(;;){let n=T(s);if(I(n))break;switch(n){case 45:45===T(++s)?(s++,3!==e&&C(ua.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2)):C(ua.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-1,1);break;case 38:38===T(++s)?(s++,2!==e&&C(ua.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),38===T(s)&&(C(ua.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n)),s++)):C(ua.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s-1,1,String.fromCharCode(n));break;default:switch(e){case 3:C(ua._0_expected,s,0,"--");break;case 2:C(ua._0_expected,s,0,"&&")}}if(n=T(s),I(n)){C(ua.Expected_a_class_set_operand);break}M(),t&&(t=y)}y=t}function M(){switch(y=!1,T(s)){case-1:return"";case 91:return s++,j(),H(93),"";case 92:if(s++,q())return"";if(113===T(s))return 123===T(++s)?(s++,B(),H(125),""):(C(ua.q_must_be_followed_by_string_alternatives_enclosed_in_braces,s-2,2),"q");s--;default:return J()}}function B(){_n.assertEqual(S(s-1),123);let e=0;for(;;){switch(T(s)){case-1:return;case 125:return void(1!==e&&(y=!0));case 124:1!==e&&(y=!0),s++,o=s,e=0;break;default:J(),e++}}}function J(){const e=T(s);if(-1===e)return"";if(92===e){const e=T(++s);switch(e){case 98:return s++,"\b";case 38:case 45:case 33:case 35:case 37:case 44:case 58:case 59:case 60:case 61:case 62:case 64:case 96:case 126:return s++,String.fromCharCode(e);default:return P(!1)}}else if(e===T(s+1))switch(e){case 38:case 33:case 35:case 37:case 42:case 43:case 44:case 46:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 96:case 126:return C(ua.A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash,s,2),s+=2,g.substring(s-2,s)}switch(e){case 47:case 40:case 41:case 91:case 93:case 123:case 125:case 45:case 124:return C(ua.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(e)),s++,String.fromCharCode(e)}return $()}function z(){if(92!==T(s))return $();{const e=T(++s);switch(e){case 98:return s++,"\b";case 45:return s++,String.fromCharCode(e);default:return q()?"":P(!1)}}}function q(){_n.assertEqual(S(s-1),92);let e=!1;const t=s-1,n=T(s);switch(n){case 100:case 68:case 115:case 83:case 119:case 87:return s++,!0;case 80:e=!0;case 112:if(123===T(++s)){const n=++s,r=U();if(61===T(s)){const e=ks.get(r);if(s===n)C(ua.Expected_a_Unicode_property_name);else if(void 0===e){C(ua.Unknown_Unicode_property_name,n,s-n);const e=Ot(r,ks.keys(),at);e&&C(ua.Did_you_mean_0,n,s-n,e)}const t=++s,i=U();if(s===t)C(ua.Expected_a_Unicode_property_value);else if(void 0!==e&&!Cs[e].has(i)){C(ua.Unknown_Unicode_property_value,t,s-t);const n=Ot(i,Cs[e],at);n&&C(ua.Did_you_mean_0,t,s-t,n)}}else if(s===n)C(ua.Expected_a_Unicode_property_name_or_value);else if(Ts.has(r))f?e?C(ua.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,n,s-n):y=!0:C(ua.Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set,n,s-n);else if(!Cs.General_Category.has(r)&&!Ss.has(r)){C(ua.Unknown_Unicode_property_name_or_value,n,s-n);const e=Ot(r,[...Cs.General_Category,...Ss,...Ts],at);e&&C(ua.Did_you_mean_0,n,s-n,e)}H(125),m||C(ua.Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,t,s-t)}else{if(!h)return s--,!1;C(ua._0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces,s-2,2,String.fromCharCode(n))}return!0}return!1}function U(){let e="";for(;;){const t=T(s);if(-1===t||!Ga(t))break;e+=String.fromCharCode(t),s++}return e}function $(){const e=m?vs(k(s)):1;return s+=e,e>0?g.substring(s-e,s):""}function H(e){T(s)===e?s++:C(ua._0_expected,s,0,String.fromCharCode(e))}x(!1),_(a,(e=>{if(!(null==i?void 0:i.has(e.name))&&(C(ua.There_is_no_capturing_group_named_0_in_this_regular_expression,e.pos,e.end-e.pos,e.name),i)){const t=Ot(e.name,i,at);t&&C(ua.Did_you_mean_0,e.pos,e.end-e.pos,t)}})),_(l,(e=>{e.value>v&&(v?C(ua.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression,e.pos,e.end-e.pos,v):C(ua.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression,e.pos,e.end-e.pos))}))}(r,!0,i)}))}p=g.substring(u,s),d=14}return d},reScanTemplateToken:function(e){return s=u,d=I(!e)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return s=u,d=I(!0)},scanJsxIdentifier:function(){if(da(d)){for(;s=c)return d=1;for(let t=S(s);s=0&&Va(S(s-1))&&!(s+1{const e=b.getText();return e.slice(0,b.getTokenFullStart())+"║"+e.slice(b.getTokenFullStart())}}),b;function x(e){return ys(g,e)}function k(e){return e>=0&&e=0&&e=65&&e<=70)e+=32;else if(!(e>=48&&e<=57||e>=97&&e<=102))break;r.push(e),s++,o=!1}}return r.length=c){n+=g.substring(r,s),f|=4,C(ua.Unterminated_string_literal);break}const i=S(s);if(i===t){n+=g.substring(r,s),s++;break}if(92!==i||e){if((10===i||13===i)&&!e){n+=g.substring(r,s),f|=4,C(ua.Unterminated_string_literal);break}s++}else n+=g.substring(r,s),n+=O(3),r=s}return n}function I(e){const t=96===S(s);let n,r=++s,i="";for(;;){if(s>=c){i+=g.substring(r,s),f|=4,C(ua.Unterminated_template_literal),n=t?15:18;break}const o=S(s);if(96===o){i+=g.substring(r,s),s++,n=t?15:18;break}if(36===o&&s+1=c)return C(ua.Unexpected_end_of_text),"";const r=S(s);switch(s++,r){case 48:if(s>=c||!$a(S(s)))return"\0";case 49:case 50:case 51:s=55296&&i<=56319&&s+6=56320&&n<=57343)return s=t,o+String.fromCharCode(n)}return o;case 120:for(;s1114111&&(e&&C(ua.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,n,s-n),o=!0),s>=c?(e&&C(ua.Unexpected_end_of_text),o=!0):125===S(s)?s++:(e&&C(ua.Unterminated_Unicode_escape_sequence),o=!0),o?(f|=2048,g.substring(t,s)):(f|=8,xs(i))}function j(){if(s+5=0&&ms(r,e)){t+=L(!0),n=s;continue}if(r=j(),!(r>=0&&ms(r,e)))break;f|=1024,t+=g.substring(n,s),t+=xs(r),n=s+=6}}return t+=g.substring(n,s),t}function B(){const e=p.length;if(e>=2&&e<=12){const e=p.charCodeAt(0);if(e>=97&&e<=122){const e=ma.get(p);if(void 0!==e)return d=e}}return d=80}function J(e){let t="",n=!1,r=!1;for(;;){const i=S(s);if(95!==i){if(n=!0,!$a(i)||i-48>=e)break;t+=g[s],s++,r=!1}else f|=512,n?(n=!1,r=!0):C(r?ua.Multiple_consecutive_numeric_separators_are_not_permitted:ua.Numeric_separators_are_not_allowed_here,s,1),s++}return 95===S(s-1)&&C(ua.Numeric_separators_are_not_allowed_here,s-1,1),t}function z(){if(110===S(s))return p+="n",384&f&&(p=hT(p)+"n"),s++,10;{const e=128&f?parseInt(p.slice(2),2):256&f?parseInt(p.slice(2),8):+p;return p=""+e,9}}function q(){for(l=s,f=0;;){if(u=s,s>=c)return d=1;const r=x(s);if(0===s&&35===r&&rs(g,s)){if(s=is(g,s),t)continue;return d=6}switch(r){case 10:case 13:if(f|=1,t){s++;continue}return 13===r&&s+1=0&&fs(i,e))return p=L(!0)+M(),d=B();const o=j();return o>=0&&fs(o,e)?(s+=6,f|=1024,p=String.fromCharCode(o)+M(),d=B()):(C(ua.Invalid_character),s++,d=0);case 35:if(0!==s&&"!"===g[s+1])return C(ua.can_only_be_used_at_the_start_of_a_file,s,2),s++,d=0;const a=x(s+1);if(92===a){s++;const t=R();if(t>=0&&fs(t,e))return p="#"+L(!0)+M(),d=81;const n=j();if(n>=0&&fs(n,e))return s+=6,f|=1024,p="#"+String.fromCharCode(n)+M(),d=81;s--}return fs(a,e)?(s++,V(a,e)):(p="#",C(ua.Invalid_character,s++,vs(r))),d=81;case 65533:return C(ua.File_appears_to_be_binary,0,0),s=c,d=8;default:const l=V(r,e);if(l)return d=l;if(Va(r)){s+=vs(r);continue}if(Wa(r)){f|=1,s+=vs(r);continue}const _=vs(r);return C(ua.Invalid_character,s,_),s+=_,d=0}}}function U(){switch(v){case 0:return!0;case 1:return!1}return 3!==y&&4!==y||3!==v&&Ca.test(g.slice(l,s))}function V(e,t){let n=e;if(fs(n,t)){for(s+=vs(n);s=c)return d=1;let t=S(s);if(60===t)return 47===S(s+1)?(s+=2,d=31):(s++,d=30);if(123===t)return s++,d=19;let n=0;for(;s0)break;Ua(t)||(n=s)}s++}return p=g.substring(l,s),-1===n?13:12}function K(){switch(l=s,S(s)){case 34:case 39:return p=A(!0),d=11;default:return q()}}function G(){if(l=u=s,f=0,s>=c)return d=1;const t=x(s);switch(s+=vs(t),t){case 9:case 11:case 12:case 32:for(;s=0&&fs(t,e))return p=L(!0)+M(),d=B();const n=j();return n>=0&&fs(n,e)?(s+=6,f|=1024,p=String.fromCharCode(n)+M(),d=B()):(s++,d=0)}if(fs(t,e)){let n=t;for(;s=0),s=e,l=e,u=e,d=0,p=void 0,f=0}}function ys(e,t){return e.codePointAt(t)}function vs(e){return e>=65536?2:-1===e?0:1}var bs=String.fromCodePoint?e=>String.fromCodePoint(e):function(e){if(_n.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)};function xs(e){return bs(e)}var ks=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),Ss=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),Ts=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),Cs={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};function ws(e){return bo(e)||ho(e)}function Ds(e){return Z(e,ik,ck)}Cs.Script_Extensions=Cs.Script;var Ns=new Map([[99,"lib.esnext.full.d.ts"],[12,"lib.es2025.full.d.ts"],[11,"lib.es2024.full.d.ts"],[10,"lib.es2023.full.d.ts"],[9,"lib.es2022.full.d.ts"],[8,"lib.es2021.full.d.ts"],[7,"lib.es2020.full.d.ts"],[6,"lib.es2019.full.d.ts"],[5,"lib.es2018.full.d.ts"],[4,"lib.es2017.full.d.ts"],[3,"lib.es2016.full.d.ts"],[2,"lib.es6.d.ts"]]);function Fs(e){const t=xk(e);switch(t){case 99:case 12:case 11:case 10:case 9:case 8:case 7:case 6:case 5:case 4:case 3:case 2:return Ns.get(t);default:return"lib.d.ts"}}function Es(e){return e.start+e.length}function Ps(e){return 0===e.length}function As(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function Os(e,t){return t.start>=e.start&&Es(t)<=Es(e)}function Ls(e,t){return t.pos>=e.start&&t.end<=Es(e)}function js(e,t){return t.start>=e.pos&&Es(t)<=e.end}function Rs(e,t){return void 0!==Ms(e,t)}function Ms(e,t){const n=Vs(e,t);return n&&0===n.length?void 0:n}function Bs(e,t){return zs(e.start,e.length,t.start,t.length)}function Js(e,t,n){return zs(e.start,e.length,t,n)}function zs(e,t,n,r){return n<=e+t&&n+r>=e}function qs(e,t){return t<=Es(e)&&t>=e.start}function Us(e,t){return Js(t,e.pos,e.end-e.pos)}function Vs(e,t){const n=Math.max(e.start,t.start),r=Math.min(Es(e),Es(t));return n<=r?Hs(n,r):void 0}function Ws(e){e=e.filter((e=>e.length>0)).sort(((e,t)=>e.start!==t.start?e.start-t.start:e.length-t.length));const t=[];let n=0;for(;n=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function gc(e){const t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function hc(e){return gc(e.escapedText)}function yc(e){const t=Pa(e.escapedText);return t?et(t,wh):void 0}function vc(e){return e.valueDeclaration&&Gl(e.valueDeclaration)?hc(e.valueDeclaration.name):gc(e.escapedName)}function bc(e){const t=e.parent.parent;if(t){if(uu(t))return xc(t);switch(t.kind){case 244:if(t.declarationList&&t.declarationList.declarations[0])return xc(t.declarationList.declarations[0]);break;case 245:let e=t.expression;switch(227===e.kind&&64===e.operatorToken.kind&&(e=e.left),e.kind){case 212:return e.name;case 213:const t=e.argumentExpression;if(_N(t))return t}break;case 218:return xc(t.expression);case 257:if(uu(t.statement)||W_(t.statement))return xc(t.statement)}}}function xc(e){const t=wc(e);return t&&_N(t)?t:void 0}function kc(e,t){return!(!Tc(e)||!_N(e.name)||hc(e.name)!==hc(t))||!(!GF(e)||!V(e.declarationList.declarations,(e=>kc(e,t))))}function Sc(e){return e.name||bc(e)}function Tc(e){return!!e.name}function Cc(e){switch(e.kind){case 80:return e;case 349:case 342:{const{name:t}=e;if(167===t.kind)return t.right;break}case 214:case 227:{const t=e;switch(ng(t)){case 1:case 4:case 5:case 3:return _g(t.left);case 7:case 8:case 9:return t.arguments[1];default:return}}case 347:return Sc(e);case 341:return bc(e);case 278:{const{expression:t}=e;return _N(t)?t:void 0}case 213:const t=e;if(sg(t))return t.argumentExpression}return e.name}function wc(e){if(void 0!==e)return Cc(e)||(SF(e)||TF(e)||jF(e)?Dc(e):void 0)}function Dc(e){if(e.parent){if(sP(e.parent)||pF(e.parent))return e.parent.name;if(PF(e.parent)&&e===e.parent.right){if(_N(e.parent.left))return e.parent.left;if(Cx(e.parent.left))return _g(e.parent.left)}else if(pE(e.parent)&&_N(e.parent.name))return e.parent.name}}function Nc(e){if(Rv(e))return C(e.modifiers,FN)}function Fc(e){if(Fv(e,98303))return C(e.modifiers,e_)}function Ec(e,t){if(e.name){if(_N(e.name)){const n=e.name.escapedText;return ol(e.parent,t).filter((e=>UP(e)&&_N(e.name)&&e.name.escapedText===n))}{const n=e.parent.parameters.indexOf(e);_n.assert(n>-1,"Parameters should always be in their parents' parameter list");const r=ol(e.parent,t).filter(UP);if(nHP(e)&&e.typeParameters.some((e=>e.name.escapedText===n))))}function Oc(e){return Ic(e,!1)}function Lc(e){return Ic(e,!0)}function jc(e){return!!sl(e,UP)}function Rc(e){return sl(e,EP)}function Mc(e){return cl(e,QP)}function Bc(e){return sl(e,AP)}function Jc(e){return sl(e,OP)}function zc(e){return sl(e,OP,!0)}function qc(e){return sl(e,LP)}function Uc(e){return sl(e,LP,!0)}function Vc(e){return sl(e,jP)}function Wc(e){return sl(e,jP,!0)}function $c(e){return sl(e,RP)}function Hc(e){return sl(e,RP,!0)}function Kc(e){return sl(e,MP,!0)}function Gc(e){return sl(e,JP)}function Xc(e){return sl(e,JP,!0)}function Qc(e){return sl(e,qP)}function Yc(e){return sl(e,WP)}function Zc(e){return sl(e,VP)}function el(e){return sl(e,HP)}function tl(e){return sl(e,YP)}function nl(e){const t=sl(e,$P);if(t&&t.typeExpression&&t.typeExpression.type)return t}function rl(e){let t=sl(e,$P);return!t&&NN(e)&&(t=y(Pc(e),(e=>!!e.typeExpression))),t&&t.typeExpression&&t.typeExpression.type}function il(e){const t=Zc(e);if(t&&t.typeExpression)return t.typeExpression.type;const n=nl(e);if(n&&n.typeExpression){const e=n.typeExpression.type;if($N(e)){const t=y(e.members,MN);return t&&t.type}if(UN(e)||TP(e))return e.type}}function ol(e,t){var n;if(!jg(e))return s;let r=null==(n=e.jsDoc)?void 0:n.jsDocCache;if(void 0===r||t){const n=Rg(e,t);_n.assert(n.length<2||n[0]!==n[1]),r=A(n,(e=>DP(e)?e.tags:e)),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=r)}return r}function al(e){return ol(e,!1)}function sl(e,t,n){return y(ol(e,n),t)}function cl(e,t){return al(e).filter(t)}function ll(e,t){return al(e).filter((e=>e.kind===t))}function _l(e){return"string"==typeof e?e:null==e?void 0:e.map((e=>322===e.kind?e.text:function(e){const t=325===e.kind?"link":326===e.kind?"linkcode":"linkplain",n=e.name?Rp(e.name):"",r=e.name&&(""===e.text||e.text.startsWith("://"))?"":" ";return`{@${t} ${n}${r}${e.text}}`}(e))).join("")}function ul(e){if(FP(e)){if(BP(e.parent)){const t=$g(e.parent);if(t&&l(t.tags))return A(t.tags,(e=>HP(e)?e.typeParameters:void 0))}return s}if(Fg(e))return _n.assert(321===e.parent.kind),A(e.parent.tags,(e=>HP(e)?e.typeParameters:void 0));if(e.typeParameters)return e.typeParameters;if(GA(e)&&e.typeParameters)return e.typeParameters;if(Em(e)){const t=yv(e);if(t.length)return t;const n=rl(e);if(n&&UN(n)&&n.typeParameters)return n.typeParameters}return s}function dl(e){return e.constraint?e.constraint:HP(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function pl(e){return 80===e.kind||81===e.kind}function fl(e){return 179===e.kind||178===e.kind}function ml(e){return gF(e)&&!!(64&e.flags)}function gl(e){return hF(e)&&!!(64&e.flags)}function hl(e){return yF(e)&&!!(64&e.flags)}function yl(e){const t=e.kind;return!!(64&e.flags)&&(212===t||213===t||214===t||236===t)}function vl(e){return yl(e)&&!zF(e)&&!!e.questionDotToken}function bl(e){return vl(e.parent)&&e.parent.expression===e}function xl(e){return!yl(e.parent)||vl(e.parent)||e!==e.parent.expression}function kl(e){return 227===e.kind&&61===e.operatorToken.kind}function Sl(e){return qN(e)&&_N(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments}function Tl(e){return PA(e,8)}function Cl(e){return zF(e)&&!!(64&e.flags)}function wl(e){return 253===e.kind||252===e.kind}function Dl(e){return 281===e.kind||280===e.kind}function Nl(e){return 349===e.kind||342===e.kind}function Fl(e){return e>=167}function El(e){return e>=0&&e<=166}function Pl(e){return El(e.kind)}function Al(e){return De(e,"pos")&&De(e,"end")}function Il(e){return 9<=e&&e<=15}function Ol(e){return Il(e.kind)}function Ll(e){switch(e.kind){case 211:case 210:case 14:case 219:case 232:return!0}return!1}function jl(e){return 15<=e&&e<=18}function Rl(e){return jl(e.kind)}function Ml(e){const t=e.kind;return 17===t||18===t}function Bl(e){return LE(e)||BE(e)}function Jl(e){switch(e.kind){case 277:return e.isTypeOnly||156===e.parent.parent.phaseModifier;case 275:return 156===e.parent.phaseModifier;case 274:return 156===e.phaseModifier;case 272:return e.isTypeOnly}return!1}function zl(e){switch(e.kind){case 282:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 279:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 281:return e.parent.isTypeOnly}return!1}function ql(e){return Jl(e)||zl(e)}function Ul(e){return void 0!==dc(e,ql)}function Vl(e){return 11===e.kind||jl(e.kind)}function Wl(e){return HD(e)||_N(e)}function $l(e){var t;return _N(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function Hl(e){var t;return uN(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function Kl(e){const t=e.emitNode.autoGenerate.flags;return!!(32&t)&&!!(16&t)&&!!(8&t)}function Gl(e){return(PN(e)||g_(e))&&uN(e.name)}function Xl(e){return gF(e)&&uN(e.name)}function Ql(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function Yl(e){return!!(31&Gv(e))}function Zl(e){return Yl(e)||126===e||164===e||129===e}function e_(e){return Ql(e.kind)}function t_(e){const t=e.kind;return 167===t||80===t}function n_(e){const t=e.kind;return 80===t||81===t||11===t||9===t||168===t}function r_(e){const t=e.kind;return 80===t||207===t||208===t}function i_(e){return!!e&&l_(e.kind)}function o_(e){return!!e&&(l_(e.kind)||ON(e))}function a_(e){return e&&c_(e.kind)}function s_(e){return 112===e.kind||97===e.kind}function c_(e){switch(e){case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function l_(e){switch(e){case 174:case 180:case 324:case 181:case 182:case 185:case 318:case 186:return!0;default:return c_(e)}}function __(e){return uP(e)||xE(e)||KF(e)&&i_(e.parent)}function u_(e){const t=e.kind;return 177===t||173===t||175===t||178===t||179===t||182===t||176===t||241===t}function d_(e){return e&&(264===e.kind||232===e.kind)}function p_(e){return e&&(178===e.kind||179===e.kind)}function f_(e){return PN(e)&&Lv(e)}function m_(e){return Em(e)&&uC(e)?!(ag(e)&&pb(e.expression)||cg(e,!0)):e.parent&&d_(e.parent)&&PN(e)&&!Lv(e)}function g_(e){switch(e.kind){case 175:case 178:case 179:return!0;default:return!1}}function h_(e){return e_(e)||FN(e)}function y_(e){const t=e.kind;return 181===t||180===t||172===t||174===t||182===t||178===t||179===t||355===t}function v_(e){return y_(e)||u_(e)}function b_(e){const t=e.kind;return 304===t||305===t||306===t||175===t||178===t||179===t}function x_(e){return Tx(e.kind)}function k_(e){switch(e.kind){case 185:case 186:return!0}return!1}function S_(e){if(e){const t=e.kind;return 208===t||207===t}return!1}function T_(e){const t=e.kind;return 210===t||211===t}function C_(e){const t=e.kind;return 209===t||233===t}function w_(e){switch(e.kind){case 261:case 170:case 209:return!0}return!1}function D_(e){return pE(e)||NN(e)||E_(e)||A_(e)}function N_(e){return F_(e)||P_(e)}function F_(e){switch(e.kind){case 207:case 211:return!0}return!1}function E_(e){switch(e.kind){case 209:case 304:case 305:case 306:return!0}return!1}function P_(e){switch(e.kind){case 208:case 210:return!0}return!1}function A_(e){switch(e.kind){case 209:case 233:case 231:case 210:case 211:case 80:case 212:case 213:return!0}return ob(e,!0)}function I_(e){const t=e.kind;return 212===t||167===t||206===t}function O_(e){const t=e.kind;return 212===t||167===t}function L_(e){return j_(e)||JT(e)}function j_(e){switch(e.kind){case 214:case 215:case 216:case 171:case 287:case 286:case 290:return!0;case 227:return 104===e.operatorToken.kind;default:return!1}}function R_(e){return 214===e.kind||215===e.kind}function M_(e){const t=e.kind;return 229===t||15===t}function B_(e){return J_(Tl(e).kind)}function J_(e){switch(e){case 212:case 213:case 215:case 214:case 285:case 286:case 289:case 216:case 210:case 218:case 211:case 232:case 219:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 229:case 97:case 106:case 110:case 112:case 108:case 236:case 234:case 237:case 102:case 283:return!0;default:return!1}}function z_(e){return q_(Tl(e).kind)}function q_(e){switch(e){case 225:case 226:case 221:case 222:case 223:case 224:case 217:return!0;default:return J_(e)}}function U_(e){switch(e.kind){case 226:return!0;case 225:return 46===e.operator||47===e.operator;default:return!1}}function V_(e){switch(e.kind){case 106:case 112:case 97:case 225:return!0;default:return Ol(e)}}function W_(e){return function(e){switch(e){case 228:case 230:case 220:case 227:case 231:case 235:case 233:case 357:case 356:case 239:return!0;default:return q_(e)}}(Tl(e).kind)}function $_(e){const t=e.kind;return 217===t||235===t}function H_(e,t){switch(e.kind){case 249:case 250:case 251:case 247:case 248:return!0;case 257:return t&&H_(e.statement,t)}return!1}function K_(e){return jE(e)||RE(e)}function G_(e){return V(e,K_)}function X_(e){return!(Np(e)||jE(e)||Fv(e,32)||cp(e))}function Q_(e){return Np(e)||jE(e)||Fv(e,32)}function Y_(e){return 250===e.kind||251===e.kind}function Z_(e){return KF(e)||W_(e)}function eu(e){return KF(e)}function tu(e){return fE(e)||W_(e)}function nu(e){const t=e.kind;return 269===t||268===t||80===t}function ru(e){const t=e.kind;return 269===t||268===t}function iu(e){const t=e.kind;return 80===t||268===t}function ou(e){const t=e.kind;return 276===t||275===t}function au(e){return 268===e.kind||267===e.kind}function su(e){switch(e.kind){case 220:case 227:case 209:case 214:case 180:case 264:case 232:case 176:case 177:case 186:case 181:case 213:case 267:case 307:case 278:case 279:case 282:case 263:case 219:case 185:case 178:case 80:case 274:case 272:case 277:case 182:case 265:case 339:case 341:case 318:case 342:case 349:case 324:case 347:case 323:case 292:case 293:case 294:case 201:case 175:case 174:case 268:case 203:case 281:case 271:case 275:case 215:case 15:case 9:case 211:case 170:case 212:case 304:case 173:case 172:case 179:case 305:case 308:case 306:case 11:case 266:case 188:case 169:case 261:return!0;default:return!1}}function cu(e){switch(e.kind){case 220:case 242:case 180:case 270:case 300:case 176:case 195:case 177:case 186:case 181:case 249:case 250:case 251:case 263:case 219:case 185:case 178:case 182:case 339:case 341:case 318:case 324:case 347:case 201:case 175:case 174:case 268:case 179:case 308:case 266:return!0;default:return!1}}function lu(e){return 263===e||283===e||264===e||265===e||266===e||267===e||268===e||273===e||272===e||279===e||278===e||271===e}function _u(e){return 253===e||252===e||260===e||247===e||245===e||243===e||250===e||251===e||249===e||246===e||257===e||254===e||256===e||258===e||259===e||244===e||248===e||255===e||354===e}function uu(e){return 169===e.kind?e.parent&&346!==e.parent.kind||Em(e):220===(t=e.kind)||209===t||264===t||232===t||176===t||177===t||267===t||307===t||282===t||263===t||219===t||178===t||274===t||272===t||277===t||265===t||292===t||175===t||174===t||268===t||271===t||275===t||281===t||170===t||304===t||173===t||172===t||179===t||305===t||266===t||169===t||261===t||347===t||339===t||349===t||203===t;var t}function du(e){return lu(e.kind)}function pu(e){return _u(e.kind)}function fu(e){const t=e.kind;return _u(t)||lu(t)||function(e){if(242!==e.kind)return!1;if(void 0!==e.parent&&(259===e.parent.kind||300===e.parent.kind))return!1;return!Bf(e)}(e)}function mu(e){const t=e.kind;return _u(t)||lu(t)||242===t}function gu(e){const t=e.kind;return 284===t||167===t||80===t}function hu(e){const t=e.kind;return 110===t||80===t||212===t||296===t}function yu(e){const t=e.kind;return 285===t||295===t||286===t||12===t||289===t}function vu(e){const t=e.kind;return 292===t||294===t}function bu(e){const t=e.kind;return 11===t||295===t}function xu(e){const t=e.kind;return 287===t||286===t}function ku(e){const t=e.kind;return 287===t||286===t||290===t}function Su(e){const t=e.kind;return 297===t||298===t}function Tu(e){return e.kind>=310&&e.kind<=352}function Cu(e){return 321===e.kind||320===e.kind||322===e.kind||Mu(e)||wu(e)||NP(e)||FP(e)}function wu(e){return e.kind>=328&&e.kind<=352}function Du(e){return 179===e.kind}function Nu(e){return 178===e.kind}function Fu(e){if(!jg(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function Eu(e){return!!e.type}function Pu(e){return!!e.initializer}function Au(e){switch(e.kind){case 261:case 170:case 209:case 173:case 304:case 307:return!0;default:return!1}}function Iu(e){return 292===e.kind||294===e.kind||b_(e)}function Ou(e){return 184===e.kind||234===e.kind}var Lu=1073741823;function ju(e){let t=Lu;for(const n of e){if(!n.length)continue;let e=0;for(;e0?n.parent.parameters[r-1]:void 0,o=t.text,a=i?$(ds(o,Ya(o,i.end+1,!1,!0)),us(o,e.pos)):ds(o,Ya(o,e.pos,!1,!0));return V(a)&&zu(ye(a),t)}return!!_(n&&yf(n,t),(e=>zu(e,t)))}var Uu=[],Vu="tslib",Wu=160,$u=1e6,Hu=500;function Ku(e,t){const n=e.declarations;if(n)for(const e of n)if(e.kind===t)return e}function Gu(e,t){return C(e.declarations||s,(e=>e.kind===t))}function Xu(e){const t=new Map;if(e)for(const n of e)t.set(n.escapedName,n);return t}function Qu(e){return!!(33554432&e.flags)}function Yu(e){return!!(1536&e.flags)&&34===e.escapedName.charCodeAt(0)}var Zu=function(){var e="";const t=t=>e+=t;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(e,n)=>t(e),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Ua(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:nt,decreaseIndent:nt,clear:()=>e=""}}();function ed(e,t){return e.configFilePath!==t.configFilePath||function(e,t){return nd(e,t,VO)}(e,t)}function td(e,t){return nd(e,t,$O)}function nd(e,t,n){return e!==t&&n.some((n=>!gT(Kk(e,n),Kk(t,n))))}function rd(e,t){for(;;){const n=t(e);if("quit"===n)return;if(void 0!==n)return n;if(uP(e))return;e=e.parent}}function id(e,t){const n=e.entries();for(const[e,r]of n){const n=t(r,e);if(n)return n}}function od(e,t){const n=e.keys();for(const e of n){const n=t(e);if(n)return n}}function ad(e,t){e.forEach(((e,n)=>{t.set(n,e)}))}function sd(e){const t=Zu.getText();try{return e(Zu),Zu.getText()}finally{Zu.clear(),Zu.writeKeyword(t)}}function cd(e){return e.end-e.pos}function ld(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function _d(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&(n=e.resolvedModule.packageId,r=t.resolvedModule.packageId,n===r||!!n&&!!r&&n.name===r.name&&n.subModuleName===r.subModuleName&&n.version===r.version&&n.peerDependencies===r.peerDependencies)&&e.alternateResult===t.alternateResult;var n,r}function ud(e){return e.resolvedModule}function dd(e){return e.resolvedTypeReferenceDirective}function pd(e,t,n,r,i){var o;const a=null==(o=t.getResolvedModule(e,n,r))?void 0:o.alternateResult,s=a&&(2===Sk(t.getCompilerOptions())?[ua.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[a]]:[ua.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[a,a.includes(iM+"@types/")?`@types/${zM(i)}`:i]]),c=s?tk(void 0,s[0],...s[1]):t.typesPackageExists(i)?tk(void 0,ua.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,i,zM(i)):t.packageBundlesTypes(i)?tk(void 0,ua.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,i,n):tk(void 0,ua.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,zM(i));return c&&(c.repopulateInfo=()=>({moduleReference:n,mode:r,packageName:i===n?void 0:i})),c}function fd(e){const t=rT(e.fileName),n=e.packageJsonScope,r=".ts"===t?".mts":".js"===t?".mjs":void 0,i=n&&!n.contents.packageJsonContent.type?r?tk(void 0,ua.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,r,Ro(n.packageDirectory,"package.json")):tk(void 0,ua.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Ro(n.packageDirectory,"package.json")):r?tk(void 0,ua.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,r):tk(void 0,ua.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module);return i.repopulateInfo=()=>!0,i}function md({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function gd(e){return`${md(e)}@${e.version}${e.peerDependencies??""}`}function hd(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function yd(e,t,n,r){_n.assert(e.length===t.length);for(let i=0;i=0),Ma(t)[e]}function Cd(e){const t=bd(e),n=qa(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function wd(e,t){_n.assert(e>=0);const n=Ma(t),r=e,i=t.text;if(r+1===n.length)return i.length-1;{const e=n[r];let t=n[r+1]-1;for(_n.assert(Wa(i.charCodeAt(t)));e<=t&&Wa(i.charCodeAt(t));)t--;return t}}function Dd(e,t,n){return!(n&&n(t)||e.identifiers.has(t))}function Nd(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function Fd(e){return!Nd(e)}function Ed(e,t){return DN(e)?t===e.expression:ON(e)?t===e.modifiers:EN(e)?t===e.initializer:PN(e)?t===e.questionToken&&f_(e):sP(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Pd(e.modifiers,t,h_):cP(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Pd(e.modifiers,t,h_):IN(e)?t===e.exclamationToken:LN(e)?t===e.typeParameters||t===e.type||Pd(e.typeParameters,t,DN):jN(e)?t===e.typeParameters||Pd(e.typeParameters,t,DN):RN(e)?t===e.typeParameters||t===e.type||Pd(e.typeParameters,t,DN):!!SE(e)&&(t===e.modifiers||Pd(e.modifiers,t,h_))}function Pd(e,t,n){return!(!e||Xe(t)||!n(t))&&k(e,t)}function Ad(e,t,n){if(void 0===t||0===t.length)return e;let r=0;for(;r[`${qa(e,t.range.end).line}`,t]))),r=new Map;return{getUnusedExpectations:function(){return Ie(n.entries()).filter((([e,t])=>0===t.type&&!r.get(e))).map((([e,t])=>t))},markUsed:function(e){if(!n.has(`${e}`))return!1;return r.set(`${e}`,!0),!0}}}function qd(e,t,n){if(Nd(e))return e.pos;if(Tu(e)||12===e.kind)return Ya((t??bd(e)).text,e.pos,!1,!0);if(n&&Fu(e))return qd(e.jsDoc[0],t);if(353===e.kind){t??(t=bd(e));const r=pe(iA(e,t));if(r)return qd(r,t,n)}return Ya((t??bd(e)).text,e.pos,!1,!1,Im(e))}function Ud(e,t){const n=!Nd(e)&&FI(e)?v(e.modifiers,FN):void 0;return n?Ya((t||bd(e)).text,n.end):qd(e,t)}function Vd(e,t,n=!1){return Gd(e.text,t,n)}function Wd(e){return!!(RE(e)&&e.exportClause&&IE(e.exportClause)&&Kd(e.exportClause.name))}function $d(e){return 11===e.kind?e.text:gc(e.escapedText)}function Hd(e){return 11===e.kind?mc(e.text):e.escapedText}function Kd(e){return"default"===(11===e.kind?e.text:e.escapedText)}function Gd(e,t,n=!1){if(Nd(t))return"";let r=e.substring(n?t.pos:Ya(e,t.pos),t.end);return function(e){return!!dc(e,pP)}(t)&&(r=r.split(/\r\n|\n|\r/).map((e=>e.replace(/^\s*\*/,"").trimStart())).join("\n")),r}function Xd(e,t=!1){return Vd(bd(e),e,t)}function Qd(e){return e.pos}function Yd(e,t){return Se(e,t,Qd,yt)}function Zd(e){const t=e.emitNode;return t&&t.flags||0}function ep(e){const t=e.emitNode;return t&&t.internalFlags||0}var tp=ut((()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Iterator:new Map(Object.entries({es2015:s})),AsyncIterator:new Map(Object.entries({es2015:s})),ArrayBuffer:new Map(Object.entries({es2024:["maxByteLength","resizable","resize","detached","transfer","transferToFixedLength"]})),Atomics:new Map(Object.entries({es2017:["add","and","compareExchange","exchange","isLockFree","load","or","store","sub","wait","notify","xor"],es2024:["waitAsync"],esnext:["pause"]})),SharedArrayBuffer:new Map(Object.entries({es2017:["byteLength","slice"],es2024:["growable","maxByteLength","grow"]})),AsyncIterable:new Map(Object.entries({es2018:s})),AsyncIterableIterator:new Map(Object.entries({es2018:s})),AsyncGenerator:new Map(Object.entries({es2018:s})),AsyncGeneratorFunction:new Map(Object.entries({es2018:s})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"],es2024:["unicodeSets"]})),RegExpConstructor:new Map(Object.entries({es2025:["escape"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"],esnext:["fromAsync"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"],es2024:["groupBy"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],es2025:["f16round"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"],esnext:["getOrInsert","getOrInsertComputed"]})),MapConstructor:new Map(Object.entries({es2024:["groupBy"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"],es2025:["union","intersection","difference","symmetricDifference","isSubsetOf","isSupersetOf","isDisjointFrom"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"],es2024:["withResolvers"],es2025:["try"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"],esnext:["getOrInsert","getOrInsertComputed"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"],es2024:["isWellFormed","toWellFormed"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:s,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"],es2020:["RelativeTimeFormat","Locale","DisplayNames"],es2021:["ListFormat","DateTimeFormat"],es2022:["Segmenter"],es2025:["DurationFormat"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"],esnext:["metadata","dispose","asyncDispose"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],es2025:["setFloat16","getFloat16"]})),BigInt:new Map(Object.entries({es2020:s})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"],esnext:["toBase64","setFromBase64","toHex","setFromHex"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float16Array:new Map(Object.entries({es2025:s})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigInt64Array:new Map(Object.entries({es2020:s,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigUint64Array:new Map(Object.entries({es2020:s,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Error:new Map(Object.entries({es2022:["cause"]})),ErrorConstructor:new Map(Object.entries({esnext:["isError"]})),Uint8ArrayConstructor:new Map(Object.entries({esnext:["fromBase64","fromHex"]})),Date:new Map(Object.entries({esnext:["toTemporalInstant"]})),DisposableStack:new Map(Object.entries({esnext:s})),AsyncDisposableStack:new Map(Object.entries({esnext:s}))})))),np=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(np||{});function rp(e,t,n){if(t&&function(e,t){if(ty(e)||!e.parent||4&t&&e.isUnterminated)return!1;if(WD(e)){if(26656&e.numericLiteralFlags)return!1;if(512&e.numericLiteralFlags)return!!(8&t)}return!$D(e)}(e,n))return Vd(t,e);switch(e.kind){case 11:{const t=2&n?Fy:1&n||16777216&Zd(e)?ky:Ty;return e.singleQuote?"'"+t(e.text,39)+"'":'"'+t(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const t=1&n||16777216&Zd(e)?ky:Ty,r=e.rawText??py(t(e.text,96));switch(e.kind){case 15:return"`"+r+"`";case 16:return"`"+r+"${";case 17:return"}"+r+"${";case 18:return"}"+r+"`"}break}case 9:case 10:return e.text;case 14:return 4&n&&e.isUnterminated?e.text+(92===e.text.charCodeAt(e.text.length-1)?" /":"/"):e.text}return _n.fail(`Literal kind '${e.kind}' not accounted for.`)}function ip(e){return Ye(e)?`"${ky(e)}"`:""+e}function op(e){return Eo(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function ap(e){return!!(7&sc(e))||sp(e)}function sp(e){const t=Zh(e);return 261===t.kind&&300===t.parent.kind}function cp(e){return bE(e)&&(11===e.name.kind||pp(e))}function lp(e){return bE(e)&&11===e.name.kind}function _p(e){return bE(e)&&HD(e.name)}function up(e){return!!(t=e.valueDeclaration)&&268===t.kind&&!t.body;var t}function dp(e){return 308===e.kind||268===e.kind||o_(e)}function pp(e){return!!(2048&e.flags)}function fp(e){return cp(e)&&mp(e)}function mp(e){switch(e.parent.kind){case 308:return _O(e.parent);case 269:return cp(e.parent.parent)&&uP(e.parent.parent.parent)&&!_O(e.parent.parent.parent)}return!1}function gp(e){var t;return null==(t=e.declarations)?void 0:t.find((e=>!(fp(e)||bE(e)&&pp(e))))}function hp(e,t){return _O(e)||(1===(n=kk(t))||100<=n&&n<=199)&&!!e.commonJsModuleIndicator;var n}function yp(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!e.isDeclarationFile&&(!!Rk(t)||(!!CA(e.statements)||!(!_O(e)&&!Ck(t))))}function vp(e){return!!(33554432&e.flags)||Fv(e,128)}function bp(e,t){switch(e.kind){case 308:case 270:case 300:case 268:case 249:case 250:case 251:case 177:case 175:case 178:case 179:case 263:case 219:case 220:case 173:case 176:return!0;case 242:return!o_(t)}return!1}function xp(e){switch(_n.type(e),e.kind){case 339:case 347:case 324:return!0;default:return kp(e)}}function kp(e){switch(_n.type(e),e.kind){case 180:case 181:case 174:case 182:case 185:case 186:case 318:case 264:case 232:case 265:case 266:case 346:case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function Sp(e){switch(e.kind){case 273:case 272:return!0;default:return!1}}function Tp(e){return Sp(e)||Rm(e)}function Cp(e){return Sp(e)||zm(e)}function wp(e){switch(e.kind){case 273:case 272:case 244:case 264:case 263:case 268:case 266:case 265:case 267:return!0;default:return!1}}function Dp(e){return Np(e)||bE(e)||cF(e)||_f(e)}function Np(e){return Sp(e)||RE(e)}function Fp(e){return dc(e.parent,(e=>!!(1&cB(e))))}function Ep(e){return dc(e.parent,(e=>bp(e,e.parent)))}function Pp(e,t){let n=Ep(e);for(;n;)t(n),n=Ep(n)}function Ap(e){return e&&0!==cd(e)?Xd(e):"(Missing)"}function Ip(e){return e.declaration?Ap(e.declaration.parameters[0].name):void 0}function Op(e){return 168===e.kind&&!Rh(e.expression)}function Lp(e){var t;switch(e.kind){case 80:case 81:return(null==(t=e.emitNode)?void 0:t.autoGenerate)?void 0:e.escapedText;case 11:case 9:case 10:case 15:return mc(e.text);case 168:return Rh(e.expression)?mc(e.expression.text):void 0;case 296:return aC(e);default:return _n.assertNever(e)}}function jp(e){return _n.checkDefined(Lp(e))}function Rp(e){switch(e.kind){case 110:return"this";case 81:case 80:return 0===cd(e)?hc(e):Xd(e);case 167:return Rp(e.left)+"."+Rp(e.right);case 212:return _N(e.name)||uN(e.name)?Rp(e.expression)+"."+Rp(e.name):_n.assertNever(e.name);case 312:return Rp(e.left)+"#"+Rp(e.right);case 296:return Rp(e.namespace)+":"+Rp(e.name);default:return _n.assertNever(e)}}function Mp(e,t,...n){return Jp(bd(e),e,t,...n)}function Bp(e,t,n,...r){const i=Ya(e.text,t.pos);return Qx(e,i,t.end-i,n,...r)}function Jp(e,t,n,...r){const i=Qp(e,t);return Qx(e,i.start,i.length,n,...r)}function zp(e,t,n,r){const i=Qp(e,t);return Vp(e,i.start,i.length,n,r)}function qp(e,t,n,r){const i=Ya(e.text,t.pos);return Vp(e,i,t.end-i,n,r)}function Up(e,t,n){_n.assertGreaterThanOrEqual(t,0),_n.assertGreaterThanOrEqual(n,0),_n.assertLessThanOrEqual(t,e.length),_n.assertLessThanOrEqual(t+n,e.length)}function Vp(e,t,n,r,i){return Up(e.text,t,n),{file:e,start:t,length:n,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:i,canonicalHead:r.canonicalHead}}function Wp(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function $p(e){return"string"==typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Hp(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function Kp(e,...t){return{code:e.code,messageText:Yx(e,...t)}}function Gp(e,t){const n=hs(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);n.scan();return Hs(n.getTokenStart(),n.getTokenEnd())}function Xp(e,t){const n=hs(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function Qp(e,t){let n=t;switch(t.kind){case 308:{const t=Ya(e.text,0,!1);return t===e.text.length?$s(0,0):Gp(e,t)}case 261:case 209:case 264:case 232:case 265:case 268:case 267:case 307:case 263:case 219:case 175:case 178:case 179:case 266:case 173:case 172:case 275:n=t.name;break;case 220:return function(e,t){const n=Ya(e.text,t.pos);if(t.body&&242===t.body.kind){const{line:r}=qa(e,t.body.pos),{line:i}=qa(e,t.body.end);if(r0?t.statements[0].pos:t.end);case 254:case 230:return Gp(e,Ya(e.text,t.pos));case 239:return Gp(e,Ya(e.text,t.expression.end));case 351:return Gp(e,Ya(e.text,t.tagName.pos));case 177:{const n=t,r=Ya(e.text,n.pos),i=hs(e.languageVersion,!0,e.languageVariant,e.text,void 0,r);let o=i.scan();for(;137!==o&&1!==o;)o=i.scan();return Hs(r,i.getTokenEnd())}}if(void 0===n)return Gp(e,t.pos);_n.assert(!DP(n));const r=Nd(n),i=r||KD(t)?n.pos:Ya(e.text,n.pos);return r?(_n.assert(i===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),_n.assert(i===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(_n.assert(i>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),_n.assert(i<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Hs(i,n.end)}function Yp(e){return 308===e.kind&&!Zp(e)}function Zp(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)}function ef(e){return 6===e.scriptKind}function tf(e){return!!(4096&oc(e))}function nf(e){return!(!(8&oc(e))||ec(e,e.parent))}function rf(e){return 6==(7&sc(e))}function of(e){return 4==(7&sc(e))}function af(e){return 2==(7&sc(e))}function sf(e){const t=7&sc(e);return 2===t||4===t||6===t}function cf(e){return 1==(7&sc(e))}function lf(e){return 214===e.kind&&108===e.expression.kind}function _f(e){if(214!==e.kind)return!1;const t=e.expression;return 102===t.kind||qF(t)&&102===t.keywordToken&&"defer"===t.name.escapedText}function uf(e){return qF(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}function df(e){return cF(e)&&sF(e.argument)&&HD(e.argument.literal)}function pf(e){return 245===e.kind&&11===e.expression.kind}function ff(e){return!!(2097152&Zd(e))}function mf(e){return ff(e)&&mE(e)}function gf(e){return _N(e.name)&&!e.initializer}function hf(e){return ff(e)&&GF(e)&&h(e.declarationList.declarations,gf)}function yf(e,t){return 12!==e.kind?us(t.text,e.pos):void 0}function vf(e,t){return C(170===e.kind||169===e.kind||219===e.kind||220===e.kind||218===e.kind||261===e.kind||282===e.kind?$(ds(t,e.pos),us(t,e.pos)):us(t,e.pos),(n=>n.end<=e.end&&42===t.charCodeAt(n.pos+1)&&42===t.charCodeAt(n.pos+2)&&47!==t.charCodeAt(n.pos+3)))}var bf=/^\/\/\/\s*/,xf=/^\/\/\/\s*/,kf=/^\/\/\/\s*/,Sf=/^\/\/\/\s*/,Tf=/^\/\/\/\s*/,Cf=/^\/\/\/\s*/;function wf(e){if(183<=e.kind&&e.kind<=206)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return 223!==e.parent.kind;case 234:return Df(e);case 169:return 201===e.parent.kind||196===e.parent.kind;case 80:(167===e.parent.kind&&e.parent.right===e||212===e.parent.kind&&e.parent.name===e)&&(e=e.parent),_n.assert(80===e.kind||167===e.kind||212===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 167:case 212:case 110:{const{parent:t}=e;if(187===t.kind)return!1;if(206===t.kind)return!t.isTypeOf;if(183<=t.kind&&t.kind<=206)return!0;switch(t.kind){case 234:return Df(t);case 169:case 346:return e===t.constraint;case 173:case 172:case 170:case 261:case 263:case 219:case 220:case 177:case 175:case 174:case 178:case 179:case 180:case 181:case 182:case 217:return e===t.type;case 214:case 215:case 216:return k(t.typeArguments,e)}}}return!1}function Df(e){return QP(e.parent)||EP(e.parent)||oP(e.parent)&&!sb(e)}function Nf(e,t){return function e(n){switch(n.kind){case 254:return t(n);case 270:case 242:case 246:case 247:case 248:case 249:case 250:case 251:case 255:case 256:case 297:case 298:case 257:case 259:case 300:return rO(n,e)}}(e)}function Ff(e,t){return function e(n){switch(n.kind){case 230:const r=t(n);if(r)return r;const i=n.expression;if(!i)return;return e(i);case 267:case 265:case 268:case 266:return;default:if(i_(n)){if(n.name&&168===n.name.kind)return e(n.name.expression)}else if(!wf(n))return rO(n,e)}}(e)}function Ef(e){return e&&189===e.kind?e.elementType:e&&184===e.kind?ve(e.typeArguments):void 0}function Pf(e){switch(e.kind){case 265:case 264:case 232:case 188:return e.members;case 211:return e.properties}}function Af(e){if(e)switch(e.kind){case 209:case 307:case 170:case 304:case 173:case 172:case 305:case 261:return!0}return!1}function If(e){return 262===e.parent.kind&&244===e.parent.parent.kind}function Of(e){return!!Em(e)&&(mF(e.parent)&&PF(e.parent.parent)&&2===ng(e.parent.parent)||Lf(e.parent))}function Lf(e){return!!Em(e)&&(PF(e)&&1===ng(e))}function jf(e){return(pE(e)?af(e)&&_N(e.name)&&If(e):PN(e)?jv(e)&&Pv(e):EN(e)&&jv(e))||Lf(e)}function Rf(e){switch(e.kind){case 175:case 174:case 177:case 178:case 179:case 263:case 219:return!0}return!1}function Mf(e,t){for(;;){if(t&&t(e),257!==e.statement.kind)return e.statement;e=e.statement}}function Bf(e){return e&&242===e.kind&&i_(e.parent)}function Jf(e){return e&&175===e.kind&&211===e.parent.kind}function zf(e){return!(175!==e.kind&&178!==e.kind&&179!==e.kind||211!==e.parent.kind&&232!==e.parent.kind)}function qf(e){return e&&1===e.kind}function Uf(e){return e&&0===e.kind}function Vf(e,t,n,r){return _(null==e?void 0:e.properties,(e=>{if(!sP(e))return;const i=Lp(e.name);return t===i||r&&r===i?n(e):void 0}))}function Wf(e){if(e&&e.statements.length){return et(e.statements[0].expression,mF)}}function $f(e,t,n){return Hf(e,t,(e=>fF(e.initializer)?y(e.initializer.elements,(e=>HD(e)&&e.text===n)):void 0))}function Hf(e,t,n){return Vf(Wf(e),t,n)}function Kf(e){return dc(e.parent,i_)}function Gf(e){return dc(e.parent,a_)}function Xf(e){return dc(e.parent,d_)}function Qf(e){return dc(e.parent,(e=>d_(e)||i_(e)?"quit":ON(e)))}function Yf(e){return dc(e.parent,o_)}function Zf(e){const t=dc(e.parent,(e=>d_(e)?"quit":FN(e)));return t&&d_(t.parent)?Xf(t.parent):Xf(t??e)}function em(e,t,n){for(_n.assert(308!==e.kind);;){if(!(e=e.parent))return _n.fail();switch(e.kind){case 168:if(n&&d_(e.parent.parent))return e;e=e.parent.parent;break;case 171:170===e.parent.kind&&u_(e.parent.parent)?e=e.parent.parent:u_(e.parent)&&(e=e.parent);break;case 220:if(!t)continue;case 263:case 219:case 268:case 176:case 173:case 172:case 175:case 174:case 177:case 178:case 179:case 180:case 181:case 182:case 267:case 308:return e}}}function tm(e){switch(e.kind){case 220:case 263:case 219:case 173:return!0;case 242:switch(e.parent.kind){case 177:case 175:case 178:case 179:return!0;default:return!1}default:return!1}}function nm(e){_N(e)&&(gE(e.parent)||mE(e.parent))&&e.parent.name===e&&(e=e.parent);return uP(em(e,!0,!1))}function rm(e){const t=em(e,!1,!1);if(t)switch(t.kind){case 177:case 263:case 219:return t}}function im(e,t){for(;;){if(!(e=e.parent))return;switch(e.kind){case 168:e=e.parent;break;case 263:case 219:case 220:if(!t)continue;case 173:case 172:case 175:case 174:case 177:case 178:case 179:case 176:return e;case 171:170===e.parent.kind&&u_(e.parent.parent)?e=e.parent.parent:u_(e.parent)&&(e=e.parent)}}}function om(e){if(219===e.kind||220===e.kind){let t=e,n=e.parent;for(;218===n.kind;)t=n,n=n.parent;if(214===n.kind&&n.expression===t)return n}}function am(e){const t=e.kind;return(212===t||213===t)&&108===e.expression.kind}function sm(e){const t=e.kind;return(212===t||213===t)&&110===e.expression.kind}function cm(e){var t;return!!e&&pE(e)&&110===(null==(t=e.initializer)?void 0:t.kind)}function lm(e){return!!e&&(cP(e)||sP(e))&&PF(e.parent.parent)&&64===e.parent.parent.operatorToken.kind&&110===e.parent.parent.right.kind}function _m(e){switch(e.kind){case 184:return e.typeName;case 234:return cb(e.expression)?e.expression:void 0;case 80:case 167:return e}}function um(e){switch(e.kind){case 216:return e.tag;case 287:case 286:return e.tagName;case 227:return e.right;case 290:return e;default:return e.expression}}function dm(e,t,n,r){if(e&&Tc(t)&&uN(t.name))return!1;switch(t.kind){case 264:return!0;case 232:return!e;case 173:return void 0!==n&&(e?gE(n):d_(n)&&!Iv(t)&&!Ov(t));case 178:case 179:case 175:return void 0!==t.body&&void 0!==n&&(e?gE(n):d_(n));case 170:return!!e&&(void 0!==n&&void 0!==n.body&&(177===n.kind||175===n.kind||179===n.kind)&&cv(n)!==t&&void 0!==r&&264===r.kind)}return!1}function pm(e,t,n,r){return Rv(t)&&dm(e,t,n,r)}function fm(e,t,n,r){return pm(e,t,n,r)||mm(e,t,n)}function mm(e,t,n){switch(t.kind){case 264:return V(t.members,(r=>fm(e,r,t,n)));case 232:return!e&&V(t.members,(r=>fm(e,r,t,n)));case 175:case 179:case 177:return V(t.parameters,(r=>pm(e,r,t,n)));default:return!1}}function gm(e,t){if(pm(e,t))return!0;const n=ov(t);return!!n&&mm(e,n,t)}function hm(e,t,n){let r;if(p_(t)){const{firstAccessor:e,secondAccessor:i,setAccessor:o}=fv(n.members,t),a=Rv(e)?e:i&&Rv(i)?i:void 0;if(!a||t!==a)return!1;r=null==o?void 0:o.parameters}else IN(t)&&(r=t.parameters);if(pm(e,t,n))return!0;if(r)for(const i of r)if(!lv(i)&&pm(e,i,t,n))return!0;return!1}function ym(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return ym(e.textSourceNode);case 15:return""===e.text}return!1}return""===e.text}function vm(e){const{parent:t}=e;return(287===t.kind||286===t.kind||288===t.kind)&&t.tagName===e}function bm(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 210:case 211:case 212:case 213:case 214:case 215:case 216:case 235:case 217:case 239:case 236:case 218:case 219:case 232:case 220:case 223:case 221:case 222:case 225:case 226:case 227:case 228:case 231:case 229:case 233:case 285:case 286:case 289:case 230:case 224:return!0;case 237:return!_f(e.parent)||e.parent.expression!==e;case 234:return!oP(e.parent)&&!EP(e.parent);case 167:for(;167===e.parent.kind;)e=e.parent;return 187===e.parent.kind||Mu(e.parent)||fP(e.parent)||mP(e.parent)||vm(e);case 312:for(;mP(e.parent);)e=e.parent;return 187===e.parent.kind||Mu(e.parent)||fP(e.parent)||mP(e.parent)||vm(e);case 81:return PF(e.parent)&&e.parent.left===e&&103===e.parent.operatorToken.kind;case 80:if(187===e.parent.kind||Mu(e.parent)||fP(e.parent)||mP(e.parent)||vm(e))return!0;case 9:case 10:case 11:case 15:case 110:return xm(e);default:return!1}}function xm(e){const{parent:t}=e;switch(t.kind){case 261:case 170:case 173:case 172:case 307:case 304:case 209:return t.initializer===e;case 245:case 246:case 247:case 248:case 254:case 255:case 256:case 297:case 258:return t.expression===e;case 249:const n=t;return n.initializer===e&&262!==n.initializer.kind||n.condition===e||n.incrementor===e;case 250:case 251:const r=t;return r.initializer===e&&262!==r.initializer.kind||r.expression===e;case 217:case 235:case 240:case 168:case 239:return e===t.expression;case 171:case 295:case 294:case 306:return!0;case 234:return t.expression===e&&!wf(t);case 305:return t.objectAssignmentInitializer===e;default:return bm(t)}}function km(e){for(;167===e.kind||80===e.kind;)e=e.parent;return 187===e.kind}function Sm(e){return IE(e)&&!!e.parent.moduleSpecifier}function Tm(e){return 272===e.kind&&284===e.moduleReference.kind}function Cm(e){return _n.assert(Tm(e)),e.moduleReference.expression}function wm(e){return Rm(e)&&Nx(e.initializer).arguments[0]}function Dm(e){return 272===e.kind&&284!==e.moduleReference.kind}function Nm(e){return 308===(null==e?void 0:e.kind)}function Fm(e){return Em(e)}function Em(e){return!!e&&!!(524288&e.flags)}function Pm(e){return!!e&&!!(134217728&e.flags)}function Am(e){return!ef(e)}function Im(e){return!!e&&!!(16777216&e.flags)}function Om(e){return qN(e)&&_N(e.typeName)&&"Object"===e.typeName.escapedText&&e.typeArguments&&2===e.typeArguments.length&&(154===e.typeArguments[0].kind||150===e.typeArguments[0].kind)}function Lm(e,t){if(214!==e.kind)return!1;const{expression:n,arguments:r}=e;if(80!==n.kind||"require"!==n.escapedText)return!1;if(1!==r.length)return!1;const i=r[0];return!t||Ru(i)}function jm(e){return Jm(e,!1)}function Rm(e){return Jm(e,!0)}function Mm(e){return pF(e)&&Rm(e.parent.parent)}function Bm(e){if(jm(e))return e.initializer.arguments[0];if(Rm(e)){const t=Nx(e.initializer);if(Lm(t,!0))return t.arguments[0]}}function Jm(e,t){return pE(e)&&!!e.initializer&&Lm(t?Nx(e.initializer):e.initializer,!0)}function zm(e){return GF(e)&&e.declarationList.declarations.length>0&&h(e.declarationList.declarations,(e=>jm(e)))}function qm(e){return 39===e||34===e}function Um(e,t){return 34===Vd(t,e).charCodeAt(0)}function Vm(e){return PF(e)||Cx(e)||_N(e)||yF(e)}function Wm(e){return Em(e)&&e.initializer&&PF(e.initializer)&&(57===e.initializer.operatorToken.kind||61===e.initializer.operatorToken.kind)&&e.name&&cb(e.name)&&Qm(e.name,e.initializer.left)?e.initializer.right:e.initializer}function $m(e){const t=Wm(e);return t&&Km(t,pb(e.name))}function Hm(e){if(e&&e.parent&&PF(e.parent)&&64===e.parent.operatorToken.kind){const t=pb(e.parent.left);return Km(e.parent.right,t)||function(e,t,n){const r=PF(t)&&(57===t.operatorToken.kind||61===t.operatorToken.kind)&&Km(t.right,n);if(r&&Qm(e,t.left))return r}(e.parent.left,e.parent.right,t)}if(e&&yF(e)&&rg(e)){const t=function(e,t){return _(e.properties,(e=>sP(e)&&_N(e.name)&&"value"===e.name.escapedText&&e.initializer&&Km(e.initializer,t)))}(e.arguments[2],"prototype"===e.arguments[1].text);if(t)return t}}function Km(e,t){if(yF(e)){const t=sh(e.expression);return 219===t.kind||220===t.kind?e:void 0}return 219===e.kind||232===e.kind||220===e.kind||mF(e)&&(0===e.properties.length||t)?e:void 0}function Gm(e){const t=pE(e.parent)?e.parent.name:PF(e.parent)&&64===e.parent.operatorToken.kind?e.parent.left:void 0;return t&&Km(e.right,pb(t))&&cb(t)&&Qm(t,e.left)}function Xm(e){if(PF(e.parent)){const t=57!==e.parent.operatorToken.kind&&61!==e.parent.operatorToken.kind||!PF(e.parent.parent)?e.parent:e.parent.parent;if(64===t.operatorToken.kind&&_N(t.left))return t.left}else if(pE(e.parent))return e.parent.name}function Qm(e,t){return qh(e)&&qh(t)?Uh(e)===Uh(t):pl(e)&&ig(t)&&(110===t.expression.kind||_N(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))?Qm(e,lg(t)):!(!ig(e)||!ig(t))&&(ug(e)===ug(t)&&Qm(e.expression,t.expression))}function Ym(e){for(;ob(e,!0);)e=e.right;return e}function Zm(e){return _N(e)&&"exports"===e.escapedText}function eg(e){return _N(e)&&"module"===e.escapedText}function tg(e){return(gF(e)||og(e))&&eg(e.expression)&&"exports"===ug(e)}function ng(e){const t=function(e){if(yF(e)){if(!rg(e))return 0;const t=e.arguments[0];return Zm(t)||tg(t)?8:ag(t)&&"prototype"===ug(t)?9:7}if(64!==e.operatorToken.kind||!Cx(e.left)||(t=Ym(e),DF(t)&&WD(t.expression)&&"0"===t.expression.text))return 0;var t;if(cg(e.left.expression,!0)&&"prototype"===ug(e.left)&&mF(pg(e)))return 6;return dg(e.left)}(e);return 5===t||Em(e)?t:0}function rg(e){return 3===l(e.arguments)&&gF(e.expression)&&_N(e.expression.expression)&&"Object"===hc(e.expression.expression)&&"defineProperty"===hc(e.expression.name)&&Rh(e.arguments[1])&&cg(e.arguments[0],!0)}function ig(e){return gF(e)||og(e)}function og(e){return hF(e)&&Rh(e.argumentExpression)}function ag(e,t){return gF(e)&&(!t&&110===e.expression.kind||_N(e.name)&&cg(e.expression,!0))||sg(e,t)}function sg(e,t){return og(e)&&(!t&&110===e.expression.kind||cb(e.expression)||ag(e.expression,!0))}function cg(e,t){return cb(e)||ag(e,t)}function lg(e){return gF(e)?e.name:e.argumentExpression}function _g(e){if(gF(e))return e.name;const t=sh(e.argumentExpression);return WD(t)||Ru(t)?t:e}function ug(e){const t=_g(e);if(t){if(_N(t))return t.escapedText;if(Ru(t)||WD(t))return mc(t.text)}}function dg(e){if(110===e.expression.kind)return 4;if(tg(e))return 2;if(cg(e.expression,!0)){if(pb(e.expression))return 3;let t=e;for(;!_N(t.expression);)t=t.expression;const n=t.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===ug(t))&&ag(e))return 1;if(cg(e,!0)||hF(e)&&Jh(e))return 5}return 0}function pg(e){for(;PF(e.right);)e=e.right;return e.right}function fg(e){return PF(e)&&3===ng(e)}function mg(e){return Em(e)&&e.parent&&245===e.parent.kind&&(!hF(e)||og(e))&&!!nl(e.parent)}function gg(e,t){const{valueDeclaration:n}=e;(!n||(!(33554432&t.flags)||Em(t)||33554432&n.flags)&&Vm(n)&&!Vm(t)||n.kind!==t.kind&&function(e){return bE(e)||_N(e)}(n))&&(e.valueDeclaration=t)}function hg(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return 263===t.kind||pE(t)&&t.initializer&&i_(t.initializer)}function yg(e){switch(null==e?void 0:e.kind){case 261:case 209:case 273:case 279:case 272:case 274:case 281:case 275:case 282:case 277:case 206:return!0}return!1}function vg(e){var t,n;switch(e.kind){case 261:case 209:return null==(t=dc(e.initializer,(e=>Lm(e,!0))))?void 0:t.arguments[0];case 273:case 279:case 352:return et(e.moduleSpecifier,Ru);case 272:return et(null==(n=et(e.moduleReference,VE))?void 0:n.expression,Ru);case 274:case 281:return et(e.parent.moduleSpecifier,Ru);case 275:case 282:return et(e.parent.parent.moduleSpecifier,Ru);case 277:return et(e.parent.parent.parent.moduleSpecifier,Ru);case 206:return df(e)?e.argument.literal:void 0;default:_n.assertNever(e)}}function bg(e){return xg(e)||_n.failBadSyntaxKind(e.parent)}function xg(e){switch(e.parent.kind){case 273:case 279:case 352:return e.parent;case 284:return e.parent.parent;case 214:return _f(e.parent)||Lm(e.parent,!1)?e.parent:void 0;case 202:if(!HD(e))break;return et(e.parent.parent,cF);default:return}}function kg(e,t){return!!t.rewriteRelativeImportExtensions&&bo(e)&&!yO(e)&&RS(e)}function Sg(e){switch(e.kind){case 273:case 279:case 352:return e.moduleSpecifier;case 272:return 284===e.moduleReference.kind?e.moduleReference.expression:void 0;case 206:return df(e)?e.argument.literal:void 0;case 214:return e.arguments[0];case 268:return 11===e.name.kind?e.name:void 0;default:return _n.assertNever(e)}}function Tg(e){switch(e.kind){case 273:return e.importClause&&et(e.importClause.namedBindings,AE);case 272:return e;case 279:return e.exportClause&&et(e.exportClause,IE);default:return _n.assertNever(e)}}function Cg(e){return!(273!==e.kind&&352!==e.kind||!e.importClause||!e.importClause.name)}function wg(e,t){if(e.name){const n=t(e);if(n)return n}if(e.namedBindings){const n=AE(e.namedBindings)?t(e.namedBindings):_(e.namedBindings.elements,t);if(n)return n}}function Dg(e){switch(e.kind){case 170:case 175:case 174:case 305:case 304:case 173:case 172:return void 0!==e.questionToken}return!1}function Ng(e){const t=TP(e)?pe(e.parameters):void 0,n=et(t&&t.name,_N);return!!n&&"new"===n.escapedText}function Fg(e){return 347===e.kind||339===e.kind||341===e.kind}function Eg(e){return Fg(e)||yE(e)}function Pg(e){return QF(e)&&PF(e.expression)&&0!==ng(e.expression)&&PF(e.expression.right)&&(57===e.expression.right.operatorToken.kind||61===e.expression.right.operatorToken.kind)?e.expression.right.right:void 0}function Ag(e){switch(e.kind){case 244:const t=Ig(e);return t&&t.initializer;case 173:case 304:return e.initializer}}function Ig(e){return GF(e)?pe(e.declarationList.declarations):void 0}function Og(e){return bE(e)&&e.body&&268===e.body.kind?e.body:void 0}function Lg(e){if(e.kind>=244&&e.kind<=260)return!0;switch(e.kind){case 80:case 110:case 108:case 167:case 237:case 213:case 212:case 209:case 219:case 220:case 175:case 178:case 179:return!0;default:return!1}}function jg(e){switch(e.kind){case 220:case 227:case 242:case 253:case 180:case 297:case 264:case 232:case 176:case 177:case 186:case 181:case 252:case 260:case 247:case 213:case 243:case 1:case 267:case 307:case 278:case 279:case 282:case 245:case 250:case 251:case 249:case 263:case 219:case 185:case 178:case 80:case 246:case 273:case 272:case 182:case 265:case 318:case 324:case 257:case 175:case 174:case 268:case 203:case 271:case 211:case 170:case 218:case 212:case 304:case 173:case 172:case 254:case 241:case 179:case 305:case 306:case 256:case 258:case 259:case 266:case 169:case 261:case 244:case 248:case 255:return!0;default:return!1}}function Rg(e,t){let n;Af(e)&&Pu(e)&&Fu(e.initializer)&&(n=ae(n,Mg(e,e.initializer.jsDoc)));let r=e;for(;r&&r.parent;){if(Fu(r)&&(n=ae(n,Mg(e,r.jsDoc))),170===r.kind){n=ae(n,(t?Ac:Pc)(r));break}if(169===r.kind){n=ae(n,(t?Lc:Oc)(r));break}r=Bg(r)}return n||s}function Mg(e,t){const n=ye(t);return A(t,(t=>{if(t===n){const n=C(t.tags,(t=>function(e,t){return!(($P(t)||YP(t))&&t.parent&&DP(t.parent)&&kF(t.parent.parent)&&t.parent.parent!==e)}(e,t)));return t.tags===n?[t]:n}return C(t.tags,BP)}))}function Bg(e){const t=e.parent;return 304===t.kind||278===t.kind||173===t.kind||245===t.kind&&212===e.kind||254===t.kind||Og(t)||ob(e)?t:t.parent&&(Ig(t.parent)===e||ob(t))?t.parent:t.parent&&t.parent.parent&&(Ig(t.parent.parent)||Ag(t.parent.parent)===e||Pg(t.parent.parent))?t.parent.parent:void 0}function Jg(e){if(e.symbol)return e.symbol;if(!_N(e.name))return;const t=e.name.escapedText,n=Ug(e);if(!n)return;const r=y(n.parameters,(e=>80===e.name.kind&&e.name.escapedText===t));return r&&r.symbol}function zg(e){if(DP(e.parent)&&e.parent.tags){const t=y(e.parent.tags,Fg);if(t)return t}return Ug(e)}function qg(e){return cl(e,BP)}function Ug(e){const t=Vg(e);if(t)return EN(t)&&t.type&&i_(t.type)?t.type:i_(t)?t:void 0}function Vg(e){const t=Wg(e);if(t)return Pg(t)||function(e){return QF(e)&&PF(e.expression)&&64===e.expression.operatorToken.kind?Ym(e.expression):void 0}(t)||Ag(t)||Ig(t)||Og(t)||t}function Wg(e){const t=$g(e);if(!t)return;const n=t.parent;return n&&n.jsDoc&&t===he(n.jsDoc)?n:void 0}function $g(e){return dc(e.parent,DP)}function Hg(e){const t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&y(n,(e=>e.name.escapedText===t))}function Kg(e){return!!e.typeArguments}var Gg=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(Gg||{});function Xg(e){let t=e.parent;for(;;){switch(t.kind){case 227:const n=t;return nb(n.operatorToken.kind)&&n.left===e?n:void 0;case 225:case 226:const r=t,i=r.operator;return 46===i||47===i?r:void 0;case 250:case 251:const o=t;return o.initializer===e?o:void 0;case 218:case 210:case 231:case 236:e=t;break;case 306:e=t.parent;break;case 305:if(t.name!==e)return;e=t.parent;break;case 304:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function Qg(e){const t=Xg(e);if(!t)return 0;switch(t.kind){case 227:const e=t.operatorToken.kind;return 64===e||Yv(e)?1:2;case 225:case 226:return 2;case 250:case 251:return 1}}function Yg(e){return!!Xg(e)}function Zg(e){const t=Xg(e);return!!t&&ob(t,!0)&&function(e){const t=sh(e.right);return 227===t.kind&&rI(t.operatorToken.kind)}(t)}function eh(e){switch(e.kind){case 242:case 244:case 255:case 246:case 256:case 270:case 297:case 298:case 257:case 249:case 250:case 251:case 247:case 248:case 259:case 300:return!0}return!1}function th(e){return SF(e)||TF(e)||g_(e)||mE(e)||LN(e)}function nh(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function rh(e){return nh(e,197)}function ih(e){return nh(e,218)}function oh(e){let t;for(;e&&197===e.kind;)t=e,e=e.parent;return[t,e]}function ah(e){for(;nF(e);)e=e.type;return e}function sh(e,t){return PA(e,t?-2147483647:1)}function ch(e){return(212===e.kind||213===e.kind)&&((e=ih(e.parent))&&221===e.kind)}function lh(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function _h(e){return!uP(e)&&!S_(e)&&uu(e.parent)&&e.parent.name===e}function uh(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(wN(t))return t.parent;case 80:if(uu(t))return t.name===e?t:void 0;if(CN(t)){const e=t.parent;return UP(e)&&e.name===t?e:void 0}{const n=t.parent;return PF(n)&&0!==ng(n)&&(n.left.symbol||n.symbol)&&wc(n)===e?n:void 0}case 81:return uu(t)&&t.name===e?t:void 0;default:return}}function dh(e){return Rh(e)&&168===e.parent.kind&&uu(e.parent.parent)}function ph(e){const t=e.parent;switch(t.kind){case 173:case 172:case 175:case 174:case 178:case 179:case 307:case 304:case 212:return t.name===e;case 167:return t.right===e;case 209:case 277:return t.propertyName===e;case 282:case 292:case 286:case 287:case 288:return!0}return!1}function fh(e){switch(e.parent.kind){case 274:case 277:case 275:case 282:case 278:case 272:case 281:return e.parent;case 167:do{e=e.parent}while(167===e.parent.kind);return fh(e)}}function mh(e){return cb(e)||jF(e)}function gh(e){return mh(hh(e))}function hh(e){return jE(e)?e.expression:e.right}function yh(e){return 305===e.kind?e.name:304===e.kind?e.initializer:e.parent.right}function vh(e){const t=bh(e);if(t&&Em(e)){const t=Rc(e);if(t)return t.class}return t}function bh(e){const t=Th(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function xh(e){if(Em(e))return Mc(e).map((e=>e.class));{const t=Th(e.heritageClauses,119);return null==t?void 0:t.types}}function kh(e){return hE(e)?Sh(e)||s:d_(e)&&$(nn(vh(e)),xh(e))||s}function Sh(e){const t=Th(e.heritageClauses,96);return t?t.types:void 0}function Th(e,t){if(e)for(const n of e)if(n.token===t)return n}function Ch(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function wh(e){return 83<=e&&e<=166}function Dh(e){return 19<=e&&e<=79}function Nh(e){return wh(e)||Dh(e)}function Fh(e){return 128<=e&&e<=166}function Eh(e){return wh(e)&&!Fh(e)}function Ph(e){const t=Pa(e);return void 0!==t&&Eh(t)}function Ah(e){const t=yc(e);return!!t&&!Fh(t)}function Ih(e){return 2<=e&&e<=7}var Oh=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(Oh||{});function Lh(e){if(!e)return 4;let t=0;switch(e.kind){case 263:case 219:case 175:e.asteriskToken&&(t|=1);case 220:Fv(e,1024)&&(t|=2)}return e.body||(t|=4),t}function jh(e){switch(e.kind){case 263:case 219:case 220:case 175:return void 0!==e.body&&void 0===e.asteriskToken&&Fv(e,1024)}return!1}function Rh(e){return Ru(e)||WD(e)}function Mh(e){return FF(e)&&(40===e.operator||41===e.operator)&&WD(e.operand)}function Bh(e){const t=wc(e);return!!t&&Jh(t)}function Jh(e){if(168!==e.kind&&213!==e.kind)return!1;const t=hF(e)?sh(e.argumentExpression):e.expression;return!Rh(t)&&!Mh(t)}function zh(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:case 10:return mc(e.text);case 168:const t=e.expression;return Rh(t)?mc(t.text):Mh(t)?41===t.operator?Ea(t.operator)+t.operand.text:t.operand.text:void 0;case 296:return aC(e);default:return _n.assertNever(e)}}function qh(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Uh(e){return pl(e)?hc(e):nP(e)?sC(e):e.text}function Vh(e){return pl(e)?e.escapedText:nP(e)?aC(e):mc(e.text)}function Wh(e,t){return`__#${lJ(e)}@${t}`}function $h(e){return Kt(e.escapedName,"__@")}function Hh(e){return Kt(e.escapedName,"__#")}function Kh(e,t){switch((e=PA(e)).kind){case 232:if(Kz(e))return!1;break;case 219:if(e.name)return!1;break;case 220:break;default:return!1}return"function"!=typeof t||t(e)}function Gh(e){switch(e.kind){case 304:return!function(e){return _N(e)?"__proto__"===hc(e):HD(e)&&"__proto__"===e.text}(e.name);case 305:return!!e.objectAssignmentInitializer;case 261:return _N(e.name)&&!!e.initializer;case 170:case 209:return _N(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 173:return!!e.initializer;case 227:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return _N(e.left)}break;case 278:return!0}return!1}function Xh(e,t){if(!Gh(e))return!1;switch(e.kind){case 304:case 261:case 170:case 209:case 173:return Kh(e.initializer,t);case 305:return Kh(e.objectAssignmentInitializer,t);case 227:return Kh(e.right,t);case 278:return Kh(e.expression,t)}}function Qh(e){return"push"===e.escapedText||"unshift"===e.escapedText}function Yh(e){return 170===Zh(e).kind}function Zh(e){for(;209===e.kind;)e=e.parent.parent;return e}function ey(e){const t=e.kind;return 177===t||219===t||263===t||220===t||175===t||178===t||179===t||268===t||308===t}function ty(e){return YS(e.pos)||YS(e.end)}var ny=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(ny||{});function ry(e){const t=ay(e),n=215===e.kind&&void 0!==e.arguments;return iy(e.kind,t,n)}function iy(e,t,n){switch(e){case 215:return n?0:1;case 225:case 222:case 223:case 221:case 224:case 228:case 230:return 1;case 227:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function oy(e){const t=ay(e),n=215===e.kind&&void 0!==e.arguments;return cy(e.kind,t,n)}function ay(e){return 227===e.kind?e.operatorToken.kind:225===e.kind||226===e.kind?e.operator:e.kind}var sy=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.LogicalOR=5]="LogicalOR",e[e.Coalesce=5]="Coalesce",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(sy||{});function cy(e,t,n){switch(e){case 357:return 0;case 231:return 1;case 230:return 2;case 228:return 4;case 227:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return ly(t)}case 217:case 236:case 225:case 222:case 223:case 221:case 224:return 16;case 226:return 17;case 214:return 18;case 215:return n?19:18;case 216:case 212:case 213:case 237:return 19;case 235:case 239:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 210:case 211:case 219:case 220:case 232:case 14:case 15:case 229:case 218:case 233:case 285:case 286:case 289:return 20;default:return-1}}function ly(e){switch(e){case 61:case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function _y(e){return C(e,(e=>{switch(e.kind){case 295:return!!e.expression;case 12:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))}function uy(){let e=[];const t=[],n=new Map;let r=!1;return{add:function(i){let o;i.file?(o=n.get(i.file.fileName),o||(o=[],n.set(i.file.fileName,o),Y(t,i.file.fileName,Tt))):(r&&(r=!1,e=e.slice()),o=e);Y(o,i,ok,ck)},lookup:function(t){let r;r=t.file?n.get(t.file.fileName):e;if(!r)return;const i=Se(r,t,at,ok);if(i>=0)return r[i];if(~i>0&&ck(t,r[~i-1]))return r[~i-1];return},getGlobalDiagnostics:function(){return r=!0,e},getDiagnostics:function(r){if(r)return n.get(r)||[];const i=I(t,(e=>n.get(e)));if(!e.length)return i;return i.unshift(...e),i}}}var dy=/\$\{/g;function py(e){return e.replace(dy,"\\${")}function fy(e){return!!(2048&(e.templateFlags||0))}function my(e){return e&&!!(XD(e)?fy(e):fy(e.head)||V(e.templateSpans,(e=>fy(e.literal))))}var gy=/[\\"\u0000-\u001f\u2028\u2029\u0085]/g,hy=/[\\'\u0000-\u001f\u2028\u2029\u0085]/g,yy=/\r\n|[\\`\u0000-\u0009\u000b-\u001f\u2028\u2029\u0085]/g,vy=new Map(Object.entries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"}));function by(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function xy(e,t,n){if(0===e.charCodeAt(0)){const r=n.charCodeAt(t+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return vy.get(e)||by(e.charCodeAt(0))}function ky(e,t){const n=96===t?yy:39===t?hy:gy;return e.replace(n,xy)}var Sy=/[^\u0000-\u007F]/g;function Ty(e,t){return e=ky(e,t),Sy.test(e)?e.replace(Sy,(e=>by(e.charCodeAt(0)))):e}var Cy=/["\u0000-\u001f\u2028\u2029\u0085]/g,wy=/['\u0000-\u001f\u2028\u2029\u0085]/g,Dy=new Map(Object.entries({'"':""","'":"'"}));function Ny(e){return 0===e.charCodeAt(0)?"�":Dy.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Fy(e,t){const n=39===t?wy:Cy;return e.replace(n,Ny)}function Ey(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(39===(n=e.charCodeAt(0))||34===n||96===n)?e.substring(1,t-1):e;var n}function Py(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}var Ay=[""," "];function Iy(e){const t=Ay[1];for(let n=Ay.length;n<=e;n++)Ay.push(Ay[n-1]+t);return Ay[e]}function Oy(){return Ay[1].length}function Ly(e){var t,n,r,i,o,a=!1;function s(e){const n=La(e);n.length>1?(i=i+n.length-1,o=t.length-e.length+ye(n),r=o-t.length==0):r=!1}function c(e){e&&e.length&&(r&&(e=Iy(n)+e,r=!1),t+=e,s(e))}function l(e){e&&(a=!1),c(e)}function _(){t="",n=0,r=!0,i=0,o=0,a=!1}return _(),{write:l,rawWrite:function(e){void 0!==e&&(t+=e,s(e),a=!1)},writeLiteral:function(e){e&&e.length&&l(e)},writeLine:function(n){r&&!n||(i++,o=(t+=e).length,r=!0,a=!1)},increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>i,getColumn:()=>r?n*Oy():t.length-o,getText:()=>t,isAtStartOfLine:()=>r,hasTrailingComment:()=>a,hasTrailingWhitespace:()=>!!t.length&&Ua(t.charCodeAt(t.length-1)),clear:_,writeKeyword:l,writeOperator:l,writeParameter:l,writeProperty:l,writePunctuation:l,writeSpace:l,writeStringLiteral:l,writeSymbol:(e,t)=>l(e),writeTrailingSemicolon:l,writeComment:function(e){e&&(a=!0),c(e)}}}function jy(e){let t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(t){n(),e.writeLiteral(t)},writeStringLiteral(t){n(),e.writeStringLiteral(t)},writeSymbol(t,r){n(),e.writeSymbol(t,r)},writePunctuation(t){n(),e.writePunctuation(t)},writeKeyword(t){n(),e.writeKeyword(t)},writeOperator(t){n(),e.writeOperator(t)},writeParameter(t){n(),e.writeParameter(t)},writeSpace(t){n(),e.writeSpace(t)},writeProperty(t){n(),e.writeProperty(t)},writeComment(t){n(),e.writeComment(t)},writeLine(){n(),e.writeLine()},increaseIndent(){n(),e.increaseIndent()},decreaseIndent(){n(),e.decreaseIndent()}}}function Ry(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function My(e){return Vt(Ry(e))}function By(e,t,n){return t.moduleName||qy(e,t.fileName,n&&n.fileName)}function Jy(e,t){return e.getCanonicalFileName(Jo(t,e.getCurrentDirectory()))}function zy(e,t,n){const r=t.getExternalModuleFileFromDeclaration(n);if(!r||r.isDeclarationFile)return;const i=Sg(n);return!i||!Ru(i)||bo(i.text)||Jy(e,r.path).includes(Jy(e,$o(e.getCommonSourceDirectory())))?By(e,r):void 0}function qy(e,t,n){const r=t=>e.getCanonicalFileName(t),i=Vo(n?Fo(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),r),o=WS(sa(i,Jo(t,e.getCurrentDirectory()),i,r,!1));return n?Ho(o):o}function Uy(e,t,n){const r=t.getCompilerOptions();let i;return i=r.outDir?WS(Yy(e,t,r.outDir)):WS(e),i+n}function Vy(e,t){return Wy(e,t.getCompilerOptions(),t)}function Wy(e,t,n){const r=t.declarationDir||t.outDir,i=r?Zy(e,r,n.getCurrentDirectory(),n.getCommonSourceDirectory(),(e=>n.getCanonicalFileName(e))):e,o=$y(i);return WS(i)+o}function $y(e){return To(e,[".mjs",".mts"])?".d.mts":To(e,[".cjs",".cts"])?".d.cts":To(e,[".json"])?".d.json.ts":".d.ts"}function Hy(e){return To(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:To(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:To(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Ky(e,t,n,r){return n?Mo(r(),ia(n,e,t)):e}function Gy(e,t){var n;if(e.paths)return e.baseUrl??_n.checkDefined(e.pathsBasePath||(null==(n=t.getCurrentDirectory)?void 0:n.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function Xy(e,t,n){const r=e.getCompilerOptions();if(r.outFile){const t=kk(r),i=r.emitDeclarationOnly||2===t||4===t;return C(e.getSourceFiles(),(t=>(i||!_O(t))&&Qy(t,e,n)))}return C(void 0===t?e.getSourceFiles():[t],(t=>Qy(t,e,n)))}function Qy(e,t,n){const r=t.getCompilerOptions();if(r.noEmitForJsFiles&&Fm(e))return!1;if(e.isDeclarationFile)return!1;if(t.isSourceFileFromExternalLibrary(e))return!1;if(n)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!ef(e))return!0;if(t.getRedirectFromSourceFile(e.fileName))return!1;if(r.outFile)return!0;if(!r.outDir)return!1;if(r.rootDir||r.configFilePath){const n=Jo(mU(r,(()=>[]),t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),i=Zy(e.fileName,r.outDir,t.getCurrentDirectory(),n,t.getCanonicalFileName);if(0===ea(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()))return!1}return!0}function Yy(e,t,n){return Zy(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e)))}function Zy(e,t,n,r,i){let o=Jo(e,n);return o=0===i(o).indexOf(i(r))?o.substring(r.length):o,Ro(t,o)}function ev(e,t,n,r,i,o,a){e.writeFile(n,r,i,(e=>{t.add(Zx(ua.Could_not_write_file_0_Colon_1,n,e))}),o,a)}function tv(e,t,n){if(e.length>No(e)&&!n(e)){tv(Fo(e),t,n),t(e)}}function nv(e,t,n,r,i,o){try{r(e,t,n)}catch{tv(Fo(zo(e)),i,o),r(e,t,n)}}function rv(e,t){return Ja(Ma(e),t)}function iv(e,t){return Ja(e,t)}function ov(e){return y(e.members,(e=>LN(e)&&Fd(e.body)))}function av(e){if(e&&e.parameters.length>0){const t=2===e.parameters.length&&lv(e.parameters[0]);return e.parameters[t?1:0]}}function sv(e){const t=av(e);return t&&t.type}function cv(e){if(e.parameters.length&&!FP(e)){const t=e.parameters[0];if(lv(t))return t}}function lv(e){return _v(e.name)}function _v(e){return!!e&&80===e.kind&&pv(e)}function uv(e){return!!dc(e,(e=>187===e.kind||80!==e.kind&&167!==e.kind&&"quit"))}function dv(e){if(!_v(e))return!1;for(;CN(e.parent)&&e.parent.left===e;)e=e.parent;return 187===e.parent.kind}function pv(e){return"this"===e.escapedText}function fv(e,t){let n,r,i,o;return Bh(t)?(n=t,178===t.kind?i=t:179===t.kind?o=t:_n.fail("Accessor has wrong kind")):_(e,(e=>{if(p_(e)&&Ev(e)===Ev(t)){zh(e.name)===zh(t.name)&&(n?r||(r=e):n=e,178!==e.kind||i||(i=e),179!==e.kind||o||(o=e))}})),{firstAccessor:n,secondAccessor:r,getAccessor:i,setAccessor:o}}function mv(e){if(!Em(e)&&mE(e))return;if(yE(e))return;const t=e.type;return t||!Em(e)?t:Nl(e)?e.typeExpression&&e.typeExpression.type:rl(e)}function gv(e){return e.type}function hv(e){return FP(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Em(e)?il(e):void 0)}function yv(e){return A(al(e),(e=>function(e){return HP(e)&&!(321===e.parent.kind&&(e.parent.tags.some(Fg)||e.parent.tags.some(BP)))}(e)?e.typeParameters:void 0))}function vv(e){const t=av(e);return t&&mv(t)}function bv(e,t,n,r){!function(e,t,n,r){r&&r.length&&n!==r[0].pos&&iv(e,n)!==iv(e,r[0].pos)&&t.writeLine()}(e,t,n.pos,r)}function xv(e,t,n,r){n!==r&&iv(e,n)!==iv(e,r)&&t.writeLine()}function kv(e,t,n,r,i,o,a){let s,c;if(a?0===i.pos&&(s=C(us(e,i.pos),(function(t){return Jd(e,t.pos)}))):s=us(e,i.pos),s){const a=[];let l;for(const e of s){if(l){const n=iv(t,l.end);if(iv(t,e.pos)>=n+2)break}a.push(e),l=e}if(a.length){const l=iv(t,ye(a).end);iv(t,Ya(e,i.pos))>=l+2&&(bv(t,n,i,s),function(e,t,n,r,i,o,a,s){if(r&&r.length>0){i&&n.writeSpace(" ");let c=!1;for(const i of r)c&&(n.writeSpace(" "),c=!1),s(e,t,n,i.pos,i.end,a),i.hasTrailingNewLine?n.writeLine():c=!0;c&&o&&n.writeSpace(" ")}}(e,t,n,a,!1,!0,o,r),c={nodePos:i.pos,detachedCommentEndPos:ye(a).end})}}return c}function Sv(e,t,n,r,i,o){if(42===e.charCodeAt(r+1)){const a=Ba(t,r),s=t.length;let c;for(let l=r,_=a.line;l0){let e=i%Oy();const t=Iy((i-e)/Oy());for(n.rawWrite(t);e;)n.rawWrite(" "),e--}else n.rawWrite("")}Tv(e,i,n,o,l,u),l=u}}else n.writeComment(e.substring(r,i))}function Tv(e,t,n,r,i,o){const a=Math.min(t,o-1),s=e.substring(i,a).trim();s?(n.writeComment(s),a!==t&&n.writeLine()):n.rawWrite(r)}function Cv(e,t,n){let r=0;for(;t=0&&e.kind<=166?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Hv(e)),n||t&&Em(e)?(268435456&e.modifierFlagsCache||!e.parent||(e.modifierFlagsCache|=268435456|Vv(e)),Wv(e.modifierFlagsCache)):65535&e.modifierFlagsCache)}function zv(e){return Jv(e,!0)}function qv(e){return Jv(e,!0,!0)}function Uv(e){return Jv(e,!1)}function Vv(e){let t=0;return e.parent&&!NN(e)&&(Em(e)&&(zc(e)&&(t|=8388608),Uc(e)&&(t|=16777216),Wc(e)&&(t|=33554432),Hc(e)&&(t|=67108864),Kc(e)&&(t|=134217728)),Xc(e)&&(t|=65536)),t}function Wv(e){return 131071&e|(260046848&e)>>>23}function $v(e){return Hv(e)|function(e){return Wv(Vv(e))}(e)}function Hv(e){let t=FI(e)?Kv(e.modifiers):0;return(8&e.flags||80===e.kind&&4096&e.flags)&&(t|=32),t}function Kv(e){let t=0;if(e)for(const n of e)t|=Gv(n.kind);return t}function Gv(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 171:return 32768}return 0}function Xv(e){return 57===e||56===e}function Qv(e){return Xv(e)||54===e}function Yv(e){return 76===e||77===e||78===e}function Zv(e){return PF(e)&&Yv(e.operatorToken.kind)}function eb(e){return Xv(e)||61===e}function tb(e){return PF(e)&&eb(e.operatorToken.kind)}function nb(e){return e>=64&&e<=79}function rb(e){const t=ib(e);return t&&!t.isImplements?t.class:void 0}function ib(e){if(MF(e)){if(oP(e.parent)&&d_(e.parent.parent))return{class:e.parent.parent,isImplements:119===e.parent.token};if(EP(e.parent)){const t=Vg(e.parent);if(t&&d_(t))return{class:t,isImplements:!1}}}}function ob(e,t){return PF(e)&&(t?64===e.operatorToken.kind:nb(e.operatorToken.kind))&&B_(e.left)}function ab(e){if(ob(e,!0)){const t=e.left.kind;return 211===t||210===t}return!1}function sb(e){return void 0!==rb(e)}function cb(e){return 80===e.kind||ub(e)}function lb(e){switch(e.kind){case 80:return e;case 167:do{e=e.left}while(80!==e.kind);return e;case 212:do{e=e.expression}while(80!==e.kind);return e}}function _b(e){return 80===e.kind||110===e.kind||108===e.kind||237===e.kind||212===e.kind&&_b(e.expression)||218===e.kind&&_b(e.expression)}function ub(e){return gF(e)&&_N(e.name)&&cb(e.expression)}function db(e){if(gF(e)){const t=db(e.expression);if(void 0!==t)return t+"."+Rp(e.name)}else if(hF(e)){const t=db(e.expression);if(void 0!==t&&n_(e.argumentExpression))return t+"."+zh(e.argumentExpression)}else{if(_N(e))return gc(e.escapedText);if(nP(e))return sC(e)}}function pb(e){return ag(e)&&"prototype"===ug(e)}function fb(e){return 167===e.parent.kind&&e.parent.right===e||212===e.parent.kind&&e.parent.name===e||237===e.parent.kind&&e.parent.name===e}function mb(e){return!!e.parent&&(gF(e.parent)&&e.parent.name===e||hF(e.parent)&&e.parent.argumentExpression===e)}function gb(e){return CN(e.parent)&&e.parent.right===e||gF(e.parent)&&e.parent.name===e||mP(e.parent)&&e.parent.right===e}function hb(e){return PF(e)&&104===e.operatorToken.kind}function yb(e){return hb(e.parent)&&e===e.parent.right}function vb(e){return 211===e.kind&&0===e.properties.length}function bb(e){return 210===e.kind&&0===e.elements.length}function xb(e){if(function(e){return e&&l(e.declarations)>0&&Fv(e.declarations[0],2048)}(e)&&e.declarations)for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}function kb(e){return y(DS,(t=>So(e,t)))}var Sb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Tb(e){let t="";const n=function(e){const t=[],n=e.length;for(let r=0;r>6|192),t.push(63&n|128)):n<65536?(t.push(n>>12|224),t.push(n>>6&63|128),t.push(63&n|128)):n<131072?(t.push(n>>18|240),t.push(n>>12&63|128),t.push(n>>6&63|128),t.push(63&n|128)):_n.assert(!1,"Unexpected code point")}return t}(e);let r=0;const i=n.length;let o,a,s,c;for(;r>2,a=(3&n[r])<<4|n[r+1]>>4,s=(15&n[r+1])<<2|n[r+2]>>6,c=63&n[r+2],r+1>=i?s=c=64:r+2>=i&&(c=64),t+=Sb.charAt(o)+Sb.charAt(a)+Sb.charAt(s)+Sb.charAt(c),r+=3;return t}function Cb(e,t){return e&&e.base64encode?e.base64encode(t):Tb(t)}function wb(e,t){if(e&&e.base64decode)return e.base64decode(t);const n=t.length,r=[];let i=0;for(;i>4&3,c=(15&n)<<4|o>>2&15,l=(3&o)<<6|63&a;0===c&&0!==o?r.push(s):0===l&&0!==a?r.push(s,c):r.push(s,c,l),i+=4}return function(e){let t="",n=0;const r=e.length;for(;n=e||-1===t),{pos:e,end:t}}function Lb(e,t){return Ob(e.pos,t)}function jb(e,t){return Ob(t,e.end)}function Rb(e){const t=FI(e)?v(e.modifiers,FN):void 0;return t&&!YS(t.end)?jb(e,t.end):e}function Mb(e){if(PN(e)||IN(e))return jb(e,e.name.pos);const t=FI(e)?he(e.modifiers):void 0;return t&&!YS(t.end)?jb(e,t.end):Rb(e)}function Bb(e,t){return Ob(e,e+Ea(t).length)}function Jb(e,t){return Ub(e,e,t)}function zb(e,t,n){return Kb(Gb(e,n,!1),Gb(t,n,!1),n)}function qb(e,t,n){return Kb(e.end,t.end,n)}function Ub(e,t,n){return Kb(Gb(e,n,!1),t.end,n)}function Vb(e,t,n){return Kb(e.end,Gb(t,n,!1),n)}function Wb(e,t,n,r){const i=Gb(t,n,r);return za(n,e.end,i)}function $b(e,t,n){return za(n,e.end,t.end)}function Hb(e,t){return!Kb(e.pos,e.end,t)}function Kb(e,t,n){return 0===za(n,e,t)}function Gb(e,t,n){return YS(e.pos)?-1:Ya(t.text,e.pos,!1,n)}function Xb(e,t,n,r){const i=Ya(n.text,e,!1,r),o=function(e,t=0,n){for(;e-- >t;)if(!Ua(n.text.charCodeAt(e)))return e}(i,t,n);return za(n,o??t,i)}function Qb(e,t,n,r){const i=Ya(n.text,e,!1,r);return za(n,e,Math.min(t,i))}function Yb(e,t){return Zb(e.pos,e.end,t)}function Zb(e,t,n){return e<=n.pos&&t>=n.end}function ex(e){const t=fc(e);if(t)switch(t.parent.kind){case 267:case 268:return t===t.parent.name}return!1}function tx(e){return C(e.declarations,nx)}function nx(e){return pE(e)&&void 0!==e.initializer}function rx(e){return e.watch&&De(e,"watch")}function ix(e){e.close()}function ox(e){return 33554432&e.flags?e.links.checkFlags:0}function ax(e,t=!1){if(e.valueDeclaration){const n=oc(t&&e.declarations&&y(e.declarations,RN)||32768&e.flags&&y(e.declarations,jN)||e.valueDeclaration);return e.parent&&32&e.parent.flags?n:-8&n}if(6&ox(e)){const t=e.links.checkFlags;return(1024&t?2:256&t?1:4)|(2048&t?256:0)}return 4194304&e.flags?257:0}function sx(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e}function cx(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function lx(e){return 1===ux(e)}function _x(e){return 0!==ux(e)}function ux(e){const{parent:t}=e;switch(null==t?void 0:t.kind){case 218:case 210:return ux(t);case 226:case 225:const{operator:n}=t;return 46===n||47===n?2:0;case 227:const{left:r,operatorToken:i}=t;return r===e&&nb(i.kind)?64===i.kind?1:2:0;case 212:return t.name!==e?0:ux(t);case 304:{const n=ux(t.parent);return e===t.name?function(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return _n.assertNever(e)}}(n):n}case 305:return e===t.objectAssignmentInitializer?0:ux(t.parent);case 250:case 251:return e===t.initializer?1:0;default:return 0}}function dx(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if("object"==typeof e[n]){if(!dx(e[n],t[n]))return!1}else if("function"!=typeof e[n]&&e[n]!==t[n])return!1;return!0}function px(e,t){e.forEach(t),e.clear()}function fx(e,t,n){const{onDeleteValue:r,onExistingValue:i}=n;e.forEach(((n,o)=>{var a;(null==t?void 0:t.has(o))?i&&i(n,null==(a=t.get)?void 0:a.call(t,o),o):(e.delete(o),r(n,o))}))}function mx(e,t,n){fx(e,t,n);const{createNewValue:r}=n;null==t||t.forEach(((t,n)=>{e.has(n)||e.set(n,r(n,t))}))}function gx(e){if(32&e.flags){const t=hx(e);return!!t&&Fv(t,64)}return!1}function hx(e){var t;return null==(t=e.declarations)?void 0:t.find(d_)}function yx(e){return 403963917&e.flags?e.objectFlags:0}function vx(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&SE(e.declarations[0])}function bx({moduleSpecifier:e}){return HD(e)?e.text:Xd(e)}function xx(e){let t;return rO(e,(e=>{Fd(e)&&(t=e)}),(e=>{for(let n=e.length-1;n>=0;n--)if(Fd(e[n])){t=e[n];break}})),t}function kx(e,t){return!e.has(t)&&(e.add(t),!0)}function Sx(e){return d_(e)||hE(e)||$N(e)}function Tx(e){return e>=183&&e<=206||133===e||159===e||150===e||163===e||151===e||136===e||154===e||155===e||116===e||157===e||146===e||141===e||234===e||313===e||314===e||315===e||316===e||317===e||318===e||319===e}function Cx(e){return 212===e.kind||213===e.kind}function wx(e){return 212===e.kind?e.name:(_n.assert(213===e.kind),e.argumentExpression)}function Dx(e){return 276===e.kind||280===e.kind}function Nx(e){for(;Cx(e);)e=e.expression;return e}function Fx(e,t){if(Cx(e.parent)&&mb(e))return function e(n){if(212===n.kind){const e=t(n.name);if(void 0!==e)return e}else if(213===n.kind){if(!_N(n.argumentExpression)&&!Ru(n.argumentExpression))return;{const e=t(n.argumentExpression);if(void 0!==e)return e}}if(Cx(n.expression))return e(n.expression);if(_N(n.expression))return t(n.expression);return}(e.parent)}function Ex(e,t){for(;;){switch(e.kind){case 226:e=e.operand;continue;case 227:e=e.left;continue;case 228:e=e.condition;continue;case 216:e=e.tag;continue;case 214:if(t)return e;case 235:case 213:case 212:case 236:case 356:case 239:e=e.expression;continue}return e}}function Px(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function Ax(e,t){this.flags=t,(_n.isDebugging||$n)&&(this.checker=e)}function Ix(e,t){this.flags=t,_n.isDebugging&&(this.checker=e)}function Ox(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Lx(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function jx(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Rx(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}var Mx,Bx={getNodeConstructor:()=>Ox,getTokenConstructor:()=>Lx,getIdentifierConstructor:()=>jx,getPrivateIdentifierConstructor:()=>Ox,getSourceFileConstructor:()=>Ox,getSymbolConstructor:()=>Px,getTypeConstructor:()=>Ax,getSignatureConstructor:()=>Ix,getSourceMapSourceConstructor:()=>Rx},Jx=[];function zx(e){Jx.push(e),e(Bx)}function qx(e){Object.assign(Bx,e),_(Jx,(e=>e(Bx)))}function Ux(e,t){return e.replace(/\{(\d+)\}/g,((e,n)=>""+_n.checkDefined(t[+n])))}function Vx(e){Mx=e}function Wx(e){!Mx&&e&&(Mx=e())}function $x(e){return Mx&&Mx[e.key]||e.message}function Hx(e,t,n,r,i,...o){n+r>t.length&&(r=t.length-n),Up(t,n,r);let a=$x(i);return V(o)&&(a=Ux(a,o)),{file:void 0,start:n,length:r,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:e}}function Kx(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function Gx(e,t){const n=t.fileName||"",r=t.text.length;_n.assertEqual(e.fileName,n),_n.assertLessThanOrEqual(e.start,r),_n.assertLessThanOrEqual(e.start+e.length,r);const i={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){i.relatedInformation=[];for(const o of e.relatedInformation)Kx(o)&&o.fileName===n?(_n.assertLessThanOrEqual(o.start,r),_n.assertLessThanOrEqual(o.start+o.length,r),i.relatedInformation.push(Gx(o,t))):i.relatedInformation.push(o)}return i}function Xx(e,t){const n=[];for(const r of e)n.push(Gx(r,t));return n}function Qx(e,t,n,r,...i){Up(e.text,t,n);let o=$x(r);return V(i)&&(o=Ux(o,i)),{file:e,start:t,length:n,messageText:o,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated}}function Yx(e,...t){let n=$x(e);return V(t)&&(n=Ux(n,t)),n}function Zx(e,...t){let n=$x(e);return V(t)&&(n=Ux(n,t)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function ek(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function tk(e,t,...n){let r=$x(t);return V(n)&&(r=Ux(r,n)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}}function nk(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function rk(e){return e.file?e.file.path:void 0}function ik(e,t){return ok(e,t)||function(e,t){if(!e.relatedInformation&&!t.relatedInformation)return 0;if(e.relatedInformation&&t.relatedInformation)return yt(t.relatedInformation.length,e.relatedInformation.length)||_(e.relatedInformation,((e,n)=>ik(e,t.relatedInformation[n])))||0;return e.relatedInformation?-1:1}(e,t)||0}function ok(e,t){const n=lk(e),r=lk(t);return Tt(rk(e),rk(t))||yt(e.start,t.start)||yt(e.length,t.length)||yt(n,r)||function(e,t){let n=_k(e),r=_k(t);"string"!=typeof n&&(n=n.messageText);"string"!=typeof r&&(r=r.messageText);const i="string"!=typeof e.messageText?e.messageText.next:void 0,o="string"!=typeof t.messageText?t.messageText.next:void 0;let a=Tt(n,r);if(a)return a;if(a=function(e,t){if(void 0===e&&void 0===t)return 0;if(void 0===e)return 1;if(void 0===t)return-1;return ak(e,t)||sk(e,t)}(i,o),a)return a;if(e.canonicalHead&&!t.canonicalHead)return-1;if(t.canonicalHead&&!e.canonicalHead)return 1;return 0}(e,t)||0}function ak(e,t){if(void 0===e&&void 0===t)return 0;if(void 0===e)return 1;if(void 0===t)return-1;let n=yt(t.length,e.length);if(n)return n;for(let r=0;r{e.externalModuleIndicator=jI(e)||!e.isDeclarationFile||void 0};case 1:return e=>{e.externalModuleIndicator=jI(e)};case 2:const t=[jI];4!==e.jsx&&5!==e.jsx||t.push(pk),t.push(fk);const n=Zt(...t);return t=>{t.externalModuleIndicator=n(t,e)}}}function gk(e){const t=Sk(e);return 3<=t&&t<=99||Nk(e)||Fk(e)}function hk(e){return V(e.types,(e=>"*"===e))}var yk={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!(!e.allowImportingTsExtensions&&!e.rewriteRelativeImportExtensions)},target:{dependencies:[],computeValue:e=>(0===e.target?void 0:e.target)??12},module:{dependencies:["target"],computeValue:e=>{if("number"==typeof e.module)return e.module;const t=yk.target.computeValue(e);return 99===t?99:t>=9?7:t>=7?6:t>=2?5:1}},moduleResolution:{dependencies:["module","target"],computeValue:e=>{if(void 0!==e.moduleResolution)return e.moduleResolution;const t=yk.module.computeValue(e);switch(t){case 0:case 2:case 3:case 4:return 1;case 199:return 99}return 100<=t&&t<199?3:100}},moduleDetection:{dependencies:["module","target"],computeValue:e=>{if(void 0!==e.moduleDetection)return e.moduleDetection;const t=yk.module.computeValue(e);return 100<=t&&t<=199?3:2}},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!(!e.isolatedModules&&!e.verbatimModuleSyntax)},esModuleInterop:{dependencies:[],computeValue:e=>void 0===e.esModuleInterop||e.esModuleInterop},allowSyntheticDefaultImports:{dependencies:[],computeValue:e=>void 0===e.allowSyntheticDefaultImports||e.allowSyntheticDefaultImports},resolvePackageJsonExports:{dependencies:["moduleResolution","module","target"],computeValue:e=>{const t=yk.moduleResolution.computeValue(e);if(!Jk(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports","module","target"],computeValue:e=>{const t=yk.moduleResolution.computeValue(e);if(!Jk(t))return!1;if(void 0!==e.resolvePackageJsonImports)return e.resolvePackageJsonImports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>{if(void 0!==e.resolveJsonModule)return e.resolveJsonModule;switch(yk.module.computeValue(e)){case 102:case 199:return!0}return 100===yk.moduleResolution.computeValue(e)}},declaration:{dependencies:["composite"],computeValue:e=>!(!e.declaration&&!e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!(!e.preserveConstEnums&&!yk.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!(!e.incremental&&!e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!(!e.declarationMap||!yk.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>void 0===e.allowJs?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>void 0===e.useDefineForClassFields?yk.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>qk(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>qk(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>qk(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>qk(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>qk(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>qk(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>qk(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:[],computeValue:e=>!1!==e.alwaysStrict},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>qk(e,"useUnknownInCatchVariables")}},vk=yk,bk=yk.allowImportingTsExtensions.computeValue,xk=yk.target.computeValue,kk=yk.module.computeValue,Sk=yk.moduleResolution.computeValue,Tk=yk.moduleDetection.computeValue,Ck=yk.isolatedModules.computeValue,wk=yk.esModuleInterop.computeValue,Dk=yk.allowSyntheticDefaultImports.computeValue,Nk=yk.resolvePackageJsonExports.computeValue,Fk=yk.resolvePackageJsonImports.computeValue,Ek=yk.resolveJsonModule.computeValue,Pk=yk.declaration.computeValue,Ak=yk.preserveConstEnums.computeValue,Ik=yk.incremental.computeValue,Ok=yk.declarationMap.computeValue,Lk=yk.allowJs.computeValue,jk=yk.useDefineForClassFields.computeValue,Rk=yk.alwaysStrict.computeValue;function Mk(e){return e>=5&&e<=99}function Bk(e){switch(kk(e)){case 0:case 4:case 3:return!1}return!0}function Jk(e){return e>=3&&e<=99||100===e}function zk(e){return 101<=e&&e<=199||200===e||99===e}function qk(e,t){return void 0===e[t]?!1!==e.strict:!!e[t]}function Uk(e){return id(RO.type,((t,n)=>t===e?n:void 0))}function Vk(e){return!1!==e.useDefineForClassFields&&xk(e)>=9}function Wk(e,t){return nd(t,e,zO)}function $k(e,t){return nd(t,e,qO)}function Hk(e,t){return nd(t,e,UO)}function Kk(e,t){return t.strictFlag?qk(e,t.name):t.allowJsFlag?Lk(e):e[t.name]}function Gk(e){const t=e.jsx;return 2===t||4===t||5===t}function Xk(e,t){const n=null==t?void 0:t.pragmas.get("jsximportsource"),r=Xe(n)?n[n.length-1]:n,i=null==t?void 0:t.pragmas.get("jsxruntime"),o=Xe(i)?i[i.length-1]:i;if("classic"!==(null==o?void 0:o.arguments.factory))return 4===e.jsx||5===e.jsx||e.jsxImportSource||r||"automatic"===(null==o?void 0:o.arguments.factory)?(null==r?void 0:r.arguments.factory)||e.jsxImportSource||"react":void 0}function Qk(e,t){return e?`${e}/${5===t.jsx?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function Yk(e){let t=!1;for(let n=0;ni,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>r,setSymlinkedFile:(e,t)=>(i||(i=new Map)).set(e,t),setSymlinkedDirectory:(i,o)=>{let a=Vo(i,e,t);LT(a)||(a=$o(a),!1===o||(null==n?void 0:n.has(a))||(r||(r=We())).add(o.realPath,i),(n||(n=new Map)).set(a,o))},setSymlinksFromResolutions(e,t,n){_n.assert(!o),o=!0,e((e=>a(this,e.resolvedModule))),t((e=>a(this,e.resolvedTypeReferenceDirective))),n.forEach((e=>a(this,e.resolvedTypeReferenceDirective)))},hasProcessedResolutions:()=>o,setSymlinksFromResolution(e){a(this,e)},hasAnySymlinks:function(){return!!(null==i?void 0:i.size)||!!n&&!!id(n,(e=>!!e))}};function a(n,r){if(!r||!r.originalPath||!r.resolvedFileName)return;const{resolvedFileName:i,originalPath:o}=r;n.setSymlinkedFile(Vo(o,e,t),i);const[a,c]=function(e,t,n,r){const i=Io(Jo(e,n)),o=Io(Jo(t,n));let a=!1;for(;i.length>=2&&o.length>=2&&!eS(i[i.length-2],r)&&!eS(o[o.length-2],r)&&r(i[i.length-1])===r(o[o.length-1]);)i.pop(),o.pop(),a=!0;return a?[Oo(i),Oo(o)]:void 0}(i,o,e,t)||s;a&&c&&n.setSymlinkedDirectory(c,{real:$o(a),realPath:$o(Vo(a,e,t))})}}function eS(e,t){return void 0!==e&&("node_modules"===t(e)||Kt(e,"@"))}function tS(e,t,n){const r=Xt(e,t,n);return void 0===r?void 0:mo((i=r).charCodeAt(0))?i.slice(1):void 0;var i}var nS=/[^\w\s/]/g;function rS(e){return e.replace(nS,iS)}function iS(e){return"\\"+e}var oS=[42,63],aS=`(?!(?:${["node_modules","bower_components","jspm_packages"].join("|")})(?:/|$))`,sS={singleAsteriskRegexFragment:"(?:[^./]|(?:\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(?:/${aS}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>gS(e,sS.singleAsteriskRegexFragment)},cS={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(?:/${aS}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>gS(e,cS.singleAsteriskRegexFragment)},lS={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(?:/.+?)?",replaceWildcardCharacter:e=>gS(e,lS.singleAsteriskRegexFragment)},_S={files:sS,directories:cS,exclude:lS};function uS(e,t,n){const r=dS(e,t,n);if(!r||!r.length)return;return`^(?:${r.map((e=>`(?:${e})`)).join("|")})${"exclude"===n?"(?:$|/)":"$"}`}function dS(e,t,n){if(void 0!==e&&0!==e.length)return A(e,(e=>e&&mS(e,t,n,_S[n])))}function pS(e){return!/[.*?]/.test(e)}function fS(e,t,n){const r=e&&mS(e,t,n,_S[n]);return r&&`^(?:${r})${"exclude"===n?"(?:$|/)":"$"}`}function mS(e,t,n,{singleAsteriskRegexFragment:r,doubleAsteriskRegexFragment:i,replaceWildcardCharacter:o}=_S[n]){let a="",s=!1;const c=Bo(e,t),l=ye(c);if("exclude"!==n&&"**"===l)return;c[0]=Wo(c[0]),pS(l)&&c.push("**","*");let _=0;for(let e of c){if("**"===e)a+=i;else if("directories"===n&&(a+="(?:",_++),s&&(a+=_o),"exclude"!==n){let t="";42===e.charCodeAt(0)?(t+="(?:[^./]"+r+")?",e=e.substr(1)):63===e.charCodeAt(0)&&(t+="[^./]",e=e.substr(1)),t+=e.replace(nS,o),t!==e&&(a+=aS),a+=t}else a+=e.replace(nS,o);s=!0}for(;_>0;)a+=")?",_--;return a}function gS(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function hS(e,t,n,r,i){e=zo(e);const o=Ro(i=zo(i),e);return{includeFilePatterns:N(dS(n,o,"files"),(e=>`^${e}$`)),includeFilePattern:uS(n,o,"files"),includeDirectoryPattern:uS(n,o,"directories"),excludePattern:uS(t,o,"exclude"),basePaths:bS(e,n,r)}}function yS(e,t){return new RegExp(e,t?"":"i")}function vS(e,t,n,r,i,o,a,s,c){e=zo(e),o=zo(o);const l=hS(e,n,r,i,o),_=l.includeFilePatterns&&l.includeFilePatterns.map((e=>yS(e,i))),u=l.includeDirectoryPattern&&yS(l.includeDirectoryPattern,i),d=l.excludePattern&&yS(l.excludePattern,i),p=_?_.map((()=>[])):[[]],f=new Map,m=Vt(i);for(const e of l.basePaths)g(e,Ro(o,e),a);return P(p);function g(e,n,r){const i=m(c(n));if(f.has(i))return;f.set(i,!0);const{files:o,directories:a}=s(e);for(const r of le(o,Tt)){const i=Ro(e,r),o=Ro(n,r);if((!t||To(i,t))&&(!d||!d.test(o)))if(_){const e=b(_,(e=>e.test(o)));-1!==e&&p[e].push(i)}else p[0].push(i)}if(void 0===r||0!=--r)for(const t of le(a,Tt)){const i=Ro(e,t),o=Ro(n,t);u&&!u.test(o)||d&&d.test(o)||g(i,o,r)}}}function bS(e,t,n){const r=[e];if(t){const i=[];for(const n of t){const t=ho(n)?n:zo(Ro(e,n));i.push(xS(t))}i.sort(Ct(!n));for(const t of i)h(r,(r=>!ta(r,t,e,!n)))&&r.push(t)}return r}function xS(e){const t=S(e,oS);return t<0?ko(e)?Wo(Fo(e)):e:e.substring(0,e.lastIndexOf(_o,t))}function kS(e,t){return t||SS(e)||3}function SS(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var TS=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],CS=P(TS),wS=[...TS,[".json"]],DS=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],NS=P([[".js",".jsx"],[".mjs"],[".cjs"]]),FS=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],ES=[...FS,[".json"]],PS=[".d.ts",".d.cts",".d.mts"],AS=[".ts",".cts",".mts",".tsx"],IS=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"];function OS(e,t){const n=e&&Lk(e);if(!t||0===t.length)return n?FS:TS;const r=n?FS:TS,i=P(r);return[...r,...R(t,(e=>{return 7===e.scriptKind||n&&(1===(t=e.scriptKind)||2===t)&&!i.includes(e.extension)?[e.extension]:void 0;var t}))]}function LS(e,t){return e&&Ek(e)?t===FS?ES:t===TS?wS:[...t,[".json"]]:t}function jS(e){return V(NS,(t=>So(e,t)))}function RS(e){return V(CS,(t=>So(e,t)))}function MS(e){return V(AS,(t=>So(e,t)))&&!yO(e)}var BS=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(BS||{});function JS(e,t,n,r){const i=Sk(n),o=3<=i&&i<=99;return"js"===e||99===t&&o?HM(n)&&2!==a()?3:2:"minimal"===e?0:"index"===e?1:HM(n)?a():r&&function({imports:e},t=Zt(jS,RS)){return d(e,(({text:e})=>bo(e)&&!To(e,IS)?t(e):void 0))||!1}(r)?2:0;function a(){let e=!1;const i=(null==r?void 0:r.imports.length)?r.imports:r&&Fm(r)?function(e){let t,n=0;for(const r of e.statements){if(n>3)break;zm(r)?t=$(t,r.declarationList.declarations.map((e=>e.initializer))):QF(r)&&Lm(r.expression,!0)?t=re(t,r.expression):n++}return t||s}(r).map((e=>e.arguments[0])):s;for(const a of i)if(bo(a.text)){if(o&&1===t&&99===bV(r,a,n))continue;if(To(a.text,IS))continue;if(RS(a.text))return 3;jS(a.text)&&(e=!0)}return e?2:0}}function zS(e,t,n){if(!e)return!1;const r=OS(t,n);for(const n of P(LS(t,r)))if(So(e,n))return!0;return!1}function qS(e){const t=e.match(/\//g);return t?t.length:0}function US(e,t){return yt(qS(e),qS(t))}var VS=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function WS(e){for(const t of VS){const n=$S(e,t);if(void 0!==n)return n}return e}function $S(e,t){return So(e,t)?HS(e,t):void 0}function HS(e,t){return e.substring(0,e.length-t.length)}function KS(e,t){return Ko(e,t,VS,!1)}function GS(e){const t=e.indexOf("*");return-1===t?e:-1!==e.indexOf("*",t+1)?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}var XS=new WeakMap;function QS(e){let t,n,r=XS.get(e);if(void 0!==r)return r;const i=Fe(e);for(const e of i){const r=GS(e);void 0!==r&&("string"==typeof r?(t??(t=new Set)).add(r):(n??(n=[])).push(r))}return XS.set(e,r={matchableStringSet:t,patterns:n}),r}function YS(e){return!(e>=0)}function ZS(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e||Kt(e,".d.")&&jt(e,".ts")}function eT(e){return ZS(e)||".json"===e}function tT(e){const t=rT(e);return void 0!==t?t:_n.fail(`File ${e} has unknown extension.`)}function nT(e){return void 0!==rT(e)}function rT(e){return y(VS,(t=>So(e,t)))}function iT(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}var oT={files:s,directories:s};function aT(e,t){const{matchableStringSet:n,patterns:r}=e;return(null==n?void 0:n.has(t))?t:void 0!==r&&0!==r.length?Ht(r,(e=>e),t):void 0}function sT(e,t){const n=e.indexOf(t);return _n.assert(-1!==n),e.slice(n)}function cT(e,...t){return t.length?(e.relatedInformation||(e.relatedInformation=[]),_n.assert(e.relatedInformation!==s,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t),e):e}function lT(e,t){_n.assert(0!==e.length);let n=t(e[0]),r=n;for(let i=1;ir&&(r=o)}return{min:n,max:r}}function _T(e){return{pos:qd(e),end:e.end}}function uT(e,t){return{pos:t.pos-1,end:Math.min(e.text.length,Ya(e.text,t.end)+1)}}function dT(e,t,n){return fT(e,t,n,!1)}function pT(e,t,n){return fT(e,t,n,!0)}function fT(e,t,n,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&n.isSourceFileDefaultLibrary(e)||!r&&t.noCheck||n.isSourceOfProjectReferenceRedirect(e.fileName)||!mT(e,t)}function mT(e,t){if(e.checkJsDirective&&!1===e.checkJsDirective.enabled)return!1;if(3===e.scriptKind||4===e.scriptKind||5===e.scriptKind)return!0;const n=(1===e.scriptKind||2===e.scriptKind)&&iT(e,t);return kd(e,t.checkJs)||n||7===e.scriptKind}function gT(e,t){return e===t||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&Le(e,t,gT)}function hT(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const n=e.length-1;let r=0;for(;48===e.charCodeAt(r);)r++;return e.slice(r,n)||"0"}const n=e.length-1,r=(n-2)*t,i=new Uint16Array((r>>>4)+(15&r?1:0));for(let r=n-1,o=0;r>=2;r--,o+=t){const t=o>>>4,n=e.charCodeAt(r),a=(n<=57?n-48:10+n-(n<=70?65:97))<<(15&o);i[t]|=a;const s=a>>>16;s&&(i[t+1]|=s)}let o="",a=i.length-1,s=!0;for(;s;){let e=0;s=!1;for(let t=a;t>=0;t--){const n=e<<16|i[t],r=n/10|0;i[t]=r,e=n-10*r,r&&!s&&(a=t,s=!0)}o=e+o}return o}function yT({negative:e,base10Value:t}){return(e&&"0"!==t?"-":"")+t}function vT(e){if(xT(e,!1))return bT(e)}function bT(e){const t=e.startsWith("-");return{negative:t,base10Value:hT(`${t?e.slice(1):e}n`)}}function xT(e,t){if(""===e)return!1;const n=hs(99,!1);let r=!0;n.setOnError((()=>r=!1)),n.setText(e+"n");let i=n.scan();const o=41===i;o&&(i=n.scan());const a=n.getTokenFlags();return r&&10===i&&n.getTokenEnd()===e.length+1&&!(512&a)&&(!t||e===yT({negative:o,base10Value:hT(n.getTokenValue())}))}function kT(e){return!!(33554432&e.flags)||Im(e)||km(e)||function(e){if(80!==e.kind)return!1;const t=dc(e.parent,(e=>{switch(e.kind){case 299:return!0;case 212:case 234:return!1;default:return"quit"}}));return 119===(null==t?void 0:t.token)||265===(null==t?void 0:t.parent.kind)}(e)||function(e){for(;80===e.kind||212===e.kind;)e=e.parent;if(168!==e.kind)return!1;if(Fv(e.parent,64))return!0;const t=e.parent.parent.kind;return 265===t||188===t}(e)||!(bm(e)||function(e){return _N(e)&&cP(e.parent)&&e.parent.name===e}(e))}function ST(e){return qN(e)&&_N(e.typeName)}function TT(e,t=ft){if(e.length<2)return!0;const n=e[0];for(let r=1,i=e.length;re.includes(t)))}function jT(e){if(!e.parent)return;switch(e.kind){case 169:const{parent:t}=e;return 196===t.kind?void 0:t.typeParameters;case 170:return e.parent.parameters;case 205:case 240:return e.parent.templateSpans;case 171:{const{parent:t}=e;return EI(t)?t.modifiers:void 0}case 299:return e.parent.heritageClauses}const{parent:t}=e;if(wu(e))return NP(e.parent)?void 0:e.parent.tags;switch(t.kind){case 188:case 265:return y_(e)?t.members:void 0;case 193:case 194:return t.types;case 190:case 210:case 357:case 276:case 280:return t.elements;case 211:case 293:return t.properties;case 214:case 215:return x_(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 285:case 289:return yu(e)?t.children:void 0;case 287:case 286:return x_(e)?t.typeArguments:void 0;case 242:case 297:case 298:case 269:case 308:return t.statements;case 270:return t.clauses;case 264:case 232:return u_(e)?t.members:void 0;case 267:return _P(e)?t.members:void 0}}function RT(e){if(!e.typeParameters){if(V(e.parameters,(e=>!mv(e))))return!0;if(220!==e.kind){const t=pe(e.parameters);if(!t||!lv(t))return!!(256&e.flags)}}return!1}function MT(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function BT(e){return 261===e.kind&&300===e.parent.kind}function JT(e){return 219===e.kind||220===e.kind}function zT(e){return e.replace(/\$/g,(()=>"\\$"))}function qT(e){return(+e).toString()===e}function UT(e,t,n,r,i){const o=i&&"new"===e;return!o&&gs(e,t)?vw.createIdentifier(e):!r&&!o&&qT(e)&&+e>=0?vw.createNumericLiteral(+e):vw.createStringLiteral(e,!!n)}function VT(e){return!!(524288&e.flags&&e.isThisType)}function WT(e){let t,n=0,r=0,i=0,o=0;var a;(a=t||(t={}))[a.BeforeNodeModules=0]="BeforeNodeModules",a[a.NodeModules=1]="NodeModules",a[a.Scope=2]="Scope",a[a.PackageContent=3]="PackageContent";let s=0,c=0,l=0;for(;c>=0;)switch(s=c,c=e.indexOf("/",s+1),l){case 0:e.indexOf(iM,s)===s&&(n=s,r=c,l=1);break;case 1:case 2:1===l&&"@"===e.charAt(s+1)?l=2:(i=c,l=3);break;case 3:l=e.indexOf(iM,s)===s?1:3}return o=s,l>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function $T(e){switch(e.kind){case 169:case 264:case 265:case 266:case 267:case 347:case 339:case 341:return!0;case 274:return 156===e.phaseModifier;case 277:return 156===e.parent.parent.phaseModifier;case 282:return e.parent.parent.isTypeOnly;default:return!1}}function HT(e){return vE(e)||GF(e)||mE(e)||gE(e)||hE(e)||$T(e)||bE(e)&&!fp(e)&&!pp(e)}function KT(e){if(!Nl(e))return!1;const{isBracketed:t,typeExpression:n}=e;return t||!!n&&317===n.type.kind}function GT(e,t){if(0===e.length)return!1;const n=e.charCodeAt(0);return 35===n?e.length>1&&fs(e.charCodeAt(1),t):fs(n,t)}function XT(e){var t;return 0===(null==(t=Qw(e))?void 0:t.kind)}function QT(e){return Em(e)&&(e.type&&317===e.type.kind||Pc(e).some(KT))}function YT(e){switch(e.kind){case 173:case 172:return!!e.questionToken;case 170:return!!e.questionToken||QT(e);case 349:case 342:return KT(e);default:return!1}}function ZT(e){const t=e.kind;return(212===t||213===t)&&zF(e.expression)}function eC(e){return Em(e)&&kF(e)&&Fu(e)&&!!tl(e)}function tC(e){return _n.checkDefined(nC(e))}function nC(e){const t=tl(e);return t&&t.typeExpression&&t.typeExpression.type}function rC(e){return _N(e)?e.escapedText:aC(e)}function iC(e){return _N(e)?hc(e):sC(e)}function oC(e){const t=e.kind;return 80===t||296===t}function aC(e){return`${e.namespace.escapedText}:${hc(e.name)}`}function sC(e){return`${hc(e.namespace)}:${hc(e.name)}`}function cC(e){return _N(e)?hc(e):sC(e)}function lC(e){return!!(19456&e.flags)}function _C(e){return 16384&e.flags?e.escapedName:3072&e.flags?mc(""+e.value):_n.fail()}function uC(e){return!!e&&(gF(e)||hF(e)||PF(e))}function dC(e){return void 0!==e&&!!SV(e.attributes)}var pC=String.prototype.replace;function fC(e,t){return pC.call(e,"*",t)}function mC(e){return _N(e.name)?e.name.escapedText:mc(e.name.text)}function gC(e){switch(e.kind){case 169:case 170:case 173:case 172:case 186:case 185:case 180:case 181:case 182:case 175:case 174:case 176:case 177:case 178:case 179:case 184:case 183:case 187:case 188:case 189:case 190:case 193:case 194:case 197:case 191:case 192:case 198:case 199:case 195:case 196:case 204:case 206:case 203:case 329:case 330:case 347:case 339:case 341:case 346:case 345:case 325:case 326:case 327:case 342:case 349:case 318:case 316:case 315:case 313:case 314:case 323:case 319:case 310:case 334:case 336:case 335:case 351:case 344:case 200:case 201:case 263:case 242:case 269:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 259:case 261:case 209:case 264:case 265:case 266:case 267:case 268:case 273:case 272:case 279:case 278:case 243:case 260:case 283:return!0}return!1}function hC(e,t=!1,n=!1,r=!1){return{value:e,isSyntacticallyString:t,resolvedOtherFiles:n,hasExternalReferences:r}}function yC({evaluateElementAccessExpression:e,evaluateEntityNameExpression:t}){function n(r,i){let o=!1,a=!1,s=!1;switch((r=sh(r)).kind){case 225:const c=n(r.operand,i);if(a=c.resolvedOtherFiles,s=c.hasExternalReferences,"number"==typeof c.value)switch(r.operator){case 40:return hC(c.value,o,a,s);case 41:return hC(-c.value,o,a,s);case 55:return hC(~c.value,o,a,s)}break;case 227:{const e=n(r.left,i),t=n(r.right,i);if(o=(e.isSyntacticallyString||t.isSyntacticallyString)&&40===r.operatorToken.kind,a=e.resolvedOtherFiles||t.resolvedOtherFiles,s=e.hasExternalReferences||t.hasExternalReferences,"number"==typeof e.value&&"number"==typeof t.value)switch(r.operatorToken.kind){case 52:return hC(e.value|t.value,o,a,s);case 51:return hC(e.value&t.value,o,a,s);case 49:return hC(e.value>>t.value,o,a,s);case 50:return hC(e.value>>>t.value,o,a,s);case 48:return hC(e.value<=2)break;case 175:case 177:case 178:case 179:case 263:if(3&_&&"arguments"===I){w=n;break e}break;case 219:if(3&_&&"arguments"===I){w=n;break e}if(16&_){const e=s.name;if(e&&I===e.escapedText){w=s.symbol;break e}}break;case 171:s.parent&&170===s.parent.kind&&(s=s.parent),s.parent&&(u_(s.parent)||264===s.parent.kind)&&(s=s.parent);break;case 347:case 339:case 341:case 352:const o=$g(s);o&&(s=o.parent);break;case 170:D&&(D===s.initializer||D===s.name&&S_(D))&&(E||(E=s));break;case 209:D&&(D===s.initializer||D===s.name&&S_(D))&&Yh(s)&&!E&&(E=s);break;case 196:if(262144&_){const e=s.typeParameter.name;if(e&&I===e.escapedText){w=s.typeParameter.symbol;break e}}break;case 282:D&&D===s.propertyName&&s.parent.parent.moduleSpecifier&&(s=s.parent.parent.parent)}v(s,D)&&(N=s),D=s,s=HP(s)?zg(s)||s.parent:(UP(s)||VP(s))&&Ug(s)||s.parent}!y||!w||N&&w===N.symbol||(w.isReferenced|=_);if(!w){if(D&&(_n.assertNode(D,uP),D.commonJsModuleIndicator&&"exports"===I&&_&D.symbol.flags))return D.symbol;x||(w=a(o,I,_))}if(!w&&C&&Em(C)&&C.parent&&Lm(C.parent,!1))return t;if(f){if(F&&l(C,I,F,w))return;w?d(C,w,_,D,E,A):u(C,c,_,f)}return w};function g(t,n,r){const i=xk(e),o=n;if(NN(r)&&o.body&&t.valueDeclaration&&t.valueDeclaration.pos>=o.body.pos&&t.valueDeclaration.end<=o.body.end&&i>=2){let e=c(o);return void 0===e&&(e=_(o.parameters,(function(e){return a(e.name)||!!e.initializer&&a(e.initializer)}))||!1,s(o,e)),!e}return!1;function a(e){switch(e.kind){case 220:case 219:case 263:case 177:return!1;case 175:case 178:case 179:case 304:return a(e.name);case 173:return Pv(e)?!f:a(e.name);default:return kl(e)||yl(e)?i<7:pF(e)&&e.dotDotDotToken&&uF(e.parent)?i<4:!x_(e)&&(rO(e,a)||!1)}}}function h(e,t){return 220!==e.kind&&219!==e.kind?WN(e)||(a_(e)||173===e.kind&&!Ev(e))&&(!t||t!==e.name):(!t||t!==e.name)&&(!(!e.asteriskToken&&!Fv(e,1024))||!om(e))}function v(e,t){switch(e.kind){case 170:return!!t&&t===e.name;case 263:case 264:case 265:case 267:case 266:case 268:return!0;default:return!1}}function b(e,t){if(e.declarations)for(const n of e.declarations)if(169===n.kind){if((HP(n.parent)?Wg(n.parent):n.parent)===t)return!(HP(n.parent)&&y(n.parent.parent.tags,Fg))}return!1}}function kC(e,t=!0){switch(_n.type(e),e.kind){case 112:case 97:case 9:case 11:case 15:return!0;case 10:return t;case 225:return 41===e.operator?WD(e.operand)||t&&$D(e.operand):40===e.operator&&WD(e.operand);default:return!1}}function SC(e){for(;218===e.kind;)e=e.expression;return e}function TC(e){switch(_n.type(e),e.kind){case 170:case 172:case 173:case 209:case 212:case 213:case 227:case 261:case 278:case 304:case 305:case 342:case 349:return!0;default:return!1}}function CC(e){const t=dc(e,CE);return!!t&&!t.importClause}var wC=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],DC=new Set(wC),NC=new Set(["node:quic","node:sea","node:sqlite","node:test","node:test/reporters"]),FC=new Set([...wC,...wC.map((e=>`node:${e}`)),...NC]);function EC(e,t,n,r){const i=Em(e),o=/import|require/g;for(;null!==o.exec(e.text);){const a=PC(e,o.lastIndex,t);if(i&&Lm(a,n))r(a,a.arguments[0]);else if(_f(a)&&a.arguments.length>=1&&(!n||Ru(a.arguments[0])))r(a,a.arguments[0]);else if(t&&df(a))r(a,a.argument.literal);else if(t&&eA(a)){const e=Sg(a);e&&HD(e)&&e.text&&r(a,e)}}}function PC(e,t,n){const r=Em(e);let i=e;const o=e=>{if(e.pos<=t&&(te&&t(e)))}function jC(e,t,n,r){let i;return function e(t,o,a){if(r){const e=r(t,a);if(e)return e}let s;return _(o,((e,t)=>{if(e&&(null==i?void 0:i.has(e.sourceFile.path)))return void(s??(s=new Set)).add(e);const r=n(e,a,t);if(r||!e)return r;(i||(i=new Set)).add(e.sourceFile.path)}))||_(o,(t=>t&&!(null==s?void 0:s.has(t))?e(t.commandLine.projectReferences,t.references,t):void 0))}(e,t,void 0)}function RC(e,t,n){return e&&(r=n,Vf(e,t,(e=>fF(e.initializer)?y(e.initializer.elements,(e=>HD(e)&&e.text===r)):void 0)));var r}function MC(e,t,n){return BC(e,t,(e=>HD(e.initializer)&&e.initializer.text===n?e.initializer:void 0))}function BC(e,t,n){return Vf(e,t,n)}function JC(e,t=!0){const n=e&&qC(e);return n&&!t&&WC(n),PT(n,!1)}function zC(e,t,n){let r=n(e);return r?xw(r,e):r=qC(e,n),r&&!t&&WC(r),r}function qC(e,t){const n=t?e=>zC(e,!0,t):JC,r=NJ(e,n,void 0,t?e=>e&&VC(e,!0,t):e=>e&&UC(e),n);if(r===e){return NI(HD(e)?xw(vw.createStringLiteralFromNode(e),e):WD(e)?xw(vw.createNumericLiteral(e.text,e.numericLiteralFlags),e):vw.cloneNode(e),e)}return r.parent=void 0,r}function UC(e,t=!0){if(e){const n=vw.createNodeArray(e.map((e=>JC(e,t))),e.hasTrailingComma);return NI(n,e),n}return e}function VC(e,t,n){return vw.createNodeArray(e.map((e=>zC(e,t,n))),e.hasTrailingComma)}function WC(e){$C(e),HC(e)}function $C(e){KC(e,1024,GC)}function HC(e){KC(e,2048,xx)}function KC(e,t,n){ww(e,t);const r=n(e);r&&KC(r,t,n)}function GC(e){return rO(e,(e=>e))}function XC(e){return KF(e)||xE(e)||uP(e)||rP(e)||iP(e)}function QC(e){return 244<=e.kind&&e.kind<=260?!GF(e)||(!!(7&sc(e.declarationList))||V(e.declarationList.declarations,(e=>void 0!==e.initializer))):gE(e)||vE(e)||bE(e)}function YC(){let e,t,n,r,i;return{createBaseSourceFileNode:function(e){return new(i||(i=Bx.getSourceFileConstructor()))(e,-1,-1)},createBaseIdentifierNode:function(e){return new(n||(n=Bx.getIdentifierConstructor()))(e,-1,-1)},createBasePrivateIdentifierNode:function(e){return new(r||(r=Bx.getPrivateIdentifierConstructor()))(e,-1,-1)},createBaseTokenNode:function(e){return new(t||(t=Bx.getTokenConstructor()))(e,-1,-1)},createBaseNode:function(t){return new(e||(e=Bx.getNodeConstructor()))(t,-1,-1)}}}function ZC(e){let t,n;return{getParenthesizeLeftSideOfBinaryForOperator:function(e){t||(t=new Map);let n=t.get(e);n||(n=t=>o(e,t),t.set(e,n));return n},getParenthesizeRightSideOfBinaryForOperator:function(e){n||(n=new Map);let t=n.get(e);t||(t=t=>a(e,void 0,t),n.set(e,t));return t},parenthesizeLeftSideOfBinary:o,parenthesizeRightSideOfBinary:a,parenthesizeExpressionOfComputedPropertyName:function(t){return DA(t)?e.createParenthesizedExpression(t):t},parenthesizeConditionOfConditionalExpression:function(t){const n=cy(228,58),r=Tl(t);if(1!==yt(oy(r),n))return e.createParenthesizedExpression(t);return t},parenthesizeBranchOfConditionalExpression:function(t){return DA(Tl(t))?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfExportDefault:function(t){const n=Tl(t);let r=DA(n);if(!r)switch(Ex(n,!1).kind){case 232:case 219:r=!0}return r?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfNew:function(t){const n=Ex(t,!0);switch(n.kind){case 214:return e.createParenthesizedExpression(t);case 215:return n.arguments?t:e.createParenthesizedExpression(t)}return s(t)},parenthesizeLeftSideOfAccess:s,parenthesizeOperandOfPostfixUnary:function(t){return B_(t)?t:NI(e.createParenthesizedExpression(t),t)},parenthesizeOperandOfPrefixUnary:function(t){return z_(t)?t:NI(e.createParenthesizedExpression(t),t)},parenthesizeExpressionsOfCommaDelimitedList:function(t){const n=E(t,c);return NI(e.createNodeArray(n,t.hasTrailingComma),t)},parenthesizeExpressionForDisallowedComma:c,parenthesizeExpressionOfExpressionStatement:function(t){const n=Tl(t);if(yF(n)){const r=n.expression,i=Tl(r).kind;if(219===i||220===i){const i=e.updateCallExpression(n,NI(e.createParenthesizedExpression(r),r),n.typeArguments,n.arguments);return e.restoreOuterExpressions(t,i,8)}}const r=Ex(n,!1).kind;if(211===r||219===r)return NI(e.createParenthesizedExpression(t),t);return t},parenthesizeConciseBodyOfArrowFunction:function(t){if(!KF(t)&&(DA(t)||211===Ex(t,!1).kind))return NI(e.createParenthesizedExpression(t),t);return t},parenthesizeCheckTypeOfConditionalType:l,parenthesizeExtendsTypeOfConditionalType:function(t){if(195===t.kind)return e.createParenthesizedType(t);return t},parenthesizeConstituentTypesOfUnionType:function(t){return e.createNodeArray(E(t,_))},parenthesizeConstituentTypeOfUnionType:_,parenthesizeConstituentTypesOfIntersectionType:function(t){return e.createNodeArray(E(t,u))},parenthesizeConstituentTypeOfIntersectionType:u,parenthesizeOperandOfTypeOperator:d,parenthesizeOperandOfReadonlyTypeOperator:function(t){if(199===t.kind)return e.createParenthesizedType(t);return d(t)},parenthesizeNonArrayTypeOfPostfixType:p,parenthesizeElementTypesOfTupleType:function(t){return e.createNodeArray(E(t,f))},parenthesizeElementTypeOfTupleType:f,parenthesizeTypeOfOptionalType:function(t){return m(t)?e.createParenthesizedType(t):p(t)},parenthesizeTypeArguments:function(t){if(V(t))return e.createNodeArray(E(t,h))},parenthesizeLeadingTypeArgument:g};function r(e){if(Il((e=Tl(e)).kind))return e.kind;if(227===e.kind&&40===e.operatorToken.kind){if(void 0!==e.cachedLiteralKind)return e.cachedLiteralKind;const t=r(e.left),n=Il(t)&&t===r(e.right)?t:0;return e.cachedLiteralKind=n,n}return 0}function i(t,n,i,o){return 218===Tl(n).kind?n:function(e,t,n,i){const o=Tl(t);if(PF(o)&&(a=e,s=o.operatorToken.kind,61===a?56===s||57===s:61===s&&(56===a||57===a)))return!0;var a,s;const c=cy(227,e),l=iy(227,e);if(!n&&220===t.kind&&c>3)return!0;switch(yt(oy(o),c)){case-1:return!(!n&&1===l&&230===t.kind);case 1:return!1;case 0:if(n)return 1===l;if(PF(o)&&o.operatorToken.kind===e){if(function(e){return 42===e||52===e||51===e||53===e||28===e}(e))return!1;if(40===e){const e=i?r(i):0;if(Il(e)&&e===r(o))return!1}}return 0===ry(o)}}(t,n,i,o)?e.createParenthesizedExpression(n):n}function o(e,t){return i(e,t,!0)}function a(e,t,n){return i(e,n,!1,t)}function s(t,n){const r=Tl(t);return!B_(r)||215===r.kind&&!r.arguments||!n&&yl(r)?NI(e.createParenthesizedExpression(t),t):t}function c(t){return oy(Tl(t))>cy(227,28)?t:NI(e.createParenthesizedExpression(t),t)}function l(t){switch(t.kind){case 185:case 186:case 195:return e.createParenthesizedType(t)}return t}function _(t){switch(t.kind){case 193:case 194:return e.createParenthesizedType(t)}return l(t)}function u(t){switch(t.kind){case 193:case 194:return e.createParenthesizedType(t)}return _(t)}function d(t){return 194===t.kind?e.createParenthesizedType(t):u(t)}function p(t){switch(t.kind){case 196:case 199:case 187:return e.createParenthesizedType(t)}return d(t)}function f(t){return m(t)?e.createParenthesizedType(t):t}function m(e){return xP(e)?e.postfix:GN(e)||UN(e)||VN(e)||iF(e)?m(e.type):eF(e)?m(e.falseType):YN(e)||ZN(e)?m(ye(e.types)):!!tF(e)&&(!!e.typeParameter.constraint&&m(e.typeParameter.constraint))}function g(t){return k_(t)&&t.typeParameters?e.createParenthesizedType(t):t}function h(e,t){return 0===t?g(e):e}}var ew={getParenthesizeLeftSideOfBinaryForOperator:e=>at,getParenthesizeRightSideOfBinaryForOperator:e=>at,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:at,parenthesizeConditionOfConditionalExpression:at,parenthesizeBranchOfConditionalExpression:at,parenthesizeExpressionOfExportDefault:at,parenthesizeExpressionOfNew:e=>tt(e,B_),parenthesizeLeftSideOfAccess:e=>tt(e,B_),parenthesizeOperandOfPostfixUnary:e=>tt(e,B_),parenthesizeOperandOfPrefixUnary:e=>tt(e,z_),parenthesizeExpressionsOfCommaDelimitedList:e=>tt(e,Al),parenthesizeExpressionForDisallowedComma:at,parenthesizeExpressionOfExpressionStatement:at,parenthesizeConciseBodyOfArrowFunction:at,parenthesizeCheckTypeOfConditionalType:at,parenthesizeExtendsTypeOfConditionalType:at,parenthesizeConstituentTypesOfUnionType:e=>tt(e,Al),parenthesizeConstituentTypeOfUnionType:at,parenthesizeConstituentTypesOfIntersectionType:e=>tt(e,Al),parenthesizeConstituentTypeOfIntersectionType:at,parenthesizeOperandOfTypeOperator:at,parenthesizeOperandOfReadonlyTypeOperator:at,parenthesizeNonArrayTypeOfPostfixType:at,parenthesizeElementTypesOfTupleType:e=>tt(e,Al),parenthesizeElementTypeOfTupleType:at,parenthesizeTypeOfOptionalType:at,parenthesizeTypeArguments:e=>e&&tt(e,Al),parenthesizeLeadingTypeArgument:at};function tw(e){return{convertToFunctionBlock:function(t,n){if(KF(t))return t;const r=e.createReturnStatement(t);NI(r,t);const i=e.createBlock([r],n);return NI(i,t),i},convertToFunctionExpression:function(t){var n;if(!t.body)return _n.fail("Cannot convert a FunctionDeclaration without a body");const r=e.createFunctionExpression(null==(n=Fc(t))?void 0:n.filter((e=>!dN(e)&&!pN(e))),t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);xw(r,t),NI(r,t),Iw(t)&&Ow(r,!0);return r},convertToClassExpression:function(t){var n;const r=e.createClassExpression(null==(n=t.modifiers)?void 0:n.filter((e=>!dN(e)&&!pN(e))),t.name,t.typeParameters,t.heritageClauses,t.members);xw(r,t),NI(r,t),Iw(t)&&Ow(r,!0);return r},convertToArrayAssignmentElement:t,convertToObjectAssignmentElement:n,convertToAssignmentPattern:r,convertToObjectAssignmentPattern:i,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:a};function t(t){if(pF(t)){if(t.dotDotDotToken)return _n.assertNode(t.name,_N),xw(NI(e.createSpreadElement(t.name),t),t);const n=a(t.name);return t.initializer?xw(NI(e.createAssignment(n,t.initializer),t),t):n}return tt(t,W_)}function n(t){if(pF(t)){if(t.dotDotDotToken)return _n.assertNode(t.name,_N),xw(NI(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){const n=a(t.name);return xw(NI(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(n,t.initializer):n),t),t)}return _n.assertNode(t.name,_N),xw(NI(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return tt(t,b_)}function r(e){switch(e.kind){case 208:case 210:return o(e);case 207:case 211:return i(e)}}function i(t){return uF(t)?xw(NI(e.createObjectLiteralExpression(N(t.elements,n)),t),t):tt(t,mF)}function o(n){return dF(n)?xw(NI(e.createArrayLiteralExpression(N(n.elements,t)),n),n):tt(n,fF)}function a(e){return S_(e)?r(e):tt(e,W_)}}var nw,rw={convertToFunctionBlock:_t,convertToFunctionExpression:_t,convertToClassExpression:_t,convertToArrayAssignmentElement:_t,convertToObjectAssignmentElement:_t,convertToAssignmentPattern:_t,convertToObjectAssignmentPattern:_t,convertToArrayAssignmentPattern:_t,convertToAssignmentElementTarget:_t},iw=0,ow=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(ow||{}),aw=[];function sw(e){aw.push(e)}function cw(e,t){const n=8&e?at:xw,r=ut((()=>1&e?ew:ZC(b))),i=ut((()=>2&e?rw:tw(b))),o=dt((e=>(t,n)=>Ot(t,e,n))),a=dt((e=>t=>At(e,t))),c=dt((e=>t=>It(t,e))),l=dt((e=>()=>function(e){return k(e)}(e))),u=dt((e=>t=>dr(e,t))),d=dt((e=>(t,n)=>function(e,t,n){return t.type!==n?Ii(dr(e,n),t):t}(e,t,n))),p=dt((e=>(t,n)=>ur(e,t,n))),f=dt((e=>(t,n)=>function(e,t,n){return t.type!==n?Ii(ur(e,n,t.postfix),t):t}(e,t,n))),m=dt((e=>(t,n)=>Or(e,t,n))),g=dt((e=>(t,n,r)=>function(e,t,n=hr(t),r){return t.tagName!==n||t.comment!==r?Ii(Or(e,n,r),t):t}(e,t,n,r))),y=dt((e=>(t,n,r)=>Lr(e,t,n,r))),v=dt((e=>(t,n,r,i)=>function(e,t,n=hr(t),r,i){return t.tagName!==n||t.typeExpression!==r||t.comment!==i?Ii(Lr(e,n,r,i),t):t}(e,t,n,r,i))),b={get parenthesizer(){return r()},get converters(){return i()},baseFactory:t,flags:e,createNodeArray:x,createNumericLiteral:C,createBigIntLiteral:w,createStringLiteral:N,createStringLiteralFromNode:function(e){const t=D(Uh(e),void 0);return t.textSourceNode=e,t},createRegularExpressionLiteral:F,createLiteralLikeNode:function(e,t){switch(e){case 9:return C(t,0);case 10:return w(t);case 11:return N(t,void 0);case 12:return $r(t,!1);case 13:return $r(t,!0);case 14:return F(t);case 15:return zt(e,t,void 0,0)}},createIdentifier:A,createTempVariable:I,createLoopVariable:function(e){let t=2;e&&(t|=8);return P("",t,void 0,void 0)},createUniqueName:function(e,t=0,n,r){return _n.assert(!(7&t),"Argument out of range: flags"),_n.assert(32!=(48&t),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),P(e,3|t,n,r)},getGeneratedNameForNode:O,createPrivateIdentifier:function(e){Kt(e,"#")||_n.fail("First character of private identifier must be #: "+e);return j(mc(e))},createUniquePrivateName:function(e,t,n){e&&!Kt(e,"#")&&_n.fail("First character of private identifier must be #: "+e);return R(e??"",8|(e?3:1),t,n)},getGeneratedPrivateNameForNode:function(e,t,n){const r=pl(e)?bI(!0,t,e,n,hc):`#generated@${cJ(e)}`,i=R(r,4|(t||n?16:0),t,n);return i.original=e,i},createToken:B,createSuper:function(){return B(108)},createThis:J,createNull:z,createTrue:q,createFalse:U,createModifier:W,createModifiersFromModifierFlags:$,createQualifiedName:H,updateQualifiedName:function(e,t,n){return e.left!==t||e.right!==n?Ii(H(t,n),e):e},createComputedPropertyName:K,updateComputedPropertyName:function(e,t){return e.expression!==t?Ii(K(t),e):e},createTypeParameterDeclaration:G,updateTypeParameterDeclaration:X,createParameterDeclaration:Q,updateParameterDeclaration:Y,createDecorator:Z,updateDecorator:function(e,t){return e.expression!==t?Ii(Z(t),e):e},createPropertySignature:ee,updatePropertySignature:te,createPropertyDeclaration:ne,updatePropertyDeclaration:ie,createMethodSignature:oe,updateMethodSignature:ae,createMethodDeclaration:se,updateMethodDeclaration:ce,createConstructorDeclaration:_e,updateConstructorDeclaration:ue,createGetAccessorDeclaration:de,updateGetAccessorDeclaration:pe,createSetAccessorDeclaration:fe,updateSetAccessorDeclaration:me,createCallSignature:ge,updateCallSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?T(ge(t,n,r),e):e},createConstructSignature:ye,updateConstructSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?T(ye(t,n,r),e):e},createIndexSignature:be,updateIndexSignature:xe,createClassStaticBlockDeclaration:le,updateClassStaticBlockDeclaration:function(e,t){return e.body!==t?function(e,t){e!==t&&(e.modifiers=t.modifiers);return Ii(e,t)}(le(t),e):e},createTemplateLiteralTypeSpan:ke,updateTemplateLiteralTypeSpan:function(e,t,n){return e.type!==t||e.literal!==n?Ii(ke(t,n),e):e},createKeywordTypeNode:function(e){return B(e)},createTypePredicateNode:Se,updateTypePredicateNode:function(e,t,n,r){return e.assertsModifier!==t||e.parameterName!==n||e.type!==r?Ii(Se(t,n,r),e):e},createTypeReferenceNode:Te,updateTypeReferenceNode:function(e,t,n){return e.typeName!==t||e.typeArguments!==n?Ii(Te(t,n),e):e},createFunctionTypeNode:we,updateFunctionTypeNode:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?function(e,t){e!==t&&(e.modifiers=t.modifiers);return T(e,t)}(we(t,n,r),e):e},createConstructorTypeNode:Ne,updateConstructorTypeNode:function(...e){return 5===e.length?Ee(...e):4===e.length?function(e,t,n,r){return Ee(e,e.modifiers,t,n,r)}(...e):_n.fail("Incorrect number of arguments specified.")},createTypeQueryNode:Pe,updateTypeQueryNode:function(e,t,n){return e.exprName!==t||e.typeArguments!==n?Ii(Pe(t,n),e):e},createTypeLiteralNode:Ae,updateTypeLiteralNode:function(e,t){return e.members!==t?Ii(Ae(t),e):e},createArrayTypeNode:Ie,updateArrayTypeNode:function(e,t){return e.elementType!==t?Ii(Ie(t),e):e},createTupleTypeNode:Oe,updateTupleTypeNode:function(e,t){return e.elements!==t?Ii(Oe(t),e):e},createNamedTupleMember:Le,updateNamedTupleMember:function(e,t,n,r,i){return e.dotDotDotToken!==t||e.name!==n||e.questionToken!==r||e.type!==i?Ii(Le(t,n,r,i),e):e},createOptionalTypeNode:je,updateOptionalTypeNode:function(e,t){return e.type!==t?Ii(je(t),e):e},createRestTypeNode:Re,updateRestTypeNode:function(e,t){return e.type!==t?Ii(Re(t),e):e},createUnionTypeNode:function(e){return Me(193,e,r().parenthesizeConstituentTypesOfUnionType)},updateUnionTypeNode:function(e,t){return Be(e,t,r().parenthesizeConstituentTypesOfUnionType)},createIntersectionTypeNode:function(e){return Me(194,e,r().parenthesizeConstituentTypesOfIntersectionType)},updateIntersectionTypeNode:function(e,t){return Be(e,t,r().parenthesizeConstituentTypesOfIntersectionType)},createConditionalTypeNode:Je,updateConditionalTypeNode:function(e,t,n,r,i){return e.checkType!==t||e.extendsType!==n||e.trueType!==r||e.falseType!==i?Ii(Je(t,n,r,i),e):e},createInferTypeNode:ze,updateInferTypeNode:function(e,t){return e.typeParameter!==t?Ii(ze(t),e):e},createImportTypeNode:Ue,updateImportTypeNode:function(e,t,n,r,i,o=e.isTypeOf){return e.argument!==t||e.attributes!==n||e.qualifier!==r||e.typeArguments!==i||e.isTypeOf!==o?Ii(Ue(t,n,r,i,o),e):e},createParenthesizedType:Ve,updateParenthesizedType:function(e,t){return e.type!==t?Ii(Ve(t),e):e},createThisTypeNode:function(){const e=k(198);return e.transformFlags=1,e},createTypeOperatorNode:We,updateTypeOperatorNode:function(e,t){return e.type!==t?Ii(We(e.operator,t),e):e},createIndexedAccessTypeNode:$e,updateIndexedAccessTypeNode:function(e,t,n){return e.objectType!==t||e.indexType!==n?Ii($e(t,n),e):e},createMappedTypeNode:He,updateMappedTypeNode:function(e,t,n,r,i,o,a){return e.readonlyToken!==t||e.typeParameter!==n||e.nameType!==r||e.questionToken!==i||e.type!==o||e.members!==a?Ii(He(t,n,r,i,o,a),e):e},createLiteralTypeNode:Ke,updateLiteralTypeNode:function(e,t){return e.literal!==t?Ii(Ke(t),e):e},createTemplateLiteralType:qe,updateTemplateLiteralType:function(e,t,n){return e.head!==t||e.templateSpans!==n?Ii(qe(t,n),e):e},createObjectBindingPattern:Ge,updateObjectBindingPattern:function(e,t){return e.elements!==t?Ii(Ge(t),e):e},createArrayBindingPattern:Qe,updateArrayBindingPattern:function(e,t){return e.elements!==t?Ii(Qe(t),e):e},createBindingElement:Ye,updateBindingElement:function(e,t,n,r,i){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==r||e.initializer!==i?Ii(Ye(t,n,r,i),e):e},createArrayLiteralExpression:Ze,updateArrayLiteralExpression:function(e,t){return e.elements!==t?Ii(Ze(t,e.multiLine),e):e},createObjectLiteralExpression:et,updateObjectLiteralExpression:function(e,t){return e.properties!==t?Ii(et(t,e.multiLine),e):e},createPropertyAccessExpression:4&e?(e,t)=>Cw(rt(e,t),262144):rt,updatePropertyAccessExpression:function(e,t,n){if(ml(e))return st(e,t,e.questionDotToken,tt(n,_N));return e.expression!==t||e.name!==n?Ii(rt(t,n),e):e},createPropertyAccessChain:4&e?(e,t,n)=>Cw(ot(e,t,n),262144):ot,updatePropertyAccessChain:st,createElementAccessExpression:lt,updateElementAccessExpression:function(e,t,n){if(gl(e))return pt(e,t,e.questionDotToken,n);return e.expression!==t||e.argumentExpression!==n?Ii(lt(t,n),e):e},createElementAccessChain:_t,updateElementAccessChain:pt,createCallExpression:mt,updateCallExpression:function(e,t,n,r){if(hl(e))return ht(e,t,e.questionDotToken,n,r);return e.expression!==t||e.typeArguments!==n||e.arguments!==r?Ii(mt(t,n,r),e):e},createCallChain:gt,updateCallChain:ht,createNewExpression:yt,updateNewExpression:function(e,t,n,r){return e.expression!==t||e.typeArguments!==n||e.arguments!==r?Ii(yt(t,n,r),e):e},createTaggedTemplateExpression:vt,updateTaggedTemplateExpression:function(e,t,n,r){return e.tag!==t||e.typeArguments!==n||e.template!==r?Ii(vt(t,n,r),e):e},createTypeAssertion:bt,updateTypeAssertion:xt,createParenthesizedExpression:kt,updateParenthesizedExpression:St,createFunctionExpression:Tt,updateFunctionExpression:Ct,createArrowFunction:wt,updateArrowFunction:Dt,createDeleteExpression:Nt,updateDeleteExpression:function(e,t){return e.expression!==t?Ii(Nt(t),e):e},createTypeOfExpression:Ft,updateTypeOfExpression:function(e,t){return e.expression!==t?Ii(Ft(t),e):e},createVoidExpression:Et,updateVoidExpression:function(e,t){return e.expression!==t?Ii(Et(t),e):e},createAwaitExpression:Pt,updateAwaitExpression:function(e,t){return e.expression!==t?Ii(Pt(t),e):e},createPrefixUnaryExpression:At,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?Ii(At(e.operator,t),e):e},createPostfixUnaryExpression:It,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?Ii(It(t,e.operator),e):e},createBinaryExpression:Ot,updateBinaryExpression:function(e,t,n,r){return e.left!==t||e.operatorToken!==n||e.right!==r?Ii(Ot(t,n,r),e):e},createConditionalExpression:jt,updateConditionalExpression:function(e,t,n,r,i,o){return e.condition!==t||e.questionToken!==n||e.whenTrue!==r||e.colonToken!==i||e.whenFalse!==o?Ii(jt(t,n,r,i,o),e):e},createTemplateExpression:Rt,updateTemplateExpression:function(e,t,n){return e.head!==t||e.templateSpans!==n?Ii(Rt(t,n),e):e},createTemplateHead:function(e,t,n){return zt(16,e=Mt(16,e,t,n),t,n)},createTemplateMiddle:function(e,t,n){return zt(17,e=Mt(16,e,t,n),t,n)},createTemplateTail:function(e,t,n){return zt(18,e=Mt(16,e,t,n),t,n)},createNoSubstitutionTemplateLiteral:function(e,t,n){return Jt(15,e=Mt(16,e,t,n),t,n)},createTemplateLiteralLikeNode:zt,createYieldExpression:qt,updateYieldExpression:function(e,t,n){return e.expression!==n||e.asteriskToken!==t?Ii(qt(t,n),e):e},createSpreadElement:Ut,updateSpreadElement:function(e,t){return e.expression!==t?Ii(Ut(t),e):e},createClassExpression:Vt,updateClassExpression:Wt,createOmittedExpression:function(){return k(233)},createExpressionWithTypeArguments:$t,updateExpressionWithTypeArguments:Ht,createAsExpression:Gt,updateAsExpression:Xt,createNonNullExpression:Qt,updateNonNullExpression:Yt,createSatisfiesExpression:Zt,updateSatisfiesExpression:en,createNonNullChain:tn,updateNonNullChain:nn,createMetaProperty:rn,updateMetaProperty:function(e,t){return e.name!==t?Ii(rn(e.keywordToken,t),e):e},createTemplateSpan:on,updateTemplateSpan:function(e,t,n){return e.expression!==t||e.literal!==n?Ii(on(t,n),e):e},createSemicolonClassElement:function(){const e=k(241);return e.transformFlags|=1024,e},createBlock:an,updateBlock:function(e,t){return e.statements!==t?Ii(an(t,e.multiLine),e):e},createVariableStatement:sn,updateVariableStatement:cn,createEmptyStatement:ln,createExpressionStatement:un,updateExpressionStatement:function(e,t){return e.expression!==t?Ii(un(t),e):e},createIfStatement:dn,updateIfStatement:function(e,t,n,r){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==r?Ii(dn(t,n,r),e):e},createDoStatement:pn,updateDoStatement:function(e,t,n){return e.statement!==t||e.expression!==n?Ii(pn(t,n),e):e},createWhileStatement:fn,updateWhileStatement:function(e,t,n){return e.expression!==t||e.statement!==n?Ii(fn(t,n),e):e},createForStatement:mn,updateForStatement:function(e,t,n,r,i){return e.initializer!==t||e.condition!==n||e.incrementor!==r||e.statement!==i?Ii(mn(t,n,r,i),e):e},createForInStatement:gn,updateForInStatement:function(e,t,n,r){return e.initializer!==t||e.expression!==n||e.statement!==r?Ii(gn(t,n,r),e):e},createForOfStatement:hn,updateForOfStatement:function(e,t,n,r,i){return e.awaitModifier!==t||e.initializer!==n||e.expression!==r||e.statement!==i?Ii(hn(t,n,r,i),e):e},createContinueStatement:yn,updateContinueStatement:function(e,t){return e.label!==t?Ii(yn(t),e):e},createBreakStatement:vn,updateBreakStatement:function(e,t){return e.label!==t?Ii(vn(t),e):e},createReturnStatement:bn,updateReturnStatement:function(e,t){return e.expression!==t?Ii(bn(t),e):e},createWithStatement:xn,updateWithStatement:function(e,t,n){return e.expression!==t||e.statement!==n?Ii(xn(t,n),e):e},createSwitchStatement:kn,updateSwitchStatement:function(e,t,n){return e.expression!==t||e.caseBlock!==n?Ii(kn(t,n),e):e},createLabeledStatement:Sn,updateLabeledStatement:Tn,createThrowStatement:Cn,updateThrowStatement:function(e,t){return e.expression!==t?Ii(Cn(t),e):e},createTryStatement:wn,updateTryStatement:function(e,t,n,r){return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==r?Ii(wn(t,n,r),e):e},createDebuggerStatement:function(){const e=k(260);return e.jsDoc=void 0,e.flowNode=void 0,e},createVariableDeclaration:Dn,updateVariableDeclaration:function(e,t,n,r,i){return e.name!==t||e.type!==r||e.exclamationToken!==n||e.initializer!==i?Ii(Dn(t,n,r,i),e):e},createVariableDeclarationList:Nn,updateVariableDeclarationList:function(e,t){return e.declarations!==t?Ii(Nn(t,e.flags),e):e},createFunctionDeclaration:Fn,updateFunctionDeclaration:En,createClassDeclaration:Pn,updateClassDeclaration:An,createInterfaceDeclaration:In,updateInterfaceDeclaration:On,createTypeAliasDeclaration:Ln,updateTypeAliasDeclaration:jn,createEnumDeclaration:Rn,updateEnumDeclaration:Mn,createModuleDeclaration:Bn,updateModuleDeclaration:Jn,createModuleBlock:zn,updateModuleBlock:function(e,t){return e.statements!==t?Ii(zn(t),e):e},createCaseBlock:qn,updateCaseBlock:function(e,t){return e.clauses!==t?Ii(qn(t),e):e},createNamespaceExportDeclaration:Un,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?function(e,t){e!==t&&(e.modifiers=t.modifiers);return Ii(e,t)}(Un(t),e):e},createImportEqualsDeclaration:Vn,updateImportEqualsDeclaration:Wn,createImportDeclaration:$n,updateImportDeclaration:Hn,createImportClause:Kn,updateImportClause:function(e,t,n,r){"boolean"==typeof t&&(t=t?156:void 0);return e.phaseModifier!==t||e.name!==n||e.namedBindings!==r?Ii(Kn(t,n,r),e):e},createAssertClause:Gn,updateAssertClause:function(e,t,n){return e.elements!==t||e.multiLine!==n?Ii(Gn(t,n),e):e},createAssertEntry:Xn,updateAssertEntry:function(e,t,n){return e.name!==t||e.value!==n?Ii(Xn(t,n),e):e},createImportTypeAssertionContainer:Qn,updateImportTypeAssertionContainer:function(e,t,n){return e.assertClause!==t||e.multiLine!==n?Ii(Qn(t,n),e):e},createImportAttributes:Yn,updateImportAttributes:function(e,t,n){return e.elements!==t||e.multiLine!==n?Ii(Yn(t,n,e.token),e):e},createImportAttribute:Zn,updateImportAttribute:function(e,t,n){return e.name!==t||e.value!==n?Ii(Zn(t,n),e):e},createNamespaceImport:er,updateNamespaceImport:function(e,t){return e.name!==t?Ii(er(t),e):e},createNamespaceExport:tr,updateNamespaceExport:function(e,t){return e.name!==t?Ii(tr(t),e):e},createNamedImports:nr,updateNamedImports:function(e,t){return e.elements!==t?Ii(nr(t),e):e},createImportSpecifier:rr,updateImportSpecifier:function(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?Ii(rr(t,n,r),e):e},createExportAssignment:ir,updateExportAssignment:or,createExportDeclaration:ar,updateExportDeclaration:sr,createNamedExports:cr,updateNamedExports:function(e,t){return e.elements!==t?Ii(cr(t),e):e},createExportSpecifier:lr,updateExportSpecifier:function(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?Ii(lr(t,n,r),e):e},createMissingDeclaration:function(){const e=S(283);return e.jsDoc=void 0,e},createExternalModuleReference:_r,updateExternalModuleReference:function(e,t){return e.expression!==t?Ii(_r(t),e):e},get createJSDocAllType(){return l(313)},get createJSDocUnknownType(){return l(314)},get createJSDocNonNullableType(){return p(316)},get updateJSDocNonNullableType(){return f(316)},get createJSDocNullableType(){return p(315)},get updateJSDocNullableType(){return f(315)},get createJSDocOptionalType(){return u(317)},get updateJSDocOptionalType(){return d(317)},get createJSDocVariadicType(){return u(319)},get updateJSDocVariadicType(){return d(319)},get createJSDocNamepathType(){return u(320)},get updateJSDocNamepathType(){return d(320)},createJSDocFunctionType:pr,updateJSDocFunctionType:function(e,t,n){return e.parameters!==t||e.type!==n?Ii(pr(t,n),e):e},createJSDocTypeLiteral:fr,updateJSDocTypeLiteral:function(e,t,n){return e.jsDocPropertyTags!==t||e.isArrayType!==n?Ii(fr(t,n),e):e},createJSDocTypeExpression:mr,updateJSDocTypeExpression:function(e,t){return e.type!==t?Ii(mr(t),e):e},createJSDocSignature:gr,updateJSDocSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?Ii(gr(t,n,r),e):e},createJSDocTemplateTag:br,updateJSDocTemplateTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.constraint!==n||e.typeParameters!==r||e.comment!==i?Ii(br(t,n,r,i),e):e},createJSDocTypedefTag:xr,updateJSDocTypedefTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==i?Ii(xr(t,n,r,i),e):e},createJSDocParameterTag:kr,updateJSDocParameterTag:function(e,t=hr(e),n,r,i,o,a){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==i||e.isNameFirst!==o||e.comment!==a?Ii(kr(t,n,r,i,o,a),e):e},createJSDocPropertyTag:Sr,updateJSDocPropertyTag:function(e,t=hr(e),n,r,i,o,a){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==i||e.isNameFirst!==o||e.comment!==a?Ii(Sr(t,n,r,i,o,a),e):e},createJSDocCallbackTag:Tr,updateJSDocCallbackTag:function(e,t=hr(e),n,r,i){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==i?Ii(Tr(t,n,r,i),e):e},createJSDocOverloadTag:Cr,updateJSDocOverloadTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?Ii(Cr(t,n,r),e):e},createJSDocAugmentsTag:wr,updateJSDocAugmentsTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?Ii(wr(t,n,r),e):e},createJSDocImplementsTag:Dr,updateJSDocImplementsTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?Ii(Dr(t,n,r),e):e},createJSDocSeeTag:Nr,updateJSDocSeeTag:function(e,t,n,r){return e.tagName!==t||e.name!==n||e.comment!==r?Ii(Nr(t,n,r),e):e},createJSDocImportTag:Mr,updateJSDocImportTag:function(e,t,n,r,i,o){return e.tagName!==t||e.comment!==o||e.importClause!==n||e.moduleSpecifier!==r||e.attributes!==i?Ii(Mr(t,n,r,i,o),e):e},createJSDocNameReference:Fr,updateJSDocNameReference:function(e,t){return e.name!==t?Ii(Fr(t),e):e},createJSDocMemberName:Er,updateJSDocMemberName:function(e,t,n){return e.left!==t||e.right!==n?Ii(Er(t,n),e):e},createJSDocLink:Pr,updateJSDocLink:function(e,t,n){return e.name!==t?Ii(Pr(t,n),e):e},createJSDocLinkCode:Ar,updateJSDocLinkCode:function(e,t,n){return e.name!==t?Ii(Ar(t,n),e):e},createJSDocLinkPlain:Ir,updateJSDocLinkPlain:function(e,t,n){return e.name!==t?Ii(Ir(t,n),e):e},get createJSDocTypeTag(){return y(345)},get updateJSDocTypeTag(){return v(345)},get createJSDocReturnTag(){return y(343)},get updateJSDocReturnTag(){return v(343)},get createJSDocThisTag(){return y(344)},get updateJSDocThisTag(){return v(344)},get createJSDocAuthorTag(){return m(331)},get updateJSDocAuthorTag(){return g(331)},get createJSDocClassTag(){return m(333)},get updateJSDocClassTag(){return g(333)},get createJSDocPublicTag(){return m(334)},get updateJSDocPublicTag(){return g(334)},get createJSDocPrivateTag(){return m(335)},get updateJSDocPrivateTag(){return g(335)},get createJSDocProtectedTag(){return m(336)},get updateJSDocProtectedTag(){return g(336)},get createJSDocReadonlyTag(){return m(337)},get updateJSDocReadonlyTag(){return g(337)},get createJSDocOverrideTag(){return m(338)},get updateJSDocOverrideTag(){return g(338)},get createJSDocDeprecatedTag(){return m(332)},get updateJSDocDeprecatedTag(){return g(332)},get createJSDocThrowsTag(){return y(350)},get updateJSDocThrowsTag(){return v(350)},get createJSDocSatisfiesTag(){return y(351)},get updateJSDocSatisfiesTag(){return v(351)},createJSDocEnumTag:Rr,updateJSDocEnumTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?Ii(Rr(t,n,r),e):e},createJSDocUnknownTag:jr,updateJSDocUnknownTag:function(e,t,n){return e.tagName!==t||e.comment!==n?Ii(jr(t,n),e):e},createJSDocText:Br,updateJSDocText:function(e,t){return e.text!==t?Ii(Br(t),e):e},createJSDocComment:Jr,updateJSDocComment:function(e,t,n){return e.comment!==t||e.tags!==n?Ii(Jr(t,n),e):e},createJsxElement:zr,updateJsxElement:function(e,t,n,r){return e.openingElement!==t||e.children!==n||e.closingElement!==r?Ii(zr(t,n,r),e):e},createJsxSelfClosingElement:qr,updateJsxSelfClosingElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?Ii(qr(t,n,r),e):e},createJsxOpeningElement:Ur,updateJsxOpeningElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?Ii(Ur(t,n,r),e):e},createJsxClosingElement:Vr,updateJsxClosingElement:function(e,t){return e.tagName!==t?Ii(Vr(t),e):e},createJsxFragment:Wr,createJsxText:$r,updateJsxText:function(e,t,n){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==n?Ii($r(t,n),e):e},createJsxOpeningFragment:function(){const e=k(290);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){const e=k(291);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,n,r){return e.openingFragment!==t||e.children!==n||e.closingFragment!==r?Ii(Wr(t,n,r),e):e},createJsxAttribute:Hr,updateJsxAttribute:function(e,t,n){return e.name!==t||e.initializer!==n?Ii(Hr(t,n),e):e},createJsxAttributes:Kr,updateJsxAttributes:function(e,t){return e.properties!==t?Ii(Kr(t),e):e},createJsxSpreadAttribute:Gr,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?Ii(Gr(t),e):e},createJsxExpression:Xr,updateJsxExpression:function(e,t){return e.expression!==t?Ii(Xr(e.dotDotDotToken,t),e):e},createJsxNamespacedName:Qr,updateJsxNamespacedName:function(e,t,n){return e.namespace!==t||e.name!==n?Ii(Qr(t,n),e):e},createCaseClause:Yr,updateCaseClause:function(e,t,n){return e.expression!==t||e.statements!==n?Ii(Yr(t,n),e):e},createDefaultClause:Zr,updateDefaultClause:function(e,t){return e.statements!==t?Ii(Zr(t),e):e},createHeritageClause:ei,updateHeritageClause:function(e,t){return e.types!==t?Ii(ei(e.token,t),e):e},createCatchClause:ti,updateCatchClause:function(e,t,n){return e.variableDeclaration!==t||e.block!==n?Ii(ti(t,n),e):e},createPropertyAssignment:ni,updatePropertyAssignment:ri,createShorthandPropertyAssignment:ii,updateShorthandPropertyAssignment:function(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?function(e,t){e!==t&&(e.modifiers=t.modifiers,e.questionToken=t.questionToken,e.exclamationToken=t.exclamationToken,e.equalsToken=t.equalsToken);return Ii(e,t)}(ii(t,n),e):e},createSpreadAssignment:oi,updateSpreadAssignment:function(e,t){return e.expression!==t?Ii(oi(t),e):e},createEnumMember:ai,updateEnumMember:function(e,t,n){return e.name!==t||e.initializer!==n?Ii(ai(t,n),e):e},createSourceFile:function(e,n,r){const i=t.createBaseSourceFileNode(308);return i.statements=x(e),i.endOfFileToken=n,i.flags|=r,i.text="",i.fileName="",i.path="",i.resolvedPath="",i.originalFileName="",i.languageVersion=12,i.languageVariant=0,i.scriptKind=0,i.isDeclarationFile=!1,i.hasNoDefaultLib=!1,i.transformFlags|=fw(i.statements)|pw(i.endOfFileToken),i.locals=void 0,i.nextContainer=void 0,i.endFlowNode=void 0,i.nodeCount=0,i.identifierCount=0,i.symbolCount=0,i.parseDiagnostics=void 0,i.bindDiagnostics=void 0,i.bindSuggestionDiagnostics=void 0,i.lineMap=void 0,i.externalModuleIndicator=void 0,i.setExternalModuleIndicator=void 0,i.pragmas=void 0,i.checkJsDirective=void 0,i.referencedFiles=void 0,i.typeReferenceDirectives=void 0,i.libReferenceDirectives=void 0,i.amdDependencies=void 0,i.commentDirectives=void 0,i.identifiers=void 0,i.packageJsonLocations=void 0,i.packageJsonScope=void 0,i.imports=void 0,i.moduleAugmentations=void 0,i.ambientModuleNames=void 0,i.classifiableNames=void 0,i.impliedNodeFormat=void 0,i},updateSourceFile:function(e,t,n=e.isDeclarationFile,r=e.referencedFiles,i=e.typeReferenceDirectives,o=!1,a=e.libReferenceDirectives){return e.statements!==t||e.isDeclarationFile!==n||e.referencedFiles!==r||e.typeReferenceDirectives!==i||e.libReferenceDirectives!==a?Ii(function(e,t,n,r,i,o,a){const s=ci(e);return s.statements=x(t),s.isDeclarationFile=n,s.referencedFiles=r,s.typeReferenceDirectives=i,s.hasNoDefaultLib=o,s.libReferenceDirectives=a,s.transformFlags=fw(s.statements)|pw(s.endOfFileToken),s}(e,t,n,r,i,!1,a),e):e},createRedirectedSourceFile:si,createBundle:li,updateBundle:function(e,t){return e.sourceFiles!==t?Ii(li(t),e):e},createSyntheticExpression:function(e,t=!1,n){const r=k(238);return r.type=e,r.isSpread=t,r.tupleNameSource=n,r},createSyntaxList:function(e){const t=k(353);return t._children=e,t},createNotEmittedStatement:function(e){const t=k(354);return t.original=e,NI(t,e),t},createNotEmittedTypeElement:function(){return k(355)},createPartiallyEmittedExpression:_i,updatePartiallyEmittedExpression:ui,createCommaListExpression:pi,updateCommaListExpression:function(e,t){return e.elements!==t?Ii(pi(t),e):e},createSyntheticReferenceExpression:fi,updateSyntheticReferenceExpression:function(e,t,n){return e.expression!==t||e.thisArg!==n?Ii(fi(t,n),e):e},cloneNode:mi,get createComma(){return o(28)},get createAssignment(){return o(64)},get createLogicalOr(){return o(57)},get createLogicalAnd(){return o(56)},get createBitwiseOr(){return o(52)},get createBitwiseXor(){return o(53)},get createBitwiseAnd(){return o(51)},get createStrictEquality(){return o(37)},get createStrictInequality(){return o(38)},get createEquality(){return o(35)},get createInequality(){return o(36)},get createLessThan(){return o(30)},get createLessThanEquals(){return o(33)},get createGreaterThan(){return o(32)},get createGreaterThanEquals(){return o(34)},get createLeftShift(){return o(48)},get createRightShift(){return o(49)},get createUnsignedRightShift(){return o(50)},get createAdd(){return o(40)},get createSubtract(){return o(41)},get createMultiply(){return o(42)},get createDivide(){return o(44)},get createModulo(){return o(45)},get createExponent(){return o(43)},get createPrefixPlus(){return a(40)},get createPrefixMinus(){return a(41)},get createPrefixIncrement(){return a(46)},get createPrefixDecrement(){return a(47)},get createBitwiseNot(){return a(55)},get createLogicalNot(){return a(54)},get createPostfixIncrement(){return c(46)},get createPostfixDecrement(){return c(47)},createImmediatelyInvokedFunctionExpression:function(e,t,n){return mt(Tt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,an(e,!0)),void 0,n?[n]:[])},createImmediatelyInvokedArrowFunction:function(e,t,n){return mt(wt(void 0,void 0,t?[t]:[],void 0,void 0,an(e,!0)),void 0,n?[n]:[])},createVoidZero:gi,createExportDefault:function(e){return ir(void 0,!1,e)},createExternalModuleExport:function(e){return ar(void 0,!1,cr([lr(!1,void 0,e)]))},createTypeCheck:function(e,t){return"null"===t?b.createStrictEquality(e,z()):"undefined"===t?b.createStrictEquality(e,gi()):b.createStrictEquality(Ft(e),N(t))},createIsNotTypeCheck:function(e,t){return"null"===t?b.createStrictInequality(e,z()):"undefined"===t?b.createStrictInequality(e,gi()):b.createStrictInequality(Ft(e),N(t))},createMethodCall:hi,createGlobalMethodCall:yi,createFunctionBindCall:function(e,t,n){return hi(e,"bind",[t,...n])},createFunctionCallCall:function(e,t,n){return hi(e,"call",[t,...n])},createFunctionApplyCall:function(e,t,n){return hi(e,"apply",[t,n])},createArraySliceCall:function(e,t){return hi(e,"slice",void 0===t?[]:[Ei(t)])},createArrayConcatCall:function(e,t){return hi(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,n){return yi("Object","defineProperty",[e,Ei(t),n])},createObjectGetOwnPropertyDescriptorCall:function(e,t){return yi("Object","getOwnPropertyDescriptor",[e,Ei(t)])},createReflectGetCall:function(e,t,n){return yi("Reflect","get",n?[e,t,n]:[e,t])},createReflectSetCall:function(e,t,n,r){return yi("Reflect","set",r?[e,t,n,r]:[e,t,n])},createPropertyDescriptor:function(e,t){const n=[];vi(n,"enumerable",Ei(e.enumerable)),vi(n,"configurable",Ei(e.configurable));let r=vi(n,"writable",Ei(e.writable));r=vi(n,"value",e.value)||r;let i=vi(n,"get",e.get);return i=vi(n,"set",e.set)||i,_n.assert(!(r&&i),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),et(n,!t)},createCallBinding:function(e,t,n,i=!1){const o=PA(e,63);let a,s;am(o)?(a=J(),s=o):kN(o)?(a=J(),s=void 0!==n&&n<2?NI(A("_super"),o):o):8192&Zd(o)?(a=gi(),s=r().parenthesizeLeftSideOfAccess(o,!1)):gF(o)?bi(o.expression,i)?(a=I(t),s=rt(NI(b.createAssignment(a,o.expression),o.expression),o.name),NI(s,o)):(a=o.expression,s=o):hF(o)?bi(o.expression,i)?(a=I(t),s=lt(NI(b.createAssignment(a,o.expression),o.expression),o.argumentExpression),NI(s,o)):(a=o.expression,s=o):(a=gi(),s=r().parenthesizeLeftSideOfAccess(e,!1));return{target:s,thisArg:a}},createAssignmentTargetWrapper:function(e,t){return rt(kt(et([fe(void 0,"value",[Q(void 0,void 0,e,void 0,void 0,void 0)],an([un(t)]))])),"value")},inlineExpressions:function(e){return e.length>10?pi(e):Ce(e,b.createComma)},getInternalName:function(e,t,n){return xi(e,t,n,98304)},getLocalName:function(e,t,n,r){return xi(e,t,n,32768,r)},getExportName:ki,getDeclarationName:function(e,t,n){return xi(e,t,n)},getNamespaceMemberName:Si,getExternalModuleOrNamespaceExportName:function(e,t,n,r){if(e&&Fv(t,32))return Si(e,xi(t),n,r);return ki(t,n,r)},restoreOuterExpressions:function e(t,n,r=63){if(t&&EA(t,r)&&(i=t,!(kF(i)&&ty(i)&&ty(Fw(i))&&ty(Lw(i)))||V(Rw(i))||V(Jw(i))))return function(e,t){switch(e.kind){case 218:return St(e,t);case 217:return xt(e,e.type,t);case 235:return Xt(e,t,e.type);case 239:return en(e,t,e.type);case 236:return Yt(e,t);case 234:return Ht(e,t,e.typeArguments);case 356:return ui(e,t)}}(t,e(t.expression,n));var i;return n},restoreEnclosingLabel:function e(t,n,r){if(!n)return t;const i=Tn(n,n.label,lE(n.statement)?e(t,n.statement):t);r&&r(n);return i},createUseStrictPrologue:Ti,copyPrologue:function(e,t,n,r){const i=Ci(e,t,0,n);return wi(e,t,i,r)},copyStandardPrologue:Ci,copyCustomPrologue:wi,ensureUseStrict:function(e){if(!TA(e))return NI(x([Ti(),...e]),e);return e},liftToBlock:function(e){return _n.assert(h(e,mu),"Cannot lift nodes to a Block."),ve(e)||an(e)},mergeLexicalEnvironment:function(e,t){if(!V(t))return e;const n=Di(e,pf,0),r=Di(e,mf,n),i=Di(e,hf,r),o=Di(t,pf,0),a=Di(t,mf,o),s=Di(t,hf,a),c=Di(t,ff,s);_n.assert(c===t.length,"Expected declarations to be valid standard or custom prologues");const l=Al(e)?e.slice():e;c>s&&l.splice(i,0,...t.slice(s,c));s>a&&l.splice(r,0,...t.slice(a,s));a>o&&l.splice(n,0,...t.slice(o,a));if(o>0)if(0===n)l.splice(0,0,...t.slice(0,o));else{const r=new Map;for(let t=0;t=0;e--){const n=t[e];r.has(n.expression.text)||l.unshift(n)}}if(Al(e))return NI(x(l,e.hasTrailingComma),e);return e},replaceModifiers:function(e,t){let n;n="number"==typeof t?$(t):t;return DN(e)?X(e,n,e.name,e.constraint,e.default):NN(e)?Y(e,n,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):VN(e)?Ee(e,n,e.typeParameters,e.parameters,e.type):EN(e)?te(e,n,e.name,e.questionToken,e.type):PN(e)?ie(e,n,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):AN(e)?ae(e,n,e.name,e.questionToken,e.typeParameters,e.parameters,e.type):IN(e)?ce(e,n,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):LN(e)?ue(e,n,e.parameters,e.body):jN(e)?pe(e,n,e.name,e.parameters,e.type,e.body):RN(e)?me(e,n,e.name,e.parameters,e.body):JN(e)?xe(e,n,e.parameters,e.type):SF(e)?Ct(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):TF(e)?Dt(e,n,e.typeParameters,e.parameters,e.type,e.equalsGreaterThanToken,e.body):jF(e)?Wt(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):GF(e)?cn(e,n,e.declarationList):mE(e)?En(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):gE(e)?An(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):hE(e)?On(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):yE(e)?jn(e,n,e.name,e.typeParameters,e.type):vE(e)?Mn(e,n,e.name,e.members):bE(e)?Jn(e,n,e.name,e.body):TE(e)?Wn(e,n,e.isTypeOnly,e.name,e.moduleReference):CE(e)?Hn(e,n,e.importClause,e.moduleSpecifier,e.attributes):jE(e)?or(e,n,e.expression):RE(e)?sr(e,n,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes):_n.assertNever(e)},replaceDecoratorsAndModifiers:function(e,t){return NN(e)?Y(e,t,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):PN(e)?ie(e,t,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):IN(e)?ce(e,t,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):jN(e)?pe(e,t,e.name,e.parameters,e.type,e.body):RN(e)?me(e,t,e.name,e.parameters,e.body):jF(e)?Wt(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):gE(e)?An(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):_n.assertNever(e)},replacePropertyName:function(e,t){switch(e.kind){case 178:return pe(e,e.modifiers,t,e.parameters,e.type,e.body);case 179:return me(e,e.modifiers,t,e.parameters,e.body);case 175:return ce(e,e.modifiers,e.asteriskToken,t,e.questionToken,e.typeParameters,e.parameters,e.type,e.body);case 174:return ae(e,e.modifiers,t,e.questionToken,e.typeParameters,e.parameters,e.type);case 173:return ie(e,e.modifiers,t,e.questionToken??e.exclamationToken,e.type,e.initializer);case 172:return te(e,e.modifiers,t,e.questionToken,e.type);case 304:return ri(e,t,e.initializer)}}};return _(aw,(e=>e(b))),b;function x(e,t){if(void 0===e||e===s)e=[];else if(Al(e)){if(void 0===t||e.hasTrailingComma===t)return void 0===e.transformFlags&&mw(e),_n.attachNodeArrayDebugInfo(e),e;const n=e.slice();return n.pos=e.pos,n.end=e.end,n.hasTrailingComma=t,n.transformFlags=e.transformFlags,_n.attachNodeArrayDebugInfo(n),n}const n=e.length,r=n>=1&&n<=4?e.slice():e;return r.pos=-1,r.end=-1,r.hasTrailingComma=!!t,r.transformFlags=0,mw(r),_n.attachNodeArrayDebugInfo(r),r}function k(e){return t.createBaseNode(e)}function S(e){const t=k(e);return t.symbol=void 0,t.localSymbol=void 0,t}function T(e,t){return e!==t&&(e.typeArguments=t.typeArguments),Ii(e,t)}function C(e,t=0){const n="number"==typeof e?e+"":e;_n.assert(45!==n.charCodeAt(0),"Negative numbers should be created in combination with createPrefixUnaryExpression");const r=S(9);return r.text=n,r.numericLiteralFlags=t,384&t&&(r.transformFlags|=1024),r}function w(e){const t=M(10);return t.text="string"==typeof e?e:yT(e)+"n",t.transformFlags|=32,t}function D(e,t){const n=S(11);return n.text=e,n.singleQuote=t,n}function N(e,t,n){const r=D(e,t);return r.hasExtendedUnicodeEscape=n,n&&(r.transformFlags|=1024),r}function F(e){const t=M(14);return t.text=e,t}function E(e){const n=t.createBaseIdentifierNode(80);return n.escapedText=e,n.jsDoc=void 0,n.flowNode=void 0,n.symbol=void 0,n}function P(e,t,n,r){const i=E(mc(e));return iD(i,{flags:t,id:iw,prefix:n,suffix:r}),iw++,i}function A(e,t,n){void 0===t&&e&&(t=Pa(e)),80===t&&(t=void 0);const r=E(mc(e));return n&&(r.flags|=256),"await"===r.escapedText&&(r.transformFlags|=67108864),256&r.flags&&(r.transformFlags|=1024),r}function I(e,t,n,r){let i=1;t&&(i|=8);const o=P("",i,n,r);return e&&e(o),o}function O(e,t=0,n,r){_n.assert(!(7&t),"Argument out of range: flags");(n||r)&&(t|=16);const i=P(e?pl(e)?bI(!1,n,e,r,hc):`generated@${cJ(e)}`:"",4|t,n,r);return i.original=e,i}function j(e){const n=t.createBasePrivateIdentifierNode(81);return n.escapedText=e,n.transformFlags|=16777216,n}function R(e,t,n,r){const i=j(mc(e));return iD(i,{flags:t,id:iw,prefix:n,suffix:r}),iw++,i}function M(e){return t.createBaseTokenNode(e)}function B(e){_n.assert(e>=0&&e<=166,"Invalid token"),_n.assert(e<=15||e>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),_n.assert(e<=9||e>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),_n.assert(80!==e,"Invalid token. Use 'createIdentifier' to create identifiers");const t=M(e);let n=0;switch(e){case 134:n=384;break;case 160:n=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:n=1;break;case 108:n=134218752,t.flowNode=void 0;break;case 126:n=1024;break;case 129:n=16777216;break;case 110:n=16384,t.flowNode=void 0}return n&&(t.transformFlags|=n),t}function J(){return B(110)}function z(){return B(106)}function q(){return B(112)}function U(){return B(97)}function W(e){return B(e)}function $(e){const t=[];return 32&e&&t.push(W(95)),128&e&&t.push(W(138)),2048&e&&t.push(W(90)),4096&e&&t.push(W(87)),1&e&&t.push(W(125)),2&e&&t.push(W(123)),4&e&&t.push(W(124)),64&e&&t.push(W(128)),256&e&&t.push(W(126)),16&e&&t.push(W(164)),8&e&&t.push(W(148)),512&e&&t.push(W(129)),1024&e&&t.push(W(134)),8192&e&&t.push(W(103)),16384&e&&t.push(W(147)),t.length?t:void 0}function H(e,t){const n=k(167);return n.left=e,n.right=Fi(t),n.transformFlags|=pw(n.left)|dw(n.right),n.flowNode=void 0,n}function K(e){const t=k(168);return t.expression=r().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=132096|pw(t.expression),t}function G(e,t,n,r){const i=S(169);return i.modifiers=Ni(e),i.name=Fi(t),i.constraint=n,i.default=r,i.transformFlags=1,i.expression=void 0,i.jsDoc=void 0,i}function X(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.constraint!==r||e.default!==i?Ii(G(t,n,r,i),e):e}function Q(e,t,n,r,i,o){const a=S(170);return a.modifiers=Ni(e),a.dotDotDotToken=t,a.name=Fi(n),a.questionToken=r,a.type=i,a.initializer=Pi(o),_v(a.name)?a.transformFlags=1:a.transformFlags=fw(a.modifiers)|pw(a.dotDotDotToken)|uw(a.name)|pw(a.questionToken)|pw(a.initializer)|(a.questionToken??a.type?1:0)|(a.dotDotDotToken??a.initializer?1024:0)|(31&Kv(a.modifiers)?8192:0),a.jsDoc=void 0,a}function Y(e,t,n,r,i,o,a){return e.modifiers!==t||e.dotDotDotToken!==n||e.name!==r||e.questionToken!==i||e.type!==o||e.initializer!==a?Ii(Q(t,n,r,i,o,a),e):e}function Z(e){const t=k(171);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=33562625|pw(t.expression),t}function ee(e,t,n,r){const i=S(172);return i.modifiers=Ni(e),i.name=Fi(t),i.type=r,i.questionToken=n,i.transformFlags=1,i.initializer=void 0,i.jsDoc=void 0,i}function te(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.type!==i?function(e,t){e!==t&&(e.initializer=t.initializer);return Ii(e,t)}(ee(t,n,r,i),e):e}function ne(e,t,n,r,i){const o=S(173);o.modifiers=Ni(e),o.name=Fi(t),o.questionToken=n&&aN(n)?n:void 0,o.exclamationToken=n&&oN(n)?n:void 0,o.type=r,o.initializer=Pi(i);const a=33554432&o.flags||128&Kv(o.modifiers);return o.transformFlags=fw(o.modifiers)|uw(o.name)|pw(o.initializer)|(a||o.questionToken||o.exclamationToken||o.type?1:0)|(wN(o.name)||256&Kv(o.modifiers)&&o.initializer?8192:0)|16777216,o.jsDoc=void 0,o}function ie(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.questionToken!==(void 0!==r&&aN(r)?r:void 0)||e.exclamationToken!==(void 0!==r&&oN(r)?r:void 0)||e.type!==i||e.initializer!==o?Ii(ne(t,n,r,i,o),e):e}function oe(e,t,n,r,i,o){const a=S(174);return a.modifiers=Ni(e),a.name=Fi(t),a.questionToken=n,a.typeParameters=Ni(r),a.parameters=Ni(i),a.type=o,a.transformFlags=1,a.jsDoc=void 0,a.locals=void 0,a.nextContainer=void 0,a.typeArguments=void 0,a}function ae(e,t,n,r,i,o,a){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.typeParameters!==i||e.parameters!==o||e.type!==a?T(oe(t,n,r,i,o,a),e):e}function se(e,t,n,r,i,o,a,s){const c=S(175);if(c.modifiers=Ni(e),c.asteriskToken=t,c.name=Fi(n),c.questionToken=r,c.exclamationToken=void 0,c.typeParameters=Ni(i),c.parameters=x(o),c.type=a,c.body=s,c.body){const e=1024&Kv(c.modifiers),t=!!c.asteriskToken,n=e&&t;c.transformFlags=fw(c.modifiers)|pw(c.asteriskToken)|uw(c.name)|pw(c.questionToken)|fw(c.typeParameters)|fw(c.parameters)|pw(c.type)|-67108865&pw(c.body)|(n?128:e?256:t?2048:0)|(c.questionToken||c.typeParameters||c.type?1:0)|1024}else c.transformFlags=1;return c.typeArguments=void 0,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.flowNode=void 0,c.endFlowNode=void 0,c.returnFlowNode=void 0,c}function ce(e,t,n,r,i,o,a,s,c){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.questionToken!==i||e.typeParameters!==o||e.parameters!==a||e.type!==s||e.body!==c?function(e,t){e!==t&&(e.exclamationToken=t.exclamationToken);return Ii(e,t)}(se(t,n,r,i,o,a,s,c),e):e}function le(e){const t=S(176);return t.body=e,t.transformFlags=16777216|pw(e),t.modifiers=void 0,t.jsDoc=void 0,t.locals=void 0,t.nextContainer=void 0,t.endFlowNode=void 0,t.returnFlowNode=void 0,t}function _e(e,t,n){const r=S(177);return r.modifiers=Ni(e),r.parameters=x(t),r.body=n,r.body?r.transformFlags=fw(r.modifiers)|fw(r.parameters)|-67108865&pw(r.body)|1024:r.transformFlags=1,r.typeParameters=void 0,r.type=void 0,r.typeArguments=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.endFlowNode=void 0,r.returnFlowNode=void 0,r}function ue(e,t,n,r){return e.modifiers!==t||e.parameters!==n||e.body!==r?function(e,t){e!==t&&(e.typeParameters=t.typeParameters,e.type=t.type);return T(e,t)}(_e(t,n,r),e):e}function de(e,t,n,r,i){const o=S(178);return o.modifiers=Ni(e),o.name=Fi(t),o.parameters=x(n),o.type=r,o.body=i,o.body?o.transformFlags=fw(o.modifiers)|uw(o.name)|fw(o.parameters)|pw(o.type)|-67108865&pw(o.body)|(o.type?1:0):o.transformFlags=1,o.typeArguments=void 0,o.typeParameters=void 0,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o.endFlowNode=void 0,o.returnFlowNode=void 0,o}function pe(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.type!==i||e.body!==o?function(e,t){e!==t&&(e.typeParameters=t.typeParameters);return T(e,t)}(de(t,n,r,i,o),e):e}function fe(e,t,n,r){const i=S(179);return i.modifiers=Ni(e),i.name=Fi(t),i.parameters=x(n),i.body=r,i.body?i.transformFlags=fw(i.modifiers)|uw(i.name)|fw(i.parameters)|-67108865&pw(i.body)|(i.type?1:0):i.transformFlags=1,i.typeArguments=void 0,i.typeParameters=void 0,i.type=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function me(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.body!==i?function(e,t){e!==t&&(e.typeParameters=t.typeParameters,e.type=t.type);return T(e,t)}(fe(t,n,r,i),e):e}function ge(e,t,n){const r=S(180);return r.typeParameters=Ni(e),r.parameters=Ni(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ye(e,t,n){const r=S(181);return r.typeParameters=Ni(e),r.parameters=Ni(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function be(e,t,n){const r=S(182);return r.modifiers=Ni(e),r.parameters=Ni(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function xe(e,t,n,r){return e.parameters!==n||e.type!==r||e.modifiers!==t?T(be(t,n,r),e):e}function ke(e,t){const n=k(205);return n.type=e,n.literal=t,n.transformFlags=1,n}function Se(e,t,n){const r=k(183);return r.assertsModifier=e,r.parameterName=Fi(t),r.type=n,r.transformFlags=1,r}function Te(e,t){const n=k(184);return n.typeName=Fi(e),n.typeArguments=t&&r().parenthesizeTypeArguments(x(t)),n.transformFlags=1,n}function we(e,t,n){const r=S(185);return r.typeParameters=Ni(e),r.parameters=Ni(t),r.type=n,r.transformFlags=1,r.modifiers=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function Ne(...e){return 4===e.length?Fe(...e):3===e.length?function(e,t,n){return Fe(void 0,e,t,n)}(...e):_n.fail("Incorrect number of arguments specified.")}function Fe(e,t,n,r){const i=S(186);return i.modifiers=Ni(e),i.typeParameters=Ni(t),i.parameters=Ni(n),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.typeArguments=void 0,i}function Ee(e,t,n,r,i){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i?T(Ne(t,n,r,i),e):e}function Pe(e,t){const n=k(187);return n.exprName=e,n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags=1,n}function Ae(e){const t=S(188);return t.members=x(e),t.transformFlags=1,t}function Ie(e){const t=k(189);return t.elementType=r().parenthesizeNonArrayTypeOfPostfixType(e),t.transformFlags=1,t}function Oe(e){const t=k(190);return t.elements=x(r().parenthesizeElementTypesOfTupleType(e)),t.transformFlags=1,t}function Le(e,t,n,r){const i=S(203);return i.dotDotDotToken=e,i.name=t,i.questionToken=n,i.type=r,i.transformFlags=1,i.jsDoc=void 0,i}function je(e){const t=k(191);return t.type=r().parenthesizeTypeOfOptionalType(e),t.transformFlags=1,t}function Re(e){const t=k(192);return t.type=e,t.transformFlags=1,t}function Me(e,t,n){const r=k(e);return r.types=b.createNodeArray(n(t)),r.transformFlags=1,r}function Be(e,t,n){return e.types!==t?Ii(Me(e.kind,t,n),e):e}function Je(e,t,n,i){const o=k(195);return o.checkType=r().parenthesizeCheckTypeOfConditionalType(e),o.extendsType=r().parenthesizeExtendsTypeOfConditionalType(t),o.trueType=n,o.falseType=i,o.transformFlags=1,o.locals=void 0,o.nextContainer=void 0,o}function ze(e){const t=k(196);return t.typeParameter=e,t.transformFlags=1,t}function qe(e,t){const n=k(204);return n.head=e,n.templateSpans=x(t),n.transformFlags=1,n}function Ue(e,t,n,i,o=!1){const a=k(206);return a.argument=e,a.attributes=t,a.assertions&&a.assertions.assertClause&&a.attributes&&(a.assertions.assertClause=a.attributes),a.qualifier=n,a.typeArguments=i&&r().parenthesizeTypeArguments(i),a.isTypeOf=o,a.transformFlags=1,a}function Ve(e){const t=k(197);return t.type=e,t.transformFlags=1,t}function We(e,t){const n=k(199);return n.operator=e,n.type=148===e?r().parenthesizeOperandOfReadonlyTypeOperator(t):r().parenthesizeOperandOfTypeOperator(t),n.transformFlags=1,n}function $e(e,t){const n=k(200);return n.objectType=r().parenthesizeNonArrayTypeOfPostfixType(e),n.indexType=t,n.transformFlags=1,n}function He(e,t,n,r,i,o){const a=S(201);return a.readonlyToken=e,a.typeParameter=t,a.nameType=n,a.questionToken=r,a.type=i,a.members=o&&x(o),a.transformFlags=1,a.locals=void 0,a.nextContainer=void 0,a}function Ke(e){const t=k(202);return t.literal=e,t.transformFlags=1,t}function Ge(e){const t=k(207);return t.elements=x(e),t.transformFlags|=525312|fw(t.elements),32768&t.transformFlags&&(t.transformFlags|=65664),t}function Qe(e){const t=k(208);return t.elements=x(e),t.transformFlags|=525312|fw(t.elements),t}function Ye(e,t,n,r){const i=S(209);return i.dotDotDotToken=e,i.propertyName=Fi(t),i.name=Fi(n),i.initializer=Pi(r),i.transformFlags|=pw(i.dotDotDotToken)|uw(i.propertyName)|uw(i.name)|pw(i.initializer)|(i.dotDotDotToken?32768:0)|1024,i.flowNode=void 0,i}function Ze(e,t){const n=k(210),i=e&&he(e),o=x(e,!(!i||!RF(i))||void 0);return n.elements=r().parenthesizeExpressionsOfCommaDelimitedList(o),n.multiLine=t,n.transformFlags|=fw(n.elements),n}function et(e,t){const n=S(211);return n.properties=x(e),n.multiLine=t,n.transformFlags|=fw(n.properties),n.jsDoc=void 0,n}function nt(e,t,n){const r=S(212);return r.expression=e,r.questionDotToken=t,r.name=n,r.transformFlags=pw(r.expression)|pw(r.questionDotToken)|(_N(r.name)?dw(r.name):536870912|pw(r.name)),r.jsDoc=void 0,r.flowNode=void 0,r}function rt(e,t){const n=nt(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Fi(t));return kN(e)&&(n.transformFlags|=384),n}function ot(e,t,n){const i=nt(r().parenthesizeLeftSideOfAccess(e,!0),t,Fi(n));return i.flags|=64,i.transformFlags|=32,i}function st(e,t,n,r){return _n.assert(!!(64&e.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),e.expression!==t||e.questionDotToken!==n||e.name!==r?Ii(ot(t,n,r),e):e}function ct(e,t,n){const r=S(213);return r.expression=e,r.questionDotToken=t,r.argumentExpression=n,r.transformFlags|=pw(r.expression)|pw(r.questionDotToken)|pw(r.argumentExpression),r.jsDoc=void 0,r.flowNode=void 0,r}function lt(e,t){const n=ct(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Ei(t));return kN(e)&&(n.transformFlags|=384),n}function _t(e,t,n){const i=ct(r().parenthesizeLeftSideOfAccess(e,!0),t,Ei(n));return i.flags|=64,i.transformFlags|=32,i}function pt(e,t,n,r){return _n.assert(!!(64&e.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),e.expression!==t||e.questionDotToken!==n||e.argumentExpression!==r?Ii(_t(t,n,r),e):e}function ft(e,t,n,r){const i=S(214);return i.expression=e,i.questionDotToken=t,i.typeArguments=n,i.arguments=r,i.transformFlags|=pw(i.expression)|pw(i.questionDotToken)|fw(i.typeArguments)|fw(i.arguments),i.typeArguments&&(i.transformFlags|=1),am(i.expression)&&(i.transformFlags|=16384),i}function mt(e,t,n){const i=ft(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Ni(t),r().parenthesizeExpressionsOfCommaDelimitedList(x(n)));return SN(i.expression)&&(i.transformFlags|=8388608),i}function gt(e,t,n,i){const o=ft(r().parenthesizeLeftSideOfAccess(e,!0),t,Ni(n),r().parenthesizeExpressionsOfCommaDelimitedList(x(i)));return o.flags|=64,o.transformFlags|=32,o}function ht(e,t,n,r,i){return _n.assert(!!(64&e.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),e.expression!==t||e.questionDotToken!==n||e.typeArguments!==r||e.arguments!==i?Ii(gt(t,n,r,i),e):e}function yt(e,t,n){const i=S(215);return i.expression=r().parenthesizeExpressionOfNew(e),i.typeArguments=Ni(t),i.arguments=n?r().parenthesizeExpressionsOfCommaDelimitedList(n):void 0,i.transformFlags|=pw(i.expression)|fw(i.typeArguments)|fw(i.arguments)|32,i.typeArguments&&(i.transformFlags|=1),i}function vt(e,t,n){const i=k(216);return i.tag=r().parenthesizeLeftSideOfAccess(e,!1),i.typeArguments=Ni(t),i.template=n,i.transformFlags|=pw(i.tag)|fw(i.typeArguments)|pw(i.template)|1024,i.typeArguments&&(i.transformFlags|=1),my(i.template)&&(i.transformFlags|=128),i}function bt(e,t){const n=k(217);return n.expression=r().parenthesizeOperandOfPrefixUnary(t),n.type=e,n.transformFlags|=pw(n.expression)|pw(n.type)|1,n}function xt(e,t,n){return e.type!==t||e.expression!==n?Ii(bt(t,n),e):e}function kt(e){const t=k(218);return t.expression=e,t.transformFlags=pw(t.expression),t.jsDoc=void 0,t}function St(e,t){return e.expression!==t?Ii(kt(t),e):e}function Tt(e,t,n,r,i,o,a){const s=S(219);s.modifiers=Ni(e),s.asteriskToken=t,s.name=Fi(n),s.typeParameters=Ni(r),s.parameters=x(i),s.type=o,s.body=a;const c=1024&Kv(s.modifiers),l=!!s.asteriskToken,_=c&&l;return s.transformFlags=fw(s.modifiers)|pw(s.asteriskToken)|uw(s.name)|fw(s.typeParameters)|fw(s.parameters)|pw(s.type)|-67108865&pw(s.body)|(_?128:c?256:l?2048:0)|(s.typeParameters||s.type?1:0)|4194304,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Ct(e,t,n,r,i,o,a,s){return e.name!==r||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==i||e.parameters!==o||e.type!==a||e.body!==s?T(Tt(t,n,r,i,o,a,s),e):e}function wt(e,t,n,i,o,a){const s=S(220);s.modifiers=Ni(e),s.typeParameters=Ni(t),s.parameters=x(n),s.type=i,s.equalsGreaterThanToken=o??B(39),s.body=r().parenthesizeConciseBodyOfArrowFunction(a);const c=1024&Kv(s.modifiers);return s.transformFlags=fw(s.modifiers)|fw(s.typeParameters)|fw(s.parameters)|pw(s.type)|pw(s.equalsGreaterThanToken)|-67108865&pw(s.body)|(s.typeParameters||s.type?1:0)|(c?16640:0)|1024,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Dt(e,t,n,r,i,o,a){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i||e.equalsGreaterThanToken!==o||e.body!==a?T(wt(t,n,r,i,o,a),e):e}function Nt(e){const t=k(221);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=pw(t.expression),t}function Ft(e){const t=k(222);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=pw(t.expression),t}function Et(e){const t=k(223);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=pw(t.expression),t}function Pt(e){const t=k(224);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=2097536|pw(t.expression),t}function At(e,t){const n=k(225);return n.operator=e,n.operand=r().parenthesizeOperandOfPrefixUnary(t),n.transformFlags|=pw(n.operand),46!==e&&47!==e||!_N(n.operand)||$l(n.operand)||xA(n.operand)||(n.transformFlags|=268435456),n}function It(e,t){const n=k(226);return n.operator=t,n.operand=r().parenthesizeOperandOfPostfixUnary(e),n.transformFlags|=pw(n.operand),!_N(n.operand)||$l(n.operand)||xA(n.operand)||(n.transformFlags|=268435456),n}function Ot(e,t,n){const i=S(227),o="number"==typeof(a=t)?B(a):a;var a;const s=o.kind;return i.left=r().parenthesizeLeftSideOfBinary(s,e),i.operatorToken=o,i.right=r().parenthesizeRightSideOfBinary(s,i.left,n),i.transformFlags|=pw(i.left)|pw(i.operatorToken)|pw(i.right),61===s?i.transformFlags|=32:64===s?mF(i.left)?i.transformFlags|=5248|Lt(i.left):fF(i.left)&&(i.transformFlags|=5120|Lt(i.left)):43===s||68===s?i.transformFlags|=512:Yv(s)&&(i.transformFlags|=16),103===s&&uN(i.left)&&(i.transformFlags|=536870912),i.jsDoc=void 0,i}function Lt(e){return DI(e)?65536:0}function jt(e,t,n,i,o){const a=k(228);return a.condition=r().parenthesizeConditionOfConditionalExpression(e),a.questionToken=t??B(58),a.whenTrue=r().parenthesizeBranchOfConditionalExpression(n),a.colonToken=i??B(59),a.whenFalse=r().parenthesizeBranchOfConditionalExpression(o),a.transformFlags|=pw(a.condition)|pw(a.questionToken)|pw(a.whenTrue)|pw(a.colonToken)|pw(a.whenFalse),a.flowNodeWhenFalse=void 0,a.flowNodeWhenTrue=void 0,a}function Rt(e,t){const n=k(229);return n.head=e,n.templateSpans=x(t),n.transformFlags|=pw(n.head)|fw(n.templateSpans)|1024,n}function Mt(e,t,n,r=0){let i;if(_n.assert(!(-7177&r),"Unsupported template flags."),void 0!==n&&n!==t&&(i=function(e,t){nw||(nw=hs(99,!1,0));switch(e){case 15:nw.setText("`"+t+"`");break;case 16:nw.setText("`"+t+"${");break;case 17:nw.setText("}"+t+"${");break;case 18:nw.setText("}"+t+"`")}let n,r=nw.scan();20===r&&(r=nw.reScanTemplateToken(!1));if(nw.isUnterminated())return nw.setText(void 0),_w;switch(r){case 15:case 16:case 17:case 18:n=nw.getTokenValue()}if(void 0===n||1!==nw.scan())return nw.setText(void 0),_w;return nw.setText(void 0),n}(e,n),"object"==typeof i))return _n.fail("Invalid raw text");if(void 0===t){if(void 0===i)return _n.fail("Arguments 'text' and 'rawText' may not both be undefined.");t=i}else void 0!==i&&_n.assert(t===i,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return t}function Bt(e){let t=1024;return e&&(t|=128),t}function Jt(e,t,n,r){const i=S(e);return i.text=t,i.rawText=n,i.templateFlags=7176&r,i.transformFlags=Bt(i.templateFlags),i}function zt(e,t,n,r){return 15===e?Jt(e,t,n,r):function(e,t,n,r){const i=M(e);return i.text=t,i.rawText=n,i.templateFlags=7176&r,i.transformFlags=Bt(i.templateFlags),i}(e,t,n,r)}function qt(e,t){_n.assert(!e||!!t,"A `YieldExpression` with an asteriskToken must have an expression.");const n=k(230);return n.expression=t&&r().parenthesizeExpressionForDisallowedComma(t),n.asteriskToken=e,n.transformFlags|=1049728|(pw(n.expression)|pw(n.asteriskToken)),n}function Ut(e){const t=k(231);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=33792|pw(t.expression),t}function Vt(e,t,n,r,i){const o=S(232);return o.modifiers=Ni(e),o.name=Fi(t),o.typeParameters=Ni(n),o.heritageClauses=Ni(r),o.members=x(i),o.transformFlags|=fw(o.modifiers)|uw(o.name)|fw(o.typeParameters)|fw(o.heritageClauses)|fw(o.members)|(o.typeParameters?1:0)|1024,o.jsDoc=void 0,o}function Wt(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Ii(Vt(t,n,r,i,o),e):e}function $t(e,t){const n=k(234);return n.expression=r().parenthesizeLeftSideOfAccess(e,!1),n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags|=pw(n.expression)|fw(n.typeArguments)|1024,n}function Ht(e,t,n){return e.expression!==t||e.typeArguments!==n?Ii($t(t,n),e):e}function Gt(e,t){const n=k(235);return n.expression=e,n.type=t,n.transformFlags|=pw(n.expression)|pw(n.type)|1,n}function Xt(e,t,n){return e.expression!==t||e.type!==n?Ii(Gt(t,n),e):e}function Qt(e){const t=k(236);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=1|pw(t.expression),t}function Yt(e,t){return Cl(e)?nn(e,t):e.expression!==t?Ii(Qt(t),e):e}function Zt(e,t){const n=k(239);return n.expression=e,n.type=t,n.transformFlags|=pw(n.expression)|pw(n.type)|1,n}function en(e,t,n){return e.expression!==t||e.type!==n?Ii(Zt(t,n),e):e}function tn(e){const t=k(236);return t.flags|=64,t.expression=r().parenthesizeLeftSideOfAccess(e,!0),t.transformFlags|=1|pw(t.expression),t}function nn(e,t){return _n.assert(!!(64&e.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),e.expression!==t?Ii(tn(t),e):e}function rn(e,t){const n=k(237);switch(n.keywordToken=e,n.name=t,n.transformFlags|=pw(n.name),e){case 105:n.transformFlags|=1024;break;case 102:n.transformFlags|=32;break;default:return _n.assertNever(e)}return n.flowNode=void 0,n}function on(e,t){const n=k(240);return n.expression=e,n.literal=t,n.transformFlags|=pw(n.expression)|pw(n.literal)|1024,n}function an(e,t){const n=k(242);return n.statements=x(e),n.multiLine=t,n.transformFlags|=fw(n.statements),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n}function sn(e,t){const n=k(244);return n.modifiers=Ni(e),n.declarationList=Xe(t)?Nn(t):t,n.transformFlags|=fw(n.modifiers)|pw(n.declarationList),128&Kv(n.modifiers)&&(n.transformFlags=1),n.jsDoc=void 0,n.flowNode=void 0,n}function cn(e,t,n){return e.modifiers!==t||e.declarationList!==n?Ii(sn(t,n),e):e}function ln(){const e=k(243);return e.jsDoc=void 0,e}function un(e){const t=k(245);return t.expression=r().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=pw(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function dn(e,t,n){const r=k(246);return r.expression=e,r.thenStatement=Ai(t),r.elseStatement=Ai(n),r.transformFlags|=pw(r.expression)|pw(r.thenStatement)|pw(r.elseStatement),r.jsDoc=void 0,r.flowNode=void 0,r}function pn(e,t){const n=k(247);return n.statement=Ai(e),n.expression=t,n.transformFlags|=pw(n.statement)|pw(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function fn(e,t){const n=k(248);return n.expression=e,n.statement=Ai(t),n.transformFlags|=pw(n.expression)|pw(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function mn(e,t,n,r){const i=k(249);return i.initializer=e,i.condition=t,i.incrementor=n,i.statement=Ai(r),i.transformFlags|=pw(i.initializer)|pw(i.condition)|pw(i.incrementor)|pw(i.statement),i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i}function gn(e,t,n){const r=k(250);return r.initializer=e,r.expression=t,r.statement=Ai(n),r.transformFlags|=pw(r.initializer)|pw(r.expression)|pw(r.statement),r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.flowNode=void 0,r}function hn(e,t,n,i){const o=k(251);return o.awaitModifier=e,o.initializer=t,o.expression=r().parenthesizeExpressionForDisallowedComma(n),o.statement=Ai(i),o.transformFlags|=pw(o.awaitModifier)|pw(o.initializer)|pw(o.expression)|pw(o.statement)|1024,e&&(o.transformFlags|=128),o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o}function yn(e){const t=k(252);return t.label=Fi(e),t.transformFlags|=4194304|pw(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function vn(e){const t=k(253);return t.label=Fi(e),t.transformFlags|=4194304|pw(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function bn(e){const t=k(254);return t.expression=e,t.transformFlags|=4194432|pw(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function xn(e,t){const n=k(255);return n.expression=e,n.statement=Ai(t),n.transformFlags|=pw(n.expression)|pw(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function kn(e,t){const n=k(256);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.caseBlock=t,n.transformFlags|=pw(n.expression)|pw(n.caseBlock),n.jsDoc=void 0,n.flowNode=void 0,n.possiblyExhaustive=!1,n}function Sn(e,t){const n=k(257);return n.label=Fi(e),n.statement=Ai(t),n.transformFlags|=pw(n.label)|pw(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function Tn(e,t,n){return e.label!==t||e.statement!==n?Ii(Sn(t,n),e):e}function Cn(e){const t=k(258);return t.expression=e,t.transformFlags|=pw(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function wn(e,t,n){const r=k(259);return r.tryBlock=e,r.catchClause=t,r.finallyBlock=n,r.transformFlags|=pw(r.tryBlock)|pw(r.catchClause)|pw(r.finallyBlock),r.jsDoc=void 0,r.flowNode=void 0,r}function Dn(e,t,n,r){const i=S(261);return i.name=Fi(e),i.exclamationToken=t,i.type=n,i.initializer=Pi(r),i.transformFlags|=uw(i.name)|pw(i.initializer)|(i.exclamationToken??i.type?1:0),i.jsDoc=void 0,i}function Nn(e,t=0){const n=k(262);return n.flags|=7&t,n.declarations=x(e),n.transformFlags|=4194304|fw(n.declarations),7&t&&(n.transformFlags|=263168),4&t&&(n.transformFlags|=4),n}function Fn(e,t,n,r,i,o,a){const s=S(263);if(s.modifiers=Ni(e),s.asteriskToken=t,s.name=Fi(n),s.typeParameters=Ni(r),s.parameters=x(i),s.type=o,s.body=a,!s.body||128&Kv(s.modifiers))s.transformFlags=1;else{const e=1024&Kv(s.modifiers),t=!!s.asteriskToken,n=e&&t;s.transformFlags=fw(s.modifiers)|pw(s.asteriskToken)|uw(s.name)|fw(s.typeParameters)|fw(s.parameters)|pw(s.type)|-67108865&pw(s.body)|(n?128:e?256:t?2048:0)|(s.typeParameters||s.type?1:0)|4194304}return s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function En(e,t,n,r,i,o,a,s){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.typeParameters!==i||e.parameters!==o||e.type!==a||e.body!==s?function(e,t){e!==t&&e.modifiers===t.modifiers&&(e.modifiers=t.modifiers);return T(e,t)}(Fn(t,n,r,i,o,a,s),e):e}function Pn(e,t,n,r,i){const o=S(264);return o.modifiers=Ni(e),o.name=Fi(t),o.typeParameters=Ni(n),o.heritageClauses=Ni(r),o.members=x(i),128&Kv(o.modifiers)?o.transformFlags=1:(o.transformFlags|=fw(o.modifiers)|uw(o.name)|fw(o.typeParameters)|fw(o.heritageClauses)|fw(o.members)|(o.typeParameters?1:0)|1024,8192&o.transformFlags&&(o.transformFlags|=1)),o.jsDoc=void 0,o}function An(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Ii(Pn(t,n,r,i,o),e):e}function In(e,t,n,r,i){const o=S(265);return o.modifiers=Ni(e),o.name=Fi(t),o.typeParameters=Ni(n),o.heritageClauses=Ni(r),o.members=x(i),o.transformFlags=1,o.jsDoc=void 0,o}function On(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==o?Ii(In(t,n,r,i,o),e):e}function Ln(e,t,n,r){const i=S(266);return i.modifiers=Ni(e),i.name=Fi(t),i.typeParameters=Ni(n),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function jn(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.type!==i?Ii(Ln(t,n,r,i),e):e}function Rn(e,t,n){const r=S(267);return r.modifiers=Ni(e),r.name=Fi(t),r.members=x(n),r.transformFlags|=fw(r.modifiers)|pw(r.name)|fw(r.members)|1,r.transformFlags&=-67108865,r.jsDoc=void 0,r}function Mn(e,t,n,r){return e.modifiers!==t||e.name!==n||e.members!==r?Ii(Rn(t,n,r),e):e}function Bn(e,t,n,r=0){const i=S(268);return i.modifiers=Ni(e),i.flags|=2088&r,i.name=t,i.body=n,128&Kv(i.modifiers)?i.transformFlags=1:i.transformFlags|=fw(i.modifiers)|pw(i.name)|pw(i.body)|1,i.transformFlags&=-67108865,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function Jn(e,t,n,r){return e.modifiers!==t||e.name!==n||e.body!==r?Ii(Bn(t,n,r,e.flags),e):e}function zn(e){const t=k(269);return t.statements=x(e),t.transformFlags|=fw(t.statements),t.jsDoc=void 0,t}function qn(e){const t=k(270);return t.clauses=x(e),t.transformFlags|=fw(t.clauses),t.locals=void 0,t.nextContainer=void 0,t}function Un(e){const t=S(271);return t.name=Fi(e),t.transformFlags|=1|dw(t.name),t.modifiers=void 0,t.jsDoc=void 0,t}function Vn(e,t,n,r){const i=S(272);return i.modifiers=Ni(e),i.name=Fi(n),i.isTypeOnly=t,i.moduleReference=r,i.transformFlags|=fw(i.modifiers)|dw(i.name)|pw(i.moduleReference),VE(i.moduleReference)||(i.transformFlags|=1),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Wn(e,t,n,r,i){return e.modifiers!==t||e.isTypeOnly!==n||e.name!==r||e.moduleReference!==i?Ii(Vn(t,n,r,i),e):e}function $n(e,t,n,r){const i=k(273);return i.modifiers=Ni(e),i.importClause=t,i.moduleSpecifier=n,i.attributes=i.assertClause=r,i.transformFlags|=pw(i.importClause)|pw(i.moduleSpecifier),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Hn(e,t,n,r,i){return e.modifiers!==t||e.importClause!==n||e.moduleSpecifier!==r||e.attributes!==i?Ii($n(t,n,r,i),e):e}function Kn(e,t,n){const r=S(274);return"boolean"==typeof e&&(e=e?156:void 0),r.isTypeOnly=156===e,r.phaseModifier=e,r.name=t,r.namedBindings=n,r.transformFlags|=pw(r.name)|pw(r.namedBindings),156===e&&(r.transformFlags|=1),r.transformFlags&=-67108865,r}function Gn(e,t){const n=k(301);return n.elements=x(e),n.multiLine=t,n.token=132,n.transformFlags|=4,n}function Xn(e,t){const n=k(302);return n.name=e,n.value=t,n.transformFlags|=4,n}function Qn(e,t){const n=k(303);return n.assertClause=e,n.multiLine=t,n}function Yn(e,t,n){const r=k(301);return r.token=n??118,r.elements=x(e),r.multiLine=t,r.transformFlags|=4,r}function Zn(e,t){const n=k(302);return n.name=e,n.value=t,n.transformFlags|=4,n}function er(e){const t=S(275);return t.name=e,t.transformFlags|=pw(t.name),t.transformFlags&=-67108865,t}function tr(e){const t=S(281);return t.name=e,t.transformFlags|=32|pw(t.name),t.transformFlags&=-67108865,t}function nr(e){const t=k(276);return t.elements=x(e),t.transformFlags|=fw(t.elements),t.transformFlags&=-67108865,t}function rr(e,t,n){const r=S(277);return r.isTypeOnly=e,r.propertyName=t,r.name=n,r.transformFlags|=pw(r.propertyName)|pw(r.name),r.transformFlags&=-67108865,r}function ir(e,t,n){const i=S(278);return i.modifiers=Ni(e),i.isExportEquals=t,i.expression=t?r().parenthesizeRightSideOfBinary(64,void 0,n):r().parenthesizeExpressionOfExportDefault(n),i.transformFlags|=fw(i.modifiers)|pw(i.expression),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function or(e,t,n){return e.modifiers!==t||e.expression!==n?Ii(ir(t,e.isExportEquals,n),e):e}function ar(e,t,n,r,i){const o=S(279);return o.modifiers=Ni(e),o.isTypeOnly=t,o.exportClause=n,o.moduleSpecifier=r,o.attributes=o.assertClause=i,o.transformFlags|=fw(o.modifiers)|pw(o.exportClause)|pw(o.moduleSpecifier),o.transformFlags&=-67108865,o.jsDoc=void 0,o}function sr(e,t,n,r,i,o){return e.modifiers!==t||e.isTypeOnly!==n||e.exportClause!==r||e.moduleSpecifier!==i||e.attributes!==o?function(e,t){e!==t&&e.modifiers===t.modifiers&&(e.modifiers=t.modifiers);return Ii(e,t)}(ar(t,n,r,i,o),e):e}function cr(e){const t=k(280);return t.elements=x(e),t.transformFlags|=fw(t.elements),t.transformFlags&=-67108865,t}function lr(e,t,n){const r=k(282);return r.isTypeOnly=e,r.propertyName=Fi(t),r.name=Fi(n),r.transformFlags|=pw(r.propertyName)|pw(r.name),r.transformFlags&=-67108865,r.jsDoc=void 0,r}function _r(e){const t=k(284);return t.expression=e,t.transformFlags|=pw(t.expression),t.transformFlags&=-67108865,t}function ur(e,t,n=!1){const i=dr(e,n?t&&r().parenthesizeNonArrayTypeOfPostfixType(t):t);return i.postfix=n,i}function dr(e,t){const n=k(e);return n.type=t,n}function pr(e,t){const n=S(318);return n.parameters=Ni(e),n.type=t,n.transformFlags=fw(n.parameters)|(n.type?1:0),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.typeArguments=void 0,n}function fr(e,t=!1){const n=S(323);return n.jsDocPropertyTags=Ni(e),n.isArrayType=t,n}function mr(e){const t=k(310);return t.type=e,t}function gr(e,t,n){const r=S(324);return r.typeParameters=Ni(e),r.parameters=x(t),r.type=n,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r}function hr(e){const t=lw(e.kind);return e.tagName.escapedText===mc(t)?e.tagName:A(t)}function yr(e,t,n){const r=k(e);return r.tagName=t,r.comment=n,r}function vr(e,t,n){const r=S(e);return r.tagName=t,r.comment=n,r}function br(e,t,n,r){const i=yr(346,e??A("template"),r);return i.constraint=t,i.typeParameters=x(n),i}function xr(e,t,n,r){const i=vr(347,e??A("typedef"),r);return i.typeExpression=t,i.fullName=n,i.name=HA(n),i.locals=void 0,i.nextContainer=void 0,i}function kr(e,t,n,r,i,o){const a=vr(342,e??A("param"),o);return a.typeExpression=r,a.name=t,a.isNameFirst=!!i,a.isBracketed=n,a}function Sr(e,t,n,r,i,o){const a=vr(349,e??A("prop"),o);return a.typeExpression=r,a.name=t,a.isNameFirst=!!i,a.isBracketed=n,a}function Tr(e,t,n,r){const i=vr(339,e??A("callback"),r);return i.typeExpression=t,i.fullName=n,i.name=HA(n),i.locals=void 0,i.nextContainer=void 0,i}function Cr(e,t,n){const r=yr(340,e??A("overload"),n);return r.typeExpression=t,r}function wr(e,t,n){const r=yr(329,e??A("augments"),n);return r.class=t,r}function Dr(e,t,n){const r=yr(330,e??A("implements"),n);return r.class=t,r}function Nr(e,t,n){const r=yr(348,e??A("see"),n);return r.name=t,r}function Fr(e){const t=k(311);return t.name=e,t}function Er(e,t){const n=k(312);return n.left=e,n.right=t,n.transformFlags|=pw(n.left)|pw(n.right),n}function Pr(e,t){const n=k(325);return n.name=e,n.text=t,n}function Ar(e,t){const n=k(326);return n.name=e,n.text=t,n}function Ir(e,t){const n=k(327);return n.name=e,n.text=t,n}function Or(e,t,n){return yr(e,t??A(lw(e)),n)}function Lr(e,t,n,r){const i=yr(e,t??A(lw(e)),r);return i.typeExpression=n,i}function jr(e,t){return yr(328,e,t)}function Rr(e,t,n){const r=vr(341,e??A(lw(341)),n);return r.typeExpression=t,r.locals=void 0,r.nextContainer=void 0,r}function Mr(e,t,n,r,i){const o=yr(352,e??A("import"),i);return o.importClause=t,o.moduleSpecifier=n,o.attributes=r,o.comment=i,o}function Br(e){const t=k(322);return t.text=e,t}function Jr(e,t){const n=k(321);return n.comment=e,n.tags=Ni(t),n}function zr(e,t,n){const r=k(285);return r.openingElement=e,r.children=x(t),r.closingElement=n,r.transformFlags|=pw(r.openingElement)|fw(r.children)|pw(r.closingElement)|2,r}function qr(e,t,n){const r=k(286);return r.tagName=e,r.typeArguments=Ni(t),r.attributes=n,r.transformFlags|=pw(r.tagName)|fw(r.typeArguments)|pw(r.attributes)|2,r.typeArguments&&(r.transformFlags|=1),r}function Ur(e,t,n){const r=k(287);return r.tagName=e,r.typeArguments=Ni(t),r.attributes=n,r.transformFlags|=pw(r.tagName)|fw(r.typeArguments)|pw(r.attributes)|2,t&&(r.transformFlags|=1),r}function Vr(e){const t=k(288);return t.tagName=e,t.transformFlags|=2|pw(t.tagName),t}function Wr(e,t,n){const r=k(289);return r.openingFragment=e,r.children=x(t),r.closingFragment=n,r.transformFlags|=pw(r.openingFragment)|fw(r.children)|pw(r.closingFragment)|2,r}function $r(e,t){const n=k(12);return n.text=e,n.containsOnlyTriviaWhiteSpaces=!!t,n.transformFlags|=2,n}function Hr(e,t){const n=S(292);return n.name=e,n.initializer=t,n.transformFlags|=pw(n.name)|pw(n.initializer)|2,n}function Kr(e){const t=S(293);return t.properties=x(e),t.transformFlags|=2|fw(t.properties),t}function Gr(e){const t=k(294);return t.expression=e,t.transformFlags|=2|pw(t.expression),t}function Xr(e,t){const n=k(295);return n.dotDotDotToken=e,n.expression=t,n.transformFlags|=pw(n.dotDotDotToken)|pw(n.expression)|2,n}function Qr(e,t){const n=k(296);return n.namespace=e,n.name=t,n.transformFlags|=pw(n.namespace)|pw(n.name)|2,n}function Yr(e,t){const n=k(297);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.statements=x(t),n.transformFlags|=pw(n.expression)|fw(n.statements),n.jsDoc=void 0,n}function Zr(e){const t=k(298);return t.statements=x(e),t.transformFlags=fw(t.statements),t}function ei(e,t){const n=k(299);switch(n.token=e,n.types=x(t),n.transformFlags|=fw(n.types),e){case 96:n.transformFlags|=1024;break;case 119:n.transformFlags|=1;break;default:return _n.assertNever(e)}return n}function ti(e,t){const n=k(300);return n.variableDeclaration=function(e){if("string"==typeof e||e&&!pE(e))return Dn(e,void 0,void 0,void 0);return e}(e),n.block=t,n.transformFlags|=pw(n.variableDeclaration)|pw(n.block)|(e?0:64),n.locals=void 0,n.nextContainer=void 0,n}function ni(e,t){const n=S(304);return n.name=Fi(e),n.initializer=r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=uw(n.name)|pw(n.initializer),n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function ri(e,t,n){return e.name!==t||e.initializer!==n?function(e,t){e!==t&&(e.modifiers=t.modifiers,e.questionToken=t.questionToken,e.exclamationToken=t.exclamationToken);return Ii(e,t)}(ni(t,n),e):e}function ii(e,t){const n=S(305);return n.name=Fi(e),n.objectAssignmentInitializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=dw(n.name)|pw(n.objectAssignmentInitializer)|1024,n.equalsToken=void 0,n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function oi(e){const t=S(306);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=65664|pw(t.expression),t.jsDoc=void 0,t}function ai(e,t){const n=S(307);return n.name=Fi(e),n.initializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=pw(n.name)|pw(n.initializer)|1,n.jsDoc=void 0,n}function si(e){const t=Object.create(e.redirectTarget);return Object.defineProperties(t,{id:{get(){return this.redirectInfo.redirectTarget.id},set(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(e){this.redirectInfo.redirectTarget.symbol=e}}}),t.redirectInfo=e,t}function ci(e){const r=e.redirectInfo?function(e){const t=si(e.redirectInfo);return t.flags|=-17&e.flags,t.fileName=e.fileName,t.path=e.path,t.resolvedPath=e.resolvedPath,t.originalFileName=e.originalFileName,t.packageJsonLocations=e.packageJsonLocations,t.packageJsonScope=e.packageJsonScope,t.emitNode=void 0,t}(e):function(e){const n=t.createBaseSourceFileNode(308);n.flags|=-17&e.flags;for(const t in e)!De(n,t)&&De(e,t)&&("emitNode"!==t?n[t]=e[t]:n.emitNode=void 0);return n}(e);return n(r,e),r}function li(e){const t=k(309);return t.sourceFiles=e,t.syntheticFileReferences=void 0,t.syntheticTypeReferences=void 0,t.syntheticLibReferences=void 0,t}function _i(e,t){const n=k(356);return n.expression=e,n.original=t,n.transformFlags|=1|pw(n.expression),NI(n,t),n}function ui(e,t){return e.expression!==t?Ii(_i(t,e.original),e):e}function di(e){if(ty(e)&&!pc(e)&&!e.original&&!e.emitNode&&!e.id){if(WF(e))return e.elements;if(PF(e)&&tN(e.operatorToken))return[e.left,e.right]}return e}function pi(e){const t=k(357);return t.elements=x(L(e,di)),t.transformFlags|=fw(t.elements),t}function fi(e,t){const n=k(358);return n.expression=e,n.thisArg=t,n.transformFlags|=pw(n.expression)|pw(n.thisArg),n}function mi(e){if(void 0===e)return e;if(uP(e))return ci(e);if($l(e))return function(e){const t=E(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),iD(t,{...e.emitNode.autoGenerate}),t}(e);if(_N(e))return function(e){const t=E(e.escapedText);t.flags|=-17&e.flags,t.jsDoc=e.jsDoc,t.flowNode=e.flowNode,t.symbol=e.symbol,t.transformFlags=e.transformFlags,n(t,e);const r=rD(e);return r&&nD(t,r),t}(e);if(Hl(e))return function(e){const t=j(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),iD(t,{...e.emitNode.autoGenerate}),t}(e);if(uN(e))return function(e){const t=j(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),t}(e);const r=Fl(e.kind)?t.createBaseNode(e.kind):t.createBaseTokenNode(e.kind);r.flags|=-17&e.flags,r.transformFlags=e.transformFlags,n(r,e);for(const t in e)!De(r,t)&&De(e,t)&&(r[t]=e[t]);return r}function gi(){return Et(C("0"))}function hi(e,t,n){return hl(e)?gt(ot(e,void 0,t),void 0,void 0,n):mt(rt(e,t),void 0,n)}function yi(e,t,n){return hi(A(e),t,n)}function vi(e,t,n){return!!n&&(e.push(ni(t,n)),!0)}function bi(e,t){const n=sh(e);switch(n.kind){case 80:return t;case 110:case 9:case 10:case 11:return!1;case 210:return 0!==n.elements.length;case 211:return n.properties.length>0;default:return!0}}function xi(e,t,n,r=0,i){const o=i?e&&Cc(e):wc(e);if(o&&_N(o)&&!$l(o)){const e=ET(NI(mi(o),o),o.parent);return r|=Zd(o),n||(r|=96),t||(r|=3072),r&&Cw(e,r),e}return O(e)}function ki(e,t,n){return xi(e,t,n,16384)}function Si(e,t,n,r){const i=rt(e,ty(t)?t:mi(t));NI(i,t);let o=0;return r||(o|=96),n||(o|=3072),o&&Cw(i,o),i}function Ti(){return IA(un(N("use strict")))}function Ci(e,t,n=0,r){_n.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");let i=!1;const o=e.length;for(;n=183&&e<=206)return-2;switch(e){case 214:case 215:case 210:case 207:case 208:return-2147450880;case 268:return-1941676032;case 170:case 217:case 239:case 235:case 356:case 218:case 108:case 212:case 213:default:return-2147483648;case 220:return-2072174592;case 219:case 263:return-1937940480;case 262:return-2146893824;case 264:case 232:return-2147344384;case 177:return-1937948672;case 173:return-2013249536;case 175:case 178:case 179:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 169:case 172:case 174:case 180:case 181:case 182:case 265:case 266:return-2;case 211:return-2147278848;case 300:return-2147418112}}(e.kind);return Tc(e)&&n_(e.name)?(n=e.name,t|134234112&n.transformFlags):t;var n}function fw(e){return e?e.transformFlags:0}function mw(e){let t=0;for(const n of e)t|=pw(n);e.transformFlags=t}var gw=YC();function hw(e){return e.flags|=16,e}var yw,vw=cw(4,{createBaseSourceFileNode:e=>hw(gw.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>hw(gw.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>hw(gw.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>hw(gw.createBaseTokenNode(e)),createBaseNode:e=>hw(gw.createBaseNode(e))});function bw(e,t,n){return new(yw||(yw=Bx.getSourceMapSourceConstructor()))(e,t,n)}function xw(e,t){if(e.original!==t&&(e.original=t,t)){const n=t.emitNode;n&&(e.emitNode=function(e,t){const{flags:n,internalFlags:r,leadingComments:i,trailingComments:o,commentRange:a,sourceMapRange:s,tokenSourceMapRanges:c,constantValue:l,helpers:_,startsOnNewLine:u,snippetElement:d,classThis:p,assignedName:f}=e;t||(t={});n&&(t.flags=n);r&&(t.internalFlags=-9&r);i&&(t.leadingComments=ae(i.slice(),t.leadingComments));o&&(t.trailingComments=ae(o.slice(),t.trailingComments));a&&(t.commentRange=a);s&&(t.sourceMapRange=s);c&&(t.tokenSourceMapRanges=function(e,t){t||(t=[]);for(const n in e)t[n]=e[n];return t}(c,t.tokenSourceMapRanges));void 0!==l&&(t.constantValue=l);if(_)for(const e of _)t.helpers=ce(t.helpers,e);void 0!==u&&(t.startsOnNewLine=u);void 0!==d&&(t.snippetElement=d);p&&(t.classThis=p);f&&(t.assignedName=f);return t}(n,e.emitNode))}return e}function kw(e){if(e.emitNode)_n.assert(!(8&e.emitNode.internalFlags),"Invalid attempt to mutate an immutable node.");else{if(pc(e)){if(308===e.kind)return e.emitNode={annotatedNodes:[e]};kw(bd(fc(bd(e)))??_n.fail("Could not determine parsed source file.")).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function Sw(e){var t,n;const r=null==(n=null==(t=bd(fc(e)))?void 0:t.emitNode)?void 0:n.annotatedNodes;if(r)for(const e of r)e.emitNode=void 0}function Tw(e){const t=kw(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function Cw(e,t){return kw(e).flags=t,e}function ww(e,t){const n=kw(e);return n.flags=n.flags|t,e}function Dw(e,t){return kw(e).internalFlags=t,e}function Nw(e,t){const n=kw(e);return n.internalFlags=n.internalFlags|t,e}function Fw(e){var t;return(null==(t=e.emitNode)?void 0:t.sourceMapRange)??e}function Ew(e,t){return kw(e).sourceMapRange=t,e}function Pw(e,t){var n,r;return null==(r=null==(n=e.emitNode)?void 0:n.tokenSourceMapRanges)?void 0:r[t]}function Aw(e,t,n){const r=kw(e);return(r.tokenSourceMapRanges??(r.tokenSourceMapRanges=[]))[t]=n,e}function Iw(e){var t;return null==(t=e.emitNode)?void 0:t.startsOnNewLine}function Ow(e,t){return kw(e).startsOnNewLine=t,e}function Lw(e){var t;return(null==(t=e.emitNode)?void 0:t.commentRange)??e}function jw(e,t){return kw(e).commentRange=t,e}function Rw(e){var t;return null==(t=e.emitNode)?void 0:t.leadingComments}function Mw(e,t){return kw(e).leadingComments=t,e}function Bw(e,t,n,r){return Mw(e,re(Rw(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function Jw(e){var t;return null==(t=e.emitNode)?void 0:t.trailingComments}function zw(e,t){return kw(e).trailingComments=t,e}function qw(e,t,n,r){return zw(e,re(Jw(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function Uw(e,t){Mw(e,Rw(t)),zw(e,Jw(t));const n=kw(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function Vw(e){var t;return null==(t=e.emitNode)?void 0:t.constantValue}function Ww(e,t){return kw(e).constantValue=t,e}function $w(e,t){const n=kw(e);return n.helpers=re(n.helpers,t),e}function Hw(e,t){if(V(t)){const n=kw(e);for(const e of t)n.helpers=ce(n.helpers,e)}return e}function Kw(e,t){var n;const r=null==(n=e.emitNode)?void 0:n.helpers;return!!r&&Jt(r,t)}function Gw(e){var t;return null==(t=e.emitNode)?void 0:t.helpers}function Xw(e,t,n){const r=e.emitNode,i=r&&r.helpers;if(!V(i))return;const o=kw(t);let a=0;for(let e=0;e0&&(i[e-a]=t)}a>0&&(i.length-=a)}function Qw(e){var t;return null==(t=e.emitNode)?void 0:t.snippetElement}function Yw(e,t){return kw(e).snippetElement=t,e}function Zw(e){return kw(e).internalFlags|=4,e}function eD(e,t){return kw(e).typeNode=t,e}function tD(e){var t;return null==(t=e.emitNode)?void 0:t.typeNode}function nD(e,t){return kw(e).identifierTypeArguments=t,e}function rD(e){var t;return null==(t=e.emitNode)?void 0:t.identifierTypeArguments}function iD(e,t){return kw(e).autoGenerate=t,e}function oD(e){var t;return null==(t=e.emitNode)?void 0:t.autoGenerate}function aD(e,t){return kw(e).generatedImportReference=t,e}function sD(e){var t;return null==(t=e.emitNode)?void 0:t.generatedImportReference}var cD=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(cD||{});function lD(e){const t=e.factory,n=ut((()=>Dw(t.createTrue(),8))),r=ut((()=>Dw(t.createFalse(),8)));return{getUnscopedHelperName:i,createDecorateHelper:function(n,r,o,a){e.requestEmitHelper(dD);const s=[];s.push(t.createArrayLiteralExpression(n,!0)),s.push(r),o&&(s.push(o),a&&s.push(a));return t.createCallExpression(i("__decorate"),void 0,s)},createMetadataHelper:function(n,r){return e.requestEmitHelper(pD),t.createCallExpression(i("__metadata"),void 0,[t.createStringLiteral(n),r])},createParamHelper:function(n,r,o){return e.requestEmitHelper(fD),NI(t.createCallExpression(i("__param"),void 0,[t.createNumericLiteral(r+""),n]),o)},createESDecorateHelper:function(n,r,o,s,c,l){return e.requestEmitHelper(mD),t.createCallExpression(i("__esDecorate"),void 0,[n??t.createNull(),r??t.createNull(),o,a(s),c,l])},createRunInitializersHelper:function(n,r,o){return e.requestEmitHelper(gD),t.createCallExpression(i("__runInitializers"),void 0,o?[n,r,o]:[n,r])},createAssignHelper:function(n){if(xk(e.getCompilerOptions())>=2)return t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,n);return e.requestEmitHelper(hD),t.createCallExpression(i("__assign"),void 0,n)},createAwaitHelper:function(n){return e.requestEmitHelper(yD),t.createCallExpression(i("__await"),void 0,[n])},createAsyncGeneratorHelper:function(n,r){return e.requestEmitHelper(yD),e.requestEmitHelper(vD),(n.emitNode||(n.emitNode={})).flags|=1572864,t.createCallExpression(i("__asyncGenerator"),void 0,[r?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),n])},createAsyncDelegatorHelper:function(n){return e.requestEmitHelper(yD),e.requestEmitHelper(bD),t.createCallExpression(i("__asyncDelegator"),void 0,[n])},createAsyncValuesHelper:function(n){return e.requestEmitHelper(xD),t.createCallExpression(i("__asyncValues"),void 0,[n])},createRestHelper:function(n,r,o,a){e.requestEmitHelper(kD);const s=[];let c=0;for(let e=0;e{let r="";for(let i=0;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 };'},pD={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},fD={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},mD={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:'\n var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }\n var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";\n var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === "accessor") {\n if (result === void 0) continue;\n if (result === null || typeof result !== "object") throw new TypeError("Object expected");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === "field") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n };'},gD={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:"\n var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n };"},hD={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},yD={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},vD={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[yD],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 = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\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 };'},bD={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[yD],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n };'},xD={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},kD={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},SD={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},TD={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},CD={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},wD={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},DD={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},ND={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:'\n var __propKey = (this && this.__propKey) || function (x) {\n return typeof x === "symbol" ? x : "".concat(x);\n };'},FD={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:'\n var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {\n if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";\n return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });\n };'},ED={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},PD={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);\n return g.next = verb(0), g["throw"] = verb(1), g["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 (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},AD={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:'\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));'},ID={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[AD,{name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'}],priority:2,text:'\n var __importStar = (this && this.__importStar) || (function () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n })();'},OD={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},LD={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[AD],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},jD={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},RD={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},MD={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},BD={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:'\n var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== "function") throw new TypeError("Object not disposable.");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n };'},JD={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:'\n var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {\n return function (env) {\n function fail(e) {\n env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n };\n })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;\n });'},zD={name:"typescript:rewriteRelativeImportExtensions",importName:"__rewriteRelativeImportExtension",scoped:!1,text:'\n var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {\n if (typeof path === "string" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");\n });\n }\n return path;\n };'},qD={name:"typescript:async-super",scoped:!0,text:uD` + const ${"_superIndex"} = name => super[name];`},UD={name:"typescript:advanced-async-super",scoped:!0,text:uD` + const ${"_superIndex"} = (function (geti, seti) { + const cache = Object.create(null); + return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); + })(name => super[name], (name, value) => super[name] = value);`};function VD(e,t){return yF(e)&&_N(e.expression)&&!!(8192&Zd(e.expression))&&e.expression.escapedText===t}function WD(e){return 9===e.kind}function $D(e){return 10===e.kind}function HD(e){return 11===e.kind}function KD(e){return 12===e.kind}function GD(e){return 14===e.kind}function XD(e){return 15===e.kind}function QD(e){return 16===e.kind}function YD(e){return 17===e.kind}function ZD(e){return 18===e.kind}function eN(e){return 26===e.kind}function tN(e){return 28===e.kind}function nN(e){return 40===e.kind}function rN(e){return 41===e.kind}function iN(e){return 42===e.kind}function oN(e){return 54===e.kind}function aN(e){return 58===e.kind}function sN(e){return 59===e.kind}function cN(e){return 29===e.kind}function lN(e){return 39===e.kind}function _N(e){return 80===e.kind}function uN(e){return 81===e.kind}function dN(e){return 95===e.kind}function pN(e){return 90===e.kind}function fN(e){return 134===e.kind}function mN(e){return 131===e.kind}function gN(e){return 135===e.kind}function hN(e){return 148===e.kind}function yN(e){return 126===e.kind}function vN(e){return 128===e.kind}function bN(e){return 164===e.kind}function xN(e){return 129===e.kind}function kN(e){return 108===e.kind}function SN(e){return 102===e.kind}function TN(e){return 84===e.kind}function CN(e){return 167===e.kind}function wN(e){return 168===e.kind}function DN(e){return 169===e.kind}function NN(e){return 170===e.kind}function FN(e){return 171===e.kind}function EN(e){return 172===e.kind}function PN(e){return 173===e.kind}function AN(e){return 174===e.kind}function IN(e){return 175===e.kind}function ON(e){return 176===e.kind}function LN(e){return 177===e.kind}function jN(e){return 178===e.kind}function RN(e){return 179===e.kind}function MN(e){return 180===e.kind}function BN(e){return 181===e.kind}function JN(e){return 182===e.kind}function zN(e){return 183===e.kind}function qN(e){return 184===e.kind}function UN(e){return 185===e.kind}function VN(e){return 186===e.kind}function WN(e){return 187===e.kind}function $N(e){return 188===e.kind}function HN(e){return 189===e.kind}function KN(e){return 190===e.kind}function GN(e){return 203===e.kind}function XN(e){return 191===e.kind}function QN(e){return 192===e.kind}function YN(e){return 193===e.kind}function ZN(e){return 194===e.kind}function eF(e){return 195===e.kind}function tF(e){return 196===e.kind}function nF(e){return 197===e.kind}function rF(e){return 198===e.kind}function iF(e){return 199===e.kind}function oF(e){return 200===e.kind}function aF(e){return 201===e.kind}function sF(e){return 202===e.kind}function cF(e){return 206===e.kind}function lF(e){return 205===e.kind}function _F(e){return 204===e.kind}function uF(e){return 207===e.kind}function dF(e){return 208===e.kind}function pF(e){return 209===e.kind}function fF(e){return 210===e.kind}function mF(e){return 211===e.kind}function gF(e){return 212===e.kind}function hF(e){return 213===e.kind}function yF(e){return 214===e.kind}function vF(e){return 215===e.kind}function bF(e){return 216===e.kind}function xF(e){return 217===e.kind}function kF(e){return 218===e.kind}function SF(e){return 219===e.kind}function TF(e){return 220===e.kind}function CF(e){return 221===e.kind}function wF(e){return 222===e.kind}function DF(e){return 223===e.kind}function NF(e){return 224===e.kind}function FF(e){return 225===e.kind}function EF(e){return 226===e.kind}function PF(e){return 227===e.kind}function AF(e){return 228===e.kind}function IF(e){return 229===e.kind}function OF(e){return 230===e.kind}function LF(e){return 231===e.kind}function jF(e){return 232===e.kind}function RF(e){return 233===e.kind}function MF(e){return 234===e.kind}function BF(e){return 235===e.kind}function JF(e){return 239===e.kind}function zF(e){return 236===e.kind}function qF(e){return 237===e.kind}function UF(e){return 238===e.kind}function VF(e){return 356===e.kind}function WF(e){return 357===e.kind}function $F(e){return 240===e.kind}function HF(e){return 241===e.kind}function KF(e){return 242===e.kind}function GF(e){return 244===e.kind}function XF(e){return 243===e.kind}function QF(e){return 245===e.kind}function YF(e){return 246===e.kind}function ZF(e){return 247===e.kind}function eE(e){return 248===e.kind}function tE(e){return 249===e.kind}function nE(e){return 250===e.kind}function rE(e){return 251===e.kind}function iE(e){return 252===e.kind}function oE(e){return 253===e.kind}function aE(e){return 254===e.kind}function sE(e){return 255===e.kind}function cE(e){return 256===e.kind}function lE(e){return 257===e.kind}function _E(e){return 258===e.kind}function uE(e){return 259===e.kind}function dE(e){return 260===e.kind}function pE(e){return 261===e.kind}function fE(e){return 262===e.kind}function mE(e){return 263===e.kind}function gE(e){return 264===e.kind}function hE(e){return 265===e.kind}function yE(e){return 266===e.kind}function vE(e){return 267===e.kind}function bE(e){return 268===e.kind}function xE(e){return 269===e.kind}function kE(e){return 270===e.kind}function SE(e){return 271===e.kind}function TE(e){return 272===e.kind}function CE(e){return 273===e.kind}function wE(e){return 274===e.kind}function DE(e){return 303===e.kind}function NE(e){return 301===e.kind}function FE(e){return 302===e.kind}function EE(e){return 301===e.kind}function PE(e){return 302===e.kind}function AE(e){return 275===e.kind}function IE(e){return 281===e.kind}function OE(e){return 276===e.kind}function LE(e){return 277===e.kind}function jE(e){return 278===e.kind}function RE(e){return 279===e.kind}function ME(e){return 280===e.kind}function BE(e){return 282===e.kind}function JE(e){return 80===e.kind||11===e.kind}function zE(e){return 283===e.kind}function qE(e){return 354===e.kind}function UE(e){return 358===e.kind}function VE(e){return 284===e.kind}function WE(e){return 285===e.kind}function $E(e){return 286===e.kind}function HE(e){return 287===e.kind}function KE(e){return 288===e.kind}function GE(e){return 289===e.kind}function XE(e){return 290===e.kind}function QE(e){return 291===e.kind}function YE(e){return 292===e.kind}function ZE(e){return 293===e.kind}function eP(e){return 294===e.kind}function tP(e){return 295===e.kind}function nP(e){return 296===e.kind}function rP(e){return 297===e.kind}function iP(e){return 298===e.kind}function oP(e){return 299===e.kind}function aP(e){return 300===e.kind}function sP(e){return 304===e.kind}function cP(e){return 305===e.kind}function lP(e){return 306===e.kind}function _P(e){return 307===e.kind}function uP(e){return 308===e.kind}function dP(e){return 309===e.kind}function pP(e){return 310===e.kind}function fP(e){return 311===e.kind}function mP(e){return 312===e.kind}function gP(e){return 325===e.kind}function hP(e){return 326===e.kind}function yP(e){return 327===e.kind}function vP(e){return 313===e.kind}function bP(e){return 314===e.kind}function xP(e){return 315===e.kind}function kP(e){return 316===e.kind}function SP(e){return 317===e.kind}function TP(e){return 318===e.kind}function CP(e){return 319===e.kind}function wP(e){return 320===e.kind}function DP(e){return 321===e.kind}function NP(e){return 323===e.kind}function FP(e){return 324===e.kind}function EP(e){return 329===e.kind}function PP(e){return 331===e.kind}function AP(e){return 333===e.kind}function IP(e){return 339===e.kind}function OP(e){return 334===e.kind}function LP(e){return 335===e.kind}function jP(e){return 336===e.kind}function RP(e){return 337===e.kind}function MP(e){return 338===e.kind}function BP(e){return 340===e.kind}function JP(e){return 332===e.kind}function zP(e){return 348===e.kind}function qP(e){return 341===e.kind}function UP(e){return 342===e.kind}function VP(e){return 343===e.kind}function WP(e){return 344===e.kind}function $P(e){return 345===e.kind}function HP(e){return 346===e.kind}function KP(e){return 347===e.kind}function GP(e){return 328===e.kind}function XP(e){return 349===e.kind}function QP(e){return 330===e.kind}function YP(e){return 351===e.kind}function ZP(e){return 350===e.kind}function eA(e){return 352===e.kind}function tA(e){return 353===e.kind}var nA,rA=new WeakMap;function iA(e,t){var n;const r=e.kind;return Fl(r)?353===r?e._children:null==(n=rA.get(t))?void 0:n.get(e):s}function oA(e,t,n){353===e.kind&&_n.fail("Should not need to re-set the children of a SyntaxList.");let r=rA.get(t);return void 0===r&&(r=new WeakMap,rA.set(t,r)),r.set(e,n),n}function aA(e,t){var n;353===e.kind&&_n.fail("Did not expect to unset the children of a SyntaxList."),null==(n=rA.get(t))||n.delete(e)}function sA(e,t){const n=rA.get(e);void 0!==n&&(rA.delete(e),rA.set(t,n))}function cA(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function lA(e,t,n,r){if(wN(n))return NI(e.createElementAccessExpression(t,n.expression),r);{const r=NI(pl(n)?e.createPropertyAccessExpression(t,n):e.createElementAccessExpression(t,n),n);return ww(r,128),r}}function _A(e,t){const n=AI.createIdentifier(e||"React");return ET(n,fc(t)),n}function uA(e,t,n){if(CN(t)){const r=uA(e,t.left,n),i=e.createIdentifier(hc(t.right));return i.escapedText=t.right.escapedText,e.createPropertyAccessExpression(r,i)}return _A(hc(t),n)}function dA(e,t,n,r){return t?uA(e,t,r):e.createPropertyAccessExpression(_A(n,r),"createElement")}function pA(e,t,n,r,i,o){const a=[n];if(r&&a.push(r),i&&i.length>0)if(r||a.push(e.createNull()),i.length>1)for(const e of i)IA(e),a.push(e);else a.push(i[0]);return NI(e.createCallExpression(t,void 0,a),o)}function fA(e,t,n,r,i,o,a){const s=function(e,t,n,r){return t?uA(e,t,r):e.createPropertyAccessExpression(_A(n,r),"Fragment")}(e,n,r,o),c=[s,e.createNull()];if(i&&i.length>0)if(i.length>1)for(const e of i)IA(e),c.push(e);else c.push(i[0]);return NI(e.createCallExpression(dA(e,t,r,o),void 0,c),a)}function mA(e,t,n){if(fE(t)){const r=me(t.declarations),i=e.updateVariableDeclaration(r,r.name,void 0,void 0,n);return NI(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}{const r=NI(e.createAssignment(t,n),t);return NI(e.createExpressionStatement(r),t)}}function gA(e,t){if(CN(t)){const n=gA(e,t.left),r=ET(NI(e.cloneNode(t.right),t.right),t.right.parent);return NI(e.createPropertyAccessExpression(n,r),t)}return ET(NI(e.cloneNode(t),t),t.parent)}function hA(e,t){return _N(t)?e.createStringLiteralFromNode(t):wN(t)?ET(NI(e.cloneNode(t.expression),t.expression),t.expression.parent):ET(NI(e.cloneNode(t),t),t.parent)}function yA(e,t,n,r){switch(n.name&&uN(n.name)&&_n.failBadSyntaxKind(n.name,"Private identifiers are not allowed in object literals."),n.kind){case 178:case 179:return function(e,t,n,r,i){const{firstAccessor:o,getAccessor:a,setAccessor:s}=fv(t,n);if(n===o)return NI(e.createObjectDefinePropertyCall(r,hA(e,n.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:a&&NI(xw(e.createFunctionExpression(Fc(a),void 0,void 0,void 0,a.parameters,void 0,a.body),a),a),set:s&&NI(xw(e.createFunctionExpression(Fc(s),void 0,void 0,void 0,s.parameters,void 0,s.body),s),s)},!i)),o)}(e,t.properties,n,r,!!t.multiLine);case 304:return function(e,t,n){return xw(NI(e.createAssignment(lA(e,n,t.name,t.name),t.initializer),t),t)}(e,n,r);case 305:return function(e,t,n){return xw(NI(e.createAssignment(lA(e,n,t.name,t.name),e.cloneNode(t.name)),t),t)}(e,n,r);case 175:return function(e,t,n){return xw(NI(e.createAssignment(lA(e,n,t.name,t.name),xw(NI(e.createFunctionExpression(Fc(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}(e,n,r)}}function vA(e,t,n,r,i){const o=t.operator;_n.assert(46===o||47===o,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const a=e.createTempVariable(r);NI(n=e.createAssignment(a,n),t.operand);let s=FF(t)?e.createPrefixUnaryExpression(o,a):e.createPostfixUnaryExpression(a,o);return NI(s,t),i&&(s=e.createAssignment(i,s),NI(s,t)),NI(n=e.createComma(n,s),t),EF(t)&&NI(n=e.createComma(n,a),t),n}function bA(e){return!!(65536&Zd(e))}function xA(e){return!!(32768&Zd(e))}function kA(e){return!!(16384&Zd(e))}function SA(e){return HD(e.expression)&&"use strict"===e.expression.text}function TA(e){for(const t of e){if(!pf(t))break;if(SA(t))return t}}function CA(e){const t=pe(e);return void 0!==t&&pf(t)&&SA(t)}function wA(e){return 227===e.kind&&28===e.operatorToken.kind}function DA(e){return wA(e)||WF(e)}function NA(e){return kF(e)&&Em(e)&&!!nl(e)}function FA(e){const t=rl(e);return _n.assertIsDefined(t),t}function EA(e,t=63){switch(e.kind){case 218:return!(-2147483648&t&&NA(e))&&!!(1&t);case 217:case 235:return!!(2&t);case 239:return!!(34&t);case 234:return!!(16&t);case 236:return!!(4&t);case 356:return!!(8&t)}return!1}function PA(e,t=63){for(;EA(e,t);)e=e.expression;return e}function AA(e,t=63){let n=e.parent;for(;EA(n,t);)n=n.parent,_n.assert(n);return n}function IA(e){return Ow(e,!0)}function OA(e){const t=uc(e,uP),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function LA(e){const t=uc(e,uP),n=t&&t.emitNode;return!(!n||!n.externalHelpersModuleName&&!n.externalHelpers)}function jA(e,t,n,r,i,o,a){if(r.importHelpers&&hp(n,r)){const s=kk(r),c=$V(n,r),l=function(e){return C(Gw(e),(e=>!e.scoped))}(n);if(1!==c&&(s>=5&&s<=99||99===c||void 0===c&&200===s)){if(l){const r=[];for(const e of l){const t=e.importName;t&&se(r,t)}if(V(r)){r.sort(Tt);const i=e.createNamedImports(N(r,(r=>Dd(n,r)?e.createImportSpecifier(!1,void 0,e.createIdentifier(r)):e.createImportSpecifier(!1,e.createIdentifier(r),t.getUnscopedHelperName(r)))));kw(uc(n,uP)).externalHelpers=!0;const o=e.createImportDeclaration(void 0,e.createImportClause(void 0,void 0,i),e.createStringLiteral(Vu),void 0);return Nw(o,2),o}}}else{const t=function(e,t,n,r,i,o){const a=OA(t);if(a)return a;const s=V(r)||(i||wk(n)&&o)&&WV(t,n)<4;if(s){const n=kw(uc(t,uP));return n.externalHelpersModuleName||(n.externalHelpersModuleName=e.createUniqueName(Vu))}}(e,n,r,l,i,o||a);if(t){const n=e.createImportEqualsDeclaration(void 0,!1,t,e.createExternalModuleReference(e.createStringLiteral(Vu)));return Nw(n,2),n}}}}function RA(e,t,n){const r=Tg(t);if(r&&!Cg(t)&&!Wd(t)){const i=r.name;return 11===i.kind?e.getGeneratedNameForNode(t):$l(i)?i:e.createIdentifier(Vd(n,i)||hc(i))}return 273===t.kind&&t.importClause||279===t.kind&&t.moduleSpecifier?e.getGeneratedNameForNode(t):void 0}function MA(e,t,n,r,i,o){const a=Sg(t);if(a&&HD(a))return function(e,t,n,r,i){return BA(n,r.getExternalModuleFileFromDeclaration(e),t,i)}(t,r,e,i,o)||function(e,t,n){const r=n.renamedDependencies&&n.renamedDependencies.get(t.text);return r?e.createStringLiteral(r):void 0}(e,a,n)||e.cloneNode(a)}function BA(e,t,n,r){if(t)return t.moduleName?e.createStringLiteral(t.moduleName):!t.isDeclarationFile&&r.outFile?e.createStringLiteral(qy(n,t.fileName)):void 0}function JA(e){if(w_(e))return e.initializer;if(sP(e)){const t=e.initializer;return ob(t,!0)?t.right:void 0}return cP(e)?e.objectAssignmentInitializer:ob(e,!0)?e.right:LF(e)?JA(e.expression):void 0}function zA(e){if(w_(e))return e.name;if(!b_(e))return ob(e,!0)?zA(e.left):LF(e)?zA(e.expression):e;switch(e.kind){case 304:return zA(e.initializer);case 305:return e.name;case 306:return zA(e.expression)}}function qA(e){switch(e.kind){case 170:case 209:return e.dotDotDotToken;case 231:case 306:return e}}function UA(e){const t=VA(e);return _n.assert(!!t||lP(e),"Invalid property name for binding element."),t}function VA(e){switch(e.kind){case 209:if(e.propertyName){const t=e.propertyName;return uN(t)?_n.failBadSyntaxKind(t):wN(t)&&WA(t.expression)?t.expression:t}break;case 304:if(e.name){const t=e.name;return uN(t)?_n.failBadSyntaxKind(t):wN(t)&&WA(t.expression)?t.expression:t}break;case 306:return e.name&&uN(e.name)?_n.failBadSyntaxKind(e.name):e.name}const t=zA(e);if(t&&n_(t))return t}function WA(e){const t=e.kind;return 11===t||9===t}function $A(e){switch(e.kind){case 207:case 208:case 210:return e.elements;case 211:return e.properties}}function HA(e){if(e){let t=e;for(;;){if(_N(t)||!t.body)return _N(t)?t:t.name;t=t.body}}}function KA(e){const t=e.kind;return 177===t||179===t}function GA(e){const t=e.kind;return 177===t||178===t||179===t}function XA(e){const t=e.kind;return 304===t||305===t||263===t||177===t||182===t||176===t||283===t||244===t||265===t||266===t||267===t||268===t||272===t||273===t||271===t||279===t||278===t}function QA(e){const t=e.kind;return 176===t||304===t||305===t||283===t||271===t}function YA(e){return aN(e)||oN(e)}function ZA(e){return _N(e)||rF(e)}function eI(e){return hN(e)||nN(e)||rN(e)}function tI(e){return aN(e)||nN(e)||rN(e)}function nI(e){return _N(e)||HD(e)}function rI(e){return function(e){return 48===e||49===e||50===e}(e)||function(e){return function(e){return 40===e||41===e}(e)||function(e){return function(e){return 43===e}(e)||function(e){return 42===e||44===e||45===e}(e)}(e)}(e)}function iI(e){return function(e){return 35===e||37===e||36===e||38===e}(e)||function(e){return function(e){return 30===e||33===e||32===e||34===e||104===e||103===e}(e)||rI(e)}(e)}function oI(e){return function(e){return 56===e||57===e}(e)||function(e){return function(e){return 51===e||52===e||53===e}(e)||iI(e)}(e)}function aI(e){return function(e){return 61===e||oI(e)||nb(e)}(e)||28===e}function sI(e){return aI(e.kind)}(e=>{function t(e,n,r,i,o,a,c){const l=n>0?o[n-1]:void 0;return _n.assertEqual(r[n],t),o[n]=e.onEnter(i[n],l,c),r[n]=s(e,t),n}function n(e,t,r,i,o,a,_){_n.assertEqual(r[t],n),_n.assertIsDefined(e.onLeft),r[t]=s(e,n);const u=e.onLeft(i[t].left,o[t],i[t]);return u?(l(t,i,u),c(t,r,i,o,u)):t}function r(e,t,n,i,o,a,c){return _n.assertEqual(n[t],r),_n.assertIsDefined(e.onOperator),n[t]=s(e,r),e.onOperator(i[t].operatorToken,o[t],i[t]),t}function i(e,t,n,r,o,a,_){_n.assertEqual(n[t],i),_n.assertIsDefined(e.onRight),n[t]=s(e,i);const u=e.onRight(r[t].right,o[t],r[t]);return u?(l(t,r,u),c(t,n,r,o,u)):t}function o(e,t,n,r,i,a,c){_n.assertEqual(n[t],o),n[t]=s(e,o);const l=e.onExit(r[t],i[t]);if(t>0){if(t--,e.foldState){const r=n[t]===o?"right":"left";i[t]=e.foldState(i[t],l,r)}}else a.value=l;return t}function a(e,t,n,r,i,o,s){return _n.assertEqual(n[t],a),t}function s(e,s){switch(s){case t:if(e.onLeft)return n;case n:if(e.onOperator)return r;case r:if(e.onRight)return i;case i:return o;case o:case a:return a;default:_n.fail("Invalid state")}}function c(e,n,r,i,o){return n[++e]=t,r[e]=o,i[e]=void 0,e}function l(e,t,n){if(_n.shouldAssert(2))for(;e>=0;)_n.assert(t[e]!==n,"Circular traversal detected."),e--}e.enter=t,e.left=n,e.operator=r,e.right=i,e.exit=o,e.done=a,e.nextState=s})(nA||(nA={}));var cI,lI,_I,uI,dI,pI=class{constructor(e,t,n,r,i,o){this.onEnter=e,this.onLeft=t,this.onOperator=n,this.onRight=r,this.onExit=i,this.foldState=o}};function fI(e,t,n,r,i,o){const a=new pI(e,t,n,r,i,o);return function(e,t){const n={value:void 0},r=[nA.enter],i=[e],o=[void 0];let s=0;for(;r[s]!==nA.done;)s=r[s](a,s,r,i,o,n,t);return _n.assertEqual(s,0),n.value}}function mI(e){return function(e){return 95===e||90===e}(e.kind)}function gI(e,t){if(void 0!==t)return 0===t.length?t:NI(e.createNodeArray([],t.hasTrailingComma),t)}function hI(e){var t;const n=e.emitNode.autoGenerate;if(4&n.flags){const r=n.id;let i=e,o=i.original;for(;o;){i=o;const e=null==(t=i.emitNode)?void 0:t.autoGenerate;if(pl(i)&&(void 0===e||4&e.flags&&e.id!==r))break;o=i.original}return i}return e}function yI(e,t){return"object"==typeof e?bI(!1,e.prefix,e.node,e.suffix,t):"string"==typeof e?e.length>0&&35===e.charCodeAt(0)?e.slice(1):e:""}function vI(e,t){return"string"==typeof e?e:function(e,t){return Hl(e)?t(e).slice(1):$l(e)?t(e):uN(e)?e.escapedText.slice(1):hc(e)}(e,_n.checkDefined(t))}function bI(e,t,n,r,i){return t=yI(t,i),r=yI(r,i),`${e?"#":""}${t}${n=vI(n,i)}${r}`}function xI(e,t,n,r){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,r)}function kI(e,t,n,r,i=e.createThis()){return e.createGetAccessorDeclaration(n,r,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(i,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function SI(e,t,n,r,i=e.createThis()){return e.createSetAccessorDeclaration(n,r,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(i,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function TI(e){let t=e.expression;for(;;)if(t=PA(t),WF(t))t=ye(t.elements);else{if(!wA(t)){if(ob(t,!0)&&$l(t.left))return t;break}t=t.right}}function CI(e,t){if(function(e){return kF(e)&&ty(e)&&!e.emitNode}(e))CI(e.expression,t);else if(wA(e))CI(e.left,t),CI(e.right,t);else if(WF(e))for(const n of e.elements)CI(n,t);else t.push(e)}function wI(e){const t=[];return CI(e,t),t}function DI(e){if(65536&e.transformFlags)return!0;if(128&e.transformFlags)for(const t of $A(e)){const e=zA(t);if(e&&T_(e)){if(65536&e.transformFlags)return!0;if(128&e.transformFlags&&DI(e))return!0}}return!1}function NI(e,t){return t?DT(e,t.pos,t.end):e}function FI(e){const t=e.kind;return 169===t||170===t||172===t||173===t||174===t||175===t||177===t||178===t||179===t||182===t||186===t||219===t||220===t||232===t||244===t||263===t||264===t||265===t||266===t||267===t||268===t||272===t||273===t||278===t||279===t}function EI(e){const t=e.kind;return 170===t||173===t||175===t||178===t||179===t||232===t||264===t}var PI={createBaseSourceFileNode:e=>new(dI||(dI=Bx.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(_I||(_I=Bx.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(uI||(uI=Bx.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(lI||(lI=Bx.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(cI||(cI=Bx.getNodeConstructor()))(e,-1,-1)},AI=cw(1,PI);function II(e,t){return t&&e(t)}function OI(e,t,n){if(n){if(t)return t(n);for(const t of n){const n=e(t);if(n)return n}}}function LI(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function jI(e){return _(e.statements,RI)||function(e){return 8388608&e.flags?MI(e):void 0}(e)}function RI(e){return FI(e)&&function(e,t){return V(e.modifiers,(e=>e.kind===t))}(e,95)||TE(e)&&VE(e.moduleReference)||CE(e)||jE(e)||RE(e)?e:void 0}function MI(e){return function(e){return qF(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}(e)?e:rO(e,MI)}var BI,JI={167:function(e,t,n){return II(t,e.left)||II(t,e.right)},169:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.name)||II(t,e.constraint)||II(t,e.default)||II(t,e.expression)},305:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.name)||II(t,e.questionToken)||II(t,e.exclamationToken)||II(t,e.equalsToken)||II(t,e.objectAssignmentInitializer)},306:function(e,t,n){return II(t,e.expression)},170:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.dotDotDotToken)||II(t,e.name)||II(t,e.questionToken)||II(t,e.type)||II(t,e.initializer)},173:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.name)||II(t,e.questionToken)||II(t,e.exclamationToken)||II(t,e.type)||II(t,e.initializer)},172:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.name)||II(t,e.questionToken)||II(t,e.type)||II(t,e.initializer)},304:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.name)||II(t,e.questionToken)||II(t,e.exclamationToken)||II(t,e.initializer)},261:function(e,t,n){return II(t,e.name)||II(t,e.exclamationToken)||II(t,e.type)||II(t,e.initializer)},209:function(e,t,n){return II(t,e.dotDotDotToken)||II(t,e.propertyName)||II(t,e.name)||II(t,e.initializer)},182:function(e,t,n){return OI(t,n,e.modifiers)||OI(t,n,e.typeParameters)||OI(t,n,e.parameters)||II(t,e.type)},186:function(e,t,n){return OI(t,n,e.modifiers)||OI(t,n,e.typeParameters)||OI(t,n,e.parameters)||II(t,e.type)},185:function(e,t,n){return OI(t,n,e.modifiers)||OI(t,n,e.typeParameters)||OI(t,n,e.parameters)||II(t,e.type)},180:zI,181:zI,175:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.asteriskToken)||II(t,e.name)||II(t,e.questionToken)||II(t,e.exclamationToken)||OI(t,n,e.typeParameters)||OI(t,n,e.parameters)||II(t,e.type)||II(t,e.body)},174:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.name)||II(t,e.questionToken)||OI(t,n,e.typeParameters)||OI(t,n,e.parameters)||II(t,e.type)},177:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.name)||OI(t,n,e.typeParameters)||OI(t,n,e.parameters)||II(t,e.type)||II(t,e.body)},178:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.name)||OI(t,n,e.typeParameters)||OI(t,n,e.parameters)||II(t,e.type)||II(t,e.body)},179:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.name)||OI(t,n,e.typeParameters)||OI(t,n,e.parameters)||II(t,e.type)||II(t,e.body)},263:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.asteriskToken)||II(t,e.name)||OI(t,n,e.typeParameters)||OI(t,n,e.parameters)||II(t,e.type)||II(t,e.body)},219:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.asteriskToken)||II(t,e.name)||OI(t,n,e.typeParameters)||OI(t,n,e.parameters)||II(t,e.type)||II(t,e.body)},220:function(e,t,n){return OI(t,n,e.modifiers)||OI(t,n,e.typeParameters)||OI(t,n,e.parameters)||II(t,e.type)||II(t,e.equalsGreaterThanToken)||II(t,e.body)},176:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.body)},184:function(e,t,n){return II(t,e.typeName)||OI(t,n,e.typeArguments)},183:function(e,t,n){return II(t,e.assertsModifier)||II(t,e.parameterName)||II(t,e.type)},187:function(e,t,n){return II(t,e.exprName)||OI(t,n,e.typeArguments)},188:function(e,t,n){return OI(t,n,e.members)},189:function(e,t,n){return II(t,e.elementType)},190:function(e,t,n){return OI(t,n,e.elements)},193:qI,194:qI,195:function(e,t,n){return II(t,e.checkType)||II(t,e.extendsType)||II(t,e.trueType)||II(t,e.falseType)},196:function(e,t,n){return II(t,e.typeParameter)},206:function(e,t,n){return II(t,e.argument)||II(t,e.attributes)||II(t,e.qualifier)||OI(t,n,e.typeArguments)},303:function(e,t,n){return II(t,e.assertClause)},197:UI,199:UI,200:function(e,t,n){return II(t,e.objectType)||II(t,e.indexType)},201:function(e,t,n){return II(t,e.readonlyToken)||II(t,e.typeParameter)||II(t,e.nameType)||II(t,e.questionToken)||II(t,e.type)||OI(t,n,e.members)},202:function(e,t,n){return II(t,e.literal)},203:function(e,t,n){return II(t,e.dotDotDotToken)||II(t,e.name)||II(t,e.questionToken)||II(t,e.type)},207:VI,208:VI,210:function(e,t,n){return OI(t,n,e.elements)},211:function(e,t,n){return OI(t,n,e.properties)},212:function(e,t,n){return II(t,e.expression)||II(t,e.questionDotToken)||II(t,e.name)},213:function(e,t,n){return II(t,e.expression)||II(t,e.questionDotToken)||II(t,e.argumentExpression)},214:WI,215:WI,216:function(e,t,n){return II(t,e.tag)||II(t,e.questionDotToken)||OI(t,n,e.typeArguments)||II(t,e.template)},217:function(e,t,n){return II(t,e.type)||II(t,e.expression)},218:function(e,t,n){return II(t,e.expression)},221:function(e,t,n){return II(t,e.expression)},222:function(e,t,n){return II(t,e.expression)},223:function(e,t,n){return II(t,e.expression)},225:function(e,t,n){return II(t,e.operand)},230:function(e,t,n){return II(t,e.asteriskToken)||II(t,e.expression)},224:function(e,t,n){return II(t,e.expression)},226:function(e,t,n){return II(t,e.operand)},227:function(e,t,n){return II(t,e.left)||II(t,e.operatorToken)||II(t,e.right)},235:function(e,t,n){return II(t,e.expression)||II(t,e.type)},236:function(e,t,n){return II(t,e.expression)},239:function(e,t,n){return II(t,e.expression)||II(t,e.type)},237:function(e,t,n){return II(t,e.name)},228:function(e,t,n){return II(t,e.condition)||II(t,e.questionToken)||II(t,e.whenTrue)||II(t,e.colonToken)||II(t,e.whenFalse)},231:function(e,t,n){return II(t,e.expression)},242:$I,269:$I,308:function(e,t,n){return OI(t,n,e.statements)||II(t,e.endOfFileToken)},244:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.declarationList)},262:function(e,t,n){return OI(t,n,e.declarations)},245:function(e,t,n){return II(t,e.expression)},246:function(e,t,n){return II(t,e.expression)||II(t,e.thenStatement)||II(t,e.elseStatement)},247:function(e,t,n){return II(t,e.statement)||II(t,e.expression)},248:function(e,t,n){return II(t,e.expression)||II(t,e.statement)},249:function(e,t,n){return II(t,e.initializer)||II(t,e.condition)||II(t,e.incrementor)||II(t,e.statement)},250:function(e,t,n){return II(t,e.initializer)||II(t,e.expression)||II(t,e.statement)},251:function(e,t,n){return II(t,e.awaitModifier)||II(t,e.initializer)||II(t,e.expression)||II(t,e.statement)},252:HI,253:HI,254:function(e,t,n){return II(t,e.expression)},255:function(e,t,n){return II(t,e.expression)||II(t,e.statement)},256:function(e,t,n){return II(t,e.expression)||II(t,e.caseBlock)},270:function(e,t,n){return OI(t,n,e.clauses)},297:function(e,t,n){return II(t,e.expression)||OI(t,n,e.statements)},298:function(e,t,n){return OI(t,n,e.statements)},257:function(e,t,n){return II(t,e.label)||II(t,e.statement)},258:function(e,t,n){return II(t,e.expression)},259:function(e,t,n){return II(t,e.tryBlock)||II(t,e.catchClause)||II(t,e.finallyBlock)},300:function(e,t,n){return II(t,e.variableDeclaration)||II(t,e.block)},171:function(e,t,n){return II(t,e.expression)},264:KI,232:KI,265:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.name)||OI(t,n,e.typeParameters)||OI(t,n,e.heritageClauses)||OI(t,n,e.members)},266:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.name)||OI(t,n,e.typeParameters)||II(t,e.type)},267:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.name)||OI(t,n,e.members)},307:function(e,t,n){return II(t,e.name)||II(t,e.initializer)},268:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.name)||II(t,e.body)},272:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.name)||II(t,e.moduleReference)},273:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.importClause)||II(t,e.moduleSpecifier)||II(t,e.attributes)},274:function(e,t,n){return II(t,e.name)||II(t,e.namedBindings)},301:function(e,t,n){return OI(t,n,e.elements)},302:function(e,t,n){return II(t,e.name)||II(t,e.value)},271:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.name)},275:function(e,t,n){return II(t,e.name)},281:function(e,t,n){return II(t,e.name)},276:GI,280:GI,279:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.exportClause)||II(t,e.moduleSpecifier)||II(t,e.attributes)},277:XI,282:XI,278:function(e,t,n){return OI(t,n,e.modifiers)||II(t,e.expression)},229:function(e,t,n){return II(t,e.head)||OI(t,n,e.templateSpans)},240:function(e,t,n){return II(t,e.expression)||II(t,e.literal)},204:function(e,t,n){return II(t,e.head)||OI(t,n,e.templateSpans)},205:function(e,t,n){return II(t,e.type)||II(t,e.literal)},168:function(e,t,n){return II(t,e.expression)},299:function(e,t,n){return OI(t,n,e.types)},234:function(e,t,n){return II(t,e.expression)||OI(t,n,e.typeArguments)},284:function(e,t,n){return II(t,e.expression)},283:function(e,t,n){return OI(t,n,e.modifiers)},357:function(e,t,n){return OI(t,n,e.elements)},285:function(e,t,n){return II(t,e.openingElement)||OI(t,n,e.children)||II(t,e.closingElement)},289:function(e,t,n){return II(t,e.openingFragment)||OI(t,n,e.children)||II(t,e.closingFragment)},286:QI,287:QI,293:function(e,t,n){return OI(t,n,e.properties)},292:function(e,t,n){return II(t,e.name)||II(t,e.initializer)},294:function(e,t,n){return II(t,e.expression)},295:function(e,t,n){return II(t,e.dotDotDotToken)||II(t,e.expression)},288:function(e,t,n){return II(t,e.tagName)},296:function(e,t,n){return II(t,e.namespace)||II(t,e.name)},191:YI,192:YI,310:YI,316:YI,315:YI,317:YI,319:YI,318:function(e,t,n){return OI(t,n,e.parameters)||II(t,e.type)},321:function(e,t,n){return("string"==typeof e.comment?void 0:OI(t,n,e.comment))||OI(t,n,e.tags)},348:function(e,t,n){return II(t,e.tagName)||II(t,e.name)||("string"==typeof e.comment?void 0:OI(t,n,e.comment))},311:function(e,t,n){return II(t,e.name)},312:function(e,t,n){return II(t,e.left)||II(t,e.right)},342:ZI,349:ZI,331:function(e,t,n){return II(t,e.tagName)||("string"==typeof e.comment?void 0:OI(t,n,e.comment))},330:function(e,t,n){return II(t,e.tagName)||II(t,e.class)||("string"==typeof e.comment?void 0:OI(t,n,e.comment))},329:function(e,t,n){return II(t,e.tagName)||II(t,e.class)||("string"==typeof e.comment?void 0:OI(t,n,e.comment))},346:function(e,t,n){return II(t,e.tagName)||II(t,e.constraint)||OI(t,n,e.typeParameters)||("string"==typeof e.comment?void 0:OI(t,n,e.comment))},347:function(e,t,n){return II(t,e.tagName)||(e.typeExpression&&310===e.typeExpression.kind?II(t,e.typeExpression)||II(t,e.fullName)||("string"==typeof e.comment?void 0:OI(t,n,e.comment)):II(t,e.fullName)||II(t,e.typeExpression)||("string"==typeof e.comment?void 0:OI(t,n,e.comment)))},339:function(e,t,n){return II(t,e.tagName)||II(t,e.fullName)||II(t,e.typeExpression)||("string"==typeof e.comment?void 0:OI(t,n,e.comment))},343:eO,345:eO,344:eO,341:eO,351:eO,350:eO,340:eO,324:function(e,t,n){return _(e.typeParameters,t)||_(e.parameters,t)||II(t,e.type)},325:tO,326:tO,327:tO,323:function(e,t,n){return _(e.jsDocPropertyTags,t)},328:nO,333:nO,334:nO,335:nO,336:nO,337:nO,332:nO,338:nO,352:function(e,t,n){return II(t,e.tagName)||II(t,e.importClause)||II(t,e.moduleSpecifier)||II(t,e.attributes)||("string"==typeof e.comment?void 0:OI(t,n,e.comment))},356:function(e,t,n){return II(t,e.expression)}};function zI(e,t,n){return OI(t,n,e.typeParameters)||OI(t,n,e.parameters)||II(t,e.type)}function qI(e,t,n){return OI(t,n,e.types)}function UI(e,t,n){return II(t,e.type)}function VI(e,t,n){return OI(t,n,e.elements)}function WI(e,t,n){return II(t,e.expression)||II(t,e.questionDotToken)||OI(t,n,e.typeArguments)||OI(t,n,e.arguments)}function $I(e,t,n){return OI(t,n,e.statements)}function HI(e,t,n){return II(t,e.label)}function KI(e,t,n){return OI(t,n,e.modifiers)||II(t,e.name)||OI(t,n,e.typeParameters)||OI(t,n,e.heritageClauses)||OI(t,n,e.members)}function GI(e,t,n){return OI(t,n,e.elements)}function XI(e,t,n){return II(t,e.propertyName)||II(t,e.name)}function QI(e,t,n){return II(t,e.tagName)||OI(t,n,e.typeArguments)||II(t,e.attributes)}function YI(e,t,n){return II(t,e.type)}function ZI(e,t,n){return II(t,e.tagName)||(e.isNameFirst?II(t,e.name)||II(t,e.typeExpression):II(t,e.typeExpression)||II(t,e.name))||("string"==typeof e.comment?void 0:OI(t,n,e.comment))}function eO(e,t,n){return II(t,e.tagName)||II(t,e.typeExpression)||("string"==typeof e.comment?void 0:OI(t,n,e.comment))}function tO(e,t,n){return II(t,e.name)}function nO(e,t,n){return II(t,e.tagName)||("string"==typeof e.comment?void 0:OI(t,n,e.comment))}function rO(e,t,n){if(void 0===e||e.kind<=166)return;const r=JI[e.kind];return void 0===r?void 0:r(e,t,n)}function iO(e,t,n){const r=oO(e),i=[];for(;i.length=0;--t)r.push(e[t]),i.push(o)}else{const n=t(e,o);if(n){if("skip"===n)continue;return n}if(e.kind>=167)for(const t of oO(e))r.push(t),i.push(e)}}}function oO(e){const t=[];return rO(e,n,n),t;function n(e){t.unshift(e)}}function aO(e){e.externalModuleIndicator=jI(e)}function sO(e,t,n,r=!1,i){var o,a;let s;null==(o=$n)||o.push($n.Phase.Parse,"createSourceFile",{path:e},!0),er("beforeParse");const{languageVersion:c,setExternalModuleIndicator:l,impliedNodeFormat:_,jsDocParsingMode:u}="object"==typeof n?n:{languageVersion:n};if(100===c)s=BI.parseSourceFile(e,t,c,void 0,r,6,nt,u);else{const n=void 0===_?l:e=>(e.impliedNodeFormat=_,(l||aO)(e));s=BI.parseSourceFile(e,t,c,void 0,r,i,n,u)}return er("afterParse"),tr("Parse","beforeParse","afterParse"),null==(a=$n)||a.pop(),s}function cO(e,t){return BI.parseIsolatedEntityName(e,t)}function lO(e,t){return BI.parseJsonText(e,t)}function _O(e){return void 0!==e.externalModuleIndicator}function uO(e,t,n,r=!1){const i=mO.updateSourceFile(e,t,n,r);return i.flags|=12582912&e.flags,i}function dO(e,t,n){const r=BI.JSDocParser.parseIsolatedJSDocComment(e,t,n);return r&&r.jsDoc&&BI.fixupParentReferences(r.jsDoc),r}function pO(e,t,n){return BI.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)}(e=>{var t,n,r,i,o,a=hs(99,!0),l=40960;function _(e){return k++,e}var u,d,p,f,m,g,h,y,v,x,k,S,T,C,w,D,N=cw(11,{createBaseSourceFileNode:e=>_(new o(e,0,0)),createBaseIdentifierNode:e=>_(new r(e,0,0)),createBasePrivateIdentifierNode:e=>_(new i(e,0,0)),createBaseTokenNode:e=>_(new n(e,0,0)),createBaseNode:e=>_(new t(e,0,0))}),{createNodeArray:F,createNumericLiteral:E,createStringLiteral:P,createLiteralLikeNode:A,createIdentifier:I,createPrivateIdentifier:O,createToken:L,createArrayLiteralExpression:j,createObjectLiteralExpression:M,createPropertyAccessExpression:B,createPropertyAccessChain:J,createElementAccessExpression:z,createElementAccessChain:q,createCallExpression:U,createCallChain:W,createNewExpression:H,createParenthesizedExpression:K,createBlock:G,createVariableStatement:X,createExpressionStatement:Q,createIfStatement:Y,createWhileStatement:Z,createForStatement:ee,createForOfStatement:te,createVariableDeclaration:ne,createVariableDeclarationList:ie}=N,oe=!0,se=!1;function ce(e,t,n=2,r,i=!1){le(e,t,n,r,6,0),d=D,We();const o=Je();let a,s;if(1===qe())a=kt([],o,o),s=yt();else{let e;for(;1!==qe();){let t;switch(qe()){case 23:t=li();break;case 112:case 97:case 106:t=yt();break;case 41:t=rt((()=>9===We()&&59!==We()))?Mr():ui();break;case 9:case 11:if(rt((()=>59!==We()))){t=yn();break}default:t=ui()}e&&Xe(e)?e.push(t):e?e=[e,t]:(e=t,1!==qe()&&Le(ua.Unexpected_token))}const t=Xe(e)?St(j(e),o):_n.checkDefined(e),n=Q(t);St(n,o),a=kt([n],o),s=ht(1,ua.Unexpected_token)}const c=me(e,2,6,!1,a,s,d,nt);i&&fe(c),c.nodeCount=k,c.identifierCount=T,c.identifiers=S,c.parseDiagnostics=Xx(h,c),y&&(c.jsDocDiagnostics=Xx(y,c));const l=c;return _e(),l}function le(e,s,c,l,_,y){switch(t=Bx.getNodeConstructor(),n=Bx.getTokenConstructor(),r=Bx.getIdentifierConstructor(),i=Bx.getPrivateIdentifierConstructor(),o=Bx.getSourceFileConstructor(),u=zo(e),p=s,f=c,v=l,m=_,g=uk(_),h=[],C=0,S=new Map,T=0,k=0,d=0,oe=!0,m){case 1:case 2:D=524288;break;case 6:D=134742016;break;default:D=0}se=!1,a.setText(p),a.setOnError(Be),a.setScriptTarget(f),a.setLanguageVariant(g),a.setScriptKind(m),a.setJSDocParsingMode(y)}function _e(){a.clearCommentDirectives(),a.setText(""),a.setOnError(void 0),a.setScriptKind(0),a.setJSDocParsingMode(0),p=void 0,f=void 0,v=void 0,m=void 0,g=void 0,d=0,h=void 0,y=void 0,C=0,S=void 0,w=void 0,oe=!0}e.parseSourceFile=function(e,t,n,r,i=!1,o,l,_=0){var f;if(6===(o=kS(e,o))){const o=ce(e,t,n,r,i);return $L(o,null==(f=o.statements[0])?void 0:f.expression,o.parseDiagnostics,!1,void 0),o.referencedFiles=s,o.typeReferenceDirectives=s,o.libReferenceDirectives=s,o.amdDependencies=s,o.hasNoDefaultLib=!1,o.pragmas=c,o}le(e,t,n,r,o,_);const m=function(e,t,n,r,i){const o=yO(u);o&&(D|=33554432);d=D,We();const s=Zt(0,Li);_n.assert(1===qe());const c=ze(),l=de(yt(),c),_=me(u,e,n,o,s,l,d,r);bO(_,p),xO(_,f),_.commentDirectives=a.getCommentDirectives(),_.nodeCount=k,_.identifierCount=T,_.identifiers=S,_.parseDiagnostics=Xx(h,_),_.jsDocParsingMode=i,y&&(_.jsDocDiagnostics=Xx(y,_));t&&fe(_);return _;function f(e,t,n){h.push(Hx(u,p,e,t,n))}}(n,i,o,l||aO,_);return _e(),m},e.parseIsolatedEntityName=function(e,t){le("",e,t,void 0,1,0),We();const n=ln(!0),r=1===qe()&&!h.length;return _e(),r?n:void 0},e.parseJsonText=ce;let ue=!1;function de(e,t){if(!t)return e;_n.assert(!e.jsDoc);const n=R(vf(e,p),(t=>Uo.parseJSDocComment(e,t.pos,t.end-t.pos)));return n.length&&(e.jsDoc=n),ue&&(ue=!1,e.flags|=536870912),e}function fe(e){PT(e,!0)}function me(e,t,n,r,i,o,s,c){let l=N.createSourceFile(i,o,s);if(NT(l,0,p.length),_(l),!r&&_O(l)&&67108864&l.transformFlags){const e=l;l=function(e){const t=v,n=mO.createSyntaxCursor(e);v={currentNode:function(e){const t=n.currentNode(e);return oe&&t&&c(t)&&hO(t),t}};const r=[],i=h;h=[];let o=0,s=l(e.statements,0);for(;-1!==s;){const t=e.statements[o],n=e.statements[s];ae(r,e.statements,o,s),o=_(e.statements,s);const c=b(i,(e=>e.start>=t.pos)),u=c>=0?b(i,(e=>e.start>=n.pos),c):-1;c>=0&&ae(h,i,c,u>=0?u:void 0),tt((()=>{const t=D;for(D|=65536,a.resetTokenState(n.pos),We();1!==qe();){const t=a.getTokenFullStart(),n=en(0,Li);if(r.push(n),t===a.getTokenFullStart()&&We(),o>=0){const t=e.statements[o];if(n.end===t.pos)break;n.end>t.pos&&(o=_(e.statements,o+1))}}D=t}),2),s=o>=0?l(e.statements,o):-1}if(o>=0){const t=e.statements[o];ae(r,e.statements,o);const n=b(i,(e=>e.start>=t.pos));n>=0&&ae(h,i,n)}return v=t,N.updateSourceFile(e,NI(F(r),e.statements));function c(e){return!(65536&e.flags||!(67108864&e.transformFlags))}function l(e,t){for(let n=t;n118}function st(){return 80===qe()||(127!==qe()||!Ee())&&((135!==qe()||!Oe())&&qe()>118)}function ct(e,t,n=!0){return qe()===e?(n&&We(),!0):(t?Le(t):Le(ua._0_expected,Ea(e)),!1)}e.fixupParentReferences=fe;const lt=Object.keys(fa).filter((e=>e.length>2));function _t(e){if(bF(e))return void Re(Ya(p,e.template.pos),e.template.end,ua.Module_declaration_names_may_only_use_or_quoted_strings);const t=_N(e)?hc(e):void 0;if(!t||!gs(t,f))return void Le(ua._0_expected,Ea(27));const n=Ya(p,e.pos);switch(t){case"const":case"let":case"var":return void Re(n,e.end,ua.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void ut(ua.Interface_name_cannot_be_0,ua.Interface_must_be_given_a_name,19);case"is":return void Re(n,a.getTokenStart(),ua.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void ut(ua.Namespace_name_cannot_be_0,ua.Namespace_must_be_given_a_name,19);case"type":return void ut(ua.Type_alias_name_cannot_be_0,ua.Type_alias_must_be_given_a_name,64)}const r=Ot(t,lt,at)??function(e){for(const t of lt)if(e.length>t.length+2&&Kt(e,t))return`${t} ${e.slice(t.length)}`;return}(t);r?Re(n,e.end,ua.Unknown_keyword_or_identifier_Did_you_mean_0,r):0!==qe()&&Re(n,e.end,ua.Unexpected_keyword_or_identifier)}function ut(e,t,n){qe()===n?Le(t):Le(e,a.getTokenValue())}function dt(e){return qe()===e?($e(),!0):(_n.assert(Nh(e)),Le(ua._0_expected,Ea(e)),!1)}function pt(e,t,n,r){if(qe()===t)return void We();const i=Le(ua._0_expected,Ea(t));n&&i&&cT(i,Hx(u,p,r,1,ua.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Ea(e),Ea(t)))}function ft(e){return qe()===e&&(We(),!0)}function mt(e){if(qe()===e)return yt()}function gt(e){if(qe()===e)return function(){const e=Je(),t=qe();return $e(),St(L(t),e)}()}function ht(e,t,n){return mt(e)||Tt(e,!1,t||ua._0_expected,n||Ea(e))}function yt(){const e=Je(),t=qe();return We(),St(L(t),e)}function vt(){return 27===qe()||(20===qe()||1===qe()||a.hasPrecedingLineBreak())}function bt(){return!!vt()&&(27===qe()&&We(),!0)}function xt(){return bt()||ct(27)}function kt(e,t,n,r){const i=F(e,r);return DT(i,t,n??a.getTokenFullStart()),i}function St(e,t,n){return DT(e,t,n??a.getTokenFullStart()),D&&(e.flags|=D),se&&(se=!1,e.flags|=262144),e}function Tt(e,t,n,...r){t?je(a.getTokenFullStart(),0,n,...r):n&&Le(n,...r);const i=Je();return St(80===e?I("",void 0):jl(e)?N.createTemplateLiteralLikeNode(e,"","",void 0):9===e?E("",void 0):11===e?P("",void 0):283===e?N.createMissingDeclaration():L(e),i)}function Ct(e){let t=S.get(e);return void 0===t&&S.set(e,t=e),t}function wt(e,t,n){if(e){T++;const e=a.hasPrecedingJSDocLeadingAsterisks()?a.getTokenStart():Je(),t=qe(),n=Ct(a.getTokenValue()),r=a.hasExtendedUnicodeEscape();return Ue(),St(I(n,t,r),e)}if(81===qe())return Le(n||ua.Private_identifiers_are_not_allowed_outside_class_bodies),wt(!0);if(0===qe()&&a.tryScan((()=>80===a.reScanInvalidIdentifier())))return wt(!0);T++;const r=1===qe(),i=a.isReservedWord(),o=a.getTokenText(),s=i?ua.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:ua.Identifier_expected;return Tt(80,r,t||s,o)}function Dt(e){return wt(ot(),void 0,e)}function Nt(e,t){return wt(st(),e,t)}function Ft(e){return wt(da(qe()),e)}function Et(){return(a.hasUnicodeEscape()||a.hasExtendedUnicodeEscape())&&Le(ua.Unicode_escape_sequence_cannot_appear_here),wt(da(qe()))}function Pt(){return da(qe())||11===qe()||9===qe()||10===qe()}function At(e){if(11===qe()||9===qe()||10===qe()){const e=yn();return e.text=Ct(e.text),e}return e&&23===qe()?function(){const e=Je();ct(23);const t=Te(Tr);return ct(24),St(N.createComputedPropertyName(t),e)}():81===qe()?Lt():Ft()}function It(){return At(!0)}function Lt(){const e=Je(),t=O(Ct(a.getTokenValue()));return We(),St(t,e)}function jt(e){return qe()===e&&it(Mt)}function Rt(){return We(),!a.hasPrecedingLineBreak()&&zt()}function Mt(){switch(qe()){case 87:return 94===We();case 95:return We(),90===qe()?rt(qt):156===qe()?rt(Jt):Bt();case 90:return qt();case 126:return We(),zt();case 139:case 153:return We(),23===qe()||Pt();default:return Rt()}}function Bt(){return 60===qe()||42!==qe()&&130!==qe()&&19!==qe()&&zt()}function Jt(){return We(),Bt()}function zt(){return 23===qe()||19===qe()||42===qe()||26===qe()||Pt()}function qt(){return We(),86===qe()||100===qe()||120===qe()||60===qe()||128===qe()&&rt(ki)||134===qe()&&rt(Si)}function Ut(e,t){if(tn(e))return!0;switch(e){case 0:case 1:case 3:return!(27===qe()&&t)&&Di();case 2:return 84===qe()||90===qe();case 4:return rt(zn);case 5:return rt(io)||27===qe()&&!t;case 6:return 23===qe()||Pt();case 12:switch(qe()){case 23:case 42:case 26:case 25:return!0;default:return Pt()}case 18:return Pt();case 9:return 23===qe()||26===qe()||Pt();case 24:return da(qe())||11===qe();case 7:return 19===qe()?rt(Vt):t?st()&&!Gt():kr()&&!Gt();case 8:return Wi();case 10:return 28===qe()||26===qe()||Wi();case 19:return 103===qe()||87===qe()||st();case 15:switch(qe()){case 28:case 25:return!0}case 11:return 26===qe()||Sr();case 16:return En(!1);case 17:return En(!0);case 20:case 21:return 28===qe()||ar();case 22:return vo();case 23:return(161!==qe()||!rt(Bi))&&(11===qe()||da(qe()));case 13:return da(qe())||19===qe();case 14:case 25:return!0;case 26:return _n.fail("ParsingContext.Count used as a context");default:_n.assertNever(e,"Non-exhaustive case in 'isListElement'.")}}function Vt(){if(_n.assert(19===qe()),20===We()){const e=We();return 28===e||19===e||96===e||119===e}return!0}function Wt(){return We(),st()}function $t(){return We(),da(qe())}function Ht(){return We(),pa(qe())}function Gt(){return(119===qe()||96===qe())&&rt(Xt)}function Xt(){return We(),Sr()}function Qt(){return We(),ar()}function Yt(e){if(1===qe())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 20===qe();case 3:return 20===qe()||84===qe()||90===qe();case 7:return 19===qe()||96===qe()||119===qe();case 8:return function(){if(vt())return!0;if(Ir(qe()))return!0;if(39===qe())return!0;return!1}();case 19:return 32===qe()||21===qe()||19===qe()||96===qe()||119===qe();case 11:return 22===qe()||27===qe();case 15:case 21:case 10:return 24===qe();case 17:case 16:case 18:return 22===qe()||24===qe();case 20:return 28!==qe();case 22:return 19===qe()||20===qe();case 13:return 32===qe()||44===qe();case 14:return 30===qe()&&rt(wo);default:return!1}}function Zt(e,t){const n=C;C|=1<=0)}function an(e){return 6===e?ua.An_enum_member_name_must_be_followed_by_a_or:void 0}function sn(){const e=kt([],Je());return e.isMissingList=!0,e}function cn(e,t,n,r){if(ct(n)){const n=on(e,t);return ct(r),n}return sn()}function ln(e,t){const n=Je();let r=e?Ft(t):Nt(t);for(;ft(25)&&30!==qe();)r=St(N.createQualifiedName(r,dn(e,!1,!0)),n);return r}function un(e,t){return St(N.createQualifiedName(e,t),e.pos)}function dn(e,t,n){if(a.hasPrecedingLineBreak()&&da(qe())){if(rt(xi))return Tt(80,!0,ua.Identifier_expected)}if(81===qe()){const e=Lt();return t?e:Tt(80,!0,ua.Identifier_expected)}return e?n?Ft():Et():Nt()}function pn(e){const t=Je();return St(N.createTemplateExpression(vn(e),function(e){const t=Je(),n=[];let r;do{r=hn(e),n.push(r)}while(17===r.literal.kind);return kt(n,t)}(e)),t)}function fn(){const e=Je();return St(N.createTemplateLiteralType(vn(!1),function(){const e=Je(),t=[];let n;do{n=mn(),t.push(n)}while(17===n.literal.kind);return kt(t,e)}()),e)}function mn(){const e=Je();return St(N.createTemplateLiteralTypeSpan(br(),gn(!1)),e)}function gn(e){return 20===qe()?(Ge(e),function(){const e=bn(qe());return _n.assert(17===e.kind||18===e.kind,"Template fragment has wrong token kind"),e}()):ht(18,ua._0_expected,Ea(20))}function hn(e){const t=Je();return St(N.createTemplateSpan(Te(Tr),gn(e)),t)}function yn(){return bn(qe())}function vn(e){!e&&26656&a.getTokenFlags()&&Ge(!1);const t=bn(qe());return _n.assert(16===t.kind,"Template head has wrong token kind"),t}function bn(e){const t=Je(),n=jl(e)?N.createTemplateLiteralLikeNode(e,a.getTokenValue(),function(e){const t=15===e||18===e,n=a.getTokenText();return n.substring(1,n.length-(a.isUnterminated()?0:t?1:2))}(e),7176&a.getTokenFlags()):9===e?E(a.getTokenValue(),a.getNumericLiteralFlags()):11===e?P(a.getTokenValue(),void 0,a.hasExtendedUnicodeEscape()):Il(e)?A(e,a.getTokenValue()):_n.fail();return a.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),a.isUnterminated()&&(n.isUnterminated=!0),We(),St(n,t)}function xn(){return ln(!0,ua.Type_expected)}function kn(){if(!a.hasPrecedingLineBreak()&&30===Qe())return cn(20,br,30,32)}function Sn(){const e=Je();return St(N.createTypeReferenceNode(xn(),kn()),e)}function Tn(e){switch(e.kind){case 184:return Nd(e.typeName);case 185:case 186:{const{parameters:t,type:n}=e;return!!t.isMissingList||Tn(n)}case 197:return Tn(e.type);default:return!1}}function Cn(){const e=Je();return We(),St(N.createThisTypeNode(),e)}function wn(){const e=Je();let t;return 110!==qe()&&105!==qe()||(t=Ft(),ct(59)),St(N.createParameterDeclaration(void 0,void 0,t,void 0,Dn(),void 0),e)}function Dn(){a.setSkipJsDocLeadingAsterisks(!0);const e=Je();if(ft(144)){const t=N.createJSDocNamepathType(void 0);e:for(;;)switch(qe()){case 20:case 1:case 28:case 5:break e;default:$e()}return a.setSkipJsDocLeadingAsterisks(!1),St(t,e)}const t=ft(26);let n=yr();return a.setSkipJsDocLeadingAsterisks(!1),t&&(n=St(N.createJSDocVariadicType(n),e)),64===qe()?(We(),St(N.createJSDocOptionalType(n),e)):n}function Nn(){const e=Je(),t=lo(!1,!0),n=Nt();let r,i;ft(96)&&(ar()||!Sr()?r=br():i=Br());const o=ft(64)?br():void 0,a=N.createTypeParameterDeclaration(t,n,r,o);return a.expression=i,St(a,e)}function Fn(){if(30===qe())return cn(19,Nn,30,32)}function En(e){return 26===qe()||Wi()||Ql(qe())||60===qe()||ar(!e)}function Pn(e){return An(e)}function An(e,t=!0){const n=Je(),r=ze(),i=e?De((()=>lo(!0))):Ne((()=>lo(!0)));if(110===qe()){const e=N.createParameterDeclaration(i,void 0,wt(!0),void 0,xr(),void 0),t=pe(i);return t&&Me(t,ua.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),de(St(e,n),r)}const o=oe;oe=!1;const a=mt(26);if(!t&&!ot()&&23!==qe()&&19!==qe())return;const s=de(St(N.createParameterDeclaration(i,a,function(e){const t=$i(ua.Private_identifiers_cannot_be_used_as_parameters);return 0===cd(t)&&!V(e)&&Ql(qe())&&We(),t}(i),mt(58),xr(),Cr()),n),r);return oe=o,s}function In(e,t){if(function(e,t){if(39===e)return ct(e),!0;if(ft(59))return!0;if(t&&39===qe())return Le(ua._0_expected,Ea(59)),We(),!0;return!1}(e,t))return Ce(yr)}function On(e,t){const n=Ee(),r=Oe();ve(!!(1&e)),xe(!!(2&e));const i=32&e?on(17,wn):on(16,(()=>t?Pn(r):An(r,!1)));return ve(n),xe(r),i}function Ln(e){if(!ct(21))return sn();const t=On(e,!0);return ct(22),t}function jn(){ft(28)||xt()}function Rn(e){const t=Je(),n=ze();181===e&&ct(105);const r=Fn(),i=Ln(4),o=In(59,!0);jn();return de(St(180===e?N.createCallSignature(r,i,o):N.createConstructSignature(r,i,o),t),n)}function Mn(){return 23===qe()&&rt(Bn)}function Bn(){if(We(),26===qe()||24===qe())return!0;if(Ql(qe())){if(We(),st())return!0}else{if(!st())return!1;We()}return 59===qe()||28===qe()||58===qe()&&(We(),59===qe()||28===qe()||24===qe())}function Jn(e,t,n){const r=cn(16,(()=>Pn(!1)),23,24),i=xr();jn();return de(St(N.createIndexSignature(n,r,i),e),t)}function zn(){if(21===qe()||30===qe()||139===qe()||153===qe())return!0;let e=!1;for(;Ql(qe());)e=!0,We();return 23===qe()||(Pt()&&(e=!0,We()),!!e&&(21===qe()||30===qe()||58===qe()||59===qe()||28===qe()||vt()))}function qn(){if(21===qe()||30===qe())return Rn(180);if(105===qe()&&rt(Un))return Rn(181);const e=Je(),t=ze(),n=lo(!1);return jt(139)?ro(e,t,n,178,4):jt(153)?ro(e,t,n,179,4):Mn()?Jn(e,t,n):function(e,t,n){const r=It(),i=mt(58);let o;if(21===qe()||30===qe()){const e=Fn(),t=Ln(4),a=In(59,!0);o=N.createMethodSignature(n,r,i,e,t,a)}else{const e=xr();o=N.createPropertySignature(n,r,i,e),64===qe()&&(o.initializer=Cr())}return jn(),de(St(o,e),t)}(e,t,n)}function Un(){return We(),21===qe()||30===qe()}function Vn(){return 25===We()}function Wn(){switch(We()){case 21:case 30:case 25:return!0}return!1}function $n(){let e;return ct(19)?(e=Zt(4,qn),ct(20)):e=sn(),e}function Hn(){return We(),40===qe()||41===qe()?148===We():(148===qe()&&We(),23===qe()&&Wt()&&103===We())}function Kn(){const e=Je();let t;ct(19),148!==qe()&&40!==qe()&&41!==qe()||(t=yt(),148!==t.kind&&ct(148)),ct(23);const n=function(){const e=Je(),t=Ft();ct(103);const n=br();return St(N.createTypeParameterDeclaration(void 0,t,n,void 0),e)}(),r=ft(130)?br():void 0;let i;ct(24),58!==qe()&&40!==qe()&&41!==qe()||(i=yt(),58!==i.kind&&ct(58));const o=xr();xt();const a=Zt(4,qn);return ct(20),St(N.createMappedTypeNode(t,n,r,i,o,a),e)}function Gn(){const e=Je();if(ft(26))return St(N.createRestTypeNode(br()),e);const t=br();if(xP(t)&&t.pos===t.type.pos){const e=N.createOptionalTypeNode(t.type);return NI(e,t),e.flags=t.flags,e}return t}function Xn(){return 59===We()||58===qe()&&59===We()}function Qn(){return 26===qe()?da(We())&&Xn():da(qe())&&Xn()}function Yn(){if(rt(Qn)){const e=Je(),t=ze(),n=mt(26),r=Ft(),i=mt(58);ct(59);const o=Gn();return de(St(N.createNamedTupleMember(n,r,i,o),e),t)}return Gn()}function Zn(){const e=Je(),t=ze(),n=function(){let e;if(128===qe()){const t=Je();We(),e=kt([St(L(128),t)],t)}return e}(),r=ft(105);_n.assert(!n||r,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const i=Fn(),o=Ln(4),a=In(39,!1);return de(St(r?N.createConstructorTypeNode(n,i,o,a):N.createFunctionTypeNode(i,o,a),e),t)}function er(){const e=yt();return 25===qe()?void 0:e}function tr(e){const t=Je();e&&We();let n=112===qe()||97===qe()||106===qe()?yt():bn(qe());return e&&(n=St(N.createPrefixUnaryExpression(41,n),t)),St(N.createLiteralTypeNode(n),t)}function nr(){return We(),102===qe()}function rr(){d|=4194304;const e=Je(),t=ft(114);ct(102),ct(21);const n=br();let r;if(ft(28)){const e=a.getTokenStart();ct(19);const t=qe();if(118===t||132===t?We():Le(ua._0_expected,Ea(118)),ct(59),r=Eo(t,!0),ft(28),!ct(20)){const t=he(h);t&&t.code===ua._0_expected.code&&cT(t,Hx(u,p,e,1,ua.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}ct(22);const i=ft(25)?xn():void 0,o=kn();return St(N.createImportTypeNode(n,r,i,o,t),e)}function ir(){return We(),9===qe()||10===qe()}function or(){switch(qe()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return it(er)||Sn();case 67:a.reScanAsteriskEqualsToken();case 42:return function(){const e=Je();return We(),St(N.createJSDocAllType(),e)}();case 61:a.reScanQuestionToken();case 58:return function(){const e=Je();return We(),28===qe()||20===qe()||22===qe()||32===qe()||64===qe()||52===qe()?St(N.createJSDocUnknownType(),e):St(N.createJSDocNullableType(br(),!1),e)}();case 100:return function(){const e=Je(),t=ze();if(it(To)){const n=Ln(36),r=In(59,!1);return de(St(N.createJSDocFunctionType(n,r),e),t)}return St(N.createTypeReferenceNode(Ft(),void 0),e)}();case 54:return function(){const e=Je();return We(),St(N.createJSDocNonNullableType(or(),!1),e)}();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return tr();case 41:return rt(ir)?tr(!0):Sn();case 116:return yt();case 110:{const t=Cn();return 142!==qe()||a.hasPrecedingLineBreak()?t:(e=t,We(),St(N.createTypePredicateNode(void 0,e,br()),e.pos))}case 114:return rt(nr)?rr():function(){const e=Je();ct(114);const t=ln(!0),n=a.hasPrecedingLineBreak()?void 0:yo();return St(N.createTypeQueryNode(t,n),e)}();case 19:return rt(Hn)?Kn():function(){const e=Je();return St(N.createTypeLiteralNode($n()),e)}();case 23:return function(){const e=Je();return St(N.createTupleTypeNode(cn(21,Yn,23,24)),e)}();case 21:return function(){const e=Je();ct(21);const t=br();return ct(22),St(N.createParenthesizedType(t),e)}();case 102:return rr();case 131:return rt(xi)?function(){const e=Je(),t=ht(131),n=110===qe()?Cn():Nt(),r=ft(142)?br():void 0;return St(N.createTypePredicateNode(t,n,r),e)}():Sn();case 16:return fn();default:return Sn()}var e}function ar(e){switch(qe()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!e;case 41:return!e&&rt(ir);case 21:return!e&&rt(sr);default:return st()}}function sr(){return We(),22===qe()||En(!1)||ar()}function cr(){const e=Je();let t=or();for(;!a.hasPrecedingLineBreak();)switch(qe()){case 54:We(),t=St(N.createJSDocNonNullableType(t,!0),e);break;case 58:if(rt(Qt))return t;We(),t=St(N.createJSDocNullableType(t,!0),e);break;case 23:if(ct(23),ar()){const n=br();ct(24),t=St(N.createIndexedAccessTypeNode(t,n),e)}else ct(24),t=St(N.createArrayTypeNode(t),e);break;default:return t}return t}function lr(){if(ft(96)){const e=we(br);if(Ae()||58!==qe())return e}}function _r(){const e=Je();return ct(140),St(N.createInferTypeNode(function(){const e=Je(),t=Nt(),n=it(lr);return St(N.createTypeParameterDeclaration(void 0,t,n),e)}()),e)}function ur(){const e=qe();switch(e){case 143:case 158:case 148:return function(e){const t=Je();return ct(e),St(N.createTypeOperatorNode(e,ur()),t)}(e);case 140:return _r()}return Ce(cr)}function dr(e){if(gr()){const t=Zn();let n;return n=UN(t)?e?ua.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:ua.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:e?ua.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:ua.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Me(t,n),t}}function pr(e,t,n){const r=Je(),i=52===e,o=ft(e);let a=o&&dr(i)||t();if(qe()===e||o){const o=[a];for(;ft(e);)o.push(dr(i)||t());a=St(n(kt(o,r)),r)}return a}function fr(){return pr(51,ur,N.createIntersectionTypeNode)}function mr(){return We(),105===qe()}function gr(){return 30===qe()||(!(21!==qe()||!rt(hr))||(105===qe()||128===qe()&&rt(mr)))}function hr(){if(We(),22===qe()||26===qe())return!0;if(function(){if(Ql(qe())&&lo(!1),st()||110===qe())return We(),!0;if(23===qe()||19===qe()){const e=h.length;return $i(),e===h.length}return!1}()){if(59===qe()||28===qe()||58===qe()||64===qe())return!0;if(22===qe()&&(We(),39===qe()))return!0}return!1}function yr(){const e=Je(),t=st()&&it(vr),n=br();return t?St(N.createTypePredicateNode(void 0,t,n),e):n}function vr(){const e=Nt();if(142===qe()&&!a.hasPrecedingLineBreak())return We(),e}function br(){if(81920&D)return ke(81920,br);if(gr())return Zn();const e=Je(),t=pr(52,fr,N.createUnionTypeNode);if(!Ae()&&!a.hasPrecedingLineBreak()&&ft(96)){const n=we(br);ct(58);const r=Ce(br);ct(59);const i=Ce(br);return St(N.createConditionalTypeNode(t,n,r,i),e)}return t}function xr(){return ft(59)?br():void 0}function kr(){switch(qe()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return rt(Wn);default:return st()}}function Sr(){if(kr())return!0;switch(qe()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return!!Lr()||st()}}function Tr(){const e=Ie();e&&be(!1);const t=Je();let n,r=wr(!0);for(;n=mt(28);)r=jr(r,n,wr(!0),t);return e&&be(!0),r}function Cr(){return ft(64)?wr(!0):void 0}function wr(e){if(function(){if(127===qe())return!!Ee()||rt(Ti);return!1}())return function(){const e=Je();return We(),a.hasPrecedingLineBreak()||42!==qe()&&!Sr()?St(N.createYieldExpression(void 0,void 0),e):St(N.createYieldExpression(mt(42),wr(!0)),e)}();const t=function(e){const t=function(){if(21===qe()||30===qe()||134===qe())return rt(Nr);if(39===qe())return 1;return 0}();if(0===t)return;return 1===t?Er(!0,!0):it((()=>function(e){const t=a.getTokenStart();if(null==w?void 0:w.has(t))return;const n=Er(!1,e);n||(w||(w=new Set)).add(t);return n}(e)))}(e)||function(e){if(134===qe()&&1===rt(Fr)){const t=Je(),n=ze(),r=_o();return Dr(t,Ar(0),e,n,r)}return}(e);if(t)return t;const n=Je(),r=ze(),i=Ar(0);return 80===i.kind&&39===qe()?Dr(n,i,e,r,void 0):B_(i)&&nb(Ke())?jr(i,yt(),wr(e),n):function(e,t,n){const r=mt(58);if(!r)return e;let i;return St(N.createConditionalExpression(e,r,ke(l,(()=>wr(!1))),i=ht(59),Fd(i)?wr(n):Tt(80,!1,ua._0_expected,Ea(59))),t)}(i,n,e)}function Dr(e,t,n,r,i){_n.assert(39===qe(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const o=N.createParameterDeclaration(void 0,void 0,t,void 0,void 0,void 0);St(o,t.pos);const a=kt([o],o.pos,o.end),s=ht(39),c=Pr(!!i,n);return de(St(N.createArrowFunction(i,void 0,a,void 0,s,c),e),r)}function Nr(){if(134===qe()){if(We(),a.hasPrecedingLineBreak())return 0;if(21!==qe()&&30!==qe())return 0}const e=qe(),t=We();if(21===e){if(22===t){switch(We()){case 39:case 59:case 19:return 1;default:return 0}}if(23===t||19===t)return 2;if(26===t)return 1;if(Ql(t)&&134!==t&&rt(Wt))return 130===We()?0:1;if(!st()&&110!==t)return 0;switch(We()){case 59:return 1;case 58:return We(),59===qe()||28===qe()||64===qe()||22===qe()?1:0;case 28:case 64:case 22:return 2}return 0}if(_n.assert(30===e),!st()&&87!==qe())return 0;if(1===g){return rt((()=>{ft(87);const e=We();if(96===e){switch(We()){case 64:case 32:case 44:return!1;default:return!0}}else if(28===e||64===e)return!0;return!1}))?1:0}return 2}function Fr(){if(134===qe()){if(We(),a.hasPrecedingLineBreak()||39===qe())return 0;const e=Ar(0);if(!a.hasPrecedingLineBreak()&&80===e.kind&&39===qe())return 1}return 0}function Er(e,t){const n=Je(),r=ze(),i=_o(),o=V(i,fN)?2:0,a=Fn();let s;if(ct(21)){if(e)s=On(o,e);else{const t=On(o,e);if(!t)return;s=t}if(!ct(22)&&!e)return}else{if(!e)return;s=sn()}const c=59===qe(),l=In(59,!1);if(l&&!e&&Tn(l))return;let _=l;for(;197===(null==_?void 0:_.kind);)_=_.type;const u=_&&TP(_);if(!e&&39!==qe()&&(u||19!==qe()))return;const d=qe(),p=ht(39),f=39===d||19===d?Pr(V(i,fN),t):Nt();if(!t&&c&&59!==qe())return;return de(St(N.createArrowFunction(i,a,s,l,p,f),n),r)}function Pr(e,t){if(19===qe())return mi(e?2:0);if(27!==qe()&&100!==qe()&&86!==qe()&&Di()&&(19===qe()||100===qe()||86===qe()||60===qe()||!Sr()))return mi(16|(e?2:0));const n=Ee();ve(!1);const r=oe;oe=!1;const i=e?De((()=>wr(t))):Ne((()=>wr(t)));return oe=r,ve(n),i}function Ar(e){const t=Je();return Or(e,Br(),t)}function Ir(e){return 103===e||165===e}function Or(e,t,n){for(;;){Ke();const o=ly(qe());if(!(43===qe()?o>=e:o>e))break;if(103===qe()&&Pe())break;if(130===qe()||152===qe()){if(a.hasPrecedingLineBreak())break;{const e=qe();We(),t=152===e?(r=t,i=br(),St(N.createSatisfiesExpression(r,i),r.pos)):Rr(t,br())}}else t=jr(t,yt(),Ar(o),n)}var r,i;return t}function Lr(){return(!Pe()||103!==qe())&&ly(qe())>0}function jr(e,t,n,r){return St(N.createBinaryExpression(e,t,n),r)}function Rr(e,t){return St(N.createAsExpression(e,t),e.pos)}function Mr(){const e=Je();return St(N.createPrefixUnaryExpression(qe(),Ve(Jr)),e)}function Br(){if(function(){switch(qe()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(1!==g)return!1;default:return!0}}()){const e=Je(),t=zr();return 43===qe()?Or(ly(qe()),t,e):t}const e=qe(),t=Jr();if(43===qe()){const n=Ya(p,t.pos),{end:r}=t;217===t.kind?Re(n,r,ua.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(_n.assert(Nh(e)),Re(n,r,ua.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,Ea(e)))}return t}function Jr(){switch(qe()){case 40:case 41:case 55:case 54:return Mr();case 91:return function(){const e=Je();return St(N.createDeleteExpression(Ve(Jr)),e)}();case 114:return function(){const e=Je();return St(N.createTypeOfExpression(Ve(Jr)),e)}();case 116:return function(){const e=Je();return St(N.createVoidExpression(Ve(Jr)),e)}();case 30:return 1===g?Vr(!0,void 0,void 0,!0):function(){_n.assert(1!==g,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const e=Je();ct(30);const t=br();ct(32);const n=Jr();return St(N.createTypeAssertion(t,n),e)}();case 135:if(135===qe()&&(Oe()||rt(Ti)))return function(){const e=Je();return St(N.createAwaitExpression(Ve(Jr)),e)}();default:return zr()}}function zr(){if(46===qe()||47===qe()){const e=Je();return St(N.createPrefixUnaryExpression(qe(),Ve(qr)),e)}if(1===g&&30===qe()&&rt(Ht))return Vr(!0);const e=qr();if(_n.assert(B_(e)),(46===qe()||47===qe())&&!a.hasPrecedingLineBreak()){const t=qe();return We(),St(N.createPostfixUnaryExpression(e,t),e.pos)}return e}function qr(){const e=Je();let t;return 102===qe()?rt(Un)?(d|=4194304,t=yt()):rt(Vn)?(We(),We(),t=St(N.createMetaProperty(102,Ft()),e),"defer"===t.name.escapedText?21!==qe()&&30!==qe()||(d|=4194304):d|=8388608):t=Ur():t=108===qe()?function(){const e=Je();let t=yt();if(30===qe()){const e=Je(),n=it(oi);void 0!==n&&(Re(e,Je(),ua.super_may_not_use_type_arguments),ti()||(t=N.createExpressionWithTypeArguments(t,n)))}if(21===qe()||25===qe()||23===qe())return t;return ht(25,ua.super_must_be_followed_by_an_argument_list_or_member_access),St(B(t,dn(!0,!0,!0)),e)}():Ur(),ri(e,t)}function Ur(){return ei(Je(),ai(),!0)}function Vr(e,t,n,r=!1){const i=Je(),o=function(e){const t=Je();if(ct(30),32===qe())return et(),St(N.createJsxOpeningFragment(),t);const n=Hr(),r=524288&D?void 0:yo(),i=function(){const e=Je();return St(N.createJsxAttributes(Zt(13,Gr)),e)}();let o;32===qe()?(et(),o=N.createJsxOpeningElement(n,r,i)):(ct(44),ct(32,void 0,!1)&&(e?We():et()),o=N.createJsxSelfClosingElement(n,r,i));return St(o,t)}(e);let a;if(287===o.kind){let t,r=$r(o);const s=r[r.length-1];if(285===(null==s?void 0:s.kind)&&!NO(s.openingElement.tagName,s.closingElement.tagName)&&NO(o.tagName,s.closingElement.tagName)){const e=s.children.end,n=St(N.createJsxElement(s.openingElement,s.children,St(N.createJsxClosingElement(St(I(""),e,e)),e,e)),s.openingElement.pos,e);r=kt([...r.slice(0,r.length-1),n],r.pos,e),t=s.closingElement}else t=function(e,t){const n=Je();ct(31);const r=Hr();ct(32,void 0,!1)&&(t||!NO(e.tagName,r)?We():et());return St(N.createJsxClosingElement(r),n)}(o,e),NO(o.tagName,t.tagName)||(n&&HE(n)&&NO(t.tagName,n.tagName)?Me(o.tagName,ua.JSX_element_0_has_no_corresponding_closing_tag,Gd(p,o.tagName)):Me(t.tagName,ua.Expected_corresponding_JSX_closing_tag_for_0,Gd(p,o.tagName)));a=St(N.createJsxElement(o,r,t),i)}else 290===o.kind?a=St(N.createJsxFragment(o,$r(o),function(e){const t=Je();ct(31),ct(32,ua.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(e?We():et());return St(N.createJsxJsxClosingFragment(),t)}(e)),i):(_n.assert(286===o.kind),a=o);if(!r&&e&&30===qe()){const e=void 0===t?a.pos:t,n=it((()=>Vr(!0,e)));if(n){const t=Tt(28,!1);return NT(t,n.pos,0),Re(Ya(p,e),n.end,ua.JSX_expressions_must_have_one_parent_element),St(N.createBinaryExpression(a,t,n),i)}}return a}function Wr(e,t){switch(t){case 1:if(XE(e))Me(e,ua.JSX_fragment_has_no_corresponding_closing_tag);else{const t=e.tagName;Re(Math.min(Ya(p,t.pos),t.end),t.end,ua.JSX_element_0_has_no_corresponding_closing_tag,Gd(p,e.tagName))}return;case 31:case 7:return;case 12:case 13:return function(){const e=Je(),t=N.createJsxText(a.getTokenValue(),13===x);return x=a.scanJsxToken(),St(t,e)}();case 19:return Kr(!1);case 30:return Vr(!1,void 0,e);default:return _n.assertNever(t)}}function $r(e){const t=[],n=Je(),r=C;for(C|=16384;;){const n=Wr(e,x=a.reScanJsxToken());if(!n)break;if(t.push(n),HE(e)&&285===(null==n?void 0:n.kind)&&!NO(n.openingElement.tagName,n.closingElement.tagName)&&NO(e.tagName,n.closingElement.tagName))break}return C=r,kt(t,n)}function Hr(){const e=Je(),t=function(){const e=Je();Ze();const t=110===qe(),n=Et();if(ft(59))return Ze(),St(N.createJsxNamespacedName(n,Et()),e);return t?St(N.createToken(110),e):n}();if(nP(t))return t;let n=t;for(;ft(25);)n=St(B(n,dn(!0,!1,!1)),e);return n}function Kr(e){const t=Je();if(!ct(19))return;let n,r;return 20!==qe()&&(e||(n=mt(26)),r=Tr()),e?ct(20):ct(20,void 0,!1)&&et(),St(N.createJsxExpression(n,r),t)}function Gr(){if(19===qe())return function(){const e=Je();ct(19),ct(26);const t=Tr();return ct(20),St(N.createJsxSpreadAttribute(t),e)}();const e=Je();return St(N.createJsxAttribute(function(){const e=Je();Ze();const t=Et();if(ft(59))return Ze(),St(N.createJsxNamespacedName(t,Et()),e);return t}(),function(){if(64===qe()){if(11===(x=a.scanJsxAttributeValue()))return yn();if(19===qe())return Kr(!0);if(30===qe())return Vr(!0);Le(ua.or_JSX_element_expected)}return}()),e)}function Xr(){return We(),da(qe())||23===qe()||ti()}function Qr(e){if(64&e.flags)return!0;if(zF(e)){let t=e.expression;for(;zF(t)&&!(64&t.flags);)t=t.expression;if(64&t.flags){for(;zF(e);)e.flags|=64,e=e.expression;return!0}}return!1}function Yr(e,t,n){const r=dn(!0,!0,!0),i=n||Qr(t),o=i?J(t,n,r):B(t,r);if(i&&uN(o.name)&&Me(o.name,ua.An_optional_chain_cannot_contain_private_identifiers),MF(t)&&t.typeArguments){Re(t.typeArguments.pos-1,Ya(p,t.typeArguments.end)+1,ua.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return St(o,e)}function Zr(e,t,n){let r;if(24===qe())r=Tt(80,!0,ua.An_element_access_expression_should_take_an_argument);else{const e=Te(Tr);Rh(e)&&(e.text=Ct(e.text)),r=e}ct(24);return St(n||Qr(t)?q(t,n,r):z(t,r),e)}function ei(e,t,n){for(;;){let r,i=!1;if(n&&29===qe()&&rt(Xr)?(r=ht(29),i=da(qe())):i=ft(25),i)t=Yr(e,t,r);else if(!r&&Ie()||!ft(23)){if(!ti()){if(!r){if(54===qe()&&!a.hasPrecedingLineBreak()){We(),t=St(N.createNonNullExpression(t),e);continue}const n=it(oi);if(n){t=St(N.createExpressionWithTypeArguments(t,n),e);continue}}return t}t=r||234!==t.kind?ni(e,t,r,void 0):ni(e,t.expression,r,t.typeArguments)}else t=Zr(e,t,r)}}function ti(){return 15===qe()||16===qe()}function ni(e,t,n,r){const i=N.createTaggedTemplateExpression(t,r,15===qe()?(Ge(!0),yn()):pn(!0));return(n||64&t.flags)&&(i.flags|=64),i.questionDotToken=n,St(i,e)}function ri(e,t){for(;;){let n;t=ei(e,t,!0);const r=mt(29);if(r&&(n=it(oi),ti()))t=ni(e,t,r,n);else{if(!n&&21!==qe()){if(r){const n=Tt(80,!1,ua.Identifier_expected);t=St(J(t,r,n),e)}break}{r||234!==t.kind||(n=t.typeArguments,t=t.expression);const i=ii();t=St(r||Qr(t)?W(t,r,n,i):U(t,n,i),e)}}}return t}function ii(){ct(21);const e=on(11,ci);return ct(22),e}function oi(){if(524288&D)return;if(30!==Qe())return;We();const e=on(20,br);return 32===Ke()?(We(),e&&function(){switch(qe()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return a.hasPrecedingLineBreak()||Lr()||!Sr()}()?e:void 0):void 0}function ai(){switch(qe()){case 15:26656&a.getTokenFlags()&&Ge(!1);case 9:case 10:case 11:return yn();case 110:case 108:case 106:case 112:case 97:return yt();case 21:return function(){const e=Je(),t=ze();ct(21);const n=Te(Tr);return ct(22),de(St(K(n),e),t)}();case 23:return li();case 19:return ui();case 134:if(!rt(Si))break;return di();case 60:return function(){const e=Je(),t=ze(),n=lo(!0);if(86===qe())return fo(e,t,n,232);const r=Tt(283,!0,ua.Expression_expected);return CT(r,e),r.modifiers=n,r}();case 86:return fo(Je(),ze(),void 0,232);case 100:return di();case 105:return function(){const e=Je();if(ct(105),ft(25)){const t=Ft();return St(N.createMetaProperty(105,t),e)}let t,n=ei(Je(),ai(),!1);234===n.kind&&(t=n.typeArguments,n=n.expression);29===qe()&&Le(ua.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,Gd(p,n));const r=21===qe()?ii():void 0;return St(H(n,t,r),e)}();case 44:case 69:if(14===(x=a.reScanSlashToken()))return yn();break;case 16:return pn(!1);case 81:return Lt()}return Nt(ua.Expression_expected)}function si(){return 26===qe()?function(){const e=Je();ct(26);const t=wr(!0);return St(N.createSpreadElement(t),e)}():28===qe()?St(N.createOmittedExpression(),Je()):wr(!0)}function ci(){return ke(l,si)}function li(){const e=Je(),t=a.getTokenStart(),n=ct(23),r=a.hasPrecedingLineBreak(),i=on(15,si);return pt(23,24,n,t),St(j(i,r),e)}function _i(){const e=Je(),t=ze();if(mt(26)){const n=wr(!0);return de(St(N.createSpreadAssignment(n),e),t)}const n=lo(!0);if(jt(139))return ro(e,t,n,178,0);if(jt(153))return ro(e,t,n,179,0);const r=mt(42),i=st(),o=It(),a=mt(58),s=mt(54);if(r||21===qe()||30===qe())return eo(e,t,n,r,o,a,s);let c;if(i&&59!==qe()){const e=mt(64),t=e?Te((()=>wr(!0))):void 0;c=N.createShorthandPropertyAssignment(o,t),c.equalsToken=e}else{ct(59);const e=Te((()=>wr(!0)));c=N.createPropertyAssignment(o,e)}return c.modifiers=n,c.questionToken=a,c.exclamationToken=s,de(St(c,e),t)}function ui(){const e=Je(),t=a.getTokenStart(),n=ct(19),r=a.hasPrecedingLineBreak(),i=on(12,_i,!0);return pt(19,20,n,t),St(M(i,r),e)}function di(){const e=Ie();be(!1);const t=Je(),n=ze(),r=lo(!1);ct(100);const i=mt(42),o=i?1:0,a=V(r,fN)?2:0,s=o&&a?Se(81920,pi):o?function(e){return Se(16384,e)}(pi):a?De(pi):pi();const c=Fn(),l=Ln(o|a),_=In(59,!1),u=mi(o|a);be(e);return de(St(N.createFunctionExpression(r,i,s,c,l,_,u),t),n)}function pi(){return ot()?Dt():void 0}function fi(e,t){const n=Je(),r=ze(),i=a.getTokenStart(),o=ct(19,t);if(o||e){const e=a.hasPrecedingLineBreak(),t=Zt(1,Li);pt(19,20,o,i);const s=de(St(G(t,e),n),r);return 64===qe()&&(Le(ua.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),We()),s}{const e=sn();return de(St(G(e,void 0),n),r)}}function mi(e,t){const n=Ee();ve(!!(1&e));const r=Oe();xe(!!(2&e));const i=oe;oe=!1;const o=Ie();o&&be(!1);const a=fi(!!(16&e),t);return o&&be(!0),oe=i,ve(n),xe(r),a}function gi(){const e=Je(),t=ze();ct(99);const n=mt(135);let r;let i;if(ct(21),27!==qe()&&(r=115===qe()||121===qe()||87===qe()||160===qe()&&rt(Fi)||135===qe()&&rt(Ii)?Gi(!0):Se(8192,Tr)),n?ct(165):ft(165)){const e=Te((()=>wr(!0)));ct(22),i=te(n,r,e,Li())}else if(ft(103)){const e=Te(Tr);ct(22),i=N.createForInStatement(r,e,Li())}else{ct(27);const e=27!==qe()&&22!==qe()?Te(Tr):void 0;ct(27);const t=22!==qe()?Te(Tr):void 0;ct(22),i=ee(r,e,t,Li())}return de(St(i,e),t)}function hi(e){const t=Je(),n=ze();ct(253===e?83:88);const r=vt()?void 0:Nt();xt();return de(St(253===e?N.createBreakStatement(r):N.createContinueStatement(r),t),n)}function yi(){return 84===qe()?function(){const e=Je(),t=ze();ct(84);const n=Te(Tr);ct(59);const r=Zt(3,Li);return de(St(N.createCaseClause(n,r),e),t)}():function(){const e=Je();ct(90),ct(59);const t=Zt(3,Li);return St(N.createDefaultClause(t),e)}()}function vi(){const e=Je(),t=ze();ct(109),ct(21);const n=Te(Tr);ct(22);const r=function(){const e=Je();ct(19);const t=Zt(2,yi);return ct(20),St(N.createCaseBlock(t),e)}();return de(St(N.createSwitchStatement(n,r),e),t)}function bi(){const e=Je(),t=ze();ct(113);const n=fi(!1),r=85===qe()?function(){const e=Je();let t;ct(85),ft(21)?(t=Ki(),ct(22)):t=void 0;const n=fi(!1);return St(N.createCatchClause(t,n),e)}():void 0;let i;return r&&98!==qe()||(ct(98,ua.catch_or_finally_expected),i=fi(!1)),de(St(N.createTryStatement(n,r,i),e),t)}function xi(){return We(),da(qe())&&!a.hasPrecedingLineBreak()}function ki(){return We(),86===qe()&&!a.hasPrecedingLineBreak()}function Si(){return We(),100===qe()&&!a.hasPrecedingLineBreak()}function Ti(){return We(),(da(qe())||9===qe()||10===qe()||11===qe())&&!a.hasPrecedingLineBreak()}function Ci(){for(;;)switch(qe()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return Ai();case 135:return Oi();case 120:case 156:case 166:return We(),!a.hasPrecedingLineBreak()&&st();case 144:case 145:return zi();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const e=qe();if(We(),a.hasPrecedingLineBreak())return!1;if(138===e&&156===qe())return!0;continue;case 162:return We(),19===qe()||80===qe()||95===qe();case 102:return We(),166===qe()||11===qe()||42===qe()||19===qe()||da(qe());case 95:let t=We();if(156===t&&(t=rt(We)),64===t||42===t||19===t||90===t||130===t||60===t)return!0;continue;case 126:We();continue;default:return!1}}function wi(){return rt(Ci)}function Di(){switch(qe()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:case 134:case 138:case 120:case 144:case 145:case 156:case 162:case 166:return!0;case 102:return wi()||rt(Wn);case 87:case 95:return wi();case 129:case 125:case 123:case 124:case 126:case 148:return wi()||!rt(xi);default:return Sr()}}function Ni(){return We(),ot()||19===qe()||23===qe()}function Fi(){return Pi(!0)}function Ei(){return We(),64===qe()||27===qe()||59===qe()}function Pi(e){return We(),e&&165===qe()?rt(Ei):(ot()||19===qe())&&!a.hasPrecedingLineBreak()}function Ai(){return rt(Pi)}function Ii(e){return 160===We()&&Pi(e)}function Oi(){return rt(Ii)}function Li(){switch(qe()){case 27:return function(){const e=Je(),t=ze();return ct(27),de(St(N.createEmptyStatement(),e),t)}();case 19:return fi(!1);case 115:return Qi(Je(),ze(),void 0);case 121:if(rt(Ni))return Qi(Je(),ze(),void 0);break;case 135:if(Oi())return Qi(Je(),ze(),void 0);break;case 160:if(Ai())return Qi(Je(),ze(),void 0);break;case 100:return Yi(Je(),ze(),void 0);case 86:return po(Je(),ze(),void 0);case 101:return function(){const e=Je(),t=ze();ct(101);const n=a.getTokenStart(),r=ct(21),i=Te(Tr);pt(21,22,r,n);const o=Li(),s=ft(93)?Li():void 0;return de(St(Y(i,o,s),e),t)}();case 92:return function(){const e=Je(),t=ze();ct(92);const n=Li();ct(117);const r=a.getTokenStart(),i=ct(21),o=Te(Tr);return pt(21,22,i,r),ft(27),de(St(N.createDoStatement(n,o),e),t)}();case 117:return function(){const e=Je(),t=ze();ct(117);const n=a.getTokenStart(),r=ct(21),i=Te(Tr);pt(21,22,r,n);const o=Li();return de(St(Z(i,o),e),t)}();case 99:return gi();case 88:return hi(252);case 83:return hi(253);case 107:return function(){const e=Je(),t=ze();ct(107);const n=vt()?void 0:Te(Tr);return xt(),de(St(N.createReturnStatement(n),e),t)}();case 118:return function(){const e=Je(),t=ze();ct(118);const n=a.getTokenStart(),r=ct(21),i=Te(Tr);pt(21,22,r,n);const o=Se(67108864,Li);return de(St(N.createWithStatement(i,o),e),t)}();case 109:return vi();case 111:return function(){const e=Je(),t=ze();ct(111);let n=a.hasPrecedingLineBreak()?void 0:Te(Tr);return void 0===n&&(T++,n=St(I(""),Je())),bt()||_t(n),de(St(N.createThrowStatement(n),e),t)}();case 113:case 85:case 98:return bi();case 89:return function(){const e=Je(),t=ze();return ct(89),xt(),de(St(N.createDebuggerStatement(),e),t)}();case 60:return Ri();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(wi())return Ri()}return function(){const e=Je();let t,n=ze();const r=21===qe(),i=Te(Tr);return _N(i)&&ft(59)?t=N.createLabeledStatement(i,Li()):(bt()||_t(i),t=Q(i),r&&(n=!1)),de(St(t,e),n)}()}function ji(e){return 138===e.kind}function Ri(){const e=Je(),t=ze(),n=lo(!0);if(V(n,ji)){const r=function(e){return Se(33554432,(()=>{const t=tn(C,e);if(t)return nn(t)}))}(e);if(r)return r;for(const e of n)e.flags|=33554432;return Se(33554432,(()=>Mi(e,t,n)))}return Mi(e,t,n)}function Mi(e,t,n){switch(qe()){case 115:case 121:case 87:case 160:return Qi(e,t,n);case 135:if(!Oi())break;return Qi(e,t,n);case 100:return Yi(e,t,n);case 86:return po(e,t,n);case 120:return function(e,t,n){ct(120);const r=Nt(),i=Fn(),o=mo(),a=$n();return de(St(N.createInterfaceDeclaration(n,r,i,o,a),e),t)}(e,t,n);case 156:return function(e,t,n){ct(156),a.hasPrecedingLineBreak()&&Le(ua.Line_break_not_permitted_here);const r=Nt(),i=Fn();ct(64);const o=141===qe()&&it(er)||br();xt();return de(St(N.createTypeAliasDeclaration(n,r,i,o),e),t)}(e,t,n);case 94:return function(e,t,n){ct(94);const r=Nt();let i;ct(19)?(i=ke(81920,(()=>on(6,bo))),ct(20)):i=sn();return de(St(N.createEnumDeclaration(n,r,i),e),t)}(e,t,n);case 162:case 144:case 145:return function(e,t,n){let r=0;if(162===qe())return So(e,t,n);if(ft(145))r|=32;else if(ct(144),11===qe())return So(e,t,n);return ko(e,t,n,r)}(e,t,n);case 102:return function(e,t,n){ct(102);const r=a.getTokenFullStart();let i,o;st()&&(i=Nt());"type"===(null==i?void 0:i.escapedText)&&(161!==qe()||st()&&rt(Ji))&&(st()||42===qe()||19===qe())?(o=156,i=st()?Nt():void 0):"defer"!==(null==i?void 0:i.escapedText)||(161===qe()?rt(Bi):28===qe()||64===qe())||(o=166,i=st()?Nt():void 0);if(i&&28!==qe()&&161!==qe()&&166!==o)return function(e,t,n,r,i){ct(64);const o=149===qe()&&rt(To)?function(){const e=Je();ct(149),ct(21);const t=Po();return ct(22),St(N.createExternalModuleReference(t),e)}():ln(!1);xt();const a=N.createImportEqualsDeclaration(n,i,r,o),s=de(St(a,e),t);return s}(e,t,n,i,156===o);const s=Do(i,r,o,void 0),c=Po(),l=No();xt();return de(St(N.createImportDeclaration(n,s,c,l),e),t)}(e,t,n);case 95:switch(We(),qe()){case 90:case 64:return function(e,t,n){const r=Oe();let i;xe(!0),ft(64)?i=!0:ct(90);const o=wr(!0);xt(),xe(r);return de(St(N.createExportAssignment(n,i,o),e),t)}(e,t,n);case 130:return function(e,t,n){ct(130),ct(145);const r=Nt();xt();const i=N.createNamespaceExportDeclaration(r);return i.modifiers=n,de(St(i,e),t)}(e,t,n);default:return function(e,t,n){const r=Oe();let i,o,s;xe(!0);const c=ft(156),l=Je();ft(42)?(ft(130)&&(i=function(e){return St(N.createNamespaceExport(Io(Ft)),e)}(l)),ct(161),o=Po()):(i=Oo(280),(161===qe()||11===qe()&&!a.hasPrecedingLineBreak())&&(ct(161),o=Po()));const _=qe();!o||118!==_&&132!==_||a.hasPrecedingLineBreak()||(s=Eo(_));xt(),xe(r);return de(St(N.createExportDeclaration(n,c,i,o,s),e),t)}(e,t,n)}}if(n){const t=Tt(283,!0,ua.Declaration_expected);return CT(t,e),t.modifiers=n,t}}function Bi(){return 11===We()}function Ji(){return We(),161===qe()||64===qe()}function zi(){return We(),!a.hasPrecedingLineBreak()&&(st()||11===qe())}function qi(e,t){if(19!==qe()){if(4&e)return void jn();if(vt())return void xt()}return mi(e,t)}function Ui(){const e=Je();if(28===qe())return St(N.createOmittedExpression(),e);const t=mt(26),n=$i(),r=Cr();return St(N.createBindingElement(t,void 0,n,r),e)}function Vi(){const e=Je(),t=mt(26),n=ot();let r,i=It();n&&59!==qe()?(r=i,i=void 0):(ct(59),r=$i());const o=Cr();return St(N.createBindingElement(t,i,r,o),e)}function Wi(){return 19===qe()||23===qe()||81===qe()||ot()}function $i(e){return 23===qe()?function(){const e=Je();ct(23);const t=Te((()=>on(10,Ui)));return ct(24),St(N.createArrayBindingPattern(t),e)}():19===qe()?function(){const e=Je();ct(19);const t=Te((()=>on(9,Vi)));return ct(20),St(N.createObjectBindingPattern(t),e)}():Dt(e)}function Hi(){return Ki(!0)}function Ki(e){const t=Je(),n=ze(),r=$i(ua.Private_identifiers_are_not_allowed_in_variable_declarations);let i;e&&80===r.kind&&54===qe()&&!a.hasPrecedingLineBreak()&&(i=yt());const o=xr(),s=Ir(qe())?void 0:Cr();return de(St(ne(r,i,o,s),t),n)}function Gi(e){const t=Je();let n,r=0;switch(qe()){case 115:break;case 121:r|=1;break;case 87:r|=2;break;case 160:r|=4;break;case 135:if(!Oi())break;r|=6,We();break;default:_n.fail()}if(We(),165===qe()&&rt(Xi))n=sn();else{const t=Pe();ye(e),n=on(8,e?Ki:Hi),ye(t)}return St(ie(n,r),t)}function Xi(){return Wt()&&22===We()}function Qi(e,t,n){const r=Gi(!1);xt();return de(St(X(n,r),e),t)}function Yi(e,t,n){const r=Oe(),i=Kv(n);ct(100);const o=mt(42),a=2048&i?pi():Dt(),s=o?1:0,c=1024&i?2:0,l=Fn();32&i&&xe(!0);const _=Ln(s|c),u=In(59,!1),d=qi(s|c,ua.or_expected);xe(r);return de(St(N.createFunctionDeclaration(n,o,a,l,_,u,d),e),t)}function Zi(e,t,n){return it((()=>{if(137===qe()?ct(137):11===qe()&&21===rt(We)?it((()=>{const e=yn();return"constructor"===e.text?e:void 0})):void 0){const r=Fn(),i=Ln(0),o=In(59,!1),a=qi(0,ua.or_expected),s=N.createConstructorDeclaration(n,i,a);return s.typeParameters=r,s.type=o,de(St(s,e),t)}}))}function eo(e,t,n,r,i,o,a,s){const c=r?1:0,l=V(n,fN)?2:0,_=Fn(),u=Ln(c|l),d=In(59,!1),p=qi(c|l,s),f=N.createMethodDeclaration(n,r,i,o,_,u,d,p);return f.exclamationToken=a,de(St(f,e),t)}function to(e,t,n,r,i){const o=i||a.hasPrecedingLineBreak()?void 0:mt(54),s=xr(),c=ke(90112,Cr);!function(e,t,n){if(60!==qe()||a.hasPrecedingLineBreak())return 21===qe()?(Le(ua.Cannot_start_a_function_call_in_a_type_annotation),void We()):void(!t||vt()?bt()||(n?Le(ua._0_expected,Ea(27)):_t(e)):n?Le(ua._0_expected,Ea(27)):Le(ua.Expected_for_property_initializer));Le(ua.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)}(r,s,c);return de(St(N.createPropertyDeclaration(n,r,i||o,s,c),e),t)}function no(e,t,n){const r=mt(42),i=It(),o=mt(58);return r||21===qe()||30===qe()?eo(e,t,n,r,i,o,void 0,ua.or_expected):to(e,t,n,i,o)}function ro(e,t,n,r,i){const o=It(),a=Fn(),s=Ln(0),c=In(59,!1),l=qi(i),_=178===r?N.createGetAccessorDeclaration(n,o,s,c,l):N.createSetAccessorDeclaration(n,o,s,l);return _.typeParameters=a,RN(_)&&(_.type=c),de(St(_,e),t)}function io(){let e;if(60===qe())return!0;for(;Ql(qe());){if(e=qe(),Zl(e))return!0;We()}if(42===qe())return!0;if(Pt()&&(e=qe(),We()),23===qe())return!0;if(void 0!==e){if(!wh(e)||153===e||139===e)return!0;switch(qe()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return vt()}}return!1}function oo(e,t,n){ht(126);const r=function(){const e=Ee(),t=Oe();ve(!1),xe(!0);const n=fi(!1);return ve(e),xe(t),n}(),i=de(St(N.createClassStaticBlockDeclaration(r),e),t);return i.modifiers=n,i}function ao(){if(Oe()&&135===qe()){const e=Je(),t=Nt(ua.Expression_expected);We();return ri(e,ei(e,t,!0))}return qr()}function so(){const e=Je();if(!ft(60))return;const t=Se(32768,ao);return St(N.createDecorator(t),e)}function co(e,t,n){const r=Je(),i=qe();if(87===qe()&&t){if(!it(Rt))return}else{if(n&&126===qe()&&rt(Co))return;if(e&&126===qe())return;if(!Ql(qe())||!it(Mt))return}return St(L(i),r)}function lo(e,t,n){const r=Je();let i,o,a,s=!1,c=!1,l=!1;if(e&&60===qe())for(;o=so();)i=re(i,o);for(;a=co(s,t,n);)126===a.kind&&(s=!0),i=re(i,a),c=!0;if(c&&e&&60===qe())for(;o=so();)i=re(i,o),l=!0;if(l)for(;a=co(s,t,n);)126===a.kind&&(s=!0),i=re(i,a);return i&&kt(i,r)}function _o(){let e;if(134===qe()){const t=Je();We();e=kt([St(L(134),t)],t)}return e}function uo(){const e=Je(),t=ze();if(27===qe())return We(),de(St(N.createSemicolonClassElement(),e),t);const n=lo(!0,!0,!0);if(126===qe()&&rt(Co))return oo(e,t,n);if(jt(139))return ro(e,t,n,178,0);if(jt(153))return ro(e,t,n,179,0);if(137===qe()||11===qe()){const r=Zi(e,t,n);if(r)return r}if(Mn())return Jn(e,t,n);if(da(qe())||11===qe()||9===qe()||10===qe()||42===qe()||23===qe()){if(V(n,ji)){for(const e of n)e.flags|=33554432;return Se(33554432,(()=>no(e,t,n)))}return no(e,t,n)}if(n){const r=Tt(80,!0,ua.Declaration_expected);return to(e,t,n,r,void 0)}return _n.fail("Should not have attempted to parse class member declaration.")}function po(e,t,n){return fo(e,t,n,264)}function fo(e,t,n,r){const i=Oe();ct(86);const o=!ot()||119===qe()&&rt($t)?void 0:wt(ot()),a=Fn();V(n,dN)&&xe(!0);const s=mo();let c;ct(19)?(c=Zt(5,uo),ct(20)):c=sn(),xe(i);return de(St(264===r?N.createClassDeclaration(n,o,a,s,c):N.createClassExpression(n,o,a,s,c),e),t)}function mo(){if(vo())return Zt(22,go)}function go(){const e=Je(),t=qe();_n.assert(96===t||119===t),We();const n=on(7,ho);return St(N.createHeritageClause(t,n),e)}function ho(){const e=Je(),t=qr();if(234===t.kind)return t;const n=yo();return St(N.createExpressionWithTypeArguments(t,n),e)}function yo(){return 30===qe()?cn(20,br,30,32):void 0}function vo(){return 96===qe()||119===qe()}function bo(){const e=Je(),t=ze(),n=It(),r=Te(Cr);return de(St(N.createEnumMember(n,r),e),t)}function xo(){const e=Je();let t;return ct(19)?(t=Zt(1,Li),ct(20)):t=sn(),St(N.createModuleBlock(t),e)}function ko(e,t,n,r){const i=32&r,o=8&r?Ft():Nt(),a=ft(25)?ko(Je(),!1,void 0,8|i):xo();return de(St(N.createModuleDeclaration(n,o,a,r),e),t)}function So(e,t,n){let r,i,o=0;162===qe()?(r=Nt(),o|=2048):(r=yn(),r.text=Ct(r.text)),19===qe()?i=xo():xt();return de(St(N.createModuleDeclaration(n,r,i,o),e),t)}function To(){return 21===We()}function Co(){return 19===We()}function wo(){return 44===We()}function Do(e,t,n,r=!1){let i;return(e||42===qe()||19===qe())&&(i=function(e,t,n,r){let i;e&&!ft(28)||(r&&a.setSkipJsDocLeadingAsterisks(!0),i=42===qe()?function(){const e=Je();ct(42),ct(130);const t=Nt();return St(N.createNamespaceImport(t),e)}():Oo(276),r&&a.setSkipJsDocLeadingAsterisks(!1));return St(N.createImportClause(n,e,i),t)}(e,t,n,r),ct(161)),i}function No(){const e=qe();if(118===e||132===e&&!a.hasPrecedingLineBreak())return Eo(e)}function Fo(){const e=Je(),t=da(qe())?Ft():bn(11);ct(59);const n=wr(!0);return St(N.createImportAttribute(t,n),e)}function Eo(e,t){const n=Je();t||ct(e);const r=a.getTokenStart();if(ct(19)){const t=a.hasPrecedingLineBreak(),i=on(24,Fo,!0);if(!ct(20)){const e=he(h);e&&e.code===ua._0_expected.code&&cT(e,Hx(u,p,r,1,ua.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return St(N.createImportAttributes(i,t,e),n)}{const t=kt([],Je(),void 0,!1);return St(N.createImportAttributes(t,!1,e),n)}}function Po(){if(11===qe()){const e=yn();return e.text=Ct(e.text),e}return Tr()}function Ao(){return da(qe())||11===qe()}function Io(e){return 11===qe()?yn():e()}function Oo(e){const t=Je();return St(276===e?N.createNamedImports(cn(23,jo,19,20)):N.createNamedExports(cn(23,Lo,19,20)),t)}function Lo(){const e=ze();return de(Ro(282),e)}function jo(){return Ro(277)}function Ro(e){const t=Je();let n,r=wh(qe())&&!st(),i=a.getTokenStart(),o=a.getTokenEnd(),s=!1,c=!0,l=Io(Ft);if(80===l.kind&&"type"===l.escapedText)if(130===qe()){const e=Ft();if(130===qe()){const t=Ft();Ao()?(s=!0,n=e,l=Io(_),c=!1):(n=l,l=t,c=!1)}else Ao()?(n=l,c=!1,l=Io(_)):(s=!0,l=e)}else Ao()&&(s=!0,l=Io(_));c&&130===qe()&&(n=l,ct(130),l=Io(_)),277===e&&(80!==l.kind?(Re(Ya(p,l.pos),l.end,ua.Identifier_expected),l=DT(Tt(80,!1),l.pos,l.pos)):r&&Re(i,o,ua.Identifier_expected));return St(277===e?N.createImportSpecifier(s,n,l):N.createExportSpecifier(s,n,l),t);function _(){return r=wh(qe())&&!st(),i=a.getTokenStart(),o=a.getTokenEnd(),Ft()}}let Mo;var Bo;let Jo;var qo;let Uo;(Bo=Mo||(Mo={}))[Bo.SourceElements=0]="SourceElements",Bo[Bo.BlockStatements=1]="BlockStatements",Bo[Bo.SwitchClauses=2]="SwitchClauses",Bo[Bo.SwitchClauseStatements=3]="SwitchClauseStatements",Bo[Bo.TypeMembers=4]="TypeMembers",Bo[Bo.ClassMembers=5]="ClassMembers",Bo[Bo.EnumMembers=6]="EnumMembers",Bo[Bo.HeritageClauseElement=7]="HeritageClauseElement",Bo[Bo.VariableDeclarations=8]="VariableDeclarations",Bo[Bo.ObjectBindingElements=9]="ObjectBindingElements",Bo[Bo.ArrayBindingElements=10]="ArrayBindingElements",Bo[Bo.ArgumentExpressions=11]="ArgumentExpressions",Bo[Bo.ObjectLiteralMembers=12]="ObjectLiteralMembers",Bo[Bo.JsxAttributes=13]="JsxAttributes",Bo[Bo.JsxChildren=14]="JsxChildren",Bo[Bo.ArrayLiteralMembers=15]="ArrayLiteralMembers",Bo[Bo.Parameters=16]="Parameters",Bo[Bo.JSDocParameters=17]="JSDocParameters",Bo[Bo.RestProperties=18]="RestProperties",Bo[Bo.TypeParameters=19]="TypeParameters",Bo[Bo.TypeArguments=20]="TypeArguments",Bo[Bo.TupleElementTypes=21]="TupleElementTypes",Bo[Bo.HeritageClauses=22]="HeritageClauses",Bo[Bo.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",Bo[Bo.ImportAttributes=24]="ImportAttributes",Bo[Bo.JSDocComment=25]="JSDocComment",Bo[Bo.Count=26]="Count",(qo=Jo||(Jo={}))[qo.False=0]="False",qo[qo.True=1]="True",qo[qo.Unknown=2]="Unknown",(e=>{function t(e){const t=Je(),n=(e?ft:ct)(19),r=Se(16777216,Dn);e&&!n||dt(20);const i=N.createJSDocTypeExpression(r);return fe(i),St(i,t)}function n(){const e=Je(),t=ft(19),n=Je();let r=ln(!1);for(;81===qe();)Ye(),$e(),r=St(N.createJSDocMemberName(r,Nt()),n);t&&dt(20);const i=N.createJSDocNameReference(r);return fe(i),St(i,e)}let r;var i;let o;var s;function c(e=0,r){const i=p,o=void 0===r?i.length:e+r;if(r=o-e,_n.assert(e>=0),_n.assert(e<=o),_n.assert(o<=i.length),!LI(i,e))return;let s,c,l,_,d,f=[];const m=[],g=C;C|=1<<25;const h=a.scanRange(e+3,r-5,(function(){let t,n=1,r=e-(i.lastIndexOf("\n",e)+1)+4;function u(e){t||(t=r),f.push(e),r+=e.length}$e();for(;Z(5););Z(4)&&(n=0,r=0);e:for(;;){switch(qe()){case 60:v(f),d||(d=Je()),A(S(r)),n=0,t=void 0;break;case 4:f.push(a.getTokenText()),n=0,r=0;break;case 42:const i=a.getTokenText();1===n?(n=2,u(i)):(_n.assert(0===n),n=1,r+=i.length);break;case 5:_n.assert(2!==n,"whitespace shouldn't come from the scanner while saving top-level comment text");const o=a.getTokenText();void 0!==t&&r+o.length>t&&f.push(o.slice(t-r)),r+=o.length;break;case 1:break e;case 82:n=2,u(a.getTokenValue());break;case 19:n=2;const s=a.getTokenFullStart(),c=F(a.getTokenEnd()-1);if(c){_||y(f),m.push(St(N.createJSDocText(f.join("")),_??e,s)),m.push(c),f=[],_=a.getTokenEnd();break}default:n=2,u(a.getTokenText())}2===n?He(!1):$e()}const p=f.join("").trimEnd();m.length&&p.length&&m.push(St(N.createJSDocText(p),_??e,d));m.length&&s&&_n.assertIsDefined(d,"having parsed tags implies that the end of the comment span should be set");const g=s&&kt(s,c,l);return St(N.createJSDocComment(m.length?kt(m,e,d):p.length?p:void 0,g),e,o)}));return C=g,h;function y(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function v(e){for(;e.length;){const t=e[e.length-1].trimEnd();if(""!==t){if(t.lengthK(n))))&&346!==t.kind;)if(s=!0,345===t.kind){if(r){const e=Le(ua.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);e&&cT(e,Hx(u,p,0,0,ua.The_tag_was_first_specified_here));break}r=t}else o=re(o,t);if(s){const t=i&&189===i.type.kind,n=N.createJSDocTypeLiteral(o,t);i=r&&r.typeExpression&&!j(r.typeExpression.type)?r.typeExpression:St(n,e),a=i.end}}a=a||void 0!==s?Je():(o??i??t).end,s||(s=w(e,a,n,r));const c=N.createJSDocTypedefTag(t,i,o,s);return St(c,e,a)}(r,i,e,o);break;case"callback":c=function(e,t,n,r){const i=U();x();let o=D(n);const a=W(e,n);o||(o=w(e,Je(),n,r));const s=void 0!==o?Je():a.end;return St(N.createJSDocCallbackTag(t,a,i,o),e,s)}(r,i,e,o);break;case"overload":c=function(e,t,n,r){x();let i=D(n);const o=W(e,n);i||(i=w(e,Je(),n,r));const a=void 0!==i?Je():o.end;return St(N.createJSDocOverloadTag(t,o,i),e,a)}(r,i,e,o);break;case"satisfies":c=function(e,n,r,i){const o=t(!1),a=void 0!==r&&void 0!==i?w(e,Je(),r,i):void 0;return St(N.createJSDocSatisfiesTag(n,o,a),e)}(r,i,e,o);break;case"see":c=function(e,t,r,i){const o=23===qe()||rt((()=>60===$e()&&da($e())&&P(a.getTokenValue())))?void 0:n(),s=void 0!==r&&void 0!==i?w(e,Je(),r,i):void 0;return St(N.createJSDocSeeTag(t,o,s),e)}(r,i,e,o);break;case"exception":case"throws":c=function(e,t,n,r){const i=O(),o=w(e,Je(),n,r);return St(N.createJSDocThrowsTag(t,i,o),e)}(r,i,e,o);break;case"import":c=function(e,t,n,r){const i=a.getTokenFullStart();let o;st()&&(o=Nt());const s=Do(o,i,156,!0),c=Po(),l=No(),_=void 0!==n&&void 0!==r?w(e,Je(),n,r):void 0;return St(N.createJSDocImportTag(t,s,c,l,_),e)}(r,i,e,o);break;default:c=function(e,t,n,r){return St(N.createJSDocUnknownTag(t,w(e,Je(),n,r)),e)}(r,i,e,o)}return c}function w(e,t,n,r){return r||(n+=t-e),D(n,r.slice(n))}function D(e,t){const n=Je();let r=[];const i=[];let o,s,c=0;function l(t){s||(s=e),r.push(t),e+=t.length}void 0!==t&&(""!==t&&l(t),c=1);let _=qe();e:for(;;){switch(_){case 4:c=0,r.push(a.getTokenText()),e=0;break;case 60:a.resetTokenState(a.getTokenEnd()-1);break e;case 1:break e;case 5:_n.assert(2!==c&&3!==c,"whitespace shouldn't come from the scanner while saving comment text");const t=a.getTokenText();void 0!==s&&e+t.length>s&&(r.push(t.slice(s-e)),c=2),e+=t.length;break;case 19:c=2;const _=a.getTokenFullStart(),u=F(a.getTokenEnd()-1);u?(i.push(St(N.createJSDocText(r.join("")),o??n,_)),i.push(u),r=[],o=a.getTokenEnd()):l(a.getTokenText());break;case 62:c=3===c?2:3,l(a.getTokenText());break;case 82:3!==c&&(c=2),l(a.getTokenValue());break;case 42:if(0===c){c=1,e+=1;break}default:3!==c&&(c=2),l(a.getTokenText())}_=2===c||3===c?He(3===c):$e()}y(r);const u=r.join("").trimEnd();return i.length?(u.length&&i.push(St(N.createJSDocText(u),o??n)),kt(i,n,a.getTokenEnd())):u.length?u:void 0}function F(e){const t=it(E);if(!t)return;$e(),x();const n=function(){if(da(qe())){const e=Je();let t=Ft();for(;ft(25);)t=St(N.createQualifiedName(t,81===qe()?Tt(80,!1):Ft()),e);for(;81===qe();)Ye(),$e(),t=St(N.createJSDocMemberName(t,Nt()),e);return t}return}(),r=[];for(;20!==qe()&&4!==qe()&&1!==qe();)r.push(a.getTokenText()),$e();return St(("link"===t?N.createJSDocLink:"linkcode"===t?N.createJSDocLinkCode:N.createJSDocLinkPlain)(n,r.join("")),e,a.getTokenEnd())}function E(){if(k(),19===qe()&&60===$e()&&da($e())){const e=a.getTokenValue();if(P(e))return e}}function P(e){return"link"===e||"linkcode"===e||"linkplain"===e}function A(e){e&&(s?s.push(e):(s=[e],c=e.pos),l=e.end)}function O(){return k(),19===qe()?t():void 0}function L(){const e=Z(23);e&&x();const t=Z(62),n=function(){let e=ee();ft(23)&&ct(24);for(;ft(25);){const t=ee();ft(23)&&ct(24),e=un(e,t)}return e}();var r;return t&&(gt(r=62)||(_n.assert(Nh(r)),Tt(r,!1,ua._0_expected,Ea(r)))),e&&(x(),mt(64)&&Tr(),ct(24)),{name:n,isBracketed:e}}function j(e){switch(e.kind){case 151:return!0;case 189:return j(e.elementType);default:return qN(e)&&_N(e.typeName)&&"Object"===e.typeName.escapedText&&!e.typeArguments}}function R(e,t,n,r){let i=O(),o=!i;k();const{name:a,isBracketed:s}=L(),c=k();o&&!rt(E)&&(i=O());const l=w(e,Je(),r,c),_=function(e,t,n,r){if(e&&j(e.type)){const i=Je();let o,a;for(;o=it((()=>G(n,r,t)));)342===o.kind||349===o.kind?a=re(a,o):346===o.kind&&Me(o.tagName,ua.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(a){const t=St(N.createJSDocTypeLiteral(a,189===e.type.kind),i);return St(N.createJSDocTypeExpression(t),i)}}}(i,a,n,r);_&&(i=_,o=!0);return St(1===n?N.createJSDocPropertyTag(t,a,s,i,o,l):N.createJSDocParameterTag(t,a,s,i,o,l),e)}function M(e,n,r,i){V(s,$P)&&Re(n.pos,a.getTokenStart(),ua._0_tag_already_specified,gc(n.escapedText));const o=t(!0),c=void 0!==r&&void 0!==i?w(e,Je(),r,i):void 0;return St(N.createJSDocTypeTag(n,o,c),e)}function J(){const e=ft(19),t=Je(),n=function(){const e=Je();let t=ee();for(;ft(25);){const n=ee();t=St(B(t,n),e)}return t}();a.setSkipJsDocLeadingAsterisks(!0);const r=yo();a.setSkipJsDocLeadingAsterisks(!1);const i=St(N.createExpressionWithTypeArguments(n,r),t);return e&&(x(),ct(20)),i}function z(e,t,n,r,i){return St(t(n,w(e,Je(),r,i)),e)}function q(e,n,r,i){const o=t(!0);return x(),St(N.createJSDocThisTag(n,o,w(e,Je(),r,i)),e)}function U(e){const t=a.getTokenStart();if(!da(qe()))return;const n=ee();if(ft(25)){const r=U(!0);return St(N.createModuleDeclaration(void 0,n,r,e?8:void 0),t)}return e&&(n.flags|=4096),n}function W(e,t){const n=function(e){const t=Je();let n,r;for(;n=it((()=>G(4,e)));){if(346===n.kind){Me(n.tagName,ua.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}r=re(r,n)}return kt(r||[],t)}(t),r=it((()=>{if(Z(60)){const e=S(t);if(e&&343===e.kind)return e}}));return St(N.createJSDocSignature(void 0,n,r),e)}function H(e,t){for(;!_N(e)||!_N(t);){if(_N(e)||_N(t)||e.right.escapedText!==t.right.escapedText)return!1;e=e.left,t=t.left}return e.escapedText===t.escapedText}function K(e){return G(1,e)}function G(e,t,n){let r=!0,i=!1;for(;;)switch($e()){case 60:if(r){const r=X(e,t);return!(r&&(342===r.kind||349===r.kind)&&n&&(_N(r.name)||!H(n,r.name.left)))&&r}i=!1;break;case 4:r=!0,i=!1;break;case 42:i&&(r=!1),i=!0;break;case 80:r=!1;break;case 1:return!1}}function X(e,t){_n.assert(60===qe());const n=a.getTokenFullStart();$e();const r=ee(),i=k();let o;switch(r.escapedText){case"type":return 1===e&&M(n,r);case"prop":case"property":o=1;break;case"arg":case"argument":case"param":o=6;break;case"template":return Y(n,r,t,i);case"this":return q(n,r,t,i);default:return!1}return!!(e&o)&&R(n,r,e,t)}function Q(){const e=Je(),t=Z(23);t&&x();const n=lo(!1,!0),r=ee(ua.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let i;if(t&&(x(),ct(64),i=Se(16777216,Dn),ct(24)),!Nd(r))return St(N.createTypeParameterDeclaration(n,r,void 0,i),e)}function Y(e,n,r,i){const o=19===qe()?t():void 0,a=function(){const e=Je(),t=[];do{x();const e=Q();void 0!==e&&t.push(e),k()}while(Z(28));return kt(t,e)}();return St(N.createJSDocTemplateTag(n,o,a,w(e,Je(),r,i)),e)}function Z(e){return qe()===e&&($e(),!0)}function ee(e){if(!da(qe()))return Tt(80,!e,e||ua.Identifier_expected);T++;const t=a.getTokenStart(),n=a.getTokenEnd(),r=qe(),i=Ct(a.getTokenValue()),o=St(I(i,r),t,n);return $e(),o}}e.parseJSDocTypeExpressionForTests=function(e,n,r){le("file.js",e,99,void 0,1,0),a.setText(e,n,r),x=a.scan();const i=t(),o=me("file.js",99,1,!1,[],L(1),0,nt),s=Xx(h,o);return y&&(o.jsDocDiagnostics=Xx(y,o)),_e(),i?{jsDocTypeExpression:i,diagnostics:s}:void 0},e.parseJSDocTypeExpression=t,e.parseJSDocNameReference=n,e.parseIsolatedJSDocComment=function(e,t,n){le("",e,99,void 0,1,0);const r=Se(16777216,(()=>c(t,n))),i=Xx(h,{languageVariant:0,text:e});return _e(),r?{jsDoc:r,diagnostics:i}:void 0},e.parseJSDocComment=function(e,t,n){const r=x,i=h.length,o=se,a=Se(16777216,(()=>c(t,n)));return ET(a,e),524288&D&&(y||(y=[]),ae(y,h,i)),x=r,h.length=i,se=o,a},(i=r||(r={}))[i.BeginningOfLine=0]="BeginningOfLine",i[i.SawAsterisk=1]="SawAsterisk",i[i.SavingComments=2]="SavingComments",i[i.SavingBackticks=3]="SavingBackticks",(s=o||(o={}))[s.Property=1]="Property",s[s.Parameter=2]="Parameter",s[s.CallbackParameter=4]="CallbackParameter"})(Uo=e.JSDocParser||(e.JSDocParser={}))})(BI||(BI={}));var fO=new WeakSet;var mO,gO=new WeakSet;function hO(e){gO.add(e)}function yO(e){return void 0!==vO(e)}function vO(e){const t=Ao(e,PS,!1);if(t)return t;if(So(e,".ts")){const t=Eo(e),n=t.lastIndexOf(".d.");if(n>=0)return t.substring(n)}}function bO(e,t){const n=[];for(const e of us(t,0)||s){wO(n,e,t.substring(e.pos,e.end))}e.pragmas=new Map;for(const t of n)if(e.pragmas.has(t.name)){const n=e.pragmas.get(t.name);n instanceof Array?n.push(t.args):e.pragmas.set(t.name,[n,t.args])}else e.pragmas.set(t.name,t.args)}function xO(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.pragmas.forEach(((n,r)=>{switch(r){case"reference":{const r=e.referencedFiles,i=e.typeReferenceDirectives,o=e.libReferenceDirectives;_(Qe(n),(e=>{const{types:n,lib:a,path:s,"resolution-mode":c,preserve:l}=e.arguments,_="true"===l||void 0;if("true"===e.arguments["no-default-lib"]);else if(n){const e=function(e,t,n,r){if(e)return"import"===e?99:"require"===e?1:void r(t,n-t,ua.resolution_mode_should_be_either_require_or_import)}(c,n.pos,n.end,t);i.push({pos:n.pos,end:n.end,fileName:n.value,...e?{resolutionMode:e}:{},..._?{preserve:_}:{}})}else a?o.push({pos:a.pos,end:a.end,fileName:a.value,..._?{preserve:_}:{}}):s?r.push({pos:s.pos,end:s.end,fileName:s.value,..._?{preserve:_}:{}}):t(e.range.pos,e.range.end-e.range.pos,ua.Invalid_reference_directive_syntax)}));break}case"amd-dependency":e.amdDependencies=N(Qe(n),(e=>({name:e.arguments.name,path:e.arguments.path})));break;case"amd-module":if(n instanceof Array)for(const r of n)e.moduleName&&t(r.range.pos,r.range.end-r.range.pos,ua.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=r.arguments.name;else e.moduleName=n.arguments.name;break;case"ts-nocheck":case"ts-check":_(Qe(n),(t=>{(!e.checkJsDirective||t.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:"ts-check"===r,end:t.range.end,pos:t.range.pos})}));break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:_n.fail("Unhandled pragma kind")}}))}(e=>{function t(e,t,r,o,a,s,c){return void(r?_(e):l(e));function l(e){let r="";if(c&&n(e)&&(r=a.substring(e.pos,e.end)),aA(e,t),DT(e,e.pos+o,e.end+o),c&&n(e)&&_n.assert(r===s.substring(e.pos,e.end)),rO(e,l,_),Fu(e))for(const t of e.jsDoc)l(t);i(e,c)}function _(e){DT(e,e.pos+o,e.end+o);for(const t of e)l(t)}}function n(e){switch(e.kind){case 11:case 9:case 80:return!0}return!1}function r(e,t,n,r,i){_n.assert(e.end>=t,"Adjusting an element that was entirely before the change range"),_n.assert(e.pos<=n,"Adjusting an element that was entirely after the change range"),_n.assert(e.pos<=e.end);const o=Math.min(e.pos,r),a=e.end>=n?e.end+i:Math.min(e.end,r);if(_n.assert(o<=a),e.parent){const t=e.parent;_n.assertGreaterThanOrEqual(o,t.pos),_n.assertLessThanOrEqual(a,t.end)}DT(e,o,a)}function i(e,t){if(t){let t=e.pos;const n=e=>{_n.assert(e.pos>=t),t=e.end};if(Fu(e))for(const t of e.jsDoc)n(t);rO(e,n),_n.assert(t<=e.end)}}function o(e,t){let n,r=e;if(rO(e,(function e(i){if(Nd(i))return;if(!(i.pos<=t))return _n.assert(i.pos>t),!0;if(i.pos>=r.pos&&(r=i),tr.pos&&(r=e)}return r}function a(e,t,n,r){const i=e.text;if(n&&(_n.assert(i.length-n.span.length+n.newLength===t.length),r||_n.shouldAssert(3))){const e=i.substr(0,n.span.start),r=t.substr(0,n.span.start);_n.assert(e===r);const o=i.substring(Es(n.span),i.length),a=t.substring(Es(Ks(n)),t.length);_n.assert(o===a)}}function s(e){let t=e.statements,n=0;_n.assert(n(o!==i&&(r&&r.end===o&&n=e.pos&&i=e.pos&&i0&&t<=n;t++){const t=o(e,r);_n.assert(t.pos<=r);const n=t.pos;r=Math.max(0,n-1)}const i=Hs(r,Es(t.span)),a=t.newLength+(t.span.start-r);return Xs(i,a)}(e,c);a(e,n,d,l),_n.assert(d.span.start<=c.span.start),_n.assert(Es(d.span)===Es(c.span)),_n.assert(Es(Ks(d))===Es(Ks(c)));const p=Ks(d).length-d.span.length;!function(e,n,o,a,s,c,l,_){return void u(e);function u(p){if(_n.assert(p.pos<=p.end),p.pos>o)return void t(p,e,!1,s,c,l,_);const f=p.end;if(f>=n){if(hO(p),aA(p,e),r(p,n,o,a,s),rO(p,u,d),Fu(p))for(const e of p.jsDoc)u(e);i(p,_)}else _n.assert(fo)return void t(i,e,!0,s,c,l,_);const d=i.end;if(d>=n){hO(i),r(i,n,o,a,s);for(const e of i)u(e)}else _n.assert(dr){_();const t={range:{pos:e.pos+i,end:e.end+i},type:l};c=re(c,t),s&&_n.assert(o.substring(e.pos,e.end)===a.substring(t.range.pos,t.range.end))}}return _(),c;function _(){l||(l=!0,c?t&&c.push(...t):c=t)}}(e.commentDirectives,f.commentDirectives,d.span.start,Es(d.span),p,_,n,l),f.impliedNodeFormat=e.impliedNodeFormat,sA(e,f),f},e.createSyntaxCursor=s,(l=c||(c={}))[l.Value=-1]="Value"})(mO||(mO={}));var kO=new Map;function SO(e){if(kO.has(e))return kO.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return kO.set(e,t),t}var TO=/^\/\/\/\s*<(\S+)\s.*?\/>/m,CO=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function wO(e,t,n){const r=2===t.kind&&TO.exec(n);if(r){const i=r[1].toLowerCase(),o=Oi[i];if(!(o&&1&o.kind))return;if(o.args){const r={};for(const e of o.args){const i=SO(e.name).exec(n);if(!i&&!e.optional)return;if(i){const n=i[2]||i[3];if(e.captureSpan){const o=t.pos+i.index+i[1].length+1;r[e.name]={value:n,pos:o,end:o+n.length}}else r[e.name]=n}}e.push({name:i,args:{arguments:r,range:t}})}else e.push({name:i,args:{arguments:{},range:t}});return}const i=2===t.kind&&CO.exec(n);if(i)return DO(e,t,2,i);if(3===t.kind){const r=/@(\S+)(\s+(?:\S.*)?)?$/gm;let i;for(;i=r.exec(n);)DO(e,t,4,i)}}function DO(e,t,n,r){if(!r)return;const i=r[1].toLowerCase(),o=Oi[i];if(!(o&&o.kind&n))return;const a=function(e,t){if(!t)return{};if(!e.args)return{};const n=t.trim().split(/\s+/),r={};for(let t=0;t[""+t,e]))),AO=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["es2024","lib.es2024.d.ts"],["es2025","lib.es2025.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.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"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.arraybuffer","lib.es2017.arraybuffer.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["es2023.intl","lib.es2023.intl.d.ts"],["es2024.arraybuffer","lib.es2024.arraybuffer.d.ts"],["es2024.collection","lib.es2024.collection.d.ts"],["es2024.object","lib.es2024.object.d.ts"],["es2024.promise","lib.es2024.promise.d.ts"],["es2024.regexp","lib.es2024.regexp.d.ts"],["es2024.sharedmemory","lib.es2024.sharedmemory.d.ts"],["es2024.string","lib.es2024.string.d.ts"],["es2025.collection","lib.es2025.collection.d.ts"],["es2025.float16","lib.es2025.float16.d.ts"],["es2025.intl","lib.es2025.intl.d.ts"],["es2025.iterator","lib.es2025.iterator.d.ts"],["es2025.promise","lib.es2025.promise.d.ts"],["es2025.regexp","lib.es2025.regexp.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.object","lib.es2024.object.d.ts"],["esnext.regexp","lib.es2024.regexp.d.ts"],["esnext.string","lib.es2024.string.d.ts"],["esnext.float16","lib.es2025.float16.d.ts"],["esnext.iterator","lib.es2025.iterator.d.ts"],["esnext.promise","lib.es2025.promise.d.ts"],["esnext.array","lib.esnext.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.date","lib.esnext.date.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.error","lib.esnext.error.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.sharedmemory","lib.esnext.sharedmemory.d.ts"],["esnext.temporal","lib.esnext.temporal.d.ts"],["esnext.typedarrays","lib.esnext.typedarrays.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],IO=AO.map((e=>e[0])),OO=new Map(AO),LO=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:ua.Watch_and_Build_Modes,description:ua.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:ua.Watch_and_Build_Modes,description:ua.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:ua.Watch_and_Build_Modes,description:ua.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:ua.Watch_and_Build_Modes,description:ua.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:Gj},allowConfigDirTemplateSubstitution:!0,category:ua.Watch_and_Build_Modes,description:ua.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Gj},allowConfigDirTemplateSubstitution:!0,category:ua.Watch_and_Build_Modes,description:ua.Remove_a_list_of_files_from_the_watch_mode_s_processing}],jO=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:ua.Command_line_Options,description:ua.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:ua.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:ua.Command_line_Options,description:ua.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:ua.Output_Formatting,description:ua.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:ua.Compiler_Diagnostics,description:ua.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:ua.Compiler_Diagnostics,description:ua.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:ua.Compiler_Diagnostics,description:ua.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:ua.Output_Formatting,description:ua.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:ua.Compiler_Diagnostics,description:ua.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:ua.Compiler_Diagnostics,description:ua.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:ua.Compiler_Diagnostics,description:ua.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:ua.FILE_OR_DIRECTORY,category:ua.Compiler_Diagnostics,description:ua.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,paramType:ua.DIRECTORY,category:ua.Compiler_Diagnostics,description:ua.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:ua.Projects,description:ua.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:ua.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ua.Emit,transpileOptionValue:void 0,description:ua.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:ua.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ua.Emit,defaultValueDescription:!1,description:ua.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ua.Emit,description:ua.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ua.Emit,defaultValueDescription:!1,description:ua.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:ua.Emit,description:ua.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"noCheck",type:"boolean",showInSimplifiedHelpView:!1,category:ua.Compiler_Diagnostics,description:ua.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:ua.Emit,description:ua.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:ua.Watch_and_Build_Modes,description:ua.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:ua.Command_line_Options,isCommandLineOnly:!0,description:ua.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:ua.Platform_specific}],RO={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,es2023:10,es2024:11,es2025:12,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3","es5"]),paramType:ua.VERSION,showInSimplifiedHelpView:!0,category:ua.Language_and_Environment,description:ua.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:12},MO={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,node18:101,node20:102,nodenext:199,preserve:200})),deprecatedKeys:new Set(["none","amd","system","umd"]),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:ua.KIND,showInSimplifiedHelpView:!0,category:ua.Modules,description:ua.Specify_what_module_code_is_generated,defaultValueDescription:void 0},BO=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:ua.Command_line_Options,description:ua.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:ua.Command_line_Options,description:ua.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:ua.Command_line_Options,description:ua.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:ua.Command_line_Options,paramType:ua.FILE_OR_DIRECTORY,description:ua.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:ua.Command_line_Options,isCommandLineOnly:!0,description:ua.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:ua.Command_line_Options,isCommandLineOnly:!0,description:ua.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},{name:"ignoreConfig",type:"boolean",showInSimplifiedHelpView:!0,category:ua.Command_line_Options,isCommandLineOnly:!0,description:ua.Ignore_the_tsconfig_found_and_build_with_commandline_options_and_files,defaultValueDescription:!1},RO,MO,{name:"lib",type:"list",element:{name:"lib",type:OO,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:ua.Language_and_Environment,description:ua.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ua.JavaScript_Support,description:ua.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files,defaultValueDescription:ua.false_unless_checkJs_is_set},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ua.JavaScript_Support,description:ua.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:EO,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:ua.KIND,showInSimplifiedHelpView:!0,category:ua.Language_and_Environment,description:ua.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:ua.FILE,showInSimplifiedHelpView:!0,category:ua.Emit,description:ua.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:ua.DIRECTORY,showInSimplifiedHelpView:!0,category:ua.Emit,description:ua.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:ua.LOCATION,category:ua.Modules,description:ua.Specify_the_root_folder_within_your_source_files,defaultValueDescription:ua.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:ua.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:ua.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:ua.FILE,category:ua.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:ua.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ua.Emit,defaultValueDescription:!1,description:ua.Disable_emitting_comments},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,affectsSourceFile:!0,category:ua.Emit,description:ua.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ua.Backwards_Compatibility,description:ua.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ua.Emit,description:ua.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:ua.Interop_Constraints,description:ua.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ua.Interop_Constraints,description:ua.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"isolatedDeclarations",type:"boolean",category:ua.Interop_Constraints,description:ua.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"erasableSyntaxOnly",type:"boolean",category:ua.Interop_Constraints,description:ua.Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"libReplacement",type:"boolean",affectsProgramStructure:!0,category:ua.Language_and_Environment,description:ua.Enable_lib_replacement,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ua.Type_Checking,description:ua.Enable_all_strict_type_checking_options,defaultValueDescription:!0},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:ua.Type_Checking,description:ua.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:ua.true_unless_strict_is_false},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:ua.Type_Checking,description:ua.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:ua.true_unless_strict_is_false},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:ua.Type_Checking,description:ua.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:ua.true_unless_strict_is_false},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:ua.Type_Checking,description:ua.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:ua.true_unless_strict_is_false},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:ua.Type_Checking,description:ua.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:ua.true_unless_strict_is_false},{name:"strictBuiltinIteratorReturn",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:ua.Type_Checking,description:ua.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any,defaultValueDescription:ua.true_unless_strict_is_false},{name:"stableTypeOrdering",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInHelp:!1,category:ua.Type_Checking,description:ua.Ensure_types_are_ordered_stably_and_deterministically_across_compilations,defaultValueDescription:!1},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:ua.Type_Checking,description:ua.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:ua.true_unless_strict_is_false},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:ua.Type_Checking,description:ua.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:ua.true_unless_strict_is_false},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,category:ua.Type_Checking,description:ua.Ensure_use_strict_is_always_emitted,defaultValueDescription:!0},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ua.Type_Checking,description:ua.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ua.Type_Checking,description:ua.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ua.Type_Checking,description:ua.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ua.Type_Checking,description:ua.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ua.Type_Checking,description:ua.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ua.Type_Checking,description:ua.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ua.Type_Checking,description:ua.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:ua.Type_Checking,description:ua.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node","node10","classic"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:ua.STRATEGY,category:ua.Modules,description:ua.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:ua.nodenext_if_module_is_nodenext_node16_if_module_is_node16_or_node18_otherwise_bundler},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:ua.Modules,description:ua.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,isTSConfigOnly:!0,category:ua.Modules,description:ua.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:ua.Modules,description:ua.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:ua.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:ua.Modules,description:ua.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:ua.Modules,description:ua.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ua.Interop_Constraints,description:ua.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:!0},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:ua.Interop_Constraints,description:ua.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!0},{name:"preserveSymlinks",type:"boolean",category:ua.Interop_Constraints,description:ua.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ua.Modules,description:ua.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:ua.Modules,description:ua.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ua.Modules,description:ua.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"rewriteRelativeImportExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ua.Modules,description:ua.Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files,defaultValueDescription:!1},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:ua.Modules,description:ua.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:ua.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:ua.Modules,description:ua.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:ua.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:ua.Modules,description:ua.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"noUncheckedSideEffectImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ua.Modules,description:ua.Check_side_effect_imports,defaultValueDescription:!0},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:ua.LOCATION,category:ua.Emit,description:ua.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:ua.LOCATION,category:ua.Emit,description:ua.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ua.Emit,description:ua.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ua.Language_and_Environment,description:ua.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:ua.Language_and_Environment,description:ua.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:ua.Language_and_Environment,description:ua.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:ua.Language_and_Environment,description:ua.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSourceFile:!0,category:ua.Language_and_Environment,description:ua.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:ua.Modules,description:ua.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:ua.Modules,description:ua.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:ua.Backwards_Compatibility,paramType:ua.FILE,transpileOptionValue:void 0,description:ua.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:ua.Language_and_Environment,description:ua.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:ua.Completeness,description:ua.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:ua.Backwards_Compatibility,description:ua.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ua.Emit,description:ua.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:ua.NEWLINE,category:ua.Emit,description:ua.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ua.Output_Formatting,description:ua.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:ua.Language_and_Environment,affectsProgramStructure:!0,description:ua.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:ua.Modules,description:ua.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ua.Emit,description:ua.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:ua.Editor_Support,description:ua.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:ua.Projects,description:ua.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:ua.Projects,description:ua.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:ua.Projects,description:ua.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ua.Backwards_Compatibility,description:ua.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ua.Emit,description:ua.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ua.Emit,transpileOptionValue:void 0,description:ua.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ua.Emit,description:ua.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:ua.DIRECTORY,category:ua.Emit,transpileOptionValue:void 0,description:ua.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:ua.Completeness,description:ua.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ua.Type_Checking,description:ua.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ua.Type_Checking,description:ua.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ua.Backwards_Compatibility,description:ua.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ua.Backwards_Compatibility,description:ua.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:ua.Interop_Constraints,description:ua.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:ua.JavaScript_Support,description:ua.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:ua.Backwards_Compatibility,description:ua.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:ua.Language_and_Environment,description:ua.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:ua.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:ua.Backwards_Compatibility,description:ua.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:ua.Backwards_Compatibility,description:ua.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:ua.Specify_a_list_of_language_service_plugins_to_include,category:ua.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:ua.Control_what_method_is_used_to_detect_module_format_JS_files,category:ua.Language_and_Environment,defaultValueDescription:ua.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],JO=[...jO,...BO],zO=JO.filter((e=>!!e.affectsSemanticDiagnostics)),qO=JO.filter((e=>!!e.affectsEmit)),UO=JO.filter((e=>!!e.affectsDeclarationPath)),VO=JO.filter((e=>!!e.affectsModuleResolution)),WO=JO.filter((e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics)),$O=JO.filter((e=>!!e.affectsProgramStructure)),HO=JO.filter((e=>De(e,"transpileOptionValue"))),KO=JO.filter((e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath)),GO=LO.filter((e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath)),XO=JO.filter((function(e){return!Ye(e.type)}));var QO,YO={name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:ua.Command_line_Options,description:ua.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},ZO=[YO,{name:"verbose",shortName:"v",category:ua.Command_line_Options,description:ua.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:ua.Command_line_Options,description:ua.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:ua.Command_line_Options,description:ua.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:ua.Command_line_Options,description:ua.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1},{name:"stopBuildOnErrors",category:ua.Command_line_Options,description:ua.Skip_building_downstream_projects_on_error_in_upstream_project,type:"boolean",defaultValueDescription:!1}],eL=[...jO,...ZO],tL=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}];function nL(e){const t=new Map,n=new Map;return _(e,(e=>{t.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name)})),{optionsNameMap:t,shortOptionNames:n}}function rL(){return QO||(QO=nL(JO))}var iL={diagnostic:ua.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:vL},oL={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function aL(e){return sL(e,Zx)}function sL(e,t){const n=Ie(e.type.keys()),r=(e.deprecatedKeys?n.filter((t=>!e.deprecatedKeys.has(t))):n).map((e=>`'${e}'`)).join(", ");return t(ua.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,r)}function cL(e,t,n){return Mj(e,(t??"").trim(),n)}function lL(e,t="",n){if(Kt(t=t.trim(),"-"))return;if("listOrElement"===e.type&&!t.includes(","))return Rj(e,t,n);if(""===t)return[];const r=t.split(",");switch(e.element.type){case"number":return R(r,(t=>Rj(e.element,parseInt(t),n)));case"string":return R(r,(t=>Rj(e.element,t||"",n)));case"boolean":case"object":return _n.fail(`List of ${e.element.type} is not yet supported.`);default:return R(r,(t=>cL(e.element,t,n)))}}function _L(e){return e.name}function uL(e,t,n,r,i){var o;const a=null==(o=t.alternateMode)?void 0:o.getOptionsNameMap().optionsNameMap.get(e.toLowerCase());if(a)return Lj(i,r,a!==YO?t.alternateMode.diagnostic:ua.Option_build_must_be_the_first_command_line_argument,e);const s=Ot(e,t.optionDeclarations,_L);return s?Lj(i,r,t.unknownDidYouMeanDiagnostic,n||e,s.name):Lj(i,r,t.unknownOptionDiagnostic,n||e)}function dL(e,t,n){const r={};let i;const o=[],a=[];return s(t),{options:r,watchOptions:i,fileNames:o,errors:a};function s(t){let n=0;for(;nco.readFile(e)));if(!Ye(t))return void a.push(t);const r=[];let i=0;for(;;){for(;i=t.length)break;const n=i;if(34===t.charCodeAt(n)){for(i++;i32;)i++;r.push(t.substring(n,i))}}s(r)}}function pL(e,t,n,r,i,o){if(r.isTSConfigOnly){const n=e[t];"null"===n?(i[r.name]=void 0,t++):"boolean"===r.type?"false"===n?(i[r.name]=Rj(r,!1,o),t++):("true"===n&&t++,o.push(Zx(ua.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,r.name))):(o.push(Zx(ua.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,r.name)),n&&!Kt(n,"-")&&t++)}else if(e[t]||"boolean"===r.type||o.push(Zx(n.optionTypeMismatchDiagnostic,r.name,HL(r))),"null"!==e[t])switch(r.type){case"number":i[r.name]=Rj(r,parseInt(e[t]),o),t++;break;case"boolean":const n=e[t];i[r.name]=Rj(r,"false"!==n,o),"false"!==n&&"true"!==n||t++;break;case"string":i[r.name]=Rj(r,e[t]||"",o),t++;break;case"list":const a=lL(r,e[t],o);i[r.name]=a||[],a&&t++;break;case"listOrElement":_n.fail("listOrElement not supported here");break;default:i[r.name]=cL(r,e[t],o),t++}else i[r.name]=void 0,t++;return t}var fL,mL={alternateMode:iL,getOptionsNameMap:rL,optionDeclarations:JO,unknownOptionDiagnostic:ua.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:ua.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:ua.Compiler_option_0_expects_an_argument};function gL(e,t){return dL(mL,e,t)}function hL(e,t){return yL(rL,e,t)}function yL(e,t,n=!1){t=t.toLowerCase();const{optionsNameMap:r,shortOptionNames:i}=e();if(n){const e=i.get(t);void 0!==e&&(t=e)}return r.get(t)}function vL(){return fL||(fL=nL(eL))}var bL={alternateMode:{diagnostic:ua.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:rL},getOptionsNameMap:vL,optionDeclarations:eL,unknownOptionDiagnostic:ua.Unknown_build_option_0,unknownDidYouMeanDiagnostic:ua.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:ua.Build_option_0_requires_a_value_of_type_1};function xL(e){const{options:t,watchOptions:n,fileNames:r,errors:i}=dL(bL,e),o=t;return 0===r.length&&r.push("."),o.clean&&o.force&&i.push(Zx(ua.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&i.push(Zx(ua.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&i.push(Zx(ua.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&i.push(Zx(ua.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,watchOptions:n,projects:r,errors:i}}function kL(e,...t){return tt(Zx(e,...t).messageText,Ye)}function SL(e,t,n,r,i,o){const a=DL(e,(e=>n.readFile(e)));if(!Ye(a))return void n.onUnRecoverableConfigFileDiagnostic(a);const s=lO(e,a),c=n.getCurrentDirectory();return s.path=Vo(e,c,Vt(n.useCaseSensitiveFileNames)),s.resolvedPath=s.path,s.originalFileName=s.fileName,sj(s,n,Jo(Fo(e),c),t,Jo(e,c),void 0,o,r,i)}function TL(e,t){const n=DL(e,t);return Ye(n)?CL(e,n):{config:{},error:n}}function CL(e,t){const n=lO(e,t);return{config:VL(n,n.parseDiagnostics,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function wL(e,t){const n=DL(e,t);return Ye(n)?lO(e,n):{fileName:e,parseDiagnostics:[n]}}function DL(e,t){let n;try{n=t(e)}catch(t){return Zx(ua.Cannot_read_file_0_Colon_1,e,t.message)}return void 0===n?Zx(ua.Cannot_read_file_0,e):n}function NL(e){return je(e,_L)}var FL,EL={optionDeclarations:tL,unknownOptionDiagnostic:ua.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:ua.Unknown_type_acquisition_option_0_Did_you_mean_1};function PL(){return FL||(FL=nL(LO))}var AL,IL,OL,LL={getOptionsNameMap:PL,optionDeclarations:LO,unknownOptionDiagnostic:ua.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:ua.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:ua.Watch_option_0_requires_a_value_of_type_1};function jL(){return AL||(AL=NL(JO))}function RL(){return IL||(IL=NL(LO))}function ML(){return OL||(OL=NL(tL))}var BL,JL={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:ua.File_Management,disallowNullOrUndefined:!0},zL={name:"compilerOptions",type:"object",elementOptions:jL(),extraKeyDiagnostics:mL},qL={name:"watchOptions",type:"object",elementOptions:RL(),extraKeyDiagnostics:LL},UL={name:"typeAcquisition",type:"object",elementOptions:ML(),extraKeyDiagnostics:EL};function VL(e,t,n){var r;const i=null==(r=e.statements[0])?void 0:r.expression;if(i&&211!==i.kind){if(t.push(Jp(e,i,ua.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===Eo(e.fileName)?"jsconfig.json":"tsconfig.json")),fF(i)){const r=y(i.elements,mF);if(r)return $L(e,r,t,!0,n)}return{}}return $L(e,i,t,!0,n)}function WL(e,t){var n;return $L(e,null==(n=e.statements[0])?void 0:n.expression,t,!0,void 0)}function $L(e,t,n,r,i){return t?o(t,null==i?void 0:i.rootOptions):r?{}:void 0;function o(t,s){switch(t.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return a(t)||n.push(Jp(e,t,ua.String_literal_with_double_quotes_expected)),t.text;case 9:return Number(t.text);case 225:if(41!==t.operator||9!==t.operand.kind)break;return-Number(t.operand.text);case 211:return function(t,s){var c;const l=r?{}:void 0;for(const _ of t.properties){if(304!==_.kind){n.push(Jp(e,_,ua.Property_assignment_expected));continue}_.questionToken&&n.push(Jp(e,_.questionToken,ua.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),a(_.name)||n.push(Jp(e,_.name,ua.String_literal_with_double_quotes_expected));const t=Op(_.name)?void 0:jp(_.name),u=t&&gc(t),d=u?null==(c=null==s?void 0:s.elementOptions)?void 0:c.get(u):void 0,p=o(_.initializer,d);void 0!==u&&(r&&(l[u]=p),null==i||i.onPropertySet(u,p,_,s,d))}return l}(t,s);case 210:return function(e,t){if(r)return C(e.map((e=>o(e,t))),(e=>void 0!==e));e.forEach((e=>o(e,t)))}(t.elements,s&&s.element)}s?n.push(Jp(e,t,ua.Compiler_option_0_requires_a_value_of_type_1,s.name,HL(s))):n.push(Jp(e,t,ua.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function a(t){return HD(t)&&Um(t,e)}}function HL(e){return"listOrElement"===e.type?`${HL(e.element)} or Array`:"list"===e.type?"Array":Ye(e.type)?e.type:"string"}function KL(e,t){if(e){if(lj(t))return!e.disallowNullOrUndefined;if("list"===e.type)return Xe(t);if("listOrElement"===e.type)return Xe(t)||KL(e.element,t);return typeof t===(Ye(e.type)?e.type:"string")}return!1}function GL(e,t,n){var r,i,o;const a=Vt(n.useCaseSensitiveFileNames),s=N(C(e.fileNames,(null==(i=null==(r=e.options.configFile)?void 0:r.configFileSpecs)?void 0:i.validatedIncludeSpecs)?function(e,t,n,r){if(!t)return it;const i=hS(e,n,t,r.useCaseSensitiveFileNames,r.getCurrentDirectory()),o=i.excludePattern&&yS(i.excludePattern,r.useCaseSensitiveFileNames),a=i.includeFilePattern&&yS(i.includeFilePattern,r.useCaseSensitiveFileNames);if(a)return o?e=>!(a.test(e)&&!o.test(e)):e=>!a.test(e);if(o)return e=>o.test(e);return it}(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,n):it),(e=>aa(Jo(t,n.getCurrentDirectory()),Jo(e,n.getCurrentDirectory()),a))),c={configFilePath:Jo(t,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames},_=tj(e.options,c),u=e.watchOptions&&nj(e.watchOptions,PL());const d={compilerOptions:{...QL(_),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:u&&QL(u),references:N(e.projectReferences,(e=>({...e,path:e.originalPath?e.originalPath:"",originalPath:void 0}))),files:l(s)?s:void 0,...(null==(o=e.options.configFile)?void 0:o.configFileSpecs)?{include:YL(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:!!e.compileOnSave||void 0},p=new Set(_.keys()),f={};for(const t in vk)if(!p.has(t)&&XL(t,p)){vk[t].computeValue(e.options)!==vk[t].computeValue({})&&(f[t]=vk[t].computeValue(e.options))}return Oe(d.compilerOptions,QL(tj(f,c))),d}function XL(e,t){const n=new Set;return function e(r){var i;if(kx(n,r))return V(null==(i=vk[r])?void 0:i.dependencies,(n=>t.has(n)||e(n)));return!1}(e)}function QL(e){return Object.fromEntries(e)}function YL(e){if(l(e)){if(1!==l(e))return e;if(e[0]!==uj)return e}}function ZL(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return ZL(e.element);default:return e.type}}function ej(e,t){return id(t,((t,n)=>{if(t===e)return n}))}function tj(e,t){return nj(e,rL(),t)}function nj(e,{optionsNameMap:t},n){const r=new Map,i=n&&Vt(n.useCaseSensitiveFileNames);for(const o in e)if(De(e,o)){if(t.has(o)&&(t.get(o).category===ua.Command_line_Options||t.get(o).category===ua.Output_Formatting))continue;const a=e[o],s=t.get(o.toLowerCase());if(s){_n.assert("listOrElement"!==s.type);const e=ZL(s);e?"list"===s.type?r.set(o,a.map((t=>ej(t,e)))):r.set(o,ej(a,e)):n&&s.isFilePath?r.set(o,aa(n.configFilePath,Jo(a,Fo(n.configFilePath)),i)):n&&"list"===s.type&&s.element.isFilePath?r.set(o,a.map((e=>aa(n.configFilePath,Jo(e,Fo(n.configFilePath)),i)))):r.set(o,a)}}return r}function rj(e,t){const n=" ",r=[],i=Object.keys(e).filter((e=>"init"!==e&&"help"!==e&&"watch"!==e));if(r.push("{"),r.push(`${n}// ${$x(ua.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)}`),r.push(`${n}"compilerOptions": {`),a(ua.File_Layout),s("rootDir","./src","optional"),s("outDir","./dist","optional"),o(),a(ua.Environment_Settings),a(ua.See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule),s("module",199),s("target",99),s("types",[]),e.lib&&s("lib",e.lib),a(ua.For_nodejs_Colon),r.push(`${n}${n}// "lib": ["esnext"],`),r.push(`${n}${n}// "types": ["node"],`),a(ua.and_npm_install_D_types_Slashnode),o(),a(ua.Other_Outputs),s("sourceMap",!0),s("declaration",!0),s("declarationMap",!0),o(),a(ua.Stricter_Typechecking_Options),s("noUncheckedIndexedAccess",!0),s("exactOptionalPropertyTypes",!0),o(),a(ua.Style_Options),s("noImplicitReturns",!0,"optional"),s("noImplicitOverride",!0,"optional"),s("noUnusedLocals",!0,"optional"),s("noUnusedParameters",!0,"optional"),s("noFallthroughCasesInSwitch",!0,"optional"),s("noPropertyAccessFromIndexSignature",!0,"optional"),o(),a(ua.Recommended_Options),s("strict",!0),s("jsx",4),s("verbatimModuleSyntax",!0),s("isolatedModules",!0),s("noUncheckedSideEffectImports",!0),s("moduleDetection",3),s("skipLibCheck",!0),i.length>0)for(o();i.length>0;)s(i[0],e[i[0]]);function o(){r.push("")}function a(e){r.push(`${n}${n}// ${$x(e)}`)}function s(t,o,a="never"){const s=i.indexOf(t);let l;s>=0&&i.splice(s,1),l="always"===a||"never"!==a&&!De(e,t);const _=e[t]??o;l?r.push(`${n}${n}// "${t}": ${c(t,_)},`):r.push(`${n}${n}"${t}": ${c(t,_)},`)}function c(e,t){const n=JO.filter((t=>t.name===e))[0];n||_n.fail(`No option named ${e}?`);const r=n.type instanceof Map?n.type:void 0;if(Xe(t)){const e="element"in n&&n.element.type instanceof Map?n.element.type:void 0;return`[${t.map((t=>l(t,e))).join(", ")}]`}return l(t,r)}function l(e,t){return t&&(e=ej(e,t)??_n.fail(`No matching value of ${e}`)),JSON.stringify(e)}return r.push(`${n}}`),r.push("}"),r.push(""),r.join(t)}function ij(e,t){const n={},r=rL().optionsNameMap;for(const i in e)De(e,i)&&(n[i]=oj(r.get(i.toLowerCase()),e[i],t));return n.configFilePath&&(n.configFilePath=t(n.configFilePath)),n}function oj(e,t,n){if(e&&!lj(t)){if("list"===e.type){const r=t;if(e.element.isFilePath&&r.length)return r.map(n)}else if(e.isFilePath)return n(t);_n.assert("listOrElement"!==e.type)}return t}function aj(e,t,n,r,i,o,a,s,c){return dj(e,void 0,t,n,r,c,i,o,a,s)}function sj(e,t,n,r,i,o,a,s,c){var l,_;null==(l=$n)||l.push($n.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});const u=dj(void 0,e,t,n,r,c,i,o,a,s);return null==(_=$n)||_.pop(),u}function cj(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function lj(e){return null==e}function _j(e,t){return Fo(Jo(e,t))}var uj="**/*";function dj(e,t,n,r,i={},o,a,s=[],c=[],l){_n.assert(void 0===e&&void 0!==t||void 0!==e&&void 0===t);const _=[],u=Cj(e,t,n,r,a,s,_,l),{raw:d}=u,p=fj(qe(i,u.options||{}),KO,r),f=pj(o&&u.watchOptions?qe(o,u.watchOptions):u.watchOptions||o,r);p.configFilePath=a&&Lo(a);const m=zo(a?_j(a,r):r),g=function(){const e=b("references",(e=>"object"==typeof e),"object"),n=y(v("files"));if(n){const r="no-prop"===e||Xe(e)&&0===e.length,i=De(d,"extends");if(0===n.length&&r&&!i)if(t){const e=a||"tsconfig.json",n=ua.The_files_list_in_config_file_0_is_empty,r=Hf(t,"files",(e=>e.initializer)),i=Lj(t,r,n,e);_.push(i)}else x(ua.The_files_list_in_config_file_0_is_empty,a||"tsconfig.json")}let r=y(v("include"));const i=v("exclude");let o,s,c,l,u=!1,f=y(i);if("no-prop"===i){const e=p.outDir,t=p.declarationDir;(e||t)&&(f=C([e,t],(e=>!!e)))}void 0===n&&void 0===r&&(r=[uj],u=!0);r&&(o=Kj(r,_,!0,t,"include"),c=yj(o,m)||o);f&&(s=Kj(f,_,!1,t,"exclude"),l=yj(s,m)||s);const g=C(n,Ye),h=yj(g,m)||g;return{filesSpecs:n,includeSpecs:r,excludeSpecs:f,validatedFilesSpec:h,validatedIncludeSpecs:c,validatedExcludeSpecs:l,validatedFilesSpecBeforeSubstitution:g,validatedIncludeSpecsBeforeSubstitution:o,validatedExcludeSpecsBeforeSubstitution:s,isDefaultIncludeSpec:u}}();return t&&(t.configFileSpecs=g),cj(p,t),{options:p,watchOptions:f,fileNames:function(e){const t=Uj(g,e,p,n,c);xj(t,Sj(d),s)&&_.push(bj(g,a));return t}(m),projectReferences:function(e){let t;const n=b("references",(e=>"object"==typeof e),"object");if(Xe(n))for(const r of n)"string"!=typeof r.path?x(ua.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(t||(t=[])).push({path:Jo(r.path,e),originalPath:r.path,prepend:r.prepend,circular:r.circular});return t}(m),typeAcquisition:u.typeAcquisition||Aj(),raw:d,errors:_,wildcardDirectories:Xj(g,m,n.useCaseSensitiveFileNames),compileOnSave:!!d.compileOnSave};function y(e){return Xe(e)?e:void 0}function v(e){return b(e,Ye,"string")}function b(e,n,r){if(De(d,e)&&!lj(d[e])){if(Xe(d[e])){const i=d[e];return t||h(i,n)||_.push(Zx(ua.Compiler_option_0_requires_a_value_of_type_1,e,r)),i}return x(ua.Compiler_option_0_requires_a_value_of_type_1,e,"Array"),"not-array"}return"no-prop"}function x(e,...n){t||_.push(Zx(e,...n))}}function pj(e,t){return fj(e,GO,t)}function fj(e,t,n){if(!e)return e;let r;for(const r of t)if(void 0!==e[r.name]){const t=e[r.name];switch(r.type){case"string":_n.assert(r.isFilePath),gj(t)&&i(r,hj(t,n));break;case"list":_n.assert(r.element.isFilePath);const e=yj(t,n);e&&i(r,e);break;case"object":_n.assert("paths"===r.name);const o=vj(t,n);o&&i(r,o);break;default:_n.fail("option type not supported")}}return r||e;function i(t,n){(r??(r=Oe({},e)))[t.name]=n}}var mj="${configDir}";function gj(e){return Ye(e)&&Kt(e,mj,!0)}function hj(e,t){return Jo(e.replace(mj,"./"),t)}function yj(e,t){if(!e)return e;let n;return e.forEach(((r,i)=>{gj(r)&&((n??(n=e.slice()))[i]=hj(r,t))})),n}function vj(e,t){let n;return Fe(e).forEach((r=>{if(!Xe(e[r]))return;const i=yj(e[r],t);i&&((n??(n=Oe({},e)))[r]=i)})),n}function bj({includeSpecs:e,excludeSpecs:t},n){return Zx(ua.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,n||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function xj(e,t,n){return 0===e.length&&t&&(!n||0===n.length)}function kj(e){return!e.fileNames.length&&De(e.raw,"references")}function Sj(e){return!De(e,"files")&&!De(e,"references")}function Tj(e,t,n,r,i){const o=r.length;return xj(e,i)?r.push(bj(n,t)):w(r,(e=>!function(e){return e.code===ua.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}(e))),o!==r.length}function Cj(e,t,n,r,i,o,a,s){var c;const l=Jo(i||"",r=Lo(r));if(o.includes(l))return a.push(Zx(ua.Circularity_detected_while_resolving_configuration_Colon_0,[...o,l].join(" -> "))),{raw:e||WL(t,a)};const _=e?function(e,t,n,r,i){De(e,"excludes")&&i.push(Zx(ua.Unknown_option_excludes_Did_you_mean_exclude));const o=Pj(e.compilerOptions,n,i,r),a=Ij(e.typeAcquisition,n,i,r),s=function(e,t,n){return Oj(RL(),e,t,void 0,LL,n)}(e.watchOptions,n,i);e.compileOnSave=function(e,t,n){if(!De(e,FO.name))return!1;const r=jj(FO,e.compileOnSave,t,n);return"boolean"==typeof r&&r}(e,n,i);const c=e.extends||""===e.extends?wj(e.extends,t,n,r,i):void 0;return{raw:e,options:o,watchOptions:s,typeAcquisition:a,extendedConfigPath:c}}(e,n,r,i,a):function(e,t,n,r,i){const o=Ej(r);let a,s,c,l;const _=(void 0===BL&&(BL={name:void 0,type:"object",elementOptions:NL([zL,qL,UL,JL,{name:"references",type:"list",element:{name:"references",type:"object"},category:ua.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:ua.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:ua.File_Management,defaultValueDescription:ua.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:ua.File_Management,defaultValueDescription:ua.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},FO])}),BL),u=VL(e,i,{rootOptions:_,onPropertySet:d});a||(a=Aj(r));l&&u&&void 0===u.compilerOptions&&i.push(Jp(e,l[0],ua._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,jp(l[0])));return{raw:u,options:o,watchOptions:s,typeAcquisition:a,extendedConfigPath:c};function d(u,d,p,f,m){if(m&&m!==JL&&(d=jj(m,d,n,i,p,p.initializer,e)),null==f?void 0:f.name)if(m){let e;f===zL?e=o:f===qL?e=s??(s={}):f===UL?e=a??(a=Aj(r)):_n.fail("Unknown option"),e[m.name]=d}else u&&(null==f?void 0:f.extraKeyDiagnostics)&&(f.elementOptions?i.push(uL(u,f.extraKeyDiagnostics,void 0,p.name,e)):i.push(Jp(e,p.name,f.extraKeyDiagnostics.unknownOptionDiagnostic,u)));else f===_&&(m===JL?c=wj(d,t,n,r,i,p,p.initializer,e):m||("excludes"===u&&i.push(Jp(e,p.name,ua.Unknown_option_excludes_Did_you_mean_exclude)),y(BO,(e=>e.name===u))&&(l=re(l,p.name))))}}(t,n,r,i,a);if((null==(c=_.options)?void 0:c.paths)&&(_.options.pathsBasePath=r),_.extendedConfigPath){o=o.concat([l]);const e={options:{}};Ye(_.extendedConfigPath)?u(e,_.extendedConfigPath):_.extendedConfigPath.forEach((t=>u(e,t))),e.include&&(_.raw.include=e.include),e.exclude&&(_.raw.exclude=e.exclude),e.files&&(_.raw.files=e.files),void 0===_.raw.compileOnSave&&e.compileOnSave&&(_.raw.compileOnSave=e.compileOnSave),t&&e.extendedSourceFiles&&(t.extendedSourceFiles=Ie(e.extendedSourceFiles.keys())),_.options=Oe(e.options,_.options),_.watchOptions=_.watchOptions&&e.watchOptions?d(e,_.watchOptions):_.watchOptions||e.watchOptions}return _;function u(e,i){const c=function(e,t,n,r,i,o,a){const s=n.useCaseSensitiveFileNames?t:lt(t);let c,l,_;o&&(c=o.get(s))?({extendedResult:l,extendedConfig:_}=c):(l=wL(t,(e=>n.readFile(e))),l.parseDiagnostics.length||(_=Cj(void 0,l,n,Fo(t),Eo(t),r,i,o)),o&&o.set(s,{extendedResult:l,extendedConfig:_}));if(e&&((a.extendedSourceFiles??(a.extendedSourceFiles=new Set)).add(l.fileName),l.extendedSourceFiles))for(const e of l.extendedSourceFiles)a.extendedSourceFiles.add(e);if(l.parseDiagnostics.length)return void i.push(...l.parseDiagnostics);return _}(t,i,n,o,a,s,e);if(c&&c.options){const t=c.raw;let o;const a=a=>{_.raw[a]||t[a]&&(e[a]=N(t[a],(e=>gj(e)||ho(e)?e:Ro(o||(o=oa(Fo(i),r,Vt(n.useCaseSensitiveFileNames))),e))))};a("include"),a("exclude"),a("files"),void 0!==t.compileOnSave&&(e.compileOnSave=t.compileOnSave),Oe(e.options,c.options),e.watchOptions=e.watchOptions&&c.watchOptions?d(e,c.watchOptions):e.watchOptions||c.watchOptions}}function d(e,t){return e.watchOptionsCopied?Oe(e.watchOptions,t):(e.watchOptionsCopied=!0,Oe({},e.watchOptions,t))}}function wj(e,t,n,r,i,o,a,s){let c;const l=r?_j(r,n):n;if(Ye(e))c=Dj(e,t,l,i,a,s);else if(Xe(e)){c=[];for(let r=0;rLj(i,r,e,...t))))}function Bj(e,t,n,r,i,o,a){return C(N(t,((t,s)=>jj(e.element,t,n,r,i,null==o?void 0:o.elements[s],a))),(t=>!!e.listPreserveFalsyValues||!!t))}var Jj,zj=/(?:^|\/)\*\*\/?$/,qj=/^[^*?]*(?=\/[^/]*[*?])/;function Uj(e,t,n,r,i=s){t=zo(t);const o=Vt(r.useCaseSensitiveFileNames),a=new Map,c=new Map,l=new Map,{validatedFilesSpec:_,validatedIncludeSpecs:u,validatedExcludeSpecs:d}=e,p=OS(n,i),f=LS(n,p);if(_)for(const e of _){const n=Jo(e,t);a.set(o(n),n)}let m;if(u&&u.length>0)for(const e of r.readDirectory(t,P(f),d,u,void 0)){if(So(e,".json")){if(!m){const e=N(dS(u.filter((e=>jt(e,".json"))),t,"files"),(e=>`^${e}$`));m=e?e.map((e=>yS(e,r.useCaseSensitiveFileNames))):s}if(-1!==b(m,(t=>t.test(e)))){const t=o(e);a.has(t)||l.has(t)||l.set(t,e)}continue}if(Zj(e,a,c,p,o))continue;eR(e,c,p,o);const n=o(e);a.has(n)||c.has(n)||c.set(n,e)}const g=Ie(a.values()),h=Ie(c.values());return g.concat(h,Ie(l.values()))}function Vj(e,t,n,r,i){const{validatedFilesSpec:o,validatedIncludeSpecs:a,validatedExcludeSpecs:s}=t;if(!l(a)||!l(s))return!1;n=zo(n);const c=Vt(r);if(o)for(const t of o)if(c(Jo(t,n))===e)return!1;return Hj(e,s,r,i,n)}function Wj(e){const t=Kt(e,"**/")?0:e.indexOf("/**/");if(-1===t)return!1;return(jt(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function $j(e,t,n,r){return Hj(e,C(t,(e=>!Wj(e))),n,r)}function Hj(e,t,n,r,i){const o=uS(t,Ro(zo(r),i),"exclude"),a=o&&yS(o,n);return!!a&&(!!a.test(e)||!ko(e)&&a.test($o(e)))}function Kj(e,t,n,r,i){return e.filter((e=>{if(!Ye(e))return!1;const o=Gj(e,n);return void 0!==o&&t.push(function(e,t){const n=$f(r,i,t);return Lj(r,n,e,t)}(...o)),void 0===o}))}function Gj(e,t){return _n.assert("string"==typeof e),t&&zj.test(e)?[ua.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:Wj(e)?[ua.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:void 0}function Xj({validatedIncludeSpecs:e,validatedExcludeSpecs:t},n,r){const i=uS(t,n,"exclude"),o=i&&new RegExp(i,r?"":"i"),a={},s=new Map;if(void 0!==e){const t=[];for(const i of e){const e=zo(Ro(n,i));if(o&&o.test(e))continue;const c=Yj(e,r);if(c){const{key:e,path:n,flags:r}=c,i=s.get(e),o=void 0!==i?a[i]:void 0;(void 0===o||oTo(e,t)?t:void 0));if(!o)return!1;for(const r of o){if(So(e,r)&&(".ts"!==r||!So(e,".d.ts")))return!1;const o=i(KS(e,r));if(t.has(o)||n.has(o)){if(".d.ts"===r&&(So(e,".js")||So(e,".jsx")))continue;return!0}}return!1}function eR(e,t,n,r){const i=_(n,(t=>To(e,t)?t:void 0));if(i)for(let n=i.length-1;n>=0;n--){const o=i[n];if(So(e,o))return;const a=r(KS(e,o));t.delete(a)}}function tR(e){const t={};for(const n in e)if(De(e,n)){const r=hL(n);void 0!==r&&(t[n]=nR(e[n],r))}return t}function nR(e,t){if(void 0===e)return e;switch(t.type){case"object":case"string":return"";case"number":return"number"==typeof e?e:"";case"boolean":return"boolean"==typeof e?e:"";case"listOrElement":if(!Xe(e))return nR(e,t.element);case"list":const n=t.element;return Xe(e)?R(e,(e=>nR(e,n))):"";default:return id(t.type,((t,n)=>{if(t===e)return n}))}}function rR(e,t,...n){e.trace(Yx(t,...n))}function iR(e,t){return!!e.traceResolution&&void 0!==t.trace}function oR(e,t,n){let r;if(t&&e){const i=e.contents.packageJsonContent;"string"==typeof i.name&&"string"==typeof i.version&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+_o.length),version:i.version,peerDependencies:xM(e,n)})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function aR(e){return oR(void 0,e,void 0)}function sR(e){if(e)return _n.assert(void 0===e.packageId),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function cR(e){const t=[];return 1&e&&t.push("TypeScript"),2&e&&t.push("JavaScript"),4&e&&t.push("Declaration"),8&e&&t.push("JSON"),t.join(", ")}function lR(e){if(e)return _n.assert(ZS(e.extension)),{fileName:e.path,packageId:e.packageId}}function _R(e,t,n,r,i,o,a,s,c){if(!a.resultFromCache&&!a.compilerOptions.preserveSymlinks&&t&&n&&!t.originalPath&&!ws(e)){const{resolvedFileName:e,originalPath:n}=kR(t.path,a.host,a.traceEnabled);n&&(t={...t,path:e,originalPath:n})}return uR(t,n,r,i,o,a.resultFromCache,s,c)}function uR(e,t,n,r,i,o,a,s){return o?(null==a?void 0:a.isReadonly)?{...o,failedLookupLocations:fR(o.failedLookupLocations,n),affectingLocations:fR(o.affectingLocations,r),resolutionDiagnostics:fR(o.resolutionDiagnostics,i)}:(o.failedLookupLocations=pR(o.failedLookupLocations,n),o.affectingLocations=pR(o.affectingLocations,r),o.resolutionDiagnostics=pR(o.resolutionDiagnostics,i),o):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:dR(n),affectingLocations:dR(r),resolutionDiagnostics:dR(i),alternateResult:s}}function dR(e){return e.length?e:void 0}function pR(e,t){return(null==t?void 0:t.length)?(null==e?void 0:e.length)?(e.push(...t),e):t:e}function fR(e,t){return(null==e?void 0:e.length)?t.length?[...e,...t]:e.slice():dR(t)}function mR(e,t,n,r){if(!De(e,t))return void(r.traceEnabled&&rR(r.host,ua.package_json_does_not_have_a_0_field,t));const i=e[t];if(typeof i===n&&null!==i)return i;r.traceEnabled&&rR(r.host,ua.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,n,null===i?"null":typeof i)}function gR(e,t,n,r){const i=mR(e,t,"string",r);if(void 0===i)return;if(!i)return void(r.traceEnabled&&rR(r.host,ua.package_json_had_a_falsy_0_field,t));const o=zo(Ro(n,i));return r.traceEnabled&&rR(r.host,ua.package_json_has_0_field_1_that_references_2,t,i,o),o}function hR(e,t){const n=function(e,t){const n=mR(e,"typesVersions","object",t);if(void 0!==n)return t.traceEnabled&&rR(t.host,ua.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),n}(e,t);if(void 0===n)return;if(t.traceEnabled)for(const e in n)De(n,e)&&!xn.tryParse(e)&&rR(t.host,ua.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,e);const r=yR(n);if(!r)return void(t.traceEnabled&&rR(t.host,ua.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,i));const{version:o,paths:a}=r;if("object"==typeof a)return r;t.traceEnabled&&rR(t.host,ua.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,"object",typeof a)}function yR(e){Jj||(Jj=new vn(o));for(const t in e){if(!De(e,t))continue;const n=xn.tryParse(t);if(void 0!==n&&n.test(Jj))return{version:t,paths:e[t]}}}function vR(e,t){if(e.typeRoots)return e.typeRoots;let n;return e.configFilePath?n=Fo(e.configFilePath):t.getCurrentDirectory&&(n=t.getCurrentDirectory()),void 0!==n?function(e){let t;return ca(zo(e),(e=>{const n=Ro(e,bR);(t??(t=[])).push(n)})),t}(n):void 0}var bR=Ro("node_modules","@types");function xR(e,t,n){return 0===ea(e,t,!("function"==typeof n.useCaseSensitiveFileNames?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames))}function kR(e,t,n){const r=nM(e,t,n),i=xR(e,r,t);return{resolvedFileName:i?e:r,originalPath:i?void 0:e}}function SR(e,t,n){return Ro(e,jt(e,"/node_modules/@types")||jt(e,"/node_modules/@types/")?BM(t,n):t)}function TR(e,t,n,r,i,o,a){_n.assert("string"==typeof e,"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const s=iR(n,r);i&&(n=i.commandLine.options);const c=t?Fo(t):void 0;let l=c?null==o?void 0:o.getFromDirectoryCache(e,a,c,i):void 0;if(l||!c||ws(e)||(l=null==o?void 0:o.getFromNonRelativeNameCache(e,a,c,i)),l)return s&&(rR(r,ua.Resolving_type_reference_directive_0_containing_file_1,e,t),i&&rR(r,ua.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName),rR(r,ua.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,c),k(l)),l;const _=vR(n,r);s&&(void 0===t?void 0===_?rR(r,ua.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):rR(r,ua.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,_):void 0===_?rR(r,ua.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):rR(r,ua.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,_),i&&rR(r,ua.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName));const u=[],p=[];let f=CR(n);void 0!==a&&(f|=94);const m=Sk(n);99===a&&3<=m&&m<=99&&(f|=32);const g=8&f?wR(n,a):[],h=[],y={compilerOptions:n,host:r,traceEnabled:s,failedLookupLocations:u,affectingLocations:p,packageJsonInfoCache:o,features:f,conditions:g,requestContainingDirectory:c,reportDiagnostic:e=>{h.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let v,b=function(){if(_&&_.length)return s&&rR(r,ua.Resolving_with_primary_search_path_0,_.join(", ")),d(_,(t=>{const i=SR(t,e,y),o=Eb(t,r);if(!o&&s&&rR(r,ua.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n.typeRoots){const e=lM(4,i,!o,y);if(e){const t=aM(e.path);return lR(oR(t?kM(t,!1,y):void 0,e,y))}}return lR(mM(4,i,!o,y))}));s&&rR(r,ua.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),x=!0;if(b||(b=function(){const i=t&&Fo(t);if(void 0!==i){let o;if(n.typeRoots&&jt(t,AV))s&&rR(r,ua.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);else if(s&&rR(r,ua.Looking_up_in_node_modules_folder_initial_location_0,i),ws(e)){const{path:t}=tM(i,e);o=rM(4,t,!1,y,!0)}else{const t=AM(4,e,i,y,void 0,void 0);o=t&&t.value}return lR(o)}s&&rR(r,ua.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),x=!1),b){const{fileName:e,packageId:t}=b;let i,o=e;n.preserveSymlinks||({resolvedFileName:o,originalPath:i}=kR(e,r,s)),v={primary:x,resolvedFileName:o,originalPath:i,packageId:t,isExternalLibraryImport:oM(e)}}return l={resolvedTypeReferenceDirective:v,failedLookupLocations:dR(u),affectingLocations:dR(p),resolutionDiagnostics:dR(h)},c&&o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(c,i).set(e,a,l),ws(e)||o.getOrCreateCacheForNonRelativeName(e,a,i).set(c,l)),s&&k(l),l;function k(t){var n;(null==(n=t.resolvedTypeReferenceDirective)?void 0:n.resolvedFileName)?t.resolvedTypeReferenceDirective.packageId?rR(r,ua.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,t.resolvedTypeReferenceDirective.resolvedFileName,gd(t.resolvedTypeReferenceDirective.packageId),t.resolvedTypeReferenceDirective.primary):rR(r,ua.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,t.resolvedTypeReferenceDirective.resolvedFileName,t.resolvedTypeReferenceDirective.primary):rR(r,ua.Type_reference_directive_0_was_not_resolved,e)}}function CR(e){let t=0;switch(Sk(e)){case 3:t=30;break;case 99:case 100:t=94}return e.resolvePackageJsonExports?t|=8:!1===e.resolvePackageJsonExports&&(t&=-9),e.resolvePackageJsonImports?t|=2:!1===e.resolvePackageJsonImports&&(t&=-3),t}function wR(e,t){const n=Sk(e);if(void 0===t)if(100===n)t=99;else if(2===n)return[];const r=99===t?["import"]:["require"];return e.noDtsResolution||r.push("types"),100!==n&&r.push("node"),$(r,e.customConditions)}function DR(e,t,n,r,i){const o=yM(null==i?void 0:i.getPackageJsonInfoCache(),r,n);return OM(r,t,(t=>{if("node_modules"!==Eo(t)){const n=Ro(t,"node_modules");return kM(Ro(n,e),!1,o)}}))}function NR(e,t){if(!hk(e))return e.types??[];const n=[];if(t.directoryExists&&t.getDirectories){const r=vR(e,t);if(r)for(const e of r)if(t.directoryExists(e))for(const r of t.getDirectories(e)){const i=zo(r),o=Ro(e,i,"package.json");if(!(t.fileExists(o)&&null===Nb(o,t).typings)){const e=Eo(i);46!==e.charCodeAt(0)&&n.push(e)}}}return X(P(e.types.map((e=>"*"===e?n:e))),ft)}function FR(e){return!!(null==e?void 0:e.contents)}function ER(e){return!!e&&!e.contents}function PR(e){var t;if(null===e||"object"!=typeof e)return""+e;if(Xe(e))return`[${null==(t=e.map((e=>PR(e))))?void 0:t.join(",")}]`;let n="{";for(const t in e)De(e,t)&&(n+=`${t}: ${PR(e[t])}`);return n+"}"}function AR(e,t){return t.map((t=>PR(Kk(e,t)))).join("|")+`|${e.pathsBasePath}`}function IR(e,t){const n=new Map,r=new Map;let i=new Map;return e&&n.set(e,i),{getMapOfCacheRedirects:function(e){return e?o(e.commandLine.options,!1):i},getOrCreateMapOfCacheRedirects:function(e){return e?o(e.commandLine.options,!0):i},update:function(t){e!==t&&(e?i=o(t,!0):n.set(t,i),e=t)},clear:function(){const o=e&&t.get(e);i.clear(),n.clear(),t.clear(),r.clear(),e&&(o&&t.set(e,o),n.set(e,i))},getOwnMap:()=>i};function o(t,o){let s=n.get(t);if(s)return s;const c=a(t);if(s=r.get(c),!s){if(e){const t=a(e);t===c?s=i:r.has(t)||r.set(t,i)}o&&(s??(s=new Map)),s&&r.set(c,s)}return s&&n.set(t,s),s}function a(e){let n=t.get(e);return n||t.set(e,n=AR(e,VO)),n}}function OR(e,t,n,r){const i=e.getOrCreateMapOfCacheRedirects(t);let o=i.get(n);return o||(o=r(),i.set(n,o)),o}function LR(e,t){return void 0===t?e:`${t}|${e}`}function jR(){const e=new Map,t=new Map,n={get:(t,n)=>e.get(r(t,n)),set:(t,i,o)=>(e.set(r(t,i),o),n),delete:(t,i)=>(e.delete(r(t,i)),n),has:(t,n)=>e.has(r(t,n)),forEach:n=>e.forEach(((e,r)=>{const[i,o]=t.get(r);return n(e,i,o)})),size:()=>e.size};return n;function r(e,n){const r=LR(e,n);return t.set(r,[e,n]),r}}function RR(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function MR(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function BR(e,t,n,r,i){const o=IR(n,i);return{getFromNonRelativeNameCache:function(e,t,n,r){var i,a;return _n.assert(!ws(e)),null==(a=null==(i=o.getMapOfCacheRedirects(r))?void 0:i.get(LR(e,t)))?void 0:a.get(n)},getOrCreateCacheForNonRelativeName:function(e,t,n){return _n.assert(!ws(e)),OR(o,n,LR(e,t),a)},clear:function(){o.clear()},update:function(e){o.update(e)}};function a(){const n=new Map;return{get:function(r){return n.get(Vo(r,e,t))},set:function(i,o){const a=Vo(i,e,t);if(n.has(a))return;n.set(a,o);const s=r(o),c=s&&function(n,r){const i=Vo(Fo(r),e,t);let o=0;const a=Math.min(n.length,i.length);for(;ojR()))},clear:function(){i.clear()},update:function(e){i.update(e)},directoryToModuleNameMap:i}}(e,t,n,o),s=BR(e,t,n,i,o);return r??(r=function(e,t){let n;return{getPackageJsonInfo:function(r){return null==n?void 0:n.get(Vo(r,e,t))},setPackageJsonInfo:function(r,i){(n||(n=new Map)).set(Vo(r,e,t),i)},clear:function(){n=void 0},getInternalMap:function(){return n}}}(e,t)),{...r,...a,...s,clear:function(){c(),r.clear()},update:function(e){a.update(e),s.update(e)},getPackageJsonInfoCache:()=>r,clearAllExceptPackageJsonInfoCache:c,optionsToRedirectsKey:o};function c(){a.clear(),s.clear()}}function zR(e,t,n,r,i){const o=JR(e,t,n,r,RR,i);return o.getOrCreateCacheForModuleName=(e,t,n)=>o.getOrCreateCacheForNonRelativeName(e,t,n),o}function qR(e,t,n,r,i){return JR(e,t,n,r,MR,i)}function UR(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function VR(e,t,n,r,i){return $R(e,t,UR(n),r,i)}function WR(e,t,n,r){const i=Fo(t);return n.getFromDirectoryCache(e,r,i,void 0)}function $R(e,t,n,r,i,o,a){const s=iR(n,r);o&&(n=o.commandLine.options),s&&(rR(r,ua.Resolving_module_0_from_1,e,t),o&&rR(r,ua.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const c=Fo(t);let l=null==i?void 0:i.getFromDirectoryCache(e,a,c,o);if(l)s&&rR(r,ua.Resolution_for_module_0_was_found_in_cache_from_location_1,e,c);else{let _=n.moduleResolution;switch(void 0===_?(_=Sk(n),s&&rR(r,ua.Module_resolution_kind_is_not_specified_using_0,ci[_])):s&&rR(r,ua.Explicitly_specified_module_resolution_kind_Colon_0,ci[_]),_){case 3:l=function(e,t,n,r,i,o,a){return XR(30,e,t,n,r,i,o,a)}(e,t,n,r,i,o,a);break;case 99:l=function(e,t,n,r,i,o,a){return XR(94,e,t,n,r,i,o,a)}(e,t,n,r,i,o,a);break;case 2:l=YR(e,t,n,r,i,o,a?wR(n,a):void 0);break;case 1:l=WM(e,t,n,r,i,o);break;case 100:l=QR(e,t,n,r,i,o,a?wR(n,a):void 0);break;default:return _n.fail(`Unexpected moduleResolution: ${_}`)}i&&!i.isReadonly&&(i.getOrCreateCacheForDirectory(c,o).set(e,a,l),ws(e)||i.getOrCreateCacheForNonRelativeName(e,a,o).set(c,l))}return s&&(l.resolvedModule?l.resolvedModule.packageId?rR(r,ua.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,l.resolvedModule.resolvedFileName,gd(l.resolvedModule.packageId)):rR(r,ua.Module_name_0_was_successfully_resolved_to_1,e,l.resolvedModule.resolvedFileName):rR(r,ua.Module_name_0_was_not_resolved,e)),l}function HR(e,t,n,r,i){const o=function(e,t,n,r){const{baseUrl:i,paths:o}=r.compilerOptions;if(o&&!bo(t)){r.traceEnabled&&(i&&rR(r.host,ua.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,i,t),rR(r.host,ua.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));return RM(e,t,Gy(r.compilerOptions,r.host),o,QS(o),n,!1,r)}}(e,t,r,i);return o?o.value:ws(t)?function(e,t,n,r,i){if(!i.compilerOptions.rootDirs)return;i.traceEnabled&&rR(i.host,ua.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const o=zo(Ro(n,t));let a,s;for(const e of i.compilerOptions.rootDirs){let t=zo(e);jt(t,_o)||(t+=_o);const n=Kt(o,t)&&(void 0===s||s.length(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.ImportsPatternRoot=64]="ImportsPatternRoot",e[e.AllFeatures=94]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=94]="NodeNextDefault",e[e.BundlerDefault=94]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(GR||{});function XR(e,t,n,r,i,o,a,s,c){const l=Fo(n),_=99===s?32:0;let u=r.noDtsResolution?3:7;return Ek(r)&&(u|=8),eM(e|_,t,l,r,i,o,u,!1,a,c)}function QR(e,t,n,r,i,o,a){const s=Fo(t);let c=n.noDtsResolution?3:7;return Ek(n)&&(c|=8),eM(CR(n),e,s,n,r,i,c,!1,o,a)}function YR(e,t,n,r,i,o,a,s){let c;return s?c=8:n.noDtsResolution?(c=3,Ek(n)&&(c|=8)):c=Ek(n)?15:7,eM(a?94:0,e,Fo(t),n,r,i,c,!!s,o,a)}function ZR(e,t,n){return eM(94,e,Fo(t),{moduleResolution:99},n,void 0,8,!0,void 0,void 0)}function eM(e,t,n,r,i,o,a,c,_,u){var d,p,f,m,g;const y=iR(r,i),v=[],b=[],x=Sk(r);u??(u=wR(r,100===x||2===x?void 0:32&e?99:1));const S=[],T={compilerOptions:r,host:i,traceEnabled:y,failedLookupLocations:v,affectingLocations:b,packageJsonInfoCache:o,features:e,conditions:u??s,requestContainingDirectory:n,reportDiagnostic:e=>{S.push(e)},isConfigLookup:c,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let C,w;if(y&&Jk(x)&&rR(i,ua.Resolving_in_0_mode_with_conditions_1,32&e?"ESM":"CJS",T.conditions.map((e=>`'${e}'`)).join(", ")),2===x){const e=5&a,t=-6&a;C=e&&D(e,T)||t&&D(t,T)||void 0}else C=D(a,T);if(T.resolvedPackageDirectory&&!c&&!ws(t)){const t=(null==C?void 0:C.value)&&5&a&&!TM(5,C.value.resolved.extension);if((null==(d=null==C?void 0:C.value)?void 0:d.isExternalLibraryImport)&&t&&8&e&&(null==u?void 0:u.includes("import"))){XM(T,ua.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const e=D(5&a,{...T,features:-9&T.features,reportDiagnostic:nt});(null==(p=null==e?void 0:e.value)?void 0:p.isExternalLibraryImport)&&(w=e.value.resolved.path)}else if((!(null==C?void 0:C.value)||t)&&2===x){XM(T,ua.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);const e={...T.compilerOptions,moduleResolution:100},t=D(5&a,{...T,compilerOptions:e,features:94,conditions:wR(e),reportDiagnostic:nt});(null==(f=null==t?void 0:t.value)?void 0:f.isExternalLibraryImport)&&(w=t.value.resolved.path)}}return _R(t,null==(m=null==C?void 0:C.value)?void 0:m.resolved,null==(g=null==C?void 0:C.value)?void 0:g.isExternalLibraryImport,v,b,S,T,o,w);function D(r,a){const s=HR(r,t,n,((e,t,n,r)=>rM(e,t,n,r,!0)),a);if(s)return GM({resolved:s,isExternalLibraryImport:oM(s.path)});if(ws(t)){const{path:e,parts:i}=tM(n,t),o=rM(r,e,!1,a,!0);return o&&GM({resolved:o,isExternalLibraryImport:k(i,"node_modules")})}{if(2&e&&Kt(t,"#")){const e=function(e,t,n,r,i,o){var a,s;if("#"===t||Kt(t,"#/")&&!(64&r.features))return r.traceEnabled&&rR(r.host,ua.Invalid_import_specifier_0_has_no_possible_resolutions,t),GM(void 0);const c=Jo(n,null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),l=vM(c,r);if(!l)return r.traceEnabled&&rR(r.host,ua.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,c),GM(void 0);if(!l.contents.packageJsonContent.imports)return r.traceEnabled&&rR(r.host,ua.package_json_scope_0_has_no_imports_defined,l.packageDirectory),GM(void 0);const _=FM(e,r,i,o,t,l.contents.packageJsonContent.imports,l,!0);if(_)return _;r.traceEnabled&&rR(r.host,ua.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,l.packageDirectory);return GM(void 0)}(r,t,n,a,o,_);if(e)return e.value&&{value:{resolved:e.value,isExternalLibraryImport:!1}}}if(4&e){const e=function(e,t,n,r,i,o){var a,s;const c=Jo(n,null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),_=vM(c,r);if(!_||!_.contents.packageJsonContent.exports)return;if("string"!=typeof _.contents.packageJsonContent.name)return;const u=Io(t),d=Io(_.contents.packageJsonContent.name);if(!h(d,((e,t)=>u[t]===e)))return;const p=u.slice(d.length),f=l(p)?`.${_o}${p.join(_o)}`:".";if(Lk(r.compilerOptions)&&!oM(n))return DM(_,e,f,r,i,o);const m=5&e,g=-6&e;return DM(_,m,f,r,i,o)||DM(_,g,f,r,i,o)}(r,t,n,a,o,_);if(e)return e.value&&{value:{resolved:e.value,isExternalLibraryImport:!1}}}if(t.includes(":"))return void(y&&rR(i,ua.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,cR(r)));y&&rR(i,ua.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,cR(r));let s=AM(r,t,n,a,o,_);return 4&r&&(s??(s=$M(t,a))),s&&{value:s.value&&{resolved:s.value,isExternalLibraryImport:!0}}}}}function tM(e,t){const n=Ro(e,t),r=Io(n),i=he(r);return{path:"."===i||".."===i?$o(zo(n)):zo(n),parts:r}}function nM(e,t,n){if(!t.realpath)return e;const r=zo(t.realpath(e));return n&&rR(t,ua.Resolving_real_path_for_0_result_1,e,r),r}function rM(e,t,n,r,i){if(r.traceEnabled&&rR(r.host,ua.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,cR(e)),!Co(t)){if(!n){const e=Fo(t);Eb(e,r.host)||(r.traceEnabled&&rR(r.host,ua.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!0)}const o=lM(e,t,n,r);if(o){const e=i?aM(o.path):void 0;return oR(e?kM(e,!1,r):void 0,o,r)}}if(!n){Eb(t,r.host)||(r.traceEnabled&&rR(r.host,ua.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n=!0)}if(!(32&r.features))return mM(e,t,n,r,i)}var iM="/node_modules/";function oM(e){return e.includes(iM)}function aM(e,t){const n=zo(e),r=n.lastIndexOf(iM);if(-1===r)return;const i=r+iM.length;let o=sM(n,i,t);return 64===n.charCodeAt(i)&&(o=sM(n,o,t)),n.slice(0,o)}function sM(e,t,n){const r=e.indexOf(_o,t+1);return-1===r?n?e.length:t:r}function cM(e,t,n,r){return aR(lM(e,t,n,r))}function lM(e,t,n,r){const i=_M(e,t,n,r);if(i)return i;if(!(32&r.features)){const i=dM(t,e,"",n,r);if(i)return i}}function _M(e,t,n,r){if(!Eo(t).includes("."))return;let i=WS(t);i===t&&(i=t.substring(0,t.lastIndexOf(".")));const o=t.substring(i.length);return r.traceEnabled&&rR(r.host,ua.File_name_0_has_a_1_extension_stripping_it,t,o),dM(i,e,o,n,r)}function uM(e,t,n,r,i){if(1&e&&To(t,AS)||4&e&&To(t,PS)){const e=pM(t,r,i),o=kb(t);return void 0!==e?{path:t,ext:o,resolvedUsingTsExtension:n?!jt(n,o):void 0}:void 0}if(i.isConfigLookup&&8===e&&So(t,".json")){return void 0!==pM(t,r,i)?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0}return _M(e,t,r,i)}function dM(e,t,n,r,i){if(!r){const t=Fo(e);t&&(r=!Eb(t,i.host))}switch(n){case".mjs":case".mts":case".d.mts":return 1&t&&o(".mts",".mts"===n||".d.mts"===n)||4&t&&o(".d.mts",".mts"===n||".d.mts"===n)||2&t&&o(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return 1&t&&o(".cts",".cts"===n||".d.cts"===n)||4&t&&o(".d.cts",".cts"===n||".d.cts"===n)||2&t&&o(".cjs")||void 0;case".json":return 4&t&&o(".d.json.ts")||8&t&&o(".json")||void 0;case".tsx":case".jsx":return 1&t&&(o(".tsx",".tsx"===n)||o(".ts",".tsx"===n))||4&t&&o(".d.ts",".tsx"===n)||2&t&&(o(".jsx")||o(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return 1&t&&(o(".ts",".ts"===n||".d.ts"===n)||o(".tsx",".ts"===n||".d.ts"===n))||4&t&&o(".d.ts",".ts"===n||".d.ts"===n)||2&t&&(o(".js")||o(".jsx"))||i.isConfigLookup&&o(".json")||void 0;default:return 4&t&&!yO(e+n)&&o(`.d${n}.ts`)||void 0}function o(t,n){const o=pM(e+t,r,i);return void 0===o?void 0:{path:o,ext:t,resolvedUsingTsExtension:!i.candidateIsFromPackageJsonField&&n}}}function pM(e,t,n){var r;if(!(null==(r=n.compilerOptions.moduleSuffixes)?void 0:r.length))return fM(e,t,n);const i=rT(e)??"",o=i?HS(e,i):e;return _(n.compilerOptions.moduleSuffixes,(e=>fM(o+e+i,t,n)))}function fM(e,t,n){var r;if(!t){if(n.host.fileExists(e))return n.traceEnabled&&rR(n.host,ua.File_0_exists_use_it_as_a_name_resolution_result,e),e;n.traceEnabled&&rR(n.host,ua.File_0_does_not_exist,e)}null==(r=n.failedLookupLocations)||r.push(e)}function mM(e,t,n,r,i=!0){const o=i?kM(t,n,r):void 0;return oR(o,SM(e,t,n,r,o),r)}function gM(e,t,n,r,i){if(!i&&void 0!==e.contents.resolvedEntrypoints)return e.contents.resolvedEntrypoints;let o;const a=5|(i?2:0),s=CR(t),c=yM(null==r?void 0:r.getPackageJsonInfoCache(),n,t);c.conditions=wR(t),c.requestContainingDirectory=e.packageDirectory;const l=SM(a,e.packageDirectory,!1,c,e);if(o=re(o,null==l?void 0:l.path),8&s&&e.contents.packageJsonContent.exports){const r=X([wR(t,99),wR(t,1)],ee);for(const t of r){const r={...c,failedLookupLocations:[],conditions:t,host:n},i=hM(e,e.contents.packageJsonContent.exports,r,a);if(i)for(const e of i)o=ce(o,e.path)}}return e.contents.resolvedEntrypoints=o||!1}function hM(e,t,n,r){let i;if(Xe(t))for(const e of t)o(e);else if("object"==typeof t&&null!==t&&wM(t))for(const e in t)o(t[e]);else o(t);return i;function o(t){var a,s;if("string"==typeof t&&Kt(t,"./"))if(t.includes("*")&&n.host.readDirectory){if(t.indexOf("*")!==t.lastIndexOf("*"))return!1;n.host.readDirectory(e.packageDirectory,function(e){const t=[];return 1&e&&t.push(...AS),2&e&&t.push(...NS),4&e&&t.push(...PS),8&e&&t.push(".json"),t}(r),void 0,[Go(fC(t,"**/*"),".*")]).forEach((e=>{i=ce(i,{path:e,ext:Ao(e),resolvedUsingTsExtension:void 0})}))}else{const o=Io(t).slice(2);if(o.includes("..")||o.includes(".")||o.includes("node_modules"))return!1;const c=Jo(Ro(e.packageDirectory,t),null==(s=(a=n.host).getCurrentDirectory)?void 0:s.call(a)),l=uM(r,c,t,!1,n);if(l)return i=ce(i,l,((e,t)=>e.path===t.path)),!0}else if(Array.isArray(t))for(const e of t){if(o(e))return!0}else if("object"==typeof t&&null!==t)return _(Fe(t),(e=>{if("default"===e||k(n.conditions,e)||PM(n.conditions,e))return o(t[e]),!0}))}}function yM(e,t,n){return{host:t,compilerOptions:n,traceEnabled:iR(n,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:s,requestContainingDirectory:void 0,reportDiagnostic:nt,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function vM(e,t){return OM(t.host,e,(e=>kM(e,!1,t)))}function bM(e,t){return void 0===e.contents.versionPaths&&(e.contents.versionPaths=hR(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function xM(e,t){return void 0===e.contents.peerDependencies&&(e.contents.peerDependencies=function(e,t){const n=mR(e.contents.packageJsonContent,"peerDependencies","object",t);if(void 0===n)return;t.traceEnabled&&rR(t.host,ua.package_json_has_a_peerDependencies_field);const r=nM(e.packageDirectory,t.host,t.traceEnabled),i=r.substring(0,r.lastIndexOf("node_modules")+12)+_o;let o="";for(const e in n)if(De(n,e)){const n=kM(i+e,!1,t);if(n){const r=n.contents.packageJsonContent.version;o+=`+${e}@${r}`,t.traceEnabled&&rR(t.host,ua.Found_peerDependency_0_with_1_version,e,r)}else t.traceEnabled&&rR(t.host,ua.Failed_to_find_peerDependency_0,e)}return o}(e,t)||!1),e.contents.peerDependencies||void 0}function kM(e,t,n){var r,i,o,a,s,c;const{host:l,traceEnabled:_}=n,u=Ro(e,"package.json");if(t)return void(null==(r=n.failedLookupLocations)||r.push(u));const d=null==(i=n.packageJsonInfoCache)?void 0:i.getPackageJsonInfo(u);if(void 0!==d)return FR(d)?(_&&rR(l,ua.File_0_exists_according_to_earlier_cached_lookups,u),null==(o=n.affectingLocations)||o.push(u),d.packageDirectory===e?d:{packageDirectory:e,contents:d.contents}):(d.directoryExists&&_&&rR(l,ua.File_0_does_not_exist_according_to_earlier_cached_lookups,u),void(null==(a=n.failedLookupLocations)||a.push(u)));const p=Eb(e,l);if(p&&l.fileExists(u)){const t=Nb(u,l);_&&rR(l,ua.Found_package_json_at_0,u);const r={packageDirectory:e,contents:{packageJsonContent:t,versionPaths:void 0,resolvedEntrypoints:void 0,peerDependencies:void 0}};return n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(u,r),null==(s=n.affectingLocations)||s.push(u),r}p&&_&&rR(l,ua.File_0_does_not_exist,u),n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(u,{packageDirectory:e,directoryExists:p}),null==(c=n.failedLookupLocations)||c.push(u)}function SM(e,t,n,r,i){const a=i&&bM(i,r);let s;i&&xR(null==i?void 0:i.packageDirectory,t,r.host)&&(s=r.isConfigLookup?function(e,t,n){return gR(e,"tsconfig",t,n)}(i.contents.packageJsonContent,i.packageDirectory,r):4&e&&function(e,t,n){return gR(e,"typings",t,n)||gR(e,"types",t,n)}(i.contents.packageJsonContent,i.packageDirectory,r)||7&e&&function(e,t,n){return gR(e,"main",t,n)}(i.contents.packageJsonContent,i.packageDirectory,r)||void 0);const c=(e,t,n,r)=>{const o=uM(e,t,void 0,n,r);if(o)return aR(o);const a=4===e?5:e,s=r.features,c=r.candidateIsFromPackageJsonField;r.candidateIsFromPackageJsonField=!0,"module"!==(null==i?void 0:i.contents.packageJsonContent.type)&&(r.features&=-33);const l=rM(a,t,n,r,!1);return r.features=s,r.candidateIsFromPackageJsonField=c,l},l=s?!Eb(Fo(s),r.host):void 0,_=n||!Eb(t,r.host),u=Ro(t,r.isConfigLookup?"tsconfig":"index");if(a&&(!s||ta(t,s))){const n=ia(t,s||u,!1);r.traceEnabled&&rR(r.host,ua.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,a.version,o,n);const i=QS(a.paths),d=RM(e,n,t,a.paths,i,c,l||_,r);if(d)return sR(d.value)}const d=s&&sR(c(e,s,l,r));return d||(32&r.features?void 0:lM(e,u,_,r))}function TM(e,t){return 2&e&&(".js"===t||".jsx"===t||".mjs"===t||".cjs"===t)||1&e&&(".ts"===t||".tsx"===t||".mts"===t||".cts"===t)||4&e&&(".d.ts"===t||".d.mts"===t||".d.cts"===t)||8&e&&".json"===t||!1}function CM(e){let t=e.indexOf(_o);return"@"===e[0]&&(t=e.indexOf(_o,t+1)),-1===t?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function wM(e){return h(Fe(e),(e=>Kt(e,".")))}function DM(e,t,n,r,i,o){if(e.contents.packageJsonContent.exports){if("."===n){let a;if("string"==typeof e.contents.packageJsonContent.exports||Array.isArray(e.contents.packageJsonContent.exports)||"object"==typeof e.contents.packageJsonContent.exports&&!V(Fe(e.contents.packageJsonContent.exports),(e=>Kt(e,".")))?a=e.contents.packageJsonContent.exports:De(e.contents.packageJsonContent.exports,".")&&(a=e.contents.packageJsonContent.exports["."]),a){return EM(t,r,i,o,n,e,!1)(a,"",!1,".")}}else if(wM(e.contents.packageJsonContent.exports)){if("object"!=typeof e.contents.packageJsonContent.exports)return r.traceEnabled&&rR(r.host,ua.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),GM(void 0);const a=FM(t,r,i,o,n,e.contents.packageJsonContent.exports,e,!1);if(a)return a}return r.traceEnabled&&rR(r.host,ua.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),GM(void 0)}}function NM(e,t){const n=e.indexOf("*"),r=t.indexOf("*"),i=-1===n?e.length:n+1,o=-1===r?t.length:r+1;return i>o?-1:o>i||-1===n?1:-1===r||e.length>t.length?-1:t.length>e.length?1:0}function FM(e,t,n,r,i,o,a,s){const c=EM(e,t,n,r,i,a,s);if(!jt(i,_o)&&!i.includes("*")&&De(o,i)){return c(o[i],"",!1,i)}const l=le(C(Fe(o),(e=>function(e){const t=e.indexOf("*");return-1!==t&&t===e.lastIndexOf("*")}(e)||jt(e,"/"))),NM);for(const e of l){if(16&t.features&&_(e,i)){const t=o[e],n=e.indexOf("*");return c(t,i.substring(e.substring(0,n).length,i.length-(e.length-1-n)),!0,e)}if(jt(e,"*")&&Kt(i,e.substring(0,e.length-1))){return c(o[e],i.substring(e.length-1),!0,e)}if(Kt(i,e)){return c(o[e],i.substring(e.length),!1,e)}}function _(e,t){if(jt(e,"*"))return!1;const n=e.indexOf("*");return-1!==n&&(Kt(t,e.substring(0,n))&&jt(t,e.substring(n+1)))}}function EM(e,t,n,r,i,o,a){return function c(_,u,d,p){var f,m;if("string"==typeof _){if(!d&&u.length>0&&!jt(_,"/"))return t.traceEnabled&&rR(t.host,ua.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),GM(void 0);if(!Kt(_,"./")){if(a&&!Kt(_,"../")&&!Kt(_,"/")&&!ho(_)){const i=d?_.replace(/\*/g,u):_+u;XM(t,ua.Using_0_subpath_1_with_target_2,"imports",p,i),XM(t,ua.Resolving_module_0_from_1,i,o.packageDirectory+"/");const a=eM(t.features,i,o.packageDirectory+"/",t.compilerOptions,t.host,n,e,!1,r,t.conditions);return null==(f=t.failedLookupLocations)||f.push(...a.failedLookupLocations??s),null==(m=t.affectingLocations)||m.push(...a.affectingLocations??s),GM(a.resolvedModule?{path:a.resolvedModule.resolvedFileName,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,originalPath:a.resolvedModule.originalPath,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&rR(t.host,ua.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),GM(void 0)}const c=(bo(_)?Io(_).slice(1):Io(_)).slice(1);if(c.includes("..")||c.includes(".")||c.includes("node_modules"))return t.traceEnabled&&rR(t.host,ua.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),GM(void 0);const l=Ro(o.packageDirectory,_),y=Io(u);if(y.includes("..")||y.includes(".")||y.includes("node_modules"))return t.traceEnabled&&rR(t.host,ua.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),GM(void 0);t.traceEnabled&&rR(t.host,ua.Using_0_subpath_1_with_target_2,a?"imports":"exports",p,d?_.replace(/\*/g,u):_+u);const v=g(d?l.replace(/\*/g,u):l+u),b=function(n,r,i,a){var s,c,l,_;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!n.includes("/node_modules/")&&(!t.compilerOptions.configFile||ta(o.packageDirectory,g(t.compilerOptions.configFile.fileName),!QM(t)))){const d=My({useCaseSensitiveFileNames:()=>QM(t)}),p=[];if(t.compilerOptions.rootDir||t.compilerOptions.configFilePath){const e=g(mU(t.compilerOptions,(()=>[]),(null==(c=(s=t.host).getCurrentDirectory)?void 0:c.call(s))||"",d));p.push(e)}else if(t.requestContainingDirectory){const e=g(Ro(t.requestContainingDirectory,"index.ts")),n=g(mU(t.compilerOptions,(()=>[e,g(i)]),(null==(_=(l=t.host).getCurrentDirectory)?void 0:_.call(l))||"",d));p.push(n);let r=$o(n);for(;r&&r.length>1;){const e=Io(r);e.pop();const t=Oo(e);p.unshift(t),r=$o(t)}}p.length>1&&t.reportDiagnostic(Zx(a?ua.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:ua.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,""===r?".":r,i));for(const r of p){const i=u(r);for(const a of i)if(ta(a,n,!QM(t))){const i=Ro(r,n.slice(a.length+1)),s=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const n of s)if(So(i,n)){const r=Hy(i);for(const a of r){if(!TM(e,a))continue;const r=Ko(i,a,n,!QM(t));if(t.host.fileExists(r))return GM(oR(o,uM(e,r,void 0,!1,t),t))}}}}}return;function u(e){var n,r;const i=t.compilerOptions.configFile?(null==(r=(n=t.host).getCurrentDirectory)?void 0:r.call(n))||"":e,o=[];return t.compilerOptions.declarationDir&&o.push(g(h(i,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&o.push(g(h(i,t.compilerOptions.outDir))),o}}(v,u,Ro(o.packageDirectory,"package.json"),a);return b||GM(oR(o,uM(e,v,_,!1,t),t))}if("object"==typeof _&&null!==_){if(!Array.isArray(_)){XM(t,ua.Entering_conditional_exports);for(const e of Fe(_))if("default"===e||t.conditions.includes(e)||PM(t.conditions,e)){XM(t,ua.Matched_0_condition_1,a?"imports":"exports",e);const n=_[e],r=c(n,u,d,p);if(r)return r.value&&XM(t,ua.Resolved_under_condition_0,e),XM(t,ua.Exiting_conditional_exports),r;XM(t,ua.Failed_to_resolve_under_condition_0,e)}else XM(t,ua.Saw_non_matching_condition_0,e);return void XM(t,ua.Exiting_conditional_exports)}if(!l(_))return t.traceEnabled&&rR(t.host,ua.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),GM(void 0);for(const e of _){const t=c(e,u,d,p);if(t)return t}}else if(null===_)return t.traceEnabled&&rR(t.host,ua.package_json_scope_0_explicitly_maps_specifier_1_to_null,o.packageDirectory,i),{value:void 0};t.traceEnabled&&rR(t.host,ua.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i);return GM(void 0);function g(e){var n,r;return void 0===e?e:Jo(e,null==(r=(n=t.host).getCurrentDirectory)?void 0:r.call(n))}function h(e,t){return $o(Ro(e,t))}}}function PM(e,t){if(!e.includes("types"))return!1;if(!Kt(t,"types@"))return!1;const n=xn.tryParse(t.substring(6));return!!n&&n.test(o)}function AM(e,t,n,r,i,o){return IM(e,t,n,r,!1,i,o)}function IM(e,t,n,r,i,o,a){const s=0===r.features?void 0:32&r.features||r.conditions.includes("import")?99:1,c=5&e,l=-6&e;if(c){XM(r,ua.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,cR(c));const e=_(c);if(e)return e}if(l&&!i)return XM(r,ua.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,cR(l)),_(l);function _(e){return OM(r.host,Lo(n),(n=>{if("node_modules"!==Eo(n)){const c=VM(o,t,s,n,a,r);return c||GM(LM(e,t,n,r,i,o,a))}}))}}function OM(e,t,n){var r;const i=null==(r=null==e?void 0:e.getGlobalTypingsCacheLocation)?void 0:r.call(e);return ca(t,(e=>{const t=n(e);return void 0!==t?t:e!==i&&void 0}))||void 0}function LM(e,t,n,r,i,o,a){const s=Ro(n,"node_modules"),c=Eb(s,r.host);if(!c&&r.traceEnabled&&rR(r.host,ua.Directory_0_does_not_exist_skipping_all_lookups_in_it,s),!i){const n=jM(e,t,s,c,r,o,a);if(n)return n}if(4&e){const e=Ro(s,"@types");let n=c;return c&&!Eb(e,r.host)&&(r.traceEnabled&&rR(r.host,ua.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!1),jM(4,BM(t,r),e,n,r,o,a)}}function jM(e,t,n,r,i,a,c){var l,_;const u=zo(Ro(n,t)),{packageName:d,rest:p}=CM(t),f=Ro(n,d);let m,g=kM(u,!r,i);if(""!==p&&g&&(!(8&i.features)||!De((null==(l=m=kM(f,!r,i))?void 0:l.contents.packageJsonContent)??s,"exports"))){const t=lM(e,u,!r,i);if(t)return aR(t);const n=SM(e,u,!r,i,g);return oR(g,n,i)}const h=(e,t,n,r)=>{let i=(p||!(32&r.features))&&lM(e,t,n,r)||SM(e,t,n,r,g);return!i&&!p&&g&&(void 0===g.contents.packageJsonContent.exports||null===g.contents.packageJsonContent.exports)&&32&r.features&&(i=lM(e,Ro(t,"index.js"),n,r)),oR(g,i,r)};if(""!==p&&(g=m??kM(f,!r,i)),g&&(i.resolvedPackageDirectory=!0),g&&g.contents.packageJsonContent.exports&&8&i.features)return null==(_=DM(g,e,Ro(".",p),i,a,c))?void 0:_.value;const y=""!==p&&g?bM(g,i):void 0;if(y){i.traceEnabled&&rR(i.host,ua.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,y.version,o,p);const t=r&&Eb(f,i.host),n=QS(y.paths),a=RM(e,p,f,y.paths,n,h,!t,i);if(a)return a.value}return h(e,u,!r,i)}function RM(e,t,n,r,i,o,a,s){const c=aT(i,t);if(c){const i=Ye(c)?void 0:$t(c,t),l=Ye(c)?c:Wt(c);s.traceEnabled&&rR(s.host,ua.Module_name_0_matched_pattern_1,t,l);return{value:_(r[l],(t=>{const r=i?fC(t,i):t,c=zo(Ro(n,r));s.traceEnabled&&rR(s.host,ua.Trying_substitution_0_candidate_module_location_Colon_1,t,r);const l=rT(t);if(void 0!==l){const e=pM(c,a,s);if(void 0!==e)return aR({path:e,ext:l,resolvedUsingTsExtension:void 0})}return o(e,c,a||!Eb(Fo(c),s.host),s)}))}}}var MM="__";function BM(e,t){const n=zM(e);return t.traceEnabled&&n!==e&&rR(t.host,ua.Scoped_package_detected_looking_in_0,n),n}function JM(e){return`@types/${zM(e)}`}function zM(e){if(Kt(e,"@")){const t=e.replace(_o,MM);if(t!==e)return t.slice(1)}return e}function qM(e){const t=Gt(e,"@types/");return t!==e?UM(t):e}function UM(e){return e.includes(MM)?"@"+e.replace(MM,_o):e}function VM(e,t,n,r,i,o){const a=e&&e.getFromNonRelativeNameCache(t,n,r,i);if(a)return o.traceEnabled&&rR(o.host,ua.Resolution_for_module_0_was_found_in_cache_from_location_1,t,r),o.resultFromCache=a,{value:a.resolvedModule&&{path:a.resolvedModule.resolvedFileName,originalPath:a.resolvedModule.originalPath||!0,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}}}function WM(e,t,n,r,i,o){const a=iR(n,r),s=[],c=[],l=Fo(t),_=[],u={compilerOptions:n,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:i,features:0,conditions:[],requestContainingDirectory:l,reportDiagnostic:e=>{_.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},d=p(5)||p(2|(n.resolveJsonModule?8:0));return _R(e,d&&d.value,(null==d?void 0:d.value)&&oM(d.value.path),s,c,_,u,i);function p(t){const n=HR(t,e,l,cM,u);if(n)return{value:n};if(ws(e)){const n=zo(Ro(l,e));return GM(cM(t,n,!1,u))}{const n=OM(u.host,l,(n=>{const r=VM(i,e,void 0,n,o,u);if(r)return r;const a=zo(Ro(n,e));return GM(cM(t,a,!1,u))}));if(n)return n;if(5&t){let n=function(e,t,n){return IM(4,e,t,n,!0,void 0,void 0)}(e,l,u);return 4&t&&(n??(n=$M(e,u))),n}}}}function $M(e,t){if(t.compilerOptions.typeRoots)for(const n of t.compilerOptions.typeRoots){const r=SR(n,e,t),i=Eb(n,t.host);!i&&t.traceEnabled&&rR(t.host,ua.Directory_0_does_not_exist_skipping_all_lookups_in_it,n);const o=lM(4,r,!i,t);if(o){const e=aM(o.path);return GM(oR(e?kM(e,!1,t):void 0,o,t))}const a=mM(4,r,!i,t);if(a)return GM(a)}}function HM(e,t){return bk(e)||!!t&&yO(t)}function KM(e,t,n,r,i,o){const a=iR(n,r);a&&rR(r,ua.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,i);const s=[],c=[],l=[],_={compilerOptions:n,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:e=>{l.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};return uR(LM(4,e,i,_,!1,void 0,void 0),!0,s,c,l,_.resultFromCache,void 0)}function GM(e){return void 0!==e?{value:e}:void 0}function XM(e,t,...n){e.traceEnabled&&rR(e.host,t,...n)}function QM(e){return!e.host.useCaseSensitiveFileNames||("boolean"==typeof e.host.useCaseSensitiveFileNames?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames())}var YM=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(YM||{});function ZM(e,t){return e.body&&!e.body.parent&&(ET(e.body,e),PT(e.body,!1)),e.body?eB(e.body,t):1}function eB(e,t=new Map){const n=cJ(e);if(t.has(n))return t.get(n)||0;t.set(n,void 0);const r=function(e,t){switch(e.kind){case 265:case 266:return 0;case 267:if(tf(e))return 2;break;case 273:case 272:if(!Fv(e,32))return 0;break;case 279:const n=e;if(!n.moduleSpecifier&&n.exportClause&&280===n.exportClause.kind){let e=0;for(const r of n.exportClause.elements){const n=tB(r,t);if(n>e&&(e=n),1===e)return e}return e}break;case 269:{let n=0;return rO(e,(e=>{const r=eB(e,t);switch(r){case 0:return;case 2:return void(n=2);case 1:return n=1,!0;default:_n.assertNever(r)}})),n}case 268:return ZM(e,t);case 80:if(4096&e.flags)return 0}return 1}(e,t);return t.set(n,r),r}function tB(e,t){const n=e.propertyName||e.name;if(80!==n.kind)return 1;let r=e.parent;for(;r;){if(KF(r)||xE(r)||uP(r)){const e=r.statements;let i;for(const o of e)if(kc(o,n)){o.parent||(ET(o,r),PT(o,!1));const e=eB(o,t);if((void 0===i||e>i)&&(i=e),1===i)return i;272===o.kind&&(i=1)}if(void 0!==i)return i}r=r.parent}return 1}var nB=(e=>(e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e[e.PropagatesThisKeyword=256]="PropagatesThisKeyword",e))(nB||{});function rB(e,t,n){return _n.attachFlowNodeDebugInfo({flags:e,id:0,node:t,antecedent:n})}var iB=aB();function oB(e,t){er("beforeBind"),iB(e,t),er("afterBind"),tr("Bind","beforeBind","afterBind")}function aB(){var e,t,n,r,i,o,a,s,c,u,d,p,f,m,g,y,v,b,x,S,T,C,w,D,N,F,E,P=!1,A=0,I=rB(1,void 0,void 0),O=function(){return fI((function(e,t){if(t){t.stackIndex++,ET(e,r);const n=N;qe(e);const i=r;r=e,t.skip=!1,t.inStrictModeStack[t.stackIndex]=n,t.parentStack[t.stackIndex]=i}else t={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};const n=e.operatorToken.kind;if(eb(n)||Yv(n)){if(de(e)){const t=Z(),n=p,r=w;w=!1,xe(e,t,t),p=w?_e(t):n,w||(w=r)}else xe(e,y,v);t.skip=!0}return t}),(function(t,n,r){if(!n.skip){const n=e(t);return 28===r.operatorToken.kind&&ye(t),n}}),(function(e,t,n){t.skip||Me(e)}),(function(t,n,r){if(!n.skip){const n=e(t);return 28===r.operatorToken.kind&&ye(t),n}}),(function(e,t){if(!t.skip){const t=e.operatorToken.kind;if(nb(t)&&!Yg(e)&&(be(e.left),64===t&&213===e.left.kind)){Y(e.left.expression)&&(p=se(256,p,e))}}const n=t.inStrictModeStack[t.stackIndex],i=t.parentStack[t.stackIndex];void 0!==n&&(N=n);void 0!==i&&(r=i);t.skip=!1,t.stackIndex--}),void 0);function e(e){if(e&&PF(e)&&!ab(e))return e;Me(e)}}();return function(l,_){var h,x;e=l,n=xk(t=_),N=function(e,t){return!(!Rk(t)||e.isDeclarationFile)||!!e.externalModuleIndicator}(e,_),E=new Set,A=0,F=Bx.getSymbolConstructor(),_n.attachFlowNodeDebugInfo(I),e.locals||(null==(h=$n)||h.push($n.Phase.Bind,"bindSourceFile",{path:e.path},!0),Me(e),null==(x=$n)||x.pop(),e.symbolCount=A,e.classifiableNames=E,function(){if(!c)return;const t=i,n=s,o=a,l=r,_=p;for(const t of c){const n=t.parent.parent;i=Fp(n)||e,a=Ep(n)||e,p=rB(2,void 0,void 0),r=t,Me(t.typeExpression);const o=wc(t);if((qP(t)||!t.fullName)&&o&&ub(o.parent)){const n=rt(o.parent);if(n){Ze(e.symbol,o.parent,n,!!dc(o,(e=>gF(e)&&"prototype"===e.name.escapedText)),!1);const r=i;switch(dg(o.parent)){case 1:case 2:i=Zp(e)?e:void 0;break;case 4:i=o.parent.expression;break;case 3:i=o.parent.expression.name;break;case 5:i=sB(e,o.parent.expression)?e:gF(o.parent.expression)?o.parent.expression.name:o.parent.expression;break;case 0:return _n.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}i&&z(t,524288,788968),i=r}}else qP(t)||!t.fullName||80===t.fullName.kind?(r=t.parent,Ae(t,524288,788968)):Me(t.fullName)}i=t,s=n,a=o,r=l,p=_}(),function(){if(void 0===d)return;const t=i,n=s,o=a,c=r,l=p;for(const t of d){const n=Wg(t),o=n?Fp(n):void 0,s=n?Ep(n):void 0;i=o||e,a=s||e,p=rB(2,void 0,void 0),r=t,Me(t.importClause)}i=t,s=n,a=o,r=c,p=l}());e=void 0,t=void 0,n=void 0,r=void 0,i=void 0,o=void 0,a=void 0,s=void 0,c=void 0,d=void 0,u=!1,p=void 0,f=void 0,m=void 0,g=void 0,y=void 0,v=void 0,b=void 0,S=void 0,T=!1,C=!1,w=!1,P=!1,D=0};function L(t,n,...r){return Jp(bd(t)||e,t,n,...r)}function j(e,t){return A++,new F(e,t)}function R(e,t,n){e.flags|=n,t.symbol=e,e.declarations=ce(e.declarations,t),1955&n&&!e.exports&&(e.exports=Xu()),6240&n&&!e.members&&(e.members=Xu()),e.constEnumOnlyModule&&304&e.flags&&(e.constEnumOnlyModule=!1),111551&n&&gg(e,t)}function M(e){if(278===e.kind)return e.isExportEquals?"export=":"default";const t=wc(e);if(t){if(cp(e)){const n=Uh(t);return pp(e)?"__global":`"${n}"`}if(168===t.kind){const e=t.expression;if(Rh(e))return mc(e.text);if(Mh(e))return Ea(e.operator)+e.operand.text;_n.fail("Only computed properties with literal names have declaration names")}if(uN(t)){const n=Xf(e);if(!n)return;return Wh(n.symbol,t.escapedText)}return nP(t)?aC(t):qh(t)?Vh(t):void 0}switch(e.kind){case 177:return"__constructor";case 185:case 180:case 324:return"__call";case 186:case 181:return"__new";case 182:return"__index";case 279:return"__export";case 308:return"export=";case 227:if(2===ng(e))return"export=";_n.fail("Unknown binary declaration kind");break;case 318:return Ng(e)?"__new":"__call";case 170:_n.assert(318===e.parent.kind,"Impossible parameter parent kind",(()=>`parent is: ${_n.formatSyntaxKind(e.parent.kind)}, expected JSDocFunctionType`));return"arg"+e.parent.parameters.indexOf(e)}}function B(e){return Tc(e)?Ap(e.name):gc(_n.checkDefined(M(e)))}function J(t,n,r,i,o,a,s){_n.assert(s||!Bh(r));const c=Fv(r,2048)||BE(r)&&Kd(r.name),u=s?"__computed":c&&n?"default":M(r);let d;if(void 0===u)d=j(0,"__missing");else if(d=t.get(u),2885600&i&&E.add(u),d){if(a&&!d.isReplaceableByMethod)return d;if(d.flags&o)if(d.isReplaceableByMethod)t.set(u,d=j(0,u));else if(!(3&i&&67108864&d.flags)){Tc(r)&&ET(r.name,r);let t=2&d.flags?ua.Cannot_redeclare_block_scoped_variable_0:ua.Duplicate_identifier_0,n=!0;(384&d.flags||384&i)&&(t=ua.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,n=!1);let o=!1;l(d.declarations)&&(c||d.declarations&&d.declarations.length&&278===r.kind&&!r.isExportEquals)&&(t=ua.A_module_cannot_have_multiple_default_exports,n=!1,o=!0);const a=[];yE(r)&&Nd(r.type)&&Fv(r,32)&&2887656&d.flags&&a.push(L(r,ua.Did_you_mean_0,`export type { ${gc(r.name.escapedText)} }`));const s=wc(r)||r;_(d.declarations,((r,i)=>{const c=wc(r)||r,l=n?L(c,t,B(r)):L(c,t);e.bindDiagnostics.push(o?cT(l,L(s,0===i?ua.Another_export_default_is_here:ua.and_here)):l),o&&a.push(L(c,ua.The_first_export_default_is_here))}));const p=n?L(s,t,B(r)):L(s,t);e.bindDiagnostics.push(cT(p,...a)),d=j(0,u)}}else t.set(u,d=j(0,u)),a&&(d.isReplaceableByMethod=!0);return R(d,r,i),d.parent?_n.assert(d.parent===n,"Existing symbol parent should match new one"):d.parent=n,d}function z(e,t,n){const r=!!(32&oc(e))||function(e){e.parent&&bE(e)&&(e=e.parent);if(!Fg(e))return!1;if(!qP(e)&&e.fullName)return!0;const t=wc(e);return!!t&&(!(!ub(t.parent)||!rt(t.parent))||!!(uu(t.parent)&&32&oc(t.parent)))}(e);if(2097152&t)return 282===e.kind||272===e.kind&&r?J(i.symbol.exports,i.symbol,e,t,n):(_n.assertNode(i,cu),J(i.locals,void 0,e,t,n));if(Fg(e)&&_n.assert(Em(e)),!cp(e)&&(r||128&i.flags)){if(!cu(i)||!i.locals||Fv(e,2048)&&!M(e))return J(i.symbol.exports,i.symbol,e,t,n);const r=111551&t?1048576:0,o=J(i.locals,void 0,e,r,n);return o.exportSymbol=J(i.symbol.exports,i.symbol,e,t,n),e.localSymbol=o,o}return _n.assertNode(i,cu),J(i.locals,void 0,e,t,n)}function q(e){U(e,(e=>263===e.kind?Me(e):void 0)),U(e,(e=>263!==e.kind?Me(e):void 0))}function U(e,t=Me){void 0!==e&&_(e,t)}function W(e){rO(e,Me,U)}function H(e){const n=P;if(P=!1,QC(e)&&(e.flags&=-1073741825),p===I)return Lg(e)&&(e.flowNode=void 0),QC(e)&&(e.flags|=1073741824),W(e),Be(e),void(P=n);switch(244<=e.kind&&e.kind<=260&&Lg(e)&&(e.flowNode=p),e.kind){case 248:!function(e){const t=ge(e,ee()),n=Z(),r=Z();ie(t,p),p=t,fe(e.expression,n,r),p=_e(n),me(e.statement,r,t),ie(t,p),p=_e(r)}(e);break;case 247:!function(e){const t=ee(),n=ge(e,Z()),r=Z();ie(t,p),p=t,me(e.statement,r,n),ie(n,p),p=_e(n),fe(e.expression,t,r),p=_e(r)}(e);break;case 249:!function(e){const t=ge(e,ee()),n=Z(),r=Z(),i=Z();Me(e.initializer),ie(t,p),p=t,fe(e.condition,n,i),p=_e(n),me(e.statement,i,r),ie(r,p),p=_e(r),Me(e.incrementor),ie(t,p),p=_e(i)}(e);break;case 250:case 251:!function(e){const t=ge(e,ee()),n=Z();Me(e.expression),ie(t,p),p=t,251===e.kind&&Me(e.awaitModifier);ie(n,p),Me(e.initializer),262!==e.initializer.kind&&be(e.initializer);me(e.statement,n,t),ie(t,p),p=_e(n)}(e);break;case 246:!function(e){const t=Z(),n=Z(),r=Z();fe(e.expression,t,n),p=_e(t),Me(e.thenStatement),ie(r,p),p=_e(n),Me(e.elseStatement),ie(r,p),p=_e(r)}(e);break;case 254:case 258:!function(e){const t=C;C=!0,Me(e.expression),C=t,254===e.kind&&(T=!0,g&&ie(g,p));p=I,w=!0}(e);break;case 253:case 252:!function(e){if(Me(e.label),e.label){const t=function(e){for(let t=S;t;t=t.next)if(t.name===e)return t;return}(e.label.escapedText);t&&(t.referenced=!0,he(e,t.breakTarget,t.continueTarget))}else he(e,f,m)}(e);break;case 259:!function(e){const t=g,n=b,r=Z(),i=Z();let o=Z();e.finallyBlock&&(g=i);ie(o,p),b=o,Me(e.tryBlock),ie(r,p),e.catchClause&&(p=_e(o),o=Z(),ie(o,p),b=o,Me(e.catchClause),ie(r,p));if(g=t,b=n,e.finallyBlock){const t=Z();t.antecedent=$($(r.antecedent,o.antecedent),i.antecedent),p=t,Me(e.finallyBlock),1&p.flags?p=I:(g&&i.antecedent&&ie(g,te(t,i.antecedent,p)),b&&o.antecedent&&ie(b,te(t,o.antecedent,p)),p=r.antecedent?te(t,r.antecedent,p):I)}else p=_e(r)}(e);break;case 256:!function(e){const t=Z();Me(e.expression);const n=f,r=x;f=t,x=p,Me(e.caseBlock),ie(t,p);const i=_(e.caseBlock.clauses,(e=>298===e.kind));e.possiblyExhaustive=!i&&!t.antecedent,i||ie(t,ae(x,e,0,0));f=n,x=r,p=_e(t)}(e);break;case 270:!function(e){const n=e.clauses,r=112===e.parent.expression.kind||K(e.parent.expression);let i=I;for(let o=0;oRE(e)||jE(e)))}(e)?e.flags|=128:e.flags&=-129}function Ee(e){const t=ZM(e),n=0!==t;return Ne(e,n?512:1024,n?110735:0),t}function Pe(e,t,n){const r=j(t,n);return 106508&t&&(r.parent=i.symbol),R(r,e,t),r}function Ae(e,t,n){switch(a.kind){case 268:z(e,t,n);break;case 308:if(Zp(i)){z(e,t,n);break}default:_n.assertNode(a,cu),a.locals||(a.locals=Xu(),De(a)),J(a.locals,void 0,e,t,n)}}function Ie(t){if(!(e.parseDiagnostics.length||33554432&t.flags||16777216&t.flags||ph(t))){const n=yc(t);if(void 0===n)return;N&&n>=119&&n<=127?e.bindDiagnostics.push(L(t,function(t){if(Xf(t))return ua.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(e.externalModuleIndicator)return ua.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return ua.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(t),Ap(t))):135===n?_O(e)&&nm(t)?e.bindDiagnostics.push(L(t,ua.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Ap(t))):65536&t.flags&&e.bindDiagnostics.push(L(t,ua.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ap(t))):127===n&&16384&t.flags&&e.bindDiagnostics.push(L(t,ua.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ap(t)))}}function Oe(t,n){if(n&&80===n.kind){const i=n;if(_N(r=i)&&("eval"===r.escapedText||"arguments"===r.escapedText)){const r=Qp(e,n);e.bindDiagnostics.push(Qx(e,r.start,r.length,function(t){if(Xf(t))return ua.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode;if(e.externalModuleIndicator)return ua.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return ua.Invalid_use_of_0_in_strict_mode}(t),hc(i)))}}var r}function Le(e){!N||33554432&e.flags||Oe(e,e.name)}function je(t){if(n<2&&308!==a.kind&&268!==a.kind&&!o_(a)){const n=Qp(e,t);e.bindDiagnostics.push(Qx(e,n.start,n.length,function(t){return Xf(t)?ua.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?ua.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:ua.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5}(t)))}}function Re(t,n,...r){const i=Gp(e,t.pos);e.bindDiagnostics.push(Qx(e,i.start,i.length,n,...r))}function Me(t){if(!t)return;ET(t,r),$n&&(t.tracingPath=e.path);const n=N;if(qe(t),t.kind>166){const e=r;r=t;const n=cB(t);0===n?H(t):function(e,t){const n=i,r=o,s=a,c=C;if(220===e.kind&&242!==e.body.kind&&(C=!0),1&t?(220!==e.kind&&(o=i),i=a=e,32&t&&(i.locals=Xu(),De(i))):2&t&&(a=e,32&t&&(a.locals=void 0)),4&t){const n=p,r=f,i=m,o=g,a=b,s=S,c=T,l=u,_=16&t&&!Fv(e,1024)&&!e.asteriskToken&&!!om(e)||176===e.kind;_||(p=rB(2,void 0,void 0),144&t&&(p.node=e)),g=_||177===e.kind||Em(e)&&(263===e.kind||219===e.kind)?Z():void 0,b=void 0,f=void 0,m=void 0,S=void 0,T=!1,u=!1,H(e),e.flags&=-5889,!(1&p.flags)&&8&t&&Fd(e.body)&&(e.flags|=512,T&&(e.flags|=1024),e.endFlowNode=p),u&&(e.flags|=256),308===e.kind&&(e.flags|=D,e.endFlowNode=p),g&&(ie(g,p),p=_e(g),(177===e.kind||176===e.kind||Em(e)&&(263===e.kind||219===e.kind))&&(e.returnFlowNode=p)),_||(p=n),f=r,m=i,g=o,b=a,S=s,T=c,u=256&t?l||u:l}else if(64&t){const t=u;u=!1,H(e),_n.assertNotNode(e,_N),e.flags=u?256|e.flags:-257&e.flags,u=t}else H(e);C=c,i=n,o=r,a=s}(t,n),r=e}else{const e=r;1===t.kind&&(r=t),Be(t),r=e}N=n}function Be(e){if(Fu(e))if(Em(e))for(const t of e.jsDoc)Me(t);else for(const t of e.jsDoc)ET(t,e),PT(t,!1)}function Je(e){if(!N)for(const t of e){if(!pf(t))return;if(ze(t))return void(N=!0)}}function ze(t){const n=Vd(e,t.expression);return'"use strict"'===n||"'use strict'"===n}function qe(n){switch(n.kind){case 80:if(4096&n.flags){let e=n.parent;for(;e&&!Fg(e);)e=e.parent;Ae(e,524288,788968);break}case 110:return 110===n.kind&&(u=!0),p&&(W_(n)||305===r.kind)&&(n.flowNode=p),Ie(n);case 167:p&&km(n)&&(n.flowNode=p);break;case 237:case 108:n.flowNode=p;break;case 81:return function(t){"#constructor"===t.escapedText&&(e.parseDiagnostics.length||e.bindDiagnostics.push(L(t,ua.constructor_is_a_reserved_word,Ap(t))))}(n);case 212:case 213:const o=n;p&&G(o)&&(o.flowNode=p),mg(o)&&function(e){110===e.expression.kind?He(e):ag(e)&&308===e.parent.parent.kind&&(pb(e.expression)?Xe(e,e.parent):Qe(e))}(o),Em(o)&&e.commonJsModuleIndicator&&tg(o)&&!lB(a,"module")&&J(e.locals,void 0,o.expression,134217729,111550);break;case 227:switch(ng(n)){case 1:We(n);break;case 2:!function(t){if(!Ve(t))return;const n=Ym(t.right);if(vb(n)||i===e&&sB(e,n))return;if(mF(n)&&h(n.properties,cP))return void _(n.properties,$e);const r=gh(t)?2097152:1049092,o=J(e.symbol.exports,e.symbol,t,67108864|r,0);gg(o,t)}(n);break;case 3:Xe(n.left,n);break;case 6:!function(e){ET(e.left,e),ET(e.right,e),it(e.left.expression,e.left,!1,!0)}(n);break;case 4:He(n);break;case 5:const t=n.left.expression;if(Em(n)&&_N(t)){const e=lB(a,t.escapedText);if(cm(null==e?void 0:e.valueDeclaration)){He(n);break}}!function(t){var n;const r=ot(t.left.expression,a)||ot(t.left.expression,i);if(!Em(t)&&!hg(r))return;const o=Nx(t.left);if(_N(o)&&2097152&(null==(n=lB(i,o.escapedText))?void 0:n.flags))return;if(ET(t.left,t),ET(t.right,t),_N(t.left.expression)&&i===e&&sB(e,t.left.expression))We(t);else if(Bh(t)){Pe(t,67108868,"__computed");Ge(t,Ze(r,t.left.expression,rt(t.left),!1,!1))}else Qe(tt(t.left,cg))}(n);break;case 0:break;default:_n.fail("Unknown binary expression special property assignment kind")}return function(e){N&&B_(e.left)&&nb(e.operatorToken.kind)&&Oe(e,e.left)}(n);case 300:return function(e){N&&e.variableDeclaration&&Oe(e,e.variableDeclaration.name)}(n);case 221:return function(t){if(N&&80===t.expression.kind){const n=Qp(e,t.expression);e.bindDiagnostics.push(Qx(e,n.start,n.length,ua.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(n);case 226:return function(e){N&&Oe(e,e.operand)}(n);case 225:return function(e){N&&(46!==e.operator&&47!==e.operator||Oe(e,e.operand))}(n);case 255:return function(e){N&&Re(e,ua.with_statements_are_not_allowed_in_strict_mode)}(n);case 257:return function(e){N&&xk(t)>=2&&(du(e.statement)||GF(e.statement))&&Re(e.label,ua.A_label_is_not_allowed_here)}(n);case 198:return void(u=!0);case 183:break;case 169:return function(e){if(HP(e.parent)){const t=zg(e.parent);t?(_n.assertNode(t,cu),t.locals??(t.locals=Xu()),J(t.locals,void 0,e,262144,526824)):Ne(e,262144,526824)}else if(196===e.parent.kind){const t=function(e){const t=dc(e,(e=>e.parent&&eF(e.parent)&&e.parent.extendsType===e));return t&&t.parent}(e.parent);t?(_n.assertNode(t,cu),t.locals??(t.locals=Xu()),J(t.locals,void 0,e,262144,526824)):Pe(e,262144,M(e))}else Ne(e,262144,526824)}(n);case 170:return ct(n);case 261:return st(n);case 209:return n.flowNode=p,st(n);case 173:case 172:return function(e){const t=f_(e),n=t?13247:0;return lt(e,(t?98304:4)|(e.questionToken?16777216:0),n)}(n);case 304:case 305:return lt(n,4,0);case 307:return lt(n,8,900095);case 180:case 181:case 182:return Ne(n,131072,0);case 175:case 174:return lt(n,8192|(n.questionToken?16777216:0),Jf(n)?0:103359);case 263:return function(t){e.isDeclarationFile||33554432&t.flags||jh(t)&&(D|=4096);Le(t),N?(je(t),Ae(t,16,110991)):Ne(t,16,110991)}(n);case 177:return Ne(n,16384,0);case 178:return lt(n,32768,46015);case 179:return lt(n,65536,78783);case 185:case 318:case 324:case 186:return function(e){const t=j(131072,M(e));R(t,e,131072);const n=j(2048,"__type");R(n,e,2048),n.members=Xu(),n.members.set(t.escapedName,t)}(n);case 188:case 323:case 201:return function(e){return Pe(e,2048,"__type")}(n);case 333:return function(e){W(e);const t=Ug(e);t&&175!==t.kind&&R(t.symbol,t,32)}(n);case 211:return function(e){return Pe(e,4096,"__object")}(n);case 219:case 220:return function(t){e.isDeclarationFile||33554432&t.flags||jh(t)&&(D|=4096);p&&(t.flowNode=p);Le(t);const n=t.name?t.name.escapedText:"__function";return Pe(t,16,n)}(n);case 214:switch(ng(n)){case 7:return function(e){let t=ot(e.arguments[0]);const n=308===e.parent.parent.kind;t=Ze(t,e.arguments[0],n,!1,!1),nt(e,t,!1)}(n);case 8:return function(e){if(!Ve(e))return;const t=at(e.arguments[0],void 0,((e,t)=>(t&&R(t,e,67110400),t)));if(t){const n=1048580;J(t.exports,t,e,n,0)}}(n);case 9:return function(e){const t=ot(e.arguments[0].expression);t&&t.valueDeclaration&&R(t,t.valueDeclaration,32);nt(e,t,!0)}(n);case 0:break;default:return _n.fail("Unknown call expression assignment declaration kind")}Em(n)&&function(t){!e.commonJsModuleIndicator&&Lm(t,!1)&&Ve(t)}(n);break;case 232:case 264:return N=!0,function(t){if(264===t.kind)Ae(t,32,899503);else{Pe(t,32,t.name?t.name.escapedText:"__class"),t.name&&E.add(t.name.escapedText)}const{symbol:n}=t,r=j(4194308,"prototype"),i=n.exports.get(r.escapedName);i&&(t.name&&ET(t.name,t),e.bindDiagnostics.push(L(i.declarations[0],ua.Duplicate_identifier_0,vc(r))));n.exports.set(r.escapedName,r),r.parent=n}(n);case 265:return Ae(n,64,788872);case 266:return Ae(n,524288,788968);case 267:return function(e){return tf(e)?Ae(e,128,899967):Ae(e,256,899327)}(n);case 268:return function(t){if(Fe(t),cp(t))if(Fv(t,32)&&Re(t,ua.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),mp(t))Ee(t);else{let n;if(11===t.name.kind){const{text:e}=t.name;n=GS(e),void 0===n&&Re(t.name,ua.Pattern_0_can_have_at_most_one_Asterisk_character,e)}const r=Ne(t,512,110735);e.patternAmbientModules=re(e.patternAmbientModules,n&&!Ye(n)?{pattern:n,symbol:r}:void 0)}else{const e=Ee(t);if(0!==e){const{symbol:n}=t;n.constEnumOnlyModule=!(304&n.flags)&&2===e&&!1!==n.constEnumOnlyModule}}}(n);case 293:return function(e){return Pe(e,4096,"__jsxAttributes")}(n);case 292:return function(e,t,n){return Ne(e,t,n)}(n,4,0);case 272:case 275:case 277:case 282:return Ne(n,2097152,2097152);case 271:return function(t){V(t.modifiers)&&e.bindDiagnostics.push(L(t,ua.Modifiers_cannot_appear_here));const n=uP(t.parent)?_O(t.parent)?t.parent.isDeclarationFile?void 0:ua.Global_module_exports_may_only_appear_in_declaration_files:ua.Global_module_exports_may_only_appear_in_module_files:ua.Global_module_exports_may_only_appear_at_top_level;n?e.bindDiagnostics.push(L(t,n)):(e.symbol.globalExports=e.symbol.globalExports||Xu(),J(e.symbol.globalExports,e.symbol,t,2097152,2097152))}(n);case 274:return function(e){e.name&&Ne(e,2097152,2097152)}(n);case 279:return function(e){i.symbol&&i.symbol.exports?e.exportClause?IE(e.exportClause)&&(ET(e.exportClause,e),J(i.symbol.exports,i.symbol,e.exportClause,2097152,2097152)):J(i.symbol.exports,i.symbol,e,8388608,0):Pe(e,8388608,M(e))}(n);case 278:return function(e){if(i.symbol&&i.symbol.exports){const t=gh(e)?2097152:4,n=J(i.symbol.exports,i.symbol,e,t,-1);e.isExportEquals&&gg(n,e)}else Pe(e,111551,M(e))}(n);case 308:return Je(n.statements),function(){if(Fe(e),_O(e))Ue();else if(ef(e)){Ue();const t=e.symbol;J(e.symbol.exports,e.symbol,e,4,-1),e.symbol=t}}();case 242:if(!o_(n.parent))return;case 269:return Je(n.statements);case 342:if(324===n.parent.kind)return ct(n);if(323!==n.parent.kind)break;case 349:const s=n;return Ne(s,s.isBracketed||s.typeExpression&&317===s.typeExpression.type.kind?16777220:4,0);case 347:case 339:case 341:return(c||(c=[])).push(n);case 340:return Me(n.typeExpression);case 352:return(d||(d=[])).push(n)}}function Ue(){Pe(e,512,`"${WS(e.fileName)}"`)}function Ve(t){return(!e.externalModuleIndicator||!0===e.externalModuleIndicator)&&(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=t,e.externalModuleIndicator||Ue()),!0)}function We(e){if(!Ve(e))return;const t=at(e.left.expression,void 0,((e,t)=>(t&&R(t,e,67110400),t)));if(t){const n=mh(e.right)&&(Zm(e.left.expression)||tg(e.left.expression))?2097152:1048580;ET(e.left,e),J(t.exports,t,e.left,n,0)}}function $e(t){J(e.symbol.exports,e.symbol,t,69206016,0)}function He(e){_n.assert(Em(e));if(PF(e)&&gF(e.left)&&uN(e.left.name)||gF(e)&&uN(e.name))return;const t=em(e,!1,!1);switch(t.kind){case 263:case 219:let n=t.symbol;if(PF(t.parent)&&64===t.parent.operatorToken.kind){const e=t.parent.left;ag(e)&&pb(e.expression)&&(n=ot(e.expression.expression,o))}n&&n.valueDeclaration&&(n.members=n.members||Xu(),Bh(e)?Ke(e,n,n.members):J(n.members,n,e,67108868,0),R(n,n.valueDeclaration,32));break;case 177:case 173:case 175:case 178:case 179:case 176:const r=t.parent,i=Ev(t)?r.symbol.exports:r.symbol.members;Bh(e)?Ke(e,r.symbol,i):J(i,r.symbol,e,67108868,0,!0);break;case 308:if(Bh(e))break;t.commonJsModuleIndicator?J(t.symbol.exports,t.symbol,e,1048580,0):Ne(e,1,111550);break;case 268:break;default:_n.failBadSyntaxKind(t)}}function Ke(e,t,n){J(n,t,e,4,0,!0,!0),Ge(e,t)}function Ge(e,t){t&&(t.assignmentDeclarationMembers||(t.assignmentDeclarationMembers=new Map)).set(cJ(e),e)}function Xe(e,t){const n=e.expression,r=n.expression;ET(r,n),ET(n,e),ET(e,t),it(r,e,!0,!0)}function Qe(e){_n.assert(!_N(e)),ET(e.expression,e),it(e.expression,e,!1,!1)}function Ze(t,n,r,i,o){if(2097152&(null==t?void 0:t.flags))return t;if(r&&!i){const r=67110400,i=110735;t=at(n,t,((t,n,o)=>{if(n)return R(n,t,r),n;return J(o?o.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Xu()),o,t,r,i)}))}return o&&t&&t.valueDeclaration&&R(t,t.valueDeclaration,32),t}function nt(e,t,n){if(!t||!function(e){if(1072&e.flags)return!0;const t=e.valueDeclaration;if(t&&yF(t))return!!Hm(t);let n=t?pE(t)?t.initializer:PF(t)?t.right:gF(t)&&PF(t.parent)?t.parent.right:void 0:void 0;if(n=n&&Ym(n),n){const e=pb(pE(t)?t.name:PF(t)?t.left:t);return!!Km(!PF(n)||57!==n.operatorToken.kind&&61!==n.operatorToken.kind?n:n.right,e)}return!1}(t))return;const r=n?t.members||(t.members=Xu()):t.exports||(t.exports=Xu());let i=0,o=0;a_(Hm(e))?(i=8192,o=103359):yF(e)&&rg(e)&&(V(e.arguments[2].properties,(e=>{const t=wc(e);return!!t&&_N(t)&&"set"===hc(t)}))&&(i|=65540,o|=78783),V(e.arguments[2].properties,(e=>{const t=wc(e);return!!t&&_N(t)&&"get"===hc(t)}))&&(i|=32772,o|=46015)),0===i&&(i=4,o=0),J(r,t,e,67108864|i,-67108865&o)}function rt(e){return PF(e.parent)?308===function(e){for(;PF(e.parent);)e=e.parent;return e.parent}(e.parent).parent.kind:308===e.parent.parent.kind}function it(e,t,n,r){let o=ot(e,a)||ot(e,i);const s=rt(t);o=Ze(o,t.expression,s,n,r),nt(t,o,n)}function ot(e,t=i){if(_N(e))return lB(t,e.escapedText);{const t=ot(e.expression);return t&&t.exports&&t.exports.get(ug(e))}}function at(t,n,r){if(sB(e,t))return e.symbol;if(_N(t))return r(t,ot(t),n);{const e=at(t.expression,n,r),i=lg(t);return uN(i)&&_n.fail("unexpected PrivateIdentifier"),r(i,e&&e.exports&&e.exports.get(ug(t)),e)}}function st(e){if(N&&Oe(e,e.name),!S_(e.name)){const t=261===e.kind?e:e.parent.parent;!Em(e)||!Rm(t)||nl(e)||32&oc(e)?ap(e)?Ae(e,2,111551):Yh(e)?Ne(e,1,111551):Ne(e,1,111550):Ne(e,2097152,2097152)}}function ct(e){if((342!==e.kind||324===i.kind)&&(!N||33554432&e.flags||Oe(e,e.name),S_(e.name)?Pe(e,1,"__"+e.parent.parameters.indexOf(e)):Ne(e,1,111551),ec(e,e.parent))){const t=e.parent.parent;J(t.symbol.members,t.symbol,e,4|(e.questionToken?16777216:0),0)}}function lt(t,n,r){return e.isDeclarationFile||33554432&t.flags||!jh(t)||(D|=4096),p&&zf(t)&&(t.flowNode=p),Bh(t)?Pe(t,n,"__computed"):Ne(t,n,r)}}function sB(e,t){let n=0;const r=Ke();for(r.enqueue(t);!r.isEmpty()&&n<100;){if(n++,Zm(t=r.dequeue())||tg(t))return!0;if(_N(t)){const n=lB(e,t.escapedText);if(n&&n.valueDeclaration&&pE(n.valueDeclaration)&&n.valueDeclaration.initializer){const e=n.valueDeclaration.initializer;r.enqueue(e),ob(e,!0)&&(r.enqueue(e.left),r.enqueue(e.right))}}}return!1}function cB(e){switch(e.kind){case 232:case 264:case 267:case 211:case 188:case 323:case 293:return 1;case 265:return 65;case 268:case 266:case 201:case 182:return 33;case 308:return 37;case 178:case 179:case 175:if(zf(e))return 173;case 177:case 263:case 176:return 45;case 174:case 180:case 324:case 318:case 185:case 181:case 186:return 301;case 352:return 293;case 219:return 61;case 220:return 317;case 269:return 4;case 173:return e.initializer?4:0;case 300:case 249:case 250:case 251:case 270:return 34;case 242:return i_(e.parent)||ON(e.parent)?0:34}return 0}function lB(e,t){var n,r,i,o;const a=null==(r=null==(n=et(e,cu))?void 0:n.locals)?void 0:r.get(t);return a?a.exportSymbol??a:uP(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t)?e.jsGlobalAugmentations.get(t):su(e)?null==(o=null==(i=e.symbol)?void 0:i.exports)?void 0:o.get(t):void 0}function _B(e,t,n,r,i,o,a,s,c,l){return function(u=()=>!0){const d=[],p=[];return{walkType:e=>{try{return f(e),{visitedTypes:Pe(d),visitedSymbols:Pe(p)}}finally{D(d),D(p)}},walkSymbol:e=>{try{return h(e),{visitedTypes:Pe(d),visitedSymbols:Pe(p)}}finally{D(d),D(p)}}};function f(e){if(!e)return;if(d[e.id])return;d[e.id]=e;if(!h(e.symbol)){if(1048576&e.flags){const n=e,i=n.objectFlags;4&i&&function(e){f(e.target),_(l(e),f)}(e),32&i&&function(e){f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)}(e),3&i&&(g(t=e),_(t.typeParameters,f),_(r(t),f),f(t.thisType)),24&i&&g(n)}var t;524288&e.flags&&function(e){f(s(e))}(e),402653184&e.flags&&function(e){_(e.types,f)}(e),2097152&e.flags&&function(e){f(e.type)}(e),33554432&e.flags&&function(e){f(e.objectType),f(e.indexType),f(e.constraint)}(e)}}function m(r){const i=t(r);i&&f(i.type),_(r.typeParameters,f);for(const e of r.parameters)h(e);f(e(r)),f(n(r))}function g(e){const t=i(e);for(const e of t.indexInfos)f(e.keyType),f(e.type);for(const e of t.callSignatures)m(e);for(const e of t.constructSignatures)m(e);for(const e of t.properties)h(e)}function h(e){if(!e)return!1;const t=lJ(e);if(p[t])return!1;if(p[t]=e,!u(e))return!0;return f(o(e)),e.exports&&e.exports.forEach(h),_(e.declarations,(e=>{if(e.type&&187===e.type.kind){const t=e.type;h(a(c(t.exprName)))}})),!1}}}var uB={};n(uB,{RelativePreference:()=>pB,countPathComponents:()=>DB,forEachFileNameOfModule:()=>EB,getLocalModuleSpecifierBetweenFileNames:()=>SB,getModuleSpecifier:()=>gB,getModuleSpecifierPreferences:()=>fB,getModuleSpecifiers:()=>xB,getModuleSpecifiersWithCacheInfo:()=>kB,getNodeModulesPackageName:()=>hB,tryGetJSExtensionForFile:()=>zB,tryGetModuleSpecifiersFromCache:()=>vB,tryGetRealFileNameForNonJsDeclarationFileName:()=>BB,updateModuleSpecifier:()=>mB});var dB=dt((e=>{try{let t=e.indexOf("/");if(0!==t)return new RegExp(e);const n=e.lastIndexOf("/");if(t===n)return new RegExp(e);for(;(t=e.indexOf("/",t+1))!==n;)if("\\"!==e[t-1])return new RegExp(e);const r=e.substring(n+1).replace(/[^iu]/g,"");return e=e.substring(1,n),new RegExp(e,r)}catch{return}})),pB=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(pB||{});function fB({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t,autoImportSpecifierExcludeRegexes:n},r,i,o,a){const s=c();return{excludeRegexes:n,relativePreference:void 0!==a?ws(a)?0:1:"relative"===e?0:"non-relative"===e?1:"project-relative"===e?3:2,getAllowedEndingsInPreferredOrder:e=>{const t=VB(o,r,i),n=e!==t?c(e):s,a=Sk(i);if(99===(e??t)&&3<=a&&a<=99)return HM(i,o.fileName)?[3,2]:[2];if(1===Sk(i))return 2===n?[2,1]:[1,2];const l=HM(i,o.fileName);switch(n){case 2:return l?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return l?[1,0,3,2]:[1,0,2];case 0:return l?[0,1,3,2]:[0,1,2];default:_n.assertNever(n)}}};function c(e){if(void 0!==a){if(jS(a))return 2;if(jt(a,"/index"))return 1}return JS(t,e??VB(o,r,i),i,Nm(o)?o:void 0)}}function mB(e,t,n,r,i,o,a={}){const s=yB(e,t,n,r,i,fB({},i,e,t,o),{},a);if(s!==o)return s}function gB(e,t,n,r,i,o={}){return yB(e,t,n,r,i,fB({},i,e,t),{},o)}function hB(e,t,n,r,i,o={}){const a=CB(t.fileName,r);return d(PB(a,n,r,i,e,o),(n=>jB(n,a,t,r,e,i,!0,o.overrideImportMode)))}function yB(e,t,n,r,i,o,a,s={}){const c=CB(n,i);return d(PB(c,r,i,a,e,s),(n=>jB(n,c,t,i,e,a,void 0,s.overrideImportMode)))||wB(r,c,e,i,s.overrideImportMode||VB(t,i,e),o)}function vB(e,t,n,r,i={}){const o=bB(e,t,n,r,i);return o[1]&&{kind:o[0],moduleSpecifiers:o[1],computedWithoutCache:!1}}function bB(e,t,n,r,i={}){var o;const a=xd(e);if(!a)return s;const c=null==(o=n.getModuleSpecifierCache)?void 0:o.call(n),l=null==c?void 0:c.get(t.path,a.path,r,i);return[null==l?void 0:l.kind,null==l?void 0:l.moduleSpecifiers,a,null==l?void 0:l.modulePaths,c]}function xB(e,t,n,r,i,o,a={}){return kB(e,t,n,r,i,o,a,!1).moduleSpecifiers}function kB(e,t,n,r,i,o,a={},c){let l=!1;const u=function(e,t){var n;const r=null==(n=e.declarations)?void 0:n.find((e=>_p(e)&&(!fp(e)||!ws(Uh(e.name)))));if(r)return r.name.text;const i=R(e.declarations,(e=>{var n,r,i,o;if(!bE(e))return;const a=l(e);if(!((null==(n=null==a?void 0:a.parent)?void 0:n.parent)&&xE(a.parent)&&cp(a.parent.parent)&&uP(a.parent.parent.parent)))return;const s=null==(o=null==(i=null==(r=a.parent.parent.symbol.exports)?void 0:r.get("export="))?void 0:i.valueDeclaration)?void 0:o.expression;if(!s)return;const c=t.getSymbolAtLocation(s);if(!c)return;if((2097152&(null==c?void 0:c.flags)?t.getAliasedSymbol(c):c)===e.symbol)return a.parent.parent;function l(e){for(;8&e.flags;)e=e.parent;return e}})),o=i[0];if(o)return o.name.text}(e,t);if(u)return{kind:"ambient",moduleSpecifiers:c&&TB(u,o.autoImportSpecifierExcludeRegexes)?s:[u],computedWithoutCache:l};let[d,p,f,m,g]=bB(e,r,i,o,a);if(p)return{kind:d,moduleSpecifiers:p,computedWithoutCache:l};if(!f)return{kind:void 0,moduleSpecifiers:s,computedWithoutCache:l};l=!0,m||(m=IB(CB(r.fileName,i),f.originalFileName,i,n,a));const h=function(e,t,n,r,i,o={},a){const c=CB(n.fileName,r),l=fB(i,r,t,n),u=Nm(n)&&_(e,(e=>_(r.getFileIncludeReasons().get(Vo(e.path,r.getCurrentDirectory(),c.getCanonicalFileName)),(e=>{if(3!==e.kind||e.file!==n.path)return;const t=r.getModeForResolutionAtIndex(n,e.index),i=o.overrideImportMode??r.getDefaultResolutionModeForFile(n);if(t!==i&&void 0!==t&&void 0!==i)return;const a=tW(n,e.index).text;return 1===l.relativePreference&&bo(a)?void 0:a}))));if(u)return{kind:void 0,moduleSpecifiers:[u],computedWithoutCache:!0};const d=V(e,(e=>e.isInNodeModules));let p,f,m,g;for(const s of e){const e=s.isInNodeModules?jB(s,c,n,r,t,i,void 0,o.overrideImportMode):void 0;if(e&&(!a||!TB(e,l.excludeRegexes))&&(p=re(p,e),s.isRedirect))return{kind:"node_modules",moduleSpecifiers:p,computedWithoutCache:!0};const _=wB(s.path,c,t,r,o.overrideImportMode||n.impliedNodeFormat,l,s.isRedirect||!!e);!_||a&&TB(_,l.excludeRegexes)||(s.isRedirect?m=re(m,_):xo(_)?oM(_)?g=re(g,_):f=re(f,_):(a||!d||s.isInNodeModules)&&(g=re(g,_)))}return(null==f?void 0:f.length)?{kind:"paths",moduleSpecifiers:f,computedWithoutCache:!0}:(null==m?void 0:m.length)?{kind:"redirect",moduleSpecifiers:m,computedWithoutCache:!0}:(null==p?void 0:p.length)?{kind:"node_modules",moduleSpecifiers:p,computedWithoutCache:!0}:{kind:"relative",moduleSpecifiers:g??s,computedWithoutCache:!0}}(m,n,r,i,o,a,c);return null==g||g.set(r.path,f.path,o,a,h.kind,m,h.moduleSpecifiers),h}function SB(e,t,n,r,i,o={}){return wB(t,CB(e.fileName,r),n,r,o.overrideImportMode??e.impliedNodeFormat,fB(i,r,n,e))}function TB(e,t){return V(t,(t=>{var n;return!!(null==(n=dB(t))?void 0:n.test(e))}))}function CB(e,t){e=Jo(e,t.getCurrentDirectory());const n=Vt(!t.useCaseSensitiveFileNames||t.useCaseSensitiveFileNames()),r=Fo(e);return{getCanonicalFileName:n,importingSourceFileName:e,sourceDirectory:r,canonicalSourceDirectory:n(r)}}function wB(e,t,n,r,i,{getAllowedEndingsInPreferredOrder:o,relativePreference:a,excludeRegexes:s},c){const{baseUrl:l,paths:u,rootDirs:d}=n;if(c&&!u)return;const{sourceDirectory:p,canonicalSourceDirectory:f,getCanonicalFileName:m}=t,g=o(i),h=d&&function(e,t,n,r,i,o){const a=RB(t,e,r);if(void 0===a)return;const s=RB(n,e,r),c=A(s,(e=>N(a,(t=>Ho(ia(e,t,r)))))),l=xt(c,US);if(!l)return;return MB(l,i,o)}(d,e,p,m,g,n)||MB(Ho(ia(p,e,m)),g,n);if(!l&&!u&&!Fk(n)||0===a)return c?void 0:h;const y=Jo(Gy(n,r)||l,r.getCurrentDirectory()),v=qB(e,y,m);if(!v)return c?void 0:h;const b=c?void 0:function(e,t,n,r,i,o){var a,s,c;if(!r.readFile||!Fk(n))return;const l=FB(r,t);if(!l)return;const u=Ro(l,"package.json"),d=null==(s=null==(a=r.getPackageJsonInfoCache)?void 0:a.call(r))?void 0:s.getPackageJsonInfo(u);if(ER(d)||!r.fileExists(u))return;const p=(null==d?void 0:d.contents.packageJsonContent)||Fb(r.readFile(u)),f=null==p?void 0:p.imports;if(!f)return;const m=wR(n,i);return null==(c=_(Fe(f),(t=>{if(!Kt(t,"#")||"#"===t||Kt(t,"#/"))return;const i=jt(t,"/")?1:t.includes("*")?2:0;return LB(n,r,e,l,t,f[t],m,i,!0,o)})))?void 0:c.moduleFileToTry}(e,p,n,r,i,function(e){const t=e.indexOf(3);return t>-1&&te.fileExists(Ro(t,"package.json"))?t:void 0))}function EB(e,t,n,r,i){var o,a;const c=My(n),l=n.getCurrentDirectory(),u=n.isSourceOfProjectReferenceRedirect(t)?null==(o=n.getRedirectFromSourceFile(t))?void 0:o.outputDts:void 0,d=Vo(t,l,c),p=n.redirectTargetsMap.get(d)||s,f=[...u?[u]:s,t,...p].map((e=>Jo(e,l)));let m=!h(f,LT);if(!r){const e=_(f,(e=>!(m&<(e))&&i(e,u===e)));if(e)return e}const g=null==(a=n.getSymlinkCache)?void 0:a.call(n).getSymlinkedDirectoriesByRealpath(),y=Jo(t,l);return g&&OM(n,Fo(y),(t=>{const n=g.get($o(Vo(t,l,c)));if(n)return!na(e,t,c)&&_(f,(e=>{if(!na(e,t,c))return;const r=ia(t,e,c);for(const t of n){const n=Mo(t,r),o=i(n,e===u);if(m=!0,o)return o}}))}))||(r?_(f,(e=>m&<(e)?void 0:i(e,e===u))):void 0)}function PB(e,t,n,r,i,o={}){var a;const s=Vo(e.importingSourceFileName,n.getCurrentDirectory(),My(n)),c=Vo(t,n.getCurrentDirectory(),My(n)),l=null==(a=n.getModuleSpecifierCache)?void 0:a.call(n);if(l){const e=l.get(s,c,r,o);if(null==e?void 0:e.modulePaths)return e.modulePaths}const _=IB(e,t,n,i,o);return l&&l.setModulePaths(s,c,r,o,_),_}var AB=["dependencies","peerDependencies","optionalDependencies"];function IB(e,t,n,r,i){var o,a;const c=null==(o=n.getModuleResolutionCache)?void 0:o.call(n),l=null==(a=n.getSymlinkCache)?void 0:a.call(n);if(c&&l&&n.readFile&&!oM(e.importingSourceFileName)){_n.type(n);const t=yM(c.getPackageJsonInfoCache(),n,{}),o=vM(Fo(e.importingSourceFileName),t);if(o){const e=function(e){let t;for(const n of AB){const r=e[n];r&&"object"==typeof r&&(t=$(t,Fe(r)))}return t}(o.contents.packageJsonContent);for(const t of e||s){const e=$R(t,Ro(o.packageDirectory,"package.json"),r,n,c,void 0,i.overrideImportMode);l.setSymlinksFromResolution(e.resolvedModule)}}}const _=new Map;let u=!1;EB(e.importingSourceFileName,t,n,!0,((t,n)=>{const r=oM(t);_.set(t,{path:e.getCanonicalFileName(t),isRedirect:n,isInNodeModules:r}),u=u||r}));const d=[];for(let t=e.canonicalSourceDirectory;0!==_.size;){const e=$o(t);let n;_.forEach((({path:t,isRedirect:r,isInNodeModules:i},o)=>{Kt(t,e)&&((n||(n=[])).push({path:o,isRedirect:r,isInNodeModules:i}),_.delete(o))})),n&&(n.length>1&&n.sort(NB),d.push(...n));const r=Fo(t);if(r===t)break;t=r}if(_.size){const e=Ie(_.entries(),(([e,{isRedirect:t,isInNodeModules:n}])=>({path:e,isRedirect:t,isInNodeModules:n})));e.length>1&&e.sort(NB),d.push(...e)}return d}function OB(e,t,n,r,i,o,a){for(const o in t)for(const c of t[o]){const t=zo(c),l=qB(t,r,i)??t,_=l.indexOf("*"),u=n.map((t=>({ending:t,value:MB(e,[t],a)})));if(rT(l)&&u.push({ending:void 0,value:e}),-1!==_){const e=l.substring(0,_),t=l.substring(_+1);for(const{ending:n,value:r}of u)if(r.length>=e.length+t.length&&Kt(r,e)&&jt(r,t)&&s({ending:n,value:r})){const n=r.substring(e.length,r.length-t.length);if(!bo(n))return fC(o,n)}}else if(V(u,(e=>0!==e.ending&&l===e.value))||V(u,(e=>0===e.ending&&l===e.value&&s(e))))return o}function s({ending:t,value:n}){return 0!==t||n===MB(e,[t],a,o)}}function LB(e,t,n,r,i,o,a,s,c,l){if("string"==typeof o){const a=!Ry(t),_=()=>t.getCommonSourceDirectory(),u=c&&uU(n,e,a,_),d=c&&lU(n,e,a,_),p=Jo(Ro(r,o),void 0),f=RS(n)?WS(n)+zB(n,e):void 0,m=l&&MS(n);switch(s){case 0:if(f&&0===ea(f,p,a)||0===ea(n,p,a)||u&&0===ea(u,p,a)||d&&0===ea(d,p,a))return{moduleFileToTry:i};break;case 1:if(m&&ta(n,p,a)){const e=ia(p,n,!1);return{moduleFileToTry:Jo(Ro(Ro(i,o),e),void 0)}}if(f&&ta(p,f,a)){const e=ia(p,f,!1);return{moduleFileToTry:Jo(Ro(Ro(i,o),e),void 0)}}if(!m&&ta(p,n,a)){const e=ia(p,n,!1);return{moduleFileToTry:Jo(Ro(Ro(i,o),e),void 0)}}if(u&&ta(p,u,a)){const e=ia(p,u,!1);return{moduleFileToTry:Ro(i,e)}}if(d&&ta(p,d,a)){const t=Go(ia(p,d,!1),JB(d,e));return{moduleFileToTry:Ro(i,t)}}break;case 2:const t=p.indexOf("*"),r=p.slice(0,t),s=p.slice(t+1);if(m&&Kt(n,r,a)&&jt(n,s,a)){const e=n.slice(r.length,n.length-s.length);return{moduleFileToTry:fC(i,e)}}if(f&&Kt(f,r,a)&&jt(f,s,a)){const e=f.slice(r.length,f.length-s.length);return{moduleFileToTry:fC(i,e)}}if(!m&&Kt(n,r,a)&&jt(n,s,a)){const e=n.slice(r.length,n.length-s.length);return{moduleFileToTry:fC(i,e)}}if(u&&Kt(u,r,a)&&jt(u,s,a)){const e=u.slice(r.length,u.length-s.length);return{moduleFileToTry:fC(i,e)}}if(d&&Kt(d,r,a)&&jt(d,s,a)){const t=d.slice(r.length,d.length-s.length),n=fC(i,t),o=zB(d,e);return o?{moduleFileToTry:Go(n,o)}:void 0}}}else{if(Array.isArray(o))return _(o,(o=>LB(e,t,n,r,i,o,a,s,c,l)));if("object"==typeof o&&null!==o)for(const _ of Fe(o))if("default"===_||a.indexOf(_)>=0||PM(a,_)){const u=o[_],d=LB(e,t,n,r,i,u,a,s,c,l);if(d)return d}}}function jB({path:e,isRedirect:t},{getCanonicalFileName:n,canonicalSourceDirectory:r},i,o,a,s,c,l){if(!o.fileExists||!o.readFile)return;const u=WT(e);if(!u)return;const d=fB(s,o,a,i).getAllowedEndingsInPreferredOrder();let p=e,f=!1;if(!c){let t,n=u.packageRootIndex;for(;;){const{moduleFileToTry:r,packageRootPath:i,blockedByExports:s,verbatimFromExports:c}=v(n);if(1!==Sk(a)){if(s)return;if(c)return r}if(i){p=i,f=!0;break}if(t||(t=r),n=e.indexOf(_o,n+1),-1===n){p=MB(t,d,a,o);break}}}if(t&&!f)return;const m=o.getGlobalTypingsCacheLocation&&o.getGlobalTypingsCacheLocation(),g=n(p.substring(0,u.topLevelNodeModulesIndex));if(!(Kt(r,g)||m&&Kt(n(m),g)))return;const h=p.substring(u.topLevelPackageNameIndex+1),y=qM(h);return 1===Sk(a)&&y===h?void 0:y;function v(t){var r,s;const c=e.substring(0,t),p=Ro(c,"package.json");let f=e,m=!1;const g=null==(s=null==(r=o.getPackageJsonInfoCache)?void 0:r.call(o))?void 0:s.getPackageJsonInfo(p);if(FR(g)||void 0===g&&o.fileExists(p)){const t=(null==g?void 0:g.contents.packageJsonContent)||Fb(o.readFile(p)),r=l||VB(i,o,a);if(Nk(a)){const n=qM(c.substring(u.topLevelPackageNameIndex+1)),i=wR(a,r),s=(null==t?void 0:t.exports)?function(e,t,n,r,i,o,a){return"object"==typeof o&&null!==o&&!Array.isArray(o)&&wM(o)?_(Fe(o),(s=>{const c=Jo(Ro(i,s),void 0),l=jt(s,"/")?1:s.includes("*")?2:0;return LB(e,t,n,r,c,o[s],a,l,!1,!1)})):LB(e,t,n,r,i,o,a,0,!1,!1)}(a,o,e,c,n,t.exports,i):void 0;if(s)return{...s,verbatimFromExports:!0};if(null==t?void 0:t.exports)return{moduleFileToTry:e,blockedByExports:!0}}const s=(null==t?void 0:t.typesVersions)?yR(t.typesVersions):void 0;if(s){const t=OB(e.slice(c.length+1),s.paths,d,c,n,o,a);void 0===t?m=!0:f=Ro(c,t)}const h=(null==t?void 0:t.typings)||(null==t?void 0:t.types)||(null==t?void 0:t.main)||"index.js";if(Ye(h)&&(!m||!aT(QS(s.paths),h))){const e=Vo(h,c,n),r=n(f);if(WS(e)===WS(r))return{packageRootPath:c,moduleFileToTry:f};if("module"!==(null==t?void 0:t.type)&&!To(r,IS)&&Kt(r,e)&&Fo(r)===Wo(e)&&"index"===WS(Eo(r)))return{packageRootPath:c,moduleFileToTry:f}}}else{const e=n(f.substring(u.packageRootIndex+1));if("index.d.ts"===e||"index.js"===e||"index.ts"===e||"index.tsx"===e)return{moduleFileToTry:f,packageRootPath:c}}return{moduleFileToTry:f}}}function RB(e,t,n){return R(t,(t=>{const r=qB(e,t,n);return void 0!==r&&UB(r)?void 0:r}))}function MB(e,t,n,r){if(To(e,[".json",".mjs",".cjs"]))return e;const i=WS(e);if(e===i)return e;const o=t.indexOf(2),a=t.indexOf(3);if(To(e,[".mts",".cts"])&&-1!==a&&a0===e||1===e));return-1!==r&&r(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(eJ||{}),tJ=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),nJ=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(nJ||{}),rJ=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(rJ||{}),iJ=Yt(dJ,(function(e){return!p_(e)})),oJ=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),aJ=class{};function sJ(){this.flags=0}function cJ(e){return e.id||(e.id=QB,QB++),e.id}function lJ(e){return e.id||(e.id=XB,XB++),e.id}function _J(e,t){const n=ZM(e);return 1===n||t&&2===n}function uJ(e){var t,n,r,i,o,a=[],c=e=>{a.push(e)},u=Bx.getSymbolConstructor(),p=Bx.getTypeConstructor(),f=Bx.getSignatureConstructor(),m=0,g=0,S=0,w=0,F=0,I=0,O=!1,L=!1,j=Xu(),M=[1],z=e.getCompilerOptions(),q=xk(z),U=kk(z),W=!!z.experimentalDecorators,H=jk(z),G=Vk(z),Q=Dk(z),Y=qk(z,"strictNullChecks"),Z=qk(z,"strictFunctionTypes"),te=qk(z,"strictBindCallApply"),ie=qk(z,"strictPropertyInitialization"),oe=qk(z,"strictBuiltinIteratorReturn"),le=qk(z,"noImplicitAny"),_e=qk(z,"noImplicitThis"),de=qk(z,"useUnknownInCatchVariables"),ve=z.exactOptionalPropertyTypes,be=!1!==z.noUncheckedSideEffectImports,xe=!!z.stableTypeOrdering,Te=xe?new Map(e.getSourceFiles().map(((e,t)=>[e,t]))):void 0,we=function(){const e=fI((function(e,t,r){t?(t.stackIndex++,t.skip=!1,n(t,void 0),i(t,void 0)):t={checkMode:r,skip:!1,stackIndex:0,typeStack:[void 0,void 0]};if(Em(e)&&Hm(e))return t.skip=!0,i(t,tM(e.right,r)),t;!function(e){if(61!==e.operatorToken.kind)return;if(PF(e.parent)){const{left:t,operatorToken:n}=e.parent;PF(t)&&57===n.kind&&rU(t,ua._0_and_1_operations_cannot_be_mixed_without_parentheses,Ea(61),Ea(n.kind))}else if(PF(e.left)){const{operatorToken:t}=e.left;57!==t.kind&&56!==t.kind||rU(e.left,ua._0_and_1_operations_cannot_be_mixed_without_parentheses,Ea(t.kind),Ea(61))}else if(PF(e.right)){const{operatorToken:t}=e.right;56===t.kind&&rU(e.right,ua._0_and_1_operations_cannot_be_mixed_without_parentheses,Ea(61),Ea(t.kind))}!function(e){const t=PA(e.left,63),n=DR(t);3!==n&&$o(t,1===n?ua.This_expression_is_always_nullish:ua.Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish)}(e)}(e);if(64===e.operatorToken.kind&&(211===e.left.kind||210===e.left.kind))return t.skip=!0,i(t,TR(e.left,tM(e.right,r),r,110===e.right.kind)),t;return t}),(function(e,n,r){if(!n.skip)return t(n,e)}),(function(e,t,o){if(!t.skip){const a=r(t);_n.assertIsDefined(a),n(t,a),i(t,void 0);const s=e.kind;if(eb(s)){let e=o.parent;for(;218===e.kind||tb(e);)e=e.parent;(56===s||YF(e))&&AB(o.left,a,YF(e)?e.thenStatement:void 0),Xv(s)&&IB(a,o.left)}}}),(function(e,n,r){if(!n.skip)return t(n,e)}),(function(e,t){let o;if(t.skip)o=r(t);else{const n=function(e){return e.typeStack[e.stackIndex]}(t);_n.assertIsDefined(n);const i=r(t);_n.assertIsDefined(i),o=NR(e.left,e.operatorToken,e.right,n,i,t.checkMode,e)}return t.skip=!1,n(t,void 0),i(t,void 0),t.stackIndex--,o}),(function(e,t,n){return i(e,t),e}));return(t,n)=>{const r=e(t,n);return _n.assertIsDefined(r),r};function t(e,t){if(PF(t))return t;i(e,tM(t,e.checkMode))}function n(e,t){e.typeStack[e.stackIndex]=t}function r(e){return e.typeStack[e.stackIndex+1]}function i(e,t){e.typeStack[e.stackIndex+1]=t}}(),De={getReferencedExportContainer:Kz,getReferencedImportDeclaration:Gz,getReferencedDeclarationWithCollidingName:Qz,isDeclarationWithCollidingName:Yz,isValueAliasDeclaration:e=>{const t=fc(e);return!t||!$e||Zz(t)},hasGlobalName:vq,isReferencedAliasDeclaration:(e,t)=>{const n=fc(e);return!n||!$e||rq(n,t)},hasNodeCheckFlag:(e,t)=>{const n=fc(e);return!!n&&lq(n,t)},isTopLevelValueImportEqualsWithEntityName:eq,isDeclarationVisible:Zc,isImplementationOfOverload:iq,requiresAddingImplicitUndefined:oq,isExpandoFunctionDeclaration:aq,getPropertiesOfContainerFunction:sq,createTypeOfDeclaration:mq,createReturnTypeOfSignatureDeclaration:hq,createTypeOfExpression:yq,createLiteralConstValue:Tq,isSymbolAccessible:_c,isEntityNameVisible:Ec,getConstantValue:e=>{const t=fc(e,uq);return t?dq(t):void 0},getEnumMemberValue:e=>{const t=fc(e,_P);return t?_q(t):void 0},collectLinkedAliases:el,markLinkedReferences:e=>{const t=fc(e);return t&&qP(t,0)},getReferencedValueDeclaration:xq,getReferencedValueDeclarations:kq,getTypeReferenceSerializationKind:fq,isOptionalParameter:uh,isArgumentsLocalBinding:Hz,getExternalModuleFileFromDeclaration:e=>{const t=fc(e,Dp);return t&&Nq(t)},isLiteralConstDeclaration:Sq,isLateBound:e=>{const t=fc(e,uu),n=t&&Fs(t);return!!(n&&4096&ox(n))},getJsxFactoryEntity:Cq,getJsxFragmentFactoryEntity:wq,isBindingCapturedByNode:(e,t)=>{const n=fc(e),r=fc(t);return!!n&&!!r&&(pE(r)||pF(r))&&function(e,t){const n=ha(e);return!!n&&k(n.capturedBlockScopeBindings,Fs(t))}(n,r)},getDeclarationStatementsForSourceFile:(e,t,n,r)=>{const i=fc(e);_n.assert(i&&308===i.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");const o=Fs(e);return o?(ps(o),o.exports?Ne.symbolTableToDeclarationStatements(o.exports,e,t,n,r):[]):e.locals?Ne.symbolTableToDeclarationStatements(e.locals,e,t,n,r):[]},isImportRequiredByAugmentation:function(e){const t=bd(e);if(!t.symbol)return!1;const n=Nq(e);if(!n)return!1;if(n===t)return!1;const r=Ts(t.symbol);for(const e of Ie(r.values()))if(e.mergeId){const t=Ns(e);if(t.declarations)for(const e of t.declarations)if(bd(e)===n)return!0}return!1},isDefinitelyReferenceToGlobalSymbolObject:Mo,createLateBoundIndexSignatures:(e,t,n,r,i)=>{const o=e.symbol,a=Pg(eu(o)),s=dy(o),c=s&&gy(s,Ie(Rd(o).values()));let _;for(const e of[a,c])if(l(e)){_||(_=[]);for(const o of e){if(o.declaration)continue;if(o===vi)continue;if(o.components&&h(o.components,(e=>{var n;return!!(e.name&&wN(e.name)&&cb(e.name.expression)&&t&&0===(null==(n=Ec(e.name.expression,t,!1))?void 0:n.accessibility))}))){const s=C(o.components,(e=>!Ed(e)));_.push(...N(s,(s=>{u(s.name.expression);const c=e===a?[vw.createModifier(126)]:void 0;return vw.createPropertyDeclaration(re(c,o.isReadonly?vw.createModifier(148):void 0),s.name,(EN(s)||PN(s)||AN(s)||IN(s)||Nu(s)||Du(s))&&s.questionToken?vw.createToken(58):void 0,Ne.typeToTypeNode(eu(s.symbol),t,n,r,i),void 0)})));continue}const s=Ne.indexInfoToIndexSignatureDeclaration(o,t,n,r,i);s&&e===a&&(s.modifiers||(s.modifiers=vw.createNodeArray())).unshift(vw.createModifier(126)),s&&_.push(s)}}return _;function u(e){if(!i.trackSymbol)return;const n=lb(e),r=Ge(n,n.escapedText,1160127,void 0,!0);r&&i.trackSymbol(r,t,111551)}},symbolToDeclarations:(e,t,n,r,i,o)=>Ne.symbolToDeclarations(e,t,n,r,i,o)},Ne=function(){return{syntacticBuilderResolver:{evaluateEntityNameExpression:ez,isExpandoFunctionDeclaration:aq,hasLateBindableName:Ed,shouldRemoveDeclaration:(e,t)=>!(8&e.internalFlags&&cb(t.name.expression)&&1&TI(t.name).flags),createRecoveryBoundary:e=>function(e){t&&t.throwIfCancellationRequested&&t.throwIfCancellationRequested();let n,r,i=!1;const o=e.tracker,a=e.trackedSymbols;e.trackedSymbols=void 0;const s=e.encounteredError;return e.tracker=new hJ(e,{...o.inner,reportCyclicStructureError(){c((()=>o.reportCyclicStructureError()))},reportInaccessibleThisError(){c((()=>o.reportInaccessibleThisError()))},reportInaccessibleUniqueSymbolError(){c((()=>o.reportInaccessibleUniqueSymbolError()))},reportLikelyUnsafeImportRequiredError(e,t){c((()=>o.reportLikelyUnsafeImportRequiredError(e,t)))},reportNonSerializableProperty(e){c((()=>o.reportNonSerializableProperty(e)))},reportPrivateInBaseOfClassExpression(e){c((()=>o.reportPrivateInBaseOfClassExpression(e)))},trackSymbol:(e,t,r)=>((n??(n=[])).push([e,t,r]),!1),moduleResolverHost:e.tracker.moduleResolverHost},e.tracker.moduleResolverHost),{startRecoveryScope:l,finalizeBoundary:_,markError:c,hadError:()=>i};function c(e){i=!0,e&&(r??(r=[])).push(e)}function l(){const e=(null==n?void 0:n.length)??0,t=(null==r?void 0:r.length)??0;return()=>{i=!1,n&&(n.length=e),r&&(r.length=t)}}function _(){return e.tracker=o,e.trackedSymbols=a,e.encounteredError=s,null==r||r.forEach((e=>e())),!i&&(null==n||n.forEach((([t,n,r])=>e.tracker.trackSymbol(t,n,r))),!0)}}(e),isDefinitelyReferenceToGlobalSymbolObject:Mo,getAllAccessorDeclarations:gq,requiresAddingImplicitUndefined(e,t,n){var r;switch(e.kind){case 173:case 172:case 349:t??(t=Fs(e));const i=eu(t);return!!(4&t.flags&&16777216&t.flags&&YT(e)&&(null==(r=t.links)?void 0:r.mappedType)&&function(e){const t=134217728&e.flags?e.types[0]:e;return!!(4&t.flags)&&t!==Wt}(i));case 170:case 342:return oq(e,n);default:_n.assertNever(e)}},isOptionalParameter:uh,isUndefinedIdentifierExpression:e=>Bz(e)===Oe,isEntityNameVisible:(e,t,n)=>Ec(t,e.enclosingDeclaration,n),serializeExistingTypeNode:(e,t,r)=>function(e,t,r){const i=n(e,t);if(r&&!iE(i,(e=>!!(4&e.flags)))&&ke(e,t)){const n=Fe.tryReuseExistingTypeNode(e,t);if(n)return vw.createUnionTypeNode([n,vw.createKeywordTypeNode(157)])}return x(i,e)}(e,t,!!r),serializeReturnTypeForSignature(e,t,n){const r=e,i=wh(t);n??(n=Fs(t));const o=r.enclosingSymbolTypes.get(lJ(n))??LS(jh(i),r.mapper);return be(r,i,o)},serializeTypeOfExpression(e,t){const n=e;return x(LS(lD(qz(t)),n.mapper),n)},serializeTypeOfDeclaration(e,t,n){var r;const i=e;n??(n=Fs(t));let o=null==(r=i.enclosingSymbolTypes)?void 0:r.get(lJ(n));void 0===o&&(o=98304&n.flags&&179===t.kind?LS(Z_(n),i.mapper):!n||133120&n.flags?Rt:LS(Tw(eu(n)),i.mapper));return t&&(NN(t)||UP(t))&&oq(t,i.enclosingDeclaration)&&(o=Uw(o)),he(n,i,o)},serializeNameOfParameter:(e,t)=>W(Fs(t),t,e),serializeEntityName(e,t){const n=e,r=Bz(t,!0);if(r&&ac(r,n.enclosingDeclaration))return ce(r,n,1160127)},serializeTypeName:(e,t,n,r)=>function(e,t,n,r){const i=n?111551:788968,o=ss(t,i,!0);if(!o)return;const a=2097152&o.flags?es(o):o;return 0!==_c(o,e.enclosingDeclaration,i,!1).accessibility?void 0:ie(a,e,i,r)}(e,t,n,r),getJsDocPropertyOverride(e,t,r){const i=e,o=_N(r.name)?r.name:r.name.right,a=pl(n(i,t),o.escapedText);return a&&r.typeExpression&&n(i,r.typeExpression.type)!==a?x(a,i):void 0},enterNewScope(e,t){if(i_(t)||FP(t)){const n=wh(t);return L(e,t,n.parameters,n.typeParameters)}return L(e,t,void 0,eF(t)?gk(t):[nd(Fs(t.typeParameter))])},markNodeReuse:(e,t,n)=>r(e,t,n),trackExistingEntityName:(e,t)=>xe(t,e),trackComputedName(e,t){H(t,e.enclosingDeclaration,e)},getModuleSpecifierOverride(e,t,n){const r=e;if(r.bundled||r.enclosingFile!==bd(n)){let e=n.text;const i=e,o=ha(t).resolvedSymbol,a=t.isTypeOf?111551:788968,s=o&&0===_c(o,r.enclosingDeclaration,a,!1).accessibility&&G(o,r,a,!0)[0];if(s&&Yu(s))e=te(s,r);else{const n=Nq(t);n&&(e=te(n.symbol,r))}if(e.includes("/node_modules/")&&(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(e,o?gc(o.escapedName):void 0)),e!==i)return e}},canReuseTypeNode:(e,t)=>ke(e,t),canReuseTypeNodeAnnotation(e,t,n,r,i){var o;const a=e;if(void 0===a.enclosingDeclaration)return!1;r??(r=Fs(t));let s=null==(o=a.enclosingSymbolTypes)?void 0:o.get(lJ(r));void 0===s&&(s=98304&r.flags?179===t.kind?Z_(r):A_(r):th(t)?jh(wh(t)):eu(r));let c=qc(n);return!!kl(c)||(i&&c&&(c=zl(c,!NN(t))),!!c&&function(e,t,n){if(n===t)return!0;if(!e)return!1;if((EN(e)||PN(e))&&e.questionToken)return ZN(t,524288)===n;if(NN(e)&&nh(e))return ZN(t,524288)===n;return!1}(t,s,c)&&ge(n,s))}},typeToTypeNode:(e,t,n,r,i,o,a,s)=>c(t,n,r,i,o,a,(t=>x(e,t)),s),typePredicateToTypePredicateNode:(e,t,n,r,i)=>c(t,n,r,i,void 0,void 0,(t=>B(e,t))),serializeTypeForDeclaration:(e,t,n,r,i,o)=>c(n,r,i,o,void 0,void 0,(n=>Fe.serializeTypeOfDeclaration(e,t,n))),serializeReturnTypeForSignature:(e,t,n,r,i)=>c(t,n,r,i,void 0,void 0,(t=>Fe.serializeReturnTypeForSignature(e,Fs(e),t))),serializeTypeForExpression:(e,t,n,r,i)=>c(t,n,r,i,void 0,void 0,(t=>Fe.serializeTypeOfExpression(e,t))),indexInfoToIndexSignatureDeclaration:(e,t,n,r,i)=>c(t,n,r,i,void 0,void 0,(t=>I(e,t,void 0))),signatureToSignatureDeclaration:(e,t,n,r,i,o,a,s,l)=>c(n,r,i,o,a,s,(n=>O(e,t,n)),l),symbolToEntityName:(e,t,n,r,i,o)=>c(n,r,i,o,void 0,void 0,(n=>se(e,n,t,!1))),symbolToExpression:(e,t,n,r,i,o)=>c(n,r,i,o,void 0,void 0,(n=>ce(e,n,t))),symbolToTypeParameterDeclarations:(e,t,n,r,i)=>c(t,n,r,i,void 0,void 0,(t=>Y(e,t))),symbolToParameterDeclaration:(e,t,n,r,i)=>c(t,n,r,i,void 0,void 0,(t=>U(e,t))),typeParameterToDeclaration:(e,t,n,r,i,o,a,s)=>c(t,n,r,i,o,a,(t=>M(e,t)),s),symbolTableToDeclarationStatements:(e,t,n,r,i)=>c(t,n,r,i,void 0,void 0,(t=>Se(e,t))),symbolToNode:(e,t,n,r,i,a)=>c(n,r,i,a,void 0,void 0,(n=>o(e,n,t))),symbolToDeclarations:function(e,t,n,r,i,o){return R(c(void 0,n,void 0,void 0,r,i,(t=>function(e,t){const n=rd(e);t.typeStack.push(n.id),t.typeStack.push(-1);const r=Xu([e]),i=Se(r,t);return t.typeStack.pop(),t.typeStack.pop(),i}(e,t)),o),(n=>{switch(n.kind){case 264:return function(e,t){const n=C(t.declarations,d_),r=n&&n.length>0?n[0]:e,i=-161&zv(r);jF(r)&&(e=vw.updateClassDeclaration(e,e.modifiers,void 0,e.typeParameters,e.heritageClauses,e.members));return vw.replaceModifiers(e,i)}(n,e);case 267:return a(n,vE,e);case 265:return function(e,t,n){if(!(64&n))return;return a(e,hE,t)}(n,e,t);case 268:return a(n,bE,e);default:return}}))}};function n(e,t,n){const r=qc(t);if(!e.mapper)return r;const i=LS(r,e.mapper);return n&&i!==r?void 0:i}function r(e,t,n){if(ty(t)&&16&t.flags&&e.enclosingFile&&e.enclosingFile===bd(uc(t))||(t=vw.cloneNode(t)),t===n)return t;if(!n)return t;let r=t.original;for(;r&&r!==n;)r=r.original;return r||xw(t,n),e.enclosingFile&&e.enclosingFile===bd(uc(n))?NI(t,n):t}function o(e,t,n){if(1&t.internalFlags){if(e.valueDeclaration){const t=wc(e.valueDeclaration);if(t&&wN(t))return t}const r=ga(e).nameType;if(r&&49152&r.flags)return t.enclosingDeclaration=r.symbol.valueDeclaration,vw.createComputedPropertyName(ce(r.symbol,t,n))}return ce(e,t,n)}function a(e,t,n){const r=C(n.declarations,t),i=-161&zv(r&&r.length>0?r[0]:e);return vw.replaceModifiers(e,i)}function c(t,n,r,i,o,a,s,c){const l=(null==i?void 0:i.moduleResolverHost)??function(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:Ve(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return null==(t=e.getPackageJsonInfoCache)?void 0:t.call(e)},useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames(),redirectTargetsMap:e.redirectTargetsMap,getRedirectFromSourceFile:t=>e.getRedirectFromSourceFile(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0,getDefaultResolutionModeForFile:t=>e.getDefaultResolutionModeForFile(t),getModeForResolutionAtIndex:(t,n)=>e.getModeForResolutionAtIndex(t,n),getGlobalTypingsCacheLocation:Ve(e,e.getGlobalTypingsCacheLocation)}}(e);n=n||0;const _=o||(1&n?$u:Wu),u={enclosingDeclaration:t,enclosingFile:t&&bd(t),flags:n,internalFlags:r||0,tracker:void 0,maxTruncationLength:_,maxExpansionDepth:a??-1,encounteredError:!1,suppressReportInferenceFallback:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0,bundled:!!z.outFile&&!!t&&Zp(bd(t)),truncating:!1,usedSymbolNames:void 0,remappedSymbolNames:void 0,remappedSymbolReferences:void 0,reverseMappedStack:void 0,mustCreateTypeParameterSymbolList:!0,typeParameterSymbolList:void 0,mustCreateTypeParametersNamesLookups:!0,typeParameterNames:void 0,typeParameterNamesByText:void 0,typeParameterNamesByTextNextNameCount:void 0,enclosingSymbolTypes:new Map,mapper:void 0,depth:0,typeStack:[],out:{canIncreaseExpansionDepth:!1,truncated:!1}};u.tracker=new hJ(u,i,l);const d=s(u);return u.truncating&&1&u.flags&&u.tracker.reportTruncationError(),c&&(c.canIncreaseExpansionDepth=u.out.canIncreaseExpansionDepth,c.truncated=u.out.truncated),u.encounteredError?void 0:d}function u(e,t,n){const r=lJ(t),i=e.enclosingSymbolTypes.get(r);return e.enclosingSymbolTypes.set(r,n),function(){i?e.enclosingSymbolTypes.set(r,i):e.enclosingSymbolTypes.delete(r)}}function p(e){const t=e.flags,n=e.internalFlags,r=e.depth;return function(){e.flags=t,e.internalFlags=n,e.depth=r}}function f(e){return e.maxExpansionDepth>=0&&m(e)}function m(e){return e.truncating?e.truncating:e.truncating=e.approximateLength>e.maxTruncationLength}function g(e,t){for(let n=0;n0?134217728&e.flags?vw.createUnionTypeNode(n):vw.createIntersectionTypeNode(n):void(o.encounteredError||262144&o.flags||(o.encounteredError=!0))}if(48&y)return _n.assert(!!(1048576&e.flags)),M(e);if(2097152&e.flags){const t=e.type;o.approximateLength+=6;const n=x(t,o);return vw.createTypeOperatorNode(143,n)}if(4194304&e.flags){const t=e.texts,n=e.types,r=vw.createTemplateHead(t[0]),i=vw.createNodeArray(N(n,((e,r)=>vw.createTemplateLiteralTypeSpan(x(e,o),(rb(e)));if(16777216&e.flags){const t=x(e.baseType,o),n=$y(e)&&fv("NoInfer",!1);return n?ie(n,o,788968,[t]):t}return _n.fail("Should be unreachable.");function b(e){const t=x(e.checkType,o);if(o.approximateLength+=15,4&o.flags&&e.root.isDistributive&&!(524288&e.checkType.flags)){const r=Hs(na(262144,"T")),i=ae(r,o),a=vw.createTypeReferenceNode(i);o.approximateLength+=37;const s=kS(e.root.checkType,r,e.mapper),c=o.inferTypeParameters;o.inferTypeParameters=e.root.inferTypeParameters;const l=x(LS(e.root.extendsType,s),o);o.inferTypeParameters=c;const _=w(LS(n(o,e.root.node.trueType),s)),u=w(LS(n(o,e.root.node.falseType),s));return vw.createConditionalTypeNode(t,vw.createInferTypeNode(vw.createTypeParameterDeclaration(void 0,vw.cloneNode(a.typeName))),vw.createConditionalTypeNode(vw.createTypeReferenceNode(vw.cloneNode(i)),x(e.checkType,o),vw.createConditionalTypeNode(a,l,_,u),vw.createKeywordTypeNode(146)),vw.createKeywordTypeNode(146))}const r=o.inferTypeParameters;o.inferTypeParameters=e.root.inferTypeParameters;const i=x(e.extendsType,o);o.inferTypeParameters=r;const a=w(fk(e)),s=w(mk(e));return vw.createConditionalTypeNode(t,i,a,s)}function w(e){var t,n,r;return 134217728&e.flags?(null==(t=o.visitedTypes)?void 0:t.has(zb(e)))?(131072&o.flags||(o.encounteredError=!0,null==(r=null==(n=o.tracker)?void 0:n.reportCyclicStructureError)||r.call(n)),S(o)):B(e,(e=>x(e,o))):x(e,o)}function F(e){return!!ES(e)}function A(e){return!!e.target&&F(e.target)&&!F(e)}function R(e){var t;_n.assert(!!(1048576&e.flags));const r=e.declaration.readonlyToken?vw.createToken(e.declaration.readonlyToken.kind):void 0,i=e.declaration.questionToken?vw.createToken(e.declaration.questionToken.kind):void 0;let a,s,c=Vp(e);const l=Lp(e),_=!rf(e)&&!(2&of(e).flags)&&4&o.flags&&!(524288&Jp(e).flags&&2097152&(null==(t=bf(Jp(e)))?void 0:t.flags));if(rf(e)){if(A(e)&&4&o.flags){const t=Hs(na(262144,"T")),n=ae(t,o),r=e.target;s=vw.createTypeReferenceNode(n),c=LS(Vp(r),mS([Lp(r),of(r)],[l,t]))}a=vw.createTypeOperatorNode(143,s||x(of(e),o))}else if(_){const e=ae(Hs(na(262144,"T")),o);s=vw.createTypeReferenceNode(e),a=s}else a=x(Jp(e),o);const u=j(l,o,a),d=L(o,e.declaration,void 0,[nd(Fs(e.declaration.typeParameter))]),p=e.declaration.nameType?x(Up(e),o):void 0,f=x(Gw(c,!!(4&af(e))),o);d();const m=vw.createMappedTypeNode(r,u,p,i,f,void 0);o.approximateLength+=10;const g=Cw(m,1);if(A(e)&&4&o.flags){const t=LS(bf(n(o,e.declaration.typeParameter.constraint.type))||qt,e.mapper);return vw.createConditionalTypeNode(x(of(e),o),vw.createInferTypeNode(vw.createTypeParameterDeclaration(void 0,vw.cloneNode(s.typeName),2&t.flags?void 0:x(t,o))),g,vw.createKeywordTypeNode(146))}return _?vw.createConditionalTypeNode(x(Jp(e),o),vw.createInferTypeNode(vw.createTypeParameterDeclaration(void 0,vw.cloneNode(s.typeName),vw.createTypeOperatorNode(143,x(of(e),o)))),g,vw.createKeywordTypeNode(146)):g}function M(e,t=!1,r=!1){var i,a;const s=e.id,c=e.symbol;if(c){if(!!(8388608&yx(e))){const t=e.node;if(WN(t)&&n(o,t)===e){const e=Fe.tryReuseExistingTypeNode(o,t);if(e)return e}return(null==(i=o.visitedTypes)?void 0:i.has(s))?S(o):B(e,J)}const _=zc(e)?788968:111551;if(HL(c.valueDeclaration))return ie(c,o,_);if(!r&&(32&c.flags&&!t&&!J_(c)&&(!(c.valueDeclaration&&d_(c.valueDeclaration)&&2048&o.flags)||gE(c.valueDeclaration)&&0===_c(c,o.enclosingDeclaration,_,!1).accessibility)||896&c.flags||l())){if(!v(e,o))return ie(c,o,_);o.depth+=1}if(null==(a=o.visitedTypes)?void 0:a.has(s)){const t=function(e){if(e.symbol&&2048&e.symbol.flags&&e.symbol.declarations){const t=rh(e.symbol.declarations[0].parent);if(yE(t))return Fs(t)}return}(e);return t?ie(t,o,788968):S(o)}return B(e,J)}return J(e);function l(){var e;const t=!!(8192&c.flags)&&V(c.declarations,(e=>Ev(e)&&!Cd(wc(e)))),n=!!(16&c.flags)&&(c.parent||_(c.declarations,(e=>308===e.parent.kind||269===e.parent.kind)));if(t||n)return(!!(4096&o.flags)||(null==(e=o.visitedTypes)?void 0:e.has(s)))&&(!(8&o.flags)||ac(c,o.enclosingDeclaration))}}function B(e,t){var n,i,a;const s=e.id,c=16&yx(e)&&e.symbol&&32&e.symbol.flags,l=4&yx(e)&&e.node?"N"+cJ(e.node):67108864&e.flags?"N"+cJ(e.root.node):e.symbol?(c?"+":"")+lJ(e.symbol):void 0;o.visitedTypes||(o.visitedTypes=new Set),l&&!o.symbolDepth&&(o.symbolDepth=new Map);const _=o.maxExpansionDepth>=0?void 0:o.enclosingDeclaration&&ha(o.enclosingDeclaration),u=`${zb(e)}|${o.flags}|${o.internalFlags}`;_&&(_.serializedTypes||(_.serializedTypes=new Map));const d=null==(n=null==_?void 0:_.serializedTypes)?void 0:n.get(u);if(d)return null==(i=d.trackedSymbols)||i.forEach((([e,t,n])=>o.tracker.trackSymbol(e,t,n))),d.truncating&&(o.truncating=!0),o.approximateLength+=d.addedLength,y(d.node);let p;if(l){if(p=o.symbolDepth.get(l)||0,p>10)return S(o);o.symbolDepth.set(l,p+1)}o.visitedTypes.add(s);const f=o.trackedSymbols;o.trackedSymbols=void 0;const m=o.approximateLength,g=t(e),h=o.approximateLength-m;return o.reportedDiagnostic||o.encounteredError||null==(a=null==_?void 0:_.serializedTypes)||a.set(u,{node:g,truncating:o.truncating,addedLength:h,trackedSymbols:o.trackedSymbols}),o.visitedTypes.delete(s),l&&o.symbolDepth.set(l,p),o.trackedSymbols=f,g;function y(e){return ty(e)||fc(e)!==e?r(o,vw.cloneNode(NJ(e,y,void 0,v,y)),e):e}function v(e,t,n,r,i){return e&&0===e.length?NI(vw.createNodeArray(void 0,e.hasTrailingComma),e):vJ(e,t,n,r,i)}}function J(e){if(uf(e)||e.containsError)return R(e);const t=ff(e);if(!t.properties.length&&!t.indexInfos.length){if(!t.callSignatures.length&&!t.constructSignatures.length)return o.approximateLength+=2,Cw(vw.createTypeLiteralNode(void 0),1);if(1===t.callSignatures.length&&!t.constructSignatures.length){return O(t.callSignatures[0],185,o)}if(1===t.constructSignatures.length&&!t.callSignatures.length){return O(t.constructSignatures[0],186,o)}}const n=C(t.constructSignatures,(e=>!!(4&e.flags)));if(V(n)){const e=N(n,ly);return t.callSignatures.length+(t.constructSignatures.length-n.length)+t.indexInfos.length+(2048&o.flags?T(t.properties,(e=>!(4194304&e.flags))):l(t.properties))&&e.push(function(e){if(0===e.constructSignatures.length)return e;if(e.objectTypeWithoutAbstractConstructSignatures)return e.objectTypeWithoutAbstractConstructSignatures;const t=C(e.constructSignatures,(e=>!(4&e.flags)));if(e.constructSignatures===t)return e;const n=Ys(e.symbol,e.members,e.callSignatures,V(t)?t:s,e.indexInfos);return e.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n}(t)),x(ix(e),o)}const r=p(o);o.flags|=4194304;const i=$(t);r();const a=vw.createTypeLiteralNode(i);return o.approximateLength+=2,Cw(a,1024&o.flags?0:1),a}function z(e){let t=Ay(e);if(e.target===sr||e.target===cr){if(2&o.flags){const n=x(t[0],o);return vw.createTypeReferenceNode(e.target===sr?"Array":"ReadonlyArray",[n])}const n=x(t[0],o),r=vw.createArrayTypeNode(n);return e.target===sr?r:vw.createTypeOperatorNode(148,r)}if(!(8&e.target.objectFlags)){if(2048&o.flags&&e.symbol.valueDeclaration&&d_(e.symbol.valueDeclaration)&&!ac(e.symbol,o.enclosingDeclaration))return M(e);{const n=e.target.outerTypeParameters;let r,i,a=0;if(n){const e=n.length;for(;a0){let n=0;if(e.target.typeParameters&&(n=Math.min(e.target.typeParameters.length,t.length),(ru(e,Qv(!1))||ru(e,Yv(!1))||ru(e,$v(!1))||ru(e,Hv(!1)))&&(!e.node||!qN(e.node)||!e.node.typeArguments||e.node.typeArguments.length0;){const r=t[n-1],i=Hf(e.target.typeParameters[n-1]);if(!i||!VS(r,i))break;n--}i=P(t.slice(a,n),o)}const s=p(o);o.flags|=16;const c=ie(e.symbol,o,788968,i);return s(),r?q(r,c):c}}if(t=E(t,((t,n)=>Gw(t,!!(2&e.target.elementFlags[n])))),t.length>0){const n=Iy(e),r=P(t.slice(0,n),o);if(r){const{labeledElementDeclarations:t}=e.target;for(let n=0;n{var n;return!!(e.name&&wN(e.name)&&cb(e.name.expression)&&t.enclosingDeclaration&&0===(null==(n=Ec(e.name.expression,t.enclosingDeclaration,!1))?void 0:n.accessibility))}))){return N(C(e.components,(e=>!Ed(e))),(i=>(H(i.name.expression,t.enclosingDeclaration,t),r(t,vw.createPropertySignature(e.isReadonly?[vw.createModifier(148)]:void 0,i.name,(EN(i)||PN(i)||AN(i)||IN(i)||Nu(i)||Du(i))&&i.questionToken?vw.createToken(58):void 0,n||x(eu(i.symbol),t)),i))))}}return[I(e,t,n)]}function $(e){if(m(o))return o.out.truncated=!0,1&o.flags?[qw(vw.createNotEmittedTypeElement(),3,"elided")]:[vw.createPropertySignature(void 0,"...",void 0,void 0)];o.typeStack.push(-1);const t=[];for(const n of e.callSignatures)t.push(O(n,180,o));for(const n of e.constructSignatures)4&n.flags||t.push(O(n,181,o));for(const n of e.indexInfos)t.push(...W(n,o,1024&e.objectFlags?S(o):void 0));const n=e.properties;if(!n)return o.typeStack.pop(),t;let r=0;for(const e of n)if(!(Te(o)&&4194304&e.flags)){if(r++,2048&o.flags){if(4194304&e.flags)continue;6&ax(e)&&o.tracker.reportPrivateInBaseOfClassExpression&&o.tracker.reportPrivateInBaseOfClassExpression(gc(e.escapedName)),Hh(e)&&o.tracker.reportPrivateInBaseOfClassExpression&&o.tracker.reportPrivateInBaseOfClassExpression(hc(e.valueDeclaration.name))}if(m(o)&&r+2!(4&e.flags))),0);for(const i of r){const r=O(i,174,t,{name:c,questionToken:l});n.push(p(r,i.declaration||e.valueDeclaration))}if(r.length||!l)return}let _;w(e,t)?_=S(t):(i&&(t.reverseMappedStack||(t.reverseMappedStack=[]),t.reverseMappedStack.push(e)),_=o?ve(t,void 0,o,e):vw.createKeywordTypeNode(133),i&&t.reverseMappedStack.pop());const u=cR(e)?[vw.createToken(148)]:void 0;u&&(t.approximateLength+=9);const d=vw.createPropertySignature(u,c,l,_);function p(n,r){var i;const o=null==(i=e.declarations)?void 0:i.find((e=>349===e.kind));if(o){const e=_l(o.comment);e&&Mw(n,[{kind:3,text:"*\n * "+e.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else r&&F(t,n,r);return n}n.push(p(d,e.valueDeclaration))}function F(e,t,n){return e.enclosingFile&&e.enclosingFile===bd(n)?jw(t,n):t}function P(e,t,n){if(V(e)){if(m(t)){if(t.out.truncated=!0,!n)return[1&t.flags?Bw(vw.createKeywordTypeNode(133),3,"elided"):vw.createTypeReferenceNode("...",void 0)];if(e.length>2)return[x(e[0],t),1&t.flags?Bw(vw.createKeywordTypeNode(133),3,`... ${e.length-2} more elided ...`):vw.createTypeReferenceNode(`... ${e.length-2} more ...`,void 0),x(e[e.length-1],t)]}const r=!(64&t.flags)?We():void 0,i=[];let o=0;for(const n of e){if(o++,m(t)&&o+2{if(!TT(e,(([e],[t])=>function(e,t){return e===t||!!e.symbol&&e.symbol===t.symbol||!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}(e,t))))for(const[n,r]of e)i[r]=x(n,t)})),e()}return i}}function I(e,t,n){const r=Ip(e)||"x",i=x(e.keyType,t),o=vw.createParameterDeclaration(void 0,void 0,r,void 0,i,void 0);return n||(n=x(e.type||At,t)),e.type||2097152&t.flags||(t.encounteredError=!0),t.approximateLength+=r.length+4,vw.createIndexSignature(e.isReadonly?[vw.createToken(148)]:void 0,[o],n)}function O(e,t,r,i){var o;let a,s;const c=Gd(e,!0)[0],l=L(r,e.declaration,c,e.typeParameters,e.parameters,e.mapper);r.approximateLength+=3,32&r.flags&&e.target&&e.mapper&&e.target.typeParameters?s=e.target.typeParameters.map((t=>x(LS(t,e.mapper),r))):a=e.typeParameters&&e.typeParameters.map((e=>M(e,r)));const _=p(r);r.flags&=-257;const d=(V(c,(e=>e!==c[c.length-1]&&!!(32768&ox(e))))?e.parameters:c).map((e=>U(e,r,177===t))),f=33554432&r.flags?void 0:function(e,t){if(e.thisParameter)return U(e.thisParameter,t);if(e.declaration&&Em(e.declaration)){const r=Yc(e.declaration);if(r&&r.typeExpression)return vw.createParameterDeclaration(void 0,void 0,"this",void 0,x(n(t,r.typeExpression),t))}}(e,r);f&&d.unshift(f),_();const m=function(e,t){const n=256&e.flags,r=p(e);n&&(e.flags&=-257);let i;const o=jh(t);if(!n||!gl(o)){if(t.declaration&&!ty(t.declaration)&&!g(o,e)){const n=Fs(t.declaration),r=u(e,n,o);i=Fe.serializeReturnTypeForSignature(t.declaration,n,e),r()}i||(i=be(e,t,o))}i||n||(i=vw.createKeywordTypeNode(133));return r(),i}(r,e);let h=null==i?void 0:i.modifiers;if(186===t&&4&e.flags){const e=Kv(h);h=vw.createModifiersFromModifierFlags(64|e)}const y=180===t?vw.createCallSignature(a,d,m):181===t?vw.createConstructSignature(a,d,m):174===t?vw.createMethodSignature(h,(null==i?void 0:i.name)??vw.createIdentifier(""),null==i?void 0:i.questionToken,a,d,m):175===t?vw.createMethodDeclaration(h,void 0,(null==i?void 0:i.name)??vw.createIdentifier(""),void 0,a,d,m,void 0):177===t?vw.createConstructorDeclaration(h,d,void 0):178===t?vw.createGetAccessorDeclaration(h,(null==i?void 0:i.name)??vw.createIdentifier(""),d,m,void 0):179===t?vw.createSetAccessorDeclaration(h,(null==i?void 0:i.name)??vw.createIdentifier(""),d,void 0):182===t?vw.createIndexSignature(h,d,m):318===t?vw.createJSDocFunctionType(d,m):185===t?vw.createFunctionTypeNode(a,d,m??vw.createTypeReferenceNode(vw.createIdentifier(""))):186===t?vw.createConstructorTypeNode(h,a,d,m??vw.createTypeReferenceNode(vw.createIdentifier(""))):263===t?vw.createFunctionDeclaration(h,void 0,(null==i?void 0:i.name)?tt(i.name,_N):vw.createIdentifier(""),a,d,m,void 0):219===t?vw.createFunctionExpression(h,void 0,(null==i?void 0:i.name)?tt(i.name,_N):vw.createIdentifier(""),a,d,m,vw.createBlock([])):220===t?vw.createArrowFunction(h,a,d,m,void 0,vw.createBlock([])):_n.assertNever(t);if(s&&(y.typeArguments=vw.createNodeArray(s)),324===(null==(o=e.declaration)?void 0:o.kind)&&340===e.declaration.parent.kind){Bw(y,3,Xd(e.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map((e=>e.replace(/^\s+/," "))).join("\n"),!0)}return null==l||l(),y}function L(e,t,n,r,i,o){const a=pe(e);let c,l;const u=e.enclosingDeclaration,d=e.mapper;if(o&&(e.mapper=o),e.enclosingDeclaration&&t){let t=function(t,n){let r;_n.assert(e.enclosingDeclaration),ha(e.enclosingDeclaration).fakeScopeForSignatureDeclaration===t?r=e.enclosingDeclaration:e.enclosingDeclaration.parent&&ha(e.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===t&&(r=e.enclosingDeclaration.parent),_n.assertOptionalNode(r,KF);const i=(null==r?void 0:r.locals)??Xu();let o,a;if(n(((e,t)=>{if(r){const t=i.get(e);t?a=re(a,{name:e,oldSymbol:t}):o=re(o,e)}i.set(e,t)})),r)return function(){_(o,(e=>i.delete(e))),_(a,(e=>i.set(e.name,e.oldSymbol)))};{const n=vw.createBlock(s);ha(n).fakeScopeForSignatureDeclaration=t,n.locals=i,ET(n,e.enclosingDeclaration),e.enclosingDeclaration=n}};c=V(n)?t("params",(e=>{if(n)for(let t=0;t{return NN(t)&&S_(t.name)?(n(t.name),!0):void 0;function n(t){_(t.elements,(t=>{switch(t.kind){case 233:return;case 209:return function(t){if(S_(t.name))return n(t.name);const r=Fs(t);e(r.escapedName,r)}(t);default:return _n.assertNever(t)}}))}}))||e(r.escapedName,r)}})):void 0,4&e.flags&&V(r)&&(l=t("typeParams",(t=>{for(const n of r??s){t(ae(n,e).escapedText,n.symbol)}})))}return()=>{null==c||c(),null==l||l(),a(),e.enclosingDeclaration=u,e.mapper=d}}function j(e,t,n){const r=p(t);t.flags&=-513;const i=vw.createModifiersFromModifierFlags(BC(e)),o=ae(e,t),a=Hf(e),s=a&&x(a,t);return r(),vw.createTypeParameterDeclaration(i,o,n,s)}function M(e,t,r=bf(e)){const i=r&&function(e,t,r){return!g(e,r)&&t&&n(r,t)===e&&Fe.tryReuseExistingTypeNode(r,t)||x(e,r)}(r,yy(e),t);return j(e,t,i)}function B(e,t){const n=2===e.kind||3===e.kind?vw.createToken(131):void 0,r=1===e.kind||3===e.kind?Cw(vw.createIdentifier(e.parameterName),16777216):vw.createThisTypeNode(),i=e.type&&x(e.type,t);return vw.createTypePredicateNode(n,r,i)}function J(e){const t=Ku(e,170);return t||(Qu(e)?void 0:Ku(e,342))}function U(e,t,n){const r=J(e),i=ve(t,r,eu(e),e),o=!(8192&t.flags)&&n&&r&&FI(r)?N(Fc(r),vw.cloneNode):void 0,a=r&&Ju(r)||32768&ox(e)?vw.createToken(26):void 0,s=W(e,r,t),c=r&&uh(r)||16384&ox(e)?vw.createToken(58):void 0,l=vw.createParameterDeclaration(o,a,s,c,i,void 0);return t.approximateLength+=vc(e).length+3,l}function W(e,t,n){return t&&t.name?80===t.name.kind?Cw(vw.cloneNode(t.name),16777216):167===t.name.kind?Cw(vw.cloneNode(t.name.right),16777216):function e(t){n.tracker.canTrackSymbol&&wN(t)&&Td(t)&&H(t.expression,n.enclosingDeclaration,n);let r=NJ(t,e,void 0,void 0,e);return pF(r)&&(r=vw.updateBindingElement(r,r.dotDotDotToken,r.propertyName,r.name,void 0)),ty(r)||(r=vw.cloneNode(r)),Cw(r,16777217)}(t.name):vc(e)}function H(e,t,n){if(!n.tracker.canTrackSymbol)return;const r=lb(e),i=Ge(t,r.escapedText,1160127,void 0,!0);if(i)n.tracker.trackSymbol(i,t,111551);else{const e=Ge(r,r.escapedText,1160127,void 0,!0);e&&n.tracker.trackSymbol(e,t,111551)}}function G(e,t,n,r){return t.tracker.trackSymbol(e,t.enclosingDeclaration,n),X(e,t,n,r)}function X(e,t,n,r){let i;return 262144&e.flags||!(t.enclosingDeclaration||64&t.flags)||4&t.internalFlags?i=[e]:(i=_n.checkDefined(function e(n,i,o){let a,s=nc(n,t.enclosingDeclaration,i,!!(128&t.flags));if(!s||ic(s[0],t.enclosingDeclaration,1===s.length?i:tc(i))){const r=js(s?s[0]:n,t.enclosingDeclaration,i);if(l(r)){a=r.map((e=>V(e.declarations,Sc)?te(e,t):void 0));const o=r.map(((e,t)=>t));o.sort(c);const l=o.map((e=>r[e]));for(const t of l){const r=e(t,tc(i),!1);if(r){if(t.exports&&t.exports.get("export=")&&Bs(t.exports.get("export="),n)){s=r;break}s=r.concat(s||[Ms(t,n)||n]);break}}}}if(s)return s;if(o||!(6144&n.flags)){if(!o&&!r&&_(n.declarations,Sc))return;return[n]}function c(e,t){const n=a[e],r=a[t];if(n&&r){const e=bo(r);return bo(n)===e?DB(n)-DB(r):e?-1:1}return 0}}(e,n,!0)),_n.assert(i&&i.length>0)),i}function Y(e,t){let n;return 524384&HJ(e).flags&&(n=vw.createNodeArray(N(pu(e),(e=>M(e,t))))),n}function Z(e,t,n){var r;_n.assert(e&&0<=t&&tpS(e,o.links.mapper))),n)}else a=Y(i,n)}return a}function ee(e){return oF(e.objectType)?ee(e.objectType):e}function te(t,n,r){let i=Ku(t,308);if(!i){const e=d(t.declarations,(e=>Rs(e,t)));e&&(i=Ku(e,308))}if(i&&void 0!==i.moduleName)return i.moduleName;if(!i&&KB.test(t.escapedName))return t.escapedName.substring(1,t.escapedName.length-1);if(!n.enclosingFile||!n.tracker.moduleResolverHost)return KB.test(t.escapedName)?t.escapedName.substring(1,t.escapedName.length-1):bd(gp(t)).fileName;const o=uc(n.enclosingDeclaration),a=yg(o)?vg(o):void 0,s=n.enclosingFile,c=r||a&&e.getModeForUsageLocation(s,a)||s&&e.getDefaultResolutionModeForFile(s),l=LR(s.path,c),_=ga(t);let u=_.specifierCache&&_.specifierCache.get(l);if(!u){const e=!!z.outFile,{moduleResolverHost:i}=n.tracker,o=e?{...z,baseUrl:i.getCommonSourceDirectory()}:z;u=me(xB(t,Ze,o,s,i,{importModuleSpecifierPreference:e?"non-relative":"project-relative",importModuleSpecifierEnding:e?"minimal":99===c?"js":void 0},{overrideImportMode:r})),_.specifierCache??(_.specifierCache=new Map),_.specifierCache.set(l,u)}return u}function ne(e){const t=vw.createIdentifier(gc(e.escapedName));return e.parent?vw.createQualifiedName(ne(e.parent),t):t}function ie(e,t,n,r){const i=G(e,t,n,!(16384&t.flags)),o=111551===n;if(V(i[0].declarations,Sc)){const n=i.length>1?s(i,i.length-1,1):void 0,a=r||Z(i,0,t),c=bd(uc(t.enclosingDeclaration)),l=xd(i[0]);let _,u;if(3!==Sk(z)&&99!==Sk(z)||99===(null==l?void 0:l.impliedNodeFormat)&&l.impliedNodeFormat!==(null==c?void 0:c.impliedNodeFormat)&&(_=te(i[0],t,99),u=vw.createImportAttributes(vw.createNodeArray([vw.createImportAttribute(vw.createStringLiteral("resolution-mode"),vw.createStringLiteral("import"))]))),_||(_=te(i[0],t)),!(67108864&t.flags)&&1!==Sk(z)&&_.includes("/node_modules/")){const n=_;if(3===Sk(z)||99===Sk(z)){const e=99===(null==c?void 0:c.impliedNodeFormat)?1:99;_=te(i[0],t,e),_.includes("/node_modules/")?_=n:u=vw.createImportAttributes(vw.createNodeArray([vw.createImportAttribute(vw.createStringLiteral("resolution-mode"),vw.createStringLiteral(99===e?"import":"require"))]))}u||(t.encounteredError=!0,t.tracker.reportLikelyUnsafeImportRequiredError&&t.tracker.reportLikelyUnsafeImportRequiredError(n,gc(e.escapedName)))}const d=vw.createLiteralTypeNode(vw.createStringLiteral(_));if(t.approximateLength+=_.length+10,!n||t_(n)){if(n){nD(_N(n)?n:n.right,void 0)}return vw.createImportTypeNode(d,u,n,a,o)}{const e=ee(n),t=e.objectType.typeName;return vw.createIndexedAccessTypeNode(vw.createImportTypeNode(d,u,t,a,o),e.indexType)}}const a=s(i,i.length-1,0);if(oF(a))return a;if(o)return vw.createTypeQueryNode(a);{const e=_N(a)?a:a.right,t=rD(e);return nD(e,void 0),vw.createTypeReferenceNode(a,t)}function s(e,n,i){const o=n===e.length-1?r:Z(e,n,t),a=e[n],c=e[n-1];let l;if(0===n)t.flags|=16777216,l=Xc(a,t),t.approximateLength+=(l?l.length:0)+1,t.flags^=16777216;else if(c&&Ss(c)){id(Ss(c),((e,t)=>{if(Bs(e,a)&&!Dd(t)&&"export="!==t)return l=gc(t),!0}))}if(void 0===l){const r=d(a.declarations,wc);if(r&&wN(r)&&t_(r.expression)){const t=s(e,n-1,i);return t_(t)?vw.createIndexedAccessTypeNode(vw.createParenthesizedType(vw.createTypeQueryNode(t)),vw.createTypeQueryNode(r.expression)):t}l=Xc(a,t)}if(t.approximateLength+=l.length+1,!(16&t.flags)&&c&&Rd(c)&&Rd(c).get(a.escapedName)&&Bs(Rd(c).get(a.escapedName),a)){const t=s(e,n-1,i);return oF(t)?vw.createIndexedAccessTypeNode(t,vw.createLiteralTypeNode(vw.createStringLiteral(l))):vw.createIndexedAccessTypeNode(vw.createTypeReferenceNode(t,o),vw.createLiteralTypeNode(vw.createStringLiteral(l)))}const _=Cw(vw.createIdentifier(l),16777216);if(o&&nD(_,vw.createNodeArray(o)),_.symbol=a,n>i){const t=s(e,n-1,i);return t_(t)?vw.createQualifiedName(t,_):_n.fail("Impossible construct - an export of an indexed access cannot be reachable")}return _}}function oe(e,t,n){const r=Ge(t.enclosingDeclaration,e,788968,void 0,!1);return!!(r&&262144&r.flags)&&r!==n.symbol}function ae(e,t){var n,i,o,a;if(4&t.flags&&t.typeParameterNames){const n=t.typeParameterNames.get(zb(e));if(n)return n}let s=se(e.symbol,t,788968,!0);if(!(80&s.kind))return vw.createIdentifier("(Missing type parameter)");const c=null==(i=null==(n=e.symbol)?void 0:n.declarations)?void 0:i[0];if(c&&DN(c)&&(s=r(t,s,c.name)),4&t.flags){const n=s.escapedText;let r=(null==(o=t.typeParameterNamesByTextNextNameCount)?void 0:o.get(n))||0,i=n;for(;(null==(a=t.typeParameterNamesByText)?void 0:a.has(i))||oe(i,t,e);)r++,i=`${n}_${r}`;if(i!==n){const e=rD(s);s=vw.createIdentifier(i),nD(s,e)}t.mustCreateTypeParametersNamesLookups&&(t.mustCreateTypeParametersNamesLookups=!1,t.typeParameterNames=new Map(t.typeParameterNames),t.typeParameterNamesByTextNextNameCount=new Map(t.typeParameterNamesByTextNextNameCount),t.typeParameterNamesByText=new Set(t.typeParameterNamesByText)),t.typeParameterNamesByTextNextNameCount.set(n,r),t.typeParameterNames.set(zb(e),s),t.typeParameterNamesByText.add(i)}return s}function se(e,t,n,r){const i=G(e,t,n);return!r||1===i.length||t.encounteredError||65536&t.flags||(t.encounteredError=!0),function e(n,r){const i=Z(n,r,t),o=n[r];0===r&&(t.flags|=16777216);const a=Xc(o,t);0===r&&(t.flags^=16777216);const s=Cw(vw.createIdentifier(a),16777216);i&&nD(s,vw.createNodeArray(i));return s.symbol=o,r>0?vw.createQualifiedName(e(n,r-1),s):s}(i,i.length-1)}function ce(e,t,n){const r=G(e,t,n);return function e(n,r){const i=Z(n,r,t),o=n[r];0===r&&(t.flags|=16777216);let a=Xc(o,t);0===r&&(t.flags^=16777216);let s=a.charCodeAt(0);if(qm(s)&&V(o.declarations,Sc)){const e=te(o,t);return t.approximateLength+=2+e.length,vw.createStringLiteral(e)}if(0===r||GT(a,q)){const s=Cw(vw.createIdentifier(a),16777216);return i&&nD(s,vw.createNodeArray(i)),s.symbol=o,t.approximateLength+=1+a.length,r>0?vw.createPropertyAccessExpression(e(n,r-1),s):s}{let c;if(91===s&&(a=a.substring(1,a.length-1),s=a.charCodeAt(0)),!qm(s)||8&o.flags)""+ +a===a&&(t.approximateLength+=a.length,c=vw.createNumericLiteral(+a));else{const e=Ey(a).replace(/\\./g,(e=>e.substring(1)));t.approximateLength+=e.length+2,c=vw.createStringLiteral(e,39===s)}if(!c){const e=Cw(vw.createIdentifier(a),16777216);i&&nD(e,vw.createNodeArray(i)),e.symbol=o,t.approximateLength+=a.length,c=e}return t.approximateLength+=2,vw.createElementAccessExpression(e(n,r-1),c)}}(r,r.length-1)}function le(e){const t=wc(e);if(!t)return!1;if(wN(t)){return!!(12583968&tM(t.expression).flags)}if(hF(t)){return!!(12583968&tM(t.argumentExpression).flags)}return HD(t)}function _e(e){const t=wc(e);return!!(t&&HD(t)&&(t.singleQuote||!ty(t)&&Kt(Xd(t,!1),"'")))}function de(e,t){const n=function(e){if(e.valueDeclaration&&Tc(e.valueDeclaration)&&uN(e.valueDeclaration.name))return vw.cloneNode(e.valueDeclaration.name);return}(e);if(n)return n;const r=!!l(e.declarations)&&h(e.declarations,le),i=!!l(e.declarations)&&h(e.declarations,_e),o=!!(8192&e.flags),a=function(e,t,n,r,i){const o=ga(e).nameType;if(o){if(3072&o.flags){const e=""+o.value;return gs(e,xk(z))||!r&&qT(e)?qT(e)&&Kt(e,"-")?vw.createComputedPropertyName(vw.createPrefixUnaryExpression(41,vw.createNumericLiteral(-e))):UT(e,xk(z),n,r,i):vw.createStringLiteral(e,!!n)}if(16384&o.flags)return vw.createComputedPropertyName(ce(o.symbol,t,111551))}}(e,t,i,r,o);if(a)return a;return UT(gc(e.escapedName),xk(z),i,r,o)}function pe(e){const t=e.mustCreateTypeParameterSymbolList,n=e.mustCreateTypeParametersNamesLookups;e.mustCreateTypeParameterSymbolList=!0,e.mustCreateTypeParametersNamesLookups=!0;const r=e.typeParameterNames,i=e.typeParameterNamesByText,o=e.typeParameterNamesByTextNextNameCount,a=e.typeParameterSymbolList;return()=>{e.typeParameterNames=r,e.typeParameterNamesByText=i,e.typeParameterNamesByTextNextNameCount=o,e.typeParameterSymbolList=a,e.mustCreateTypeParameterSymbolList=t,e.mustCreateTypeParametersNamesLookups=n}}function fe(e,t){return e.declarations&&y(e.declarations,(e=>!(!Dq(e)||t&&!dc(e,(e=>e===t)))))}function ge(e,t){if(!(4&yx(t)))return!0;if(!qN(e))return!0;nv(e);const n=ha(e).resolvedSymbol,r=n&&rd(n);return!r||r!==t.target||l(e.typeArguments)>=kh(t.target.typeParameters)}function he(e,t,n){16384&n.flags&&n.symbol===e&&(!t.enclosingDeclaration||V(e.declarations,(e=>bd(e)===t.enclosingFile)))&&(t.flags|=1048576);return x(n,t)}function ve(e,t,n,r){var i;let o;const a=t&&(NN(t)||UP(t))&&oq(t,e.enclosingDeclaration),s=t??r.valueDeclaration??fe(r)??(null==(i=r.declarations)?void 0:i[0]);if(!g(n,e)&&s){const t=u(e,r,n);p_(s)?o=Fe.serializeTypeOfAccessor(s,r,e):!TC(s)||ty(s)||196608&yx(n)||(o=Fe.serializeTypeOfDeclaration(s,r,e)),t()}return o||(a&&(n=Uw(n)),o=he(r,e,n)),o??vw.createKeywordTypeNode(133)}function be(e,t,n){const r=e.suppressReportInferenceFallback;e.suppressReportInferenceFallback=!0;const i=Ih(t),o=i?B(e.mapper?CS(i,e.mapper):i,e):x(n,e);return e.suppressReportInferenceFallback=r,o}function xe(e,t,n=t.enclosingDeclaration){let i=!1;const o=lb(e);if(Em(e)&&(Zm(o)||tg(o.parent)||CN(o.parent)&&eg(o.parent.left)&&Zm(o.parent.right)))return i=!0,{introducesError:i,node:e};const a=Dc(e);let s;if(_v(o))return s=Fs(em(o,!1,!1)),0!==_c(s,o,a,!1).accessibility&&(i=!0,t.tracker.reportInaccessibleThisError()),{introducesError:i,node:c(e)};if(s=ss(o,a,!0,!0),t.enclosingDeclaration&&!(s&&262144&s.flags)){s=Js(s);const n=ss(o,a,!0,!0,t.enclosingDeclaration);if(n===Dt||void 0===n&&void 0!==s||n&&s&&!Bs(Js(n),s))return n!==Dt&&t.tracker.reportInferenceFallback(e),i=!0,{introducesError:i,node:e,sym:s};s=n}return s?(1&s.flags&&s.valueDeclaration&&(Yh(s.valueDeclaration)||UP(s.valueDeclaration))||(262144&s.flags||_h(e)||0===_c(s,n,a,!1).accessibility?t.tracker.trackSymbol(s,n,a):(t.tracker.reportInferenceFallback(e),i=!0)),{introducesError:i,node:c(e)}):{introducesError:i,node:e};function c(e){if(e===o){const n=rd(s),i=262144&s.flags?ae(n,t):vw.cloneNode(e);return i.symbol=s,r(t,Cw(i,16777216),e)}const n=NJ(e,(e=>c(e)),void 0);return r(t,n,e)}}function ke(e,t){const r=n(e,t,!0);if(!r)return!1;if(Em(t)&&df(t)){vk(t);const e=ha(t).resolvedSymbol;return!e||!!((t.isTypeOf||788968&e.flags)&&l(t.typeArguments)>=kh(pu(e)))}if(qN(t)){if(Sl(t))return!1;const n=ha(t).resolvedSymbol;if(!n)return!1;if(262144&n.flags){const t=rd(n);return!(e.mapper&&pS(t,e.mapper)!==t)}if(Im(t))return ge(t,r)&&!tv(t)&&!!(788968&n.flags)}if(iF(t)&&158===t.operator&&155===t.type.kind){const n=e.enclosingDeclaration&&function(e){for(;ha(e).fakeScopeForSignatureDeclaration;)e=e.parent;return e}(e.enclosingDeclaration);return!!dc(t,(e=>e===n))}return!0}function Se(e,t){var i;const a=le(vw.createPropertyDeclaration,175,!0),c=le(((e,t,n,r)=>vw.createPropertySignature(e,t,n,r)),174,!1),u=t.enclosingDeclaration;let m=[];const g=new Set,v=[],k=t;t={...k,usedSymbolNames:new Set(k.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map(null==(i=k.remappedSymbolReferences)?void 0:i.entries()),tracker:void 0};const S={...k.tracker.inner,trackSymbol:(e,n,r)=>{var i,o;if(null==(i=t.remappedSymbolNames)?void 0:i.has(lJ(e)))return!1;if(0===_c(e,n,r,!1).accessibility){const n=X(e,t,r);if(!(4&e.flags)){const e=n[0],t=bd(k.enclosingDeclaration);V(e.declarations,(e=>bd(e)===t))&&B(e)}}else if(null==(o=k.tracker.inner)?void 0:o.trackSymbol)return k.tracker.inner.trackSymbol(e,n,r);return!1}};t.tracker=new hJ(t,S,k.tracker.moduleResolverHost),id(e,((e,t)=>{Se(e,gc(t))}));let T=!t.bundled;const w=e.get("export=");return w&&e.size>1&&2098688&w.flags&&(e=Xu()).set("export=",w),P(e),function(e){e=function(e){const t=b(e,(e=>RE(e)&&!e.moduleSpecifier&&!e.attributes&&!!e.exportClause&&ME(e.exportClause)));if(t>=0){const n=e[t],r=R(n.exportClause.elements,(t=>{if(!t.propertyName&&11!==t.name.kind){const n=t.name,r=C(K(e),(t=>kc(e[t],n)));if(l(r)&&h(r,(t=>HT(e[t])))){for(const t of r)e[t]=F(e[t]);return}}return t}));l(r)?e[t]=vw.updateExportDeclaration(n,n.modifiers,n.isTypeOnly,vw.updateNamedExports(n.exportClause,r),n.moduleSpecifier,n.attributes):zt(e,t)}return e}(e=function(e){const t=C(e,(e=>RE(e)&&!e.moduleSpecifier&&!!e.exportClause&&ME(e.exportClause)));if(l(t)>1){e=[...C(e,(e=>!RE(e)||!!e.moduleSpecifier||!e.exportClause)),vw.createExportDeclaration(void 0,!1,vw.createNamedExports(A(t,(e=>tt(e.exportClause,ME).elements))),void 0)]}const n=C(e,(e=>RE(e)&&!!e.moduleSpecifier&&!!e.exportClause&&ME(e.exportClause)));if(l(n)>1){const t=Be(n,(e=>HD(e.moduleSpecifier)?">"+e.moduleSpecifier.text:">"));if(t.length!==n.length)for(const n of t)n.length>1&&(e=[...C(e,(e=>!n.includes(e))),vw.createExportDeclaration(void 0,!1,vw.createNamedExports(A(n,(e=>tt(e.exportClause,ME).elements))),n[0].moduleSpecifier)])}return e}(e=function(e){const t=y(e,jE),n=b(e,bE);let r=-1!==n?e[n]:void 0;if(r&&t&&t.isExportEquals&&_N(t.expression)&&_N(r.name)&&hc(r.name)===hc(t.expression)&&r.body&&xE(r.body)){const i=C(e,(e=>!!(32&zv(e)))),o=r.name;let a=r.body;if(l(i)&&(r=vw.updateModuleDeclaration(r,r.modifiers,r.name,a=vw.updateModuleBlock(a,vw.createNodeArray([...r.body.statements,vw.createExportDeclaration(void 0,!1,vw.createNamedExports(N(A(i,(e=>function(e){if(GF(e))return C(N(e.declarationList.declarations,wc),D);return C([wc(e)],D)}(e))),(e=>vw.createExportSpecifier(!1,void 0,e)))),void 0)]))),e=[...e.slice(0,n),r,...e.slice(n+1)]),!y(e,(e=>e!==r&&kc(e,o)))){m=[];const n=!V(a.statements,(e=>Fv(e,32)||jE(e)||RE(e)));_(a.statements,(e=>{z(e,n?32:0)})),e=[...C(e,(e=>e!==r&&e!==t)),...m]}}return e}(e))),u&&(uP(u)&&Zp(u)||bE(u))&&(!V(e,Q_)||!G_(e)&&V(e,X_))&&e.push(cA(vw));return e}(m);function D(e){return!!e&&80===e.kind}function F(e){const t=-129&zv(e)|32;return vw.replaceModifiers(e,t)}function E(e){const t=-33&zv(e);return vw.replaceModifiers(e,t)}function P(e,n,r){n||v.push(new Map);let i=0;const o=Array.from(e.values());for(const n of o){if(i++,f(t)&&i+2{L(e,!0,!!r)})),v.pop())}function L(e,n,r){yf(eu(e));const i=Ns(e);if(g.has(lJ(i)))return;g.add(lJ(i));if(!n||l(e.declarations)&&V(e.declarations,(e=>!!dc(e,(e=>e===u))))){const i=pe(t);t.tracker.pushErrorFallbackNode(y(e.declarations,(e=>bd(e)===t.enclosingFile))),j(e,n,r),t.tracker.popErrorFallbackNode(),i()}}function j(e,i,a,c=e.escapedName){var u,d,m,g,v,b,k;const S=gc(c),T="default"===c;if(i&&!(131072&t.flags)&&Ph(S)&&!T)return void(t.encounteredError=!0);let w=T&&!!(-113&e.flags||16&e.flags&&l(yf(eu(e))))&&!(2097152&e.flags),D=!w&&!i&&Ph(S)&&!T;(w||D)&&(i=!0);const F=(i?0:32)|(T&&!w?2048:0),E=1536&e.flags&&7&e.flags&&"export="!==c,P=E&&ae(eu(e),e);if((8208&e.flags||P)&&G(eu(e),e,Se(e,S),F),524288&e.flags&&function(e,n,r){var i;const o=qu(e),a=ga(e).typeParameters,s=N(a,(e=>M(e,t))),c=null==(i=e.declarations)?void 0:i.find(Fg),l=_l(c?c.comment||c.parent.comment:void 0),_=p(t);t.flags|=8388608;const u=t.enclosingDeclaration;t.enclosingDeclaration=c;const d=c&&c.typeExpression&&pP(c.typeExpression)&&Fe.tryReuseExistingTypeNode(t,c.typeExpression.type)||x(o,t),f=Se(e,n);t.approximateLength+=8+((null==l?void 0:l.length)??0)+f.length,z(Mw(vw.createTypeAliasDeclaration(void 0,f,s,d),l?[{kind:3,text:"*\n * "+l.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),r),_(),t.enclosingDeclaration=u}(e,S,F),98311&e.flags&&"export="!==c&&!(4194304&e.flags)&&!(32&e.flags)&&!(8192&e.flags)&&!P)if(a){oe(e)&&(D=!1,w=!1)}else{const n=eu(e),o=Se(e,S);if(n.symbol&&n.symbol!==e&&16&n.symbol.flags&&V(n.symbol.declarations,JT)&&((null==(u=n.symbol.members)?void 0:u.size)||(null==(d=n.symbol.exports)?void 0:d.size)))t.remappedSymbolReferences||(t.remappedSymbolReferences=new Map),t.remappedSymbolReferences.set(lJ(n.symbol),e),j(n.symbol,i,a,c),t.remappedSymbolReferences.delete(lJ(n.symbol));else if(16&e.flags||!ae(n,e)){const a=2&e.flags?AP(e)?2:1:(null==(m=e.parent)?void 0:m.valueDeclaration)&&uP(null==(g=e.parent)?void 0:g.valueDeclaration)?2:void 0,s=!w&&4&e.flags?be(o,e):o;let c=e.declarations&&y(e.declarations,(e=>pE(e)));c&&fE(c.parent)&&1===c.parent.declarations.length&&(c=c.parent.parent);const l=null==(v=e.declarations)?void 0:v.find(gF);if(l&&PF(l.parent)&&_N(l.parent.right)&&(null==(b=n.symbol)?void 0:b.valueDeclaration)&&uP(n.symbol.valueDeclaration)){const e=o===l.parent.right.escapedText?void 0:l.parent.right;t.approximateLength+=12+((null==(k=null==e?void 0:e.escapedText)?void 0:k.length)??0),z(vw.createExportDeclaration(void 0,!1,vw.createNamedExports([vw.createExportSpecifier(!1,e,o)])),0),t.tracker.trackSymbol(n.symbol,t.enclosingDeclaration,111551)}else{const l=r(t,vw.createVariableStatement(void 0,vw.createVariableDeclarationList([vw.createVariableDeclaration(s,void 0,ve(t,void 0,n,e))],a)),c);t.approximateLength+=7+s.length,z(l,s!==o?-33&F:F),s===o||i||(t.approximateLength+=16+s.length+o.length,z(vw.createExportDeclaration(void 0,!1,vw.createNamedExports([vw.createExportSpecifier(!1,s,o)])),0),D=!1,w=!1)}}else G(n,e,o,F)}if(384&e.flags&&function(e,n,r){const i=Se(e,n);t.approximateLength+=9+i.length;const o=[],a=C(yf(eu(e)),(e=>!!(8&e.flags)));let s=0;for(const e of a){if(s++,f(t)&&s+2M(e,t)));_(p,(e=>t.approximateLength+=vc(e.symbol).length));const m=Bd(zu(e)),g=Iu(m),h=u&&xh(u),y=h&&function(e){const r=R(e,(e=>{const r=t.enclosingDeclaration;t.enclosingDeclaration=e;let i=e.expression;if(cb(i)){if(_N(i)&&""===hc(i))return o(void 0);let e;if(({introducesError:e,node:i}=xe(i,t)),e)return o(void 0)}return o(vw.createExpressionWithTypeArguments(i,N(e.typeArguments,(e=>Fe.tryReuseExistingTypeNode(t,e)||x(n(t,e),t)))));function o(e){return t.enclosingDeclaration=r,e}}));if(r.length===e.length)return r;return}(h)||R(function(e){let t=s;if(e.symbol.declarations)for(const n of e.symbol.declarations){const e=xh(n);if(e)for(const n of e){const e=aS(n);kl(e)||(t===s?t=[e]:t.push(e))}}return t}(m),ye),v=eu(e),b=!!(null==(c=v.symbol)?void 0:c.valueDeclaration)&&d_(v.symbol.valueDeclaration),k=b?Cu(v):At;t.approximateLength+=(l(g)?8:0)+(l(y)?11:0);const S=[...l(g)?[vw.createHeritageClause(96,N(g,(e=>function(e,n,r){const i=he(e,111551);if(i)return i;const o=be(`${r}_base`),a=vw.createVariableStatement(void 0,vw.createVariableDeclarationList([vw.createVariableDeclaration(o,void 0,x(n,t))],2));return z(a,0),vw.createExpressionWithTypeArguments(vw.createIdentifier(o),void 0)}(e,k,i))))]:[],...l(y)?[vw.createHeritageClause(119,y)]:[]],T=function(e,t,n){if(!l(t))return n;const r=new Map;_(n,(e=>{r.set(e.escapedName,e)}));for(const n of t){const t=yf(Bd(n,e.thisType));for(const e of t){const t=r.get(e.escapedName);t&&e.parent===t.parent&&r.delete(e.escapedName)}}return Ie(r.values())}(m,g,yf(m)),w=C(T,(e=>!Ce(e))),D=V(T,Ce),F=D?Te(t)?U(C(T,Ce),!0,g[0],!1):[vw.createPropertyDeclaration(void 0,vw.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:s;D&&!Te(t)&&(t.approximateLength+=9);const E=U(w,!0,g[0],!1),P=U(C(yf(v),(e=>!(4194304&e.flags||"prototype"===e.escapedName||ne(e)))),!0,k,!0),A=!b&&!!e.valueDeclaration&&Em(e.valueDeclaration)&&!V(mg(v,1));A&&(t.approximateLength+=21);const I=A?[vw.createConstructorDeclaration(vw.createModifiersFromModifierFlags(2),[],void 0)]:me(1,v,k,177),O=ge(m,g[0]);t.enclosingDeclaration=d,z(r(t,vw.createClassDeclaration(void 0,i,f,S,[...O,...P,...I,...E,...F]),e.declarations&&C(e.declarations,(e=>gE(e)||jF(e)))[0]),o)}(e,Se(e,S),F)),(1536&e.flags&&(!E||function(e){return h(H(e),(e=>!(111551&ts(Za(e)))))}(e))||P)&&function(e,n,r){const i=H(e),a=Te(t),c=Me(i,(t=>t.parent&&t.parent===e||a?"real":"merged")),_=c.get("real")||s,u=c.get("merged")||s;if(l(_)||a){let i;if(a){const n=t.flags;t.flags|=514,i=o(e,t,-1),t.flags=n}else{const r=Se(e,n);i=vw.createIdentifier(r),t.approximateLength+=r.length}ee(_,i,r,!!(67108880&e.flags))}if(l(u)){const r=bd(t.enclosingDeclaration),i=Se(e,n),o=vw.createModuleBlock([vw.createExportDeclaration(void 0,!1,vw.createNamedExports(R(C(u,(e=>"export="!==e.escapedName)),(n=>{var i,o;const a=gc(n.escapedName),s=Se(n,a),c=n.declarations&&Pa(n);if(r&&(c?r!==bd(c):!V(n.declarations,(e=>bd(e)===r))))return void(null==(o=null==(i=t.tracker)?void 0:i.reportNonlocalAugmentation)||o.call(i,r,e,n));const l=c&&Xa(c,!0);B(l||n);const _=l?Se(l,gc(l.escapedName)):s;return vw.createExportSpecifier(!1,a===_?void 0:_,a)}))))]);z(vw.createModuleDeclaration(void 0,vw.createIdentifier(i),o,32),0)}}(e,S,F),64&e.flags&&!(32&e.flags)&&function(e,n,r){const i=Se(e,n);t.approximateLength+=14+i.length;const o=zu(e),a=pu(e),s=N(a,(e=>M(e,t))),c=Iu(o),_=l(c)?ix(c):void 0,u=U(yf(o),!1,_),d=me(0,o,_,180),p=me(1,o,_,181),f=ge(o,_),m=l(c)?[vw.createHeritageClause(96,R(c,(e=>he(e,111551))))]:void 0;z(vw.createInterfaceDeclaration(void 0,i,s,m,[...f,...p,...d,...u]),r)}(e,S,F),2097152&e.flags&&re(e,Se(e,S),F),4&e.flags&&"export="===e.escapedName&&oe(e),8388608&e.flags&&e.declarations)for(const n of e.declarations){const e=ls(n,n.moduleSpecifier);if(!e)continue;const r=n.isTypeOnly,i=te(e,t);t.approximateLength+=17+i.length,z(vw.createExportDeclaration(void 0,r,void 0,vw.createStringLiteral(i)),0)}if(w){const n=Se(e,S);t.approximateLength+=16+n.length,z(vw.createExportAssignment(void 0,!1,vw.createIdentifier(n)),0)}else if(D){const n=Se(e,S);t.approximateLength+=22+S.length+n.length,z(vw.createExportDeclaration(void 0,!1,vw.createNamedExports([vw.createExportSpecifier(!1,n,S)])),0)}}function B(e){if(V(e.declarations,Yh))return;_n.assertIsDefined(v[v.length-1]),be(gc(e.escapedName),e);const t=!!(2097152&e.flags)&&!V(e.declarations,(e=>!!dc(e,RE)||IE(e)||TE(e)&&!VE(e.moduleReference)));v[t?0:v.length-1].set(lJ(e),e)}function z(e,n){if(FI(e)){const r=zv(e);let i=0;const o=t.enclosingDeclaration&&(Fg(t.enclosingDeclaration)?bd(t.enclosingDeclaration):t.enclosingDeclaration);32&n&&o&&(function(e){return uP(e)&&(Zp(e)||ef(e))||cp(e)&&!pp(e)}(o)||bE(o))&&HT(e)&&(i|=32),!T||32&i||o&&33554432&o.flags||!(vE(e)||GF(e)||mE(e)||gE(e)||bE(e))||(i|=128),2048&n&&(gE(e)||hE(e)||mE(e))&&(i|=2048),i&&(e=vw.replaceModifiers(e,i|r)),t.approximateLength+=_e(i|r)}m.push(e)}function U(e,n,r,i){const o=[];let s=0;for(const c of e){if(s++,f(t)&&s+2ne(e)&&gs(e.escapedName,99)))}function G(e,n,i,o){const a=mg(e,0);for(const e of a){t.approximateLength+=1;const n=O(e,263,t,{name:vw.createIdentifier(i)});z(r(t,n,Z(e)),o)}if(!(1536&n.flags&&n.exports&&n.exports.size)){const n=C(yf(e),ne);t.approximateLength+=i.length,ee(n,vw.createIdentifier(i),o,!0)}}function Y(e){return 1&t.flags?Bw(vw.createEmptyStatement(),3,e):vw.createExpressionStatement(vw.createIdentifier(e))}function Z(e){if(e.declaration&&e.declaration.parent){if(PF(e.declaration.parent)&&5===ng(e.declaration.parent))return e.declaration.parent;if(pE(e.declaration.parent)&&e.declaration.parent.parent)return e.declaration.parent.parent}return e.declaration}function ee(e,n,r,i){const o=_N(n)?32:0,a=Te(t);if(l(e)){t.approximateLength+=14;const c=Me(e,(e=>!l(e.declarations)||V(e.declarations,(e=>bd(e)===bd(t.enclosingDeclaration)))||a?"local":"remote")).get("local")||s;let _=AI.createModuleDeclaration(void 0,n,vw.createModuleBlock([]),o);ET(_,u),_.locals=Xu(e),_.symbol=e[0].parent;const d=m;m=[];const p=T;T=!1;const f={...t,enclosingDeclaration:_},g=t;t=f,P(Xu(c),i,!0),t=g,T=p;const y=m;m=d;const v=N(y,(e=>jE(e)&&!e.isExportEquals&&_N(e.expression)?vw.createExportDeclaration(void 0,!1,vw.createNamedExports([vw.createExportSpecifier(!1,e.expression,vw.createIdentifier("default"))])):e)),b=h(v,(e=>Fv(e,32)))?N(v,E):v;_=vw.updateModuleDeclaration(_,_.modifiers,_.name,vw.createModuleBlock(b)),z(_,r)}else a&&(t.approximateLength+=14,z(vw.createModuleDeclaration(void 0,n,vw.createModuleBlock([]),o),r))}function ne(e){return!!(2887656&e.flags)||!(4194304&e.flags||"prototype"===e.escapedName||e.valueDeclaration&&Ev(e.valueDeclaration)&&d_(e.valueDeclaration.parent))}function re(e,n,r){var i,o,a,s,c;const l=Pa(e);if(!l)return _n.fail();const _=Ns(Xa(l,!0));if(!_)return;let u=up(_)&&d(e.declarations,(e=>{if(LE(e)||BE(e))return $d(e.propertyName||e.name);if(PF(e)||jE(e)){const t=jE(e)?e.expression:e.right;if(gF(t))return hc(t.name)}if(Aa(e)){const t=wc(e);if(t&&_N(t))return hc(t)}}))||gc(_.escapedName);"export="===u&&Q&&(u="default");const p=Se(_,u);switch(B(_),l.kind){case 209:if(261===(null==(o=null==(i=l.parent)?void 0:i.parent)?void 0:o.kind)){const e=te(_.parent||_,t),{propertyName:r}=l,i=r&&_N(r)?hc(r):void 0;t.approximateLength+=24+n.length+e.length+((null==i?void 0:i.length)??0),z(vw.createImportDeclaration(void 0,vw.createImportClause(void 0,void 0,vw.createNamedImports([vw.createImportSpecifier(!1,i?vw.createIdentifier(i):void 0,vw.createIdentifier(n))])),vw.createStringLiteral(e),void 0),0);break}_n.failBadSyntaxKind((null==(a=l.parent)?void 0:a.parent)||l,"Unhandled binding element grandparent kind in declaration serialization");break;case 305:227===(null==(c=null==(s=l.parent)?void 0:s.parent)?void 0:c.kind)&&ie(gc(e.escapedName),p);break;case 261:if(gF(l.initializer)){const e=l.initializer,i=vw.createUniqueName(n),o=te(_.parent||_,t);t.approximateLength+=22+o.length+hc(i).length,z(vw.createImportEqualsDeclaration(void 0,!1,i,vw.createExternalModuleReference(vw.createStringLiteral(o))),0),t.approximateLength+=12+n.length+hc(i).length+hc(e.name).length,z(vw.createImportEqualsDeclaration(void 0,!1,vw.createIdentifier(n),vw.createQualifiedName(i,e.name)),r);break}case 272:if("export="===_.escapedName&&V(_.declarations,(e=>uP(e)&&ef(e)))){oe(e);break}const d=!(512&_.flags||pE(l));t.approximateLength+=11+n.length+gc(_.escapedName).length,z(vw.createImportEqualsDeclaration(void 0,!1,vw.createIdentifier(n),d?se(_,t,-1,!1):vw.createExternalModuleReference(vw.createStringLiteral(te(_,t)))),d?r:0);break;case 271:z(vw.createNamespaceExportDeclaration(hc(l.name)),0);break;case 274:{const e=te(_.parent||_,t),r=t.bundled?vw.createStringLiteral(e):l.parent.moduleSpecifier,i=CE(l.parent)?l.parent.attributes:void 0,o=eA(l.parent);t.approximateLength+=14+n.length+3+(o?4:0),z(vw.createImportDeclaration(void 0,vw.createImportClause(o?156:void 0,vw.createIdentifier(n),void 0),r,i),0);break}case 275:{const e=te(_.parent||_,t),r=t.bundled?vw.createStringLiteral(e):l.parent.parent.moduleSpecifier,i=eA(l.parent.parent);t.approximateLength+=19+n.length+3+(i?4:0),z(vw.createImportDeclaration(void 0,vw.createImportClause(i?156:void 0,void 0,vw.createNamespaceImport(vw.createIdentifier(n))),r,l.parent.attributes),0);break}case 281:t.approximateLength+=19+n.length+3,z(vw.createExportDeclaration(void 0,!1,vw.createNamespaceExport(vw.createIdentifier(n)),vw.createStringLiteral(te(_,t))),0);break;case 277:{const e=te(_.parent||_,t),r=t.bundled?vw.createStringLiteral(e):l.parent.parent.parent.moduleSpecifier,i=eA(l.parent.parent.parent);t.approximateLength+=19+n.length+3+(i?4:0),z(vw.createImportDeclaration(void 0,vw.createImportClause(i?156:void 0,void 0,vw.createNamedImports([vw.createImportSpecifier(!1,n!==u?vw.createIdentifier(u):void 0,vw.createIdentifier(n))])),r,l.parent.parent.parent.attributes),0);break}case 282:const f=l.parent.parent.moduleSpecifier;if(f){const e=l.propertyName;e&&Kd(e)&&(u="default")}ie(gc(e.escapedName),f?u:p,f&&Ru(f)?vw.createStringLiteral(f.text):void 0);break;case 278:oe(e);break;case 227:case 212:case 213:"default"===e.escapedName||"export="===e.escapedName?oe(e):ie(n,p);break;default:return _n.failBadSyntaxKind(l,"Unhandled alias declaration kind in symbol serializer!")}}function ie(e,n,r){t.approximateLength+=16+e.length+(e!==n?n.length:0),z(vw.createExportDeclaration(void 0,!1,vw.createNamedExports([vw.createExportSpecifier(!1,e!==n?n:void 0,e)]),r),0)}function oe(e){var n;if(4194304&e.flags)return!1;const r=gc(e.escapedName),i="export="===r,o=i||"default"===r,a=e.declarations&&Pa(e),s=a&&Xa(a,!0);if(s&&l(s.declarations)&&V(s.declarations,(e=>bd(e)===bd(u)))){const n=a&&(jE(a)||PF(a)?hh(a):yh(a)),c=n&&cb(n)?function(e){switch(e.kind){case 80:return e;case 167:do{e=e.left}while(80!==e.kind);return e;case 212:do{if(tg(e.expression)&&!uN(e.name))return e.name;e=e.expression}while(80!==e.kind);return e}}(n):void 0,l=c&&ss(c,-1,!0,!0,u);(l||s)&&B(l||s);const _=t.tracker.disableTrackSymbol;if(t.tracker.disableTrackSymbol=!0,o)t.approximateLength+=10,m.push(vw.createExportAssignment(void 0,i,ce(s,t,-1)));else if(c===n&&c)ie(r,hc(c));else if(n&&jF(n))ie(r,Se(s,vc(s)));else{const n=be(r,e);t.approximateLength+=n.length+10,z(vw.createImportEqualsDeclaration(void 0,!1,vw.createIdentifier(n),se(s,t,-1,!1)),0),ie(r,n)}return t.tracker.disableTrackSymbol=_,!0}{const a=be(r,e),c=lD(eu(Ns(e)));if(ae(c,e))G(c,e,a,o?0:32);else{const i=268!==(null==(n=t.enclosingDeclaration)?void 0:n.kind)||98304&e.flags&&!(65536&e.flags)?2:1;t.approximateLength+=a.length+5;z(vw.createVariableStatement(void 0,vw.createVariableDeclarationList([vw.createVariableDeclaration(a,void 0,ve(t,void 0,c,e))],i)),s&&4&s.flags&&"export="===s.escapedName?128:r===a?32:0)}return o?(t.approximateLength+=a.length+10,m.push(vw.createExportAssignment(void 0,i,vw.createIdentifier(a))),!0):r!==a&&(ie(r,a),!0)}}function ae(e,n){var r;const i=bd(t.enclosingDeclaration);return 48&yx(e)&&!V(null==(r=e.symbol)?void 0:r.declarations,x_)&&!l(Pg(e))&&!zc(e)&&!(!l(C(yf(e),ne))&&!l(mg(e,0)))&&!l(mg(e,1))&&!fe(n,u)&&!(e.symbol&&V(e.symbol.declarations,(e=>bd(e)!==i)))&&!V(yf(e),(e=>Dd(e.escapedName)))&&!V(yf(e),(e=>V(e.declarations,(e=>bd(e)!==i))))&&h(yf(e),(e=>!!gs(vc(e),q)&&(!(98304&e.flags)||tu(e)===Z_(e))))}function le(e,n,i){return function(o,a,s){var c,l,u,d,p,f;const m=ax(o),g=!!(2&m)&&!Te(t);if(a&&2887656&o.flags)return[];if(4194304&o.flags||"constructor"===o.escapedName||s&&lg(s,o.escapedName)&&cR(lg(s,o.escapedName))===cR(o)&&(16777216&o.flags)==(16777216&lg(s,o.escapedName).flags)&&VS(eu(o),pl(s,o.escapedName)))return[];const h=-1025&m|(a?256:0),y=de(o,t),v=null==(c=o.declarations)?void 0:c.find(Zt(PN,p_,pE,EN,PF,gF));if(98304&o.flags&&i){const e=[];if(65536&o.flags){const n=o.declarations&&_(o.declarations,(e=>179===e.kind?e:yF(e)&&rg(e)?_(e.arguments[2].properties,(e=>{const t=wc(e);if(t&&_N(t)&&"set"===hc(t))return e})):void 0));_n.assert(!!n);const i=a_(n)?wh(n).parameters[0]:void 0,a=null==(l=o.declarations)?void 0:l.find(Du);t.approximateLength+=_e(h)+7+(i?vc(i).length:5)+(g?0:2),e.push(r(t,vw.createSetAccessorDeclaration(vw.createModifiersFromModifierFlags(h),y,[vw.createParameterDeclaration(void 0,void 0,i?W(i,J(i),t):"value",void 0,g?void 0:ve(t,a,Z_(o),o))],void 0),a??v))}if(32768&o.flags){const n=null==(u=o.declarations)?void 0:u.find(Nu);t.approximateLength+=_e(h)+8+(g?0:2),e.push(r(t,vw.createGetAccessorDeclaration(vw.createModifiersFromModifierFlags(h),y,[],g?void 0:ve(t,n,eu(o),o),void 0),n??v))}return e}if(98311&o.flags){const n=(cR(o)?8:0)|h;return t.approximateLength+=2+(g?0:2)+_e(n),r(t,e(vw.createModifiersFromModifierFlags(n),y,16777216&o.flags?vw.createToken(58):void 0,g?void 0:ve(t,null==(d=o.declarations)?void 0:d.find(RN),Z_(o),o),void 0),(null==(p=o.declarations)?void 0:p.find(Zt(PN,pE)))||v)}if(8208&o.flags){const i=mg(eu(o),0);if(g){const n=(cR(o)?8:0)|h;return t.approximateLength+=1+_e(n),r(t,e(vw.createModifiersFromModifierFlags(n),y,16777216&o.flags?vw.createToken(58):void 0,void 0,void 0),(null==(f=o.declarations)?void 0:f.find(a_))||i[0]&&i[0].declaration||o.declarations&&o.declarations[0])}const a=[];for(const e of i){t.approximateLength+=1;const i=O(e,n,t,{name:y,questionToken:16777216&o.flags?vw.createToken(58):void 0,modifiers:h?vw.createModifiersFromModifierFlags(h):void 0}),s=e.declaration&&fg(e.declaration.parent)?e.declaration.parent:e.declaration;a.push(r(t,i,s))}return a}return _n.fail(`Unhandled class member kind! ${o.__debugFlags||o.flags}`)}}function _e(e){let t=0;return 32&e&&(t+=7),128&e&&(t+=8),2048&e&&(t+=8),4096&e&&(t+=6),1&e&&(t+=7),2&e&&(t+=8),4&e&&(t+=10),64&e&&(t+=9),256&e&&(t+=7),16&e&&(t+=9),8&e&&(t+=9),512&e&&(t+=9),1024&e&&(t+=6),8192&e&&(t+=3),16384&e&&(t+=4),t}function ue(e,t){return c(e,!1,t)}function me(e,n,i,o){const a=mg(n,e);if(1===e){if(!i&&h(a,(e=>0===l(e.parameters))))return[];if(i){const e=mg(i,1);if(!l(e)&&h(a,(e=>0===l(e.parameters))))return[];if(e.length===a.length){let t=!1;for(let n=0;nx(e,t))),i=ce(e.target.symbol,t,788968)):e.symbol&&cc(e.symbol,u,n)&&(i=ce(e.symbol,t,788968)),i)return vw.createExpressionWithTypeArguments(i,r)}function ye(e){const n=he(e,788968);return n||(e.symbol?vw.createExpressionWithTypeArguments(ce(e.symbol,t,788968),void 0):void 0)}function be(e,n){var r,i;const o=n?lJ(n):void 0;if(o&&t.remappedSymbolNames.has(o))return t.remappedSymbolNames.get(o);n&&(e=ke(n,e));let a=0;const s=e;for(;null==(r=t.usedSymbolNames)?void 0:r.has(e);)a++,e=`${s}_${a}`;return null==(i=t.usedSymbolNames)||i.add(e),o&&t.remappedSymbolNames.set(o,e),e}function ke(e,n){if("default"===n||"__class"===n||"__function"===n){const r=p(t);t.flags|=16777216;const i=Xc(e,t);r(),n=i.length>0&&qm(i.charCodeAt(0))?Ey(i):i}return"default"===n?n="_default":"export="===n&&(n="_exports"),n=gs(n,q)&&!Ph(n)?n:"_"+n.replace(/[^a-z0-9]/gi,"_")}function Se(e,n){const r=lJ(e);return t.remappedSymbolNames.has(r)?t.remappedSymbolNames.get(r):(n=ke(e,n),t.remappedSymbolNames.set(r,n),n)}}function Te(e){return-1!==e.maxExpansionDepth}function Ce(e){return!!e.valueDeclaration&&Tc(e.valueDeclaration)&&uN(e.valueDeclaration.name)}}(),Fe=tG(z,Ne.syntacticBuilderResolver),Ee=yC({evaluateElementAccessExpression:function(e,t){const n=e.expression;if(cb(n)&&Ru(e.argumentExpression)){const r=ss(n,111551,!0);if(r&&384&r.flags){const n=mc(e.argumentExpression.text),i=r.exports.get(n);if(i)return _n.assert(bd(i.valueDeclaration)===bd(r.valueDeclaration)),t?tz(e,i,t):_q(i.valueDeclaration)}}return hC(void 0)},evaluateEntityNameExpression:ez}),Pe=Xu(),Oe=na(4,"undefined");Oe.declarations=[];var Le=na(1536,"globalThis",8);Le.exports=Pe,Le.declarations=[],Pe.set(Le.escapedName,Le);var je,Re,Je,ze=na(4,"arguments"),qe=na(4,"require"),Ue=z.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",$e=!z.verbatimModuleSyntax,He=0,Ke=0,Ge=xC({compilerOptions:z,requireSymbol:qe,argumentsSymbol:ze,globals:Pe,getSymbolOfDeclaration:Fs,error:$o,getRequiresScopeChangeCache:ba,setRequiresScopeChangeCache:xa,lookup:ya,onPropertyWithInvalidInitializer:function(e,t,n,r){if(!G)return e&&!r&&Ta(e,t,t)||$o(e,e&&n.type&&Is(n.type,e.pos)?ua.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:ua.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Ap(n.name),Sa(t)),!0;return!1},onFailedToResolveSymbol:function(e,t,n,r){const i=Ye(t)?t:t.escapedText;c((()=>{if(!(e&&(325===e.parent.kind||Ta(e,i,t)||Ca(e)||function(e,t,n){const r=1920|(Em(e)?111551:0);if(n===r){const n=Za(Ge(e,t,788968&~r,void 0,!1)),i=e.parent;if(n){if(CN(i)){_n.assert(i.left===e,"Should only be resolving left side of qualified name as a namespace");const r=i.right.escapedText;if(lg(rd(n),r))return $o(i,ua.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,gc(t),gc(r)),!0}return $o(e,ua._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,gc(t)),!0}}return!1}(e,i,n)||function(e,t){if(Da(t)&&282===e.parent.kind)return $o(e,ua.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),!0;return!1}(e,i)||function(e,t,n){if(111127&n){if(Za(Ge(e,t,1024,void 0,!1)))return $o(e,ua.Cannot_use_namespace_0_as_a_value,gc(t)),!0}else if(788544&n){if(Za(Ge(e,t,1536,void 0,!1)))return $o(e,ua.Cannot_use_namespace_0_as_a_type,gc(t)),!0}return!1}(e,i,n)||function(e,t,n){if(111551&n){if(Da(t)){const n=e.parent.parent;if(n&&n.parent&&oP(n)){const r=n.token;265===n.parent.kind&&96===r?$o(e,ua.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,gc(t)):d_(n.parent)&&96===r?$o(e,ua.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,gc(t)):d_(n.parent)&&119===r&&$o(e,ua.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,gc(t))}else $o(e,ua._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,gc(t));return!0}const n=Za(Ge(e,t,788544,void 0,!1)),r=n&&ts(n);if(n&&void 0!==r&&!(111551&r)){const r=gc(t);return!function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(t)?!function(e,t){const n=dc(e.parent,(e=>!wN(e)&&!EN(e)&&($N(e)||"quit")));if(n&&1===n.members.length){const e=rd(t);return!!(134217728&e.flags)&&hR(e,3072,!0)}return!1}(e,n)?$o(e,ua._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,r):$o(e,ua._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,r,"K"===r?"P":"K"):$o(e,ua._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,r),!0}}return!1}(e,i,n)||function(e,t,n){if(788584&n){const n=Za(Ge(e,t,111127,void 0,!1));if(n&&!(1920&n.flags))return $o(e,ua._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,gc(t)),!0}return!1}(e,i,n)))){let o,a;if(t&&(a=function(e){const t=Sa(e),n=tp().get(t);return n&&ge(n.keys())}(t),a&&$o(e,r,Sa(t),a)),!a&&Zi{var a;const s=t.escapedName,c=r&&uP(r)&&Zp(r);if(e&&(2&n||(32&n||384&n)&&!(111551&~n))){const n=Js(t);(2&n.flags||32&n.flags||384&n.flags)&&function(e,t){var n;if(_n.assert(!!(2&e.flags||32&e.flags||384&e.flags)),67108881&e.flags&&32&e.flags)return;const r=null==(n=e.declarations)?void 0:n.find((e=>ap(e)||d_(e)||267===e.kind));if(void 0===r)return _n.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(33554432&r.flags||va(r,t))){let n;const i=Ap(wc(r));2&e.flags?n=$o(t,ua.Block_scoped_variable_0_used_before_its_declaration,i):32&e.flags?n=$o(t,ua.Class_0_used_before_its_declaration,i):256&e.flags?n=$o(t,ua.Enum_0_used_before_its_declaration,i):(_n.assert(!!(128&e.flags)),Ck(z)&&(n=$o(t,ua.Enum_0_used_before_its_declaration,i))),n&&cT(n,Mp(r,ua._0_is_declared_here,i))}}(n,e)}if(c&&!(111551&~n)&&!(16777216&e.flags)){const n=Ns(t);l(n.declarations)&&h(n.declarations,(e=>SE(e)||uP(e)&&!!e.symbol.globalExports))&&Go(!z.allowUmdGlobalAccess,e,ua._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,gc(s))}if(i&&!o&&!(111551&~n)){const r=Ns(Md(t)),o=Zh(i);r===Fs(i)?$o(e,ua.Parameter_0_cannot_reference_itself,Ap(i.name)):r.valueDeclaration&&r.valueDeclaration.pos>i.pos&&o.parent.locals&&ya(o.parent.locals,r.escapedName,n)===r&&$o(e,ua.Parameter_0_cannot_reference_identifier_1_declared_after_it,Ap(i.name),Ap(e))}if(e&&111551&n&&2097152&t.flags&&!(111551&t.flags)&&!kT(e)){const n=is(t,111551);if(n){const t=282===n.kind||279===n.kind||281===n.kind?ua._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:ua._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,r=gc(s);ka($o(e,t,r),n,r)}}if(z.isolatedModules&&t&&c&&!(111551&~n)){const e=ya(Pe,s,n)===t&&uP(r)&&r.locals&&ya(r.locals,s,-111552);if(e){const t=null==(a=e.declarations)?void 0:a.find((e=>277===e.kind||274===e.kind||275===e.kind||272===e.kind));t&&!Jl(t)&&$o(t,ua.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,gc(s))}}}))}}),Qe=xC({compilerOptions:z,requireSymbol:qe,argumentsSymbol:ze,globals:Pe,getSymbolOfDeclaration:Fs,error:$o,getRequiresScopeChangeCache:ba,setRequiresScopeChangeCache:xa,lookup:function(e,t,n){const r=ya(e,t,n);if(r)return r;let i=Ie(e.values());if(e===Pe){i=$(R(["string","number","boolean","object","bigint","symbol"],(t=>e.has(t.charAt(0).toUpperCase()+t.slice(1))?na(524288,t):void 0)),i)}return pU(i),WO(gc(t),i,n)}});const Ze={getNodeCount:()=>Ce(e.getSourceFiles(),((e,t)=>e+t.nodeCount),0),getIdentifierCount:()=>Ce(e.getSourceFiles(),((e,t)=>e+t.identifierCount),0),getSymbolCount:()=>Ce(e.getSourceFiles(),((e,t)=>e+t.symbolCount),g),getTypeCount:()=>m,getInstantiationCount:()=>S,getRelationCacheSizes:()=>({assignable:Io.size,identity:Lo.size,subtype:Eo.size,strictSubtype:Po.size}),isUndefinedSymbol:e=>e===Oe,isArgumentsSymbol:e=>e===ze,isUnknownSymbol:e=>e===Dt,getMergedSymbol:Ns,symbolIsValue:zs,getDiagnostics:Fz,getGlobalDiagnostics:function(){return Ez(),wo.getGlobalDiagnostics()},getRecursionIdentity:ZC,getUnmatchedProperties:ED,getTypeOfSymbolAtLocation:(e,t)=>{const n=fc(t);return n?function(e,t){if(e=Js(e),(80===t.kind||81===t.kind)&&(fb(t)&&(t=t.parent),bm(t)&&(!Yg(t)||_x(t)))){const n=$w(_x(t)&&212===t.kind?CO(t,void 0,!0):YR(t));if(Js(ha(t).resolvedSymbol)===e)return n}if(_h(t)&&Du(t.parent)&&E_(t.parent))return M_(t.parent.symbol);return mb(t)&&_x(t.parent)?Z_(e):tu(e)}(e,n):Rt},getTypeOfSymbol:eu,getSymbolsOfParameterPropertyDeclaration:(e,t)=>{const n=fc(e,NN);return void 0===n?_n.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(_n.assert(ec(n,n.parent)),function(e,t){const n=e.parent,r=e.parent.parent,i=ya(n.locals,t,111551),o=ya(Rd(r.symbol),t,111551);if(i&&o)return[i,o];return _n.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,mc(t)))},getDeclaredTypeOfSymbol:rd,getPropertiesOfType:yf,getPropertyOfType:(e,t)=>lg(e,mc(t)),getPrivateIdentifierPropertyOfType:(e,t,n)=>{const r=fc(n);if(!r)return;const i=NO(mc(t),r);return i?PO(e,i):void 0},getTypeOfPropertyOfType:(e,t)=>pl(e,mc(t)),getIndexInfoOfType:(e,t)=>Ag(e,0===t?rn:an),getIndexInfosOfType:Pg,getIndexInfosOfIndexSymbol:gy,getSignaturesOfType:mg,getIndexTypeOfType:(e,t)=>Og(e,0===t?rn:an),getIndexType:e=>Dx(e),getBaseTypes:Iu,getBaseTypeOfLiteralType:kw,getWidenedType:lD,getWidenedLiteralType:Tw,fillMissingTypeArguments:Th,getTypeFromTypeNode:e=>{const t=fc(e,x_);return t?aS(t):Rt},getParameterType:kj,getParameterIdentifierInfoAtPosition:function(e,t){var n;if(318===(null==(n=e.declaration)?void 0:n.kind))return;const r=e.parameters.length-(mJ(e)?1:0);if(tRM(e),getReturnTypeOfSignature:jh,isNullableType:gO,getNullableType:zw,getNonNullableType:Vw,getNonOptionalType:$w,getTypeArguments:Ay,typeToTypeNode:Ne.typeToTypeNode,typePredicateToTypePredicateNode:Ne.typePredicateToTypePredicateNode,indexInfoToIndexSignatureDeclaration:Ne.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Ne.signatureToSignatureDeclaration,symbolToEntityName:Ne.symbolToEntityName,symbolToExpression:Ne.symbolToExpression,symbolToNode:Ne.symbolToNode,symbolToTypeParameterDeclarations:Ne.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Ne.symbolToParameterDeclaration,typeParameterToDeclaration:Ne.typeParameterToDeclaration,getSymbolsInScope:(e,t)=>{const n=fc(e);return n?function(e,t){if(67108864&e.flags)return[];const n=Xu();let r=!1;return i(),n.delete("this"),Xg(n);function i(){for(;e;){switch(cu(e)&&e.locals&&!Yp(e)&&a(e.locals,t),e.kind){case 308:if(!_O(e))break;case 268:s(Fs(e).exports,2623475&t);break;case 267:a(Fs(e).exports,8&t);break;case 232:e.name&&o(e.symbol,t);case 264:case 265:r||a(Rd(Fs(e)),788968&t);break;case 219:e.name&&o(e.symbol,t)}Rf(e)&&o(ze,t),r=Ev(e),e=e.parent}a(Pe,t)}function o(e,t){if(cx(e)&t){const t=e.escapedName;n.has(t)||n.set(t,e)}}function a(e,t){t&&e.forEach((e=>{o(e,t)}))}function s(e,t){t&&e.forEach((e=>{Ku(e,282)||Ku(e,281)||"default"===e.escapedName||o(e,t)}))}}(n,t):[]},getSymbolAtLocation:e=>{const t=fc(e);return t?Bz(t,!0):void 0},getIndexInfosAtLocation:e=>{const t=fc(e);return t?function(e){if(_N(e)&&gF(e.parent)&&e.parent.name===e){const t=bx(e),n=YR(e.parent.expression);return A(134217728&n.flags?n.types:[n],(e=>C(Pg(e),(e=>Cg(t,e.keyType)))))}return}(t):void 0},getShorthandAssignmentValueSymbol:e=>{const t=fc(e);return t?function(e){if(e&&305===e.kind)return ss(e.name,2208703,!0);return}(t):void 0},getExportSpecifierLocalTargetSymbol:e=>{const t=fc(e,BE);return t?function(e){if(BE(e)){const t=e.propertyName||e.name;return e.parent.parent.moduleSpecifier?Va(e.parent.parent,e):11===t.kind?void 0:ss(t,2998271,!0)}return ss(e,2998271,!0)}(t):void 0},getExportSymbolOfSymbol:e=>Ns(e.exportSymbol||e),getTypeAtLocation:e=>{const t=fc(e);return t?Jz(t):Rt},getTypeOfAssignmentPattern:e=>{const t=fc(e,T_);return t&&zz(t)||Rt},getPropertySymbolOfDestructuringAssignment:e=>{const t=fc(e,_N);return t?function(e){const t=zz(tt(e.parent.parent,T_));return t&&lg(t,e.escapedText)}(t):void 0},signatureToString:(e,t,n,r)=>Ic(e,fc(t),n,r),typeToString:(e,t,n)=>Oc(e,fc(t),n),symbolToString:(e,t,n,r)=>Ac(e,fc(t),n,r),typePredicateToString:(e,t,n)=>Vc(e,fc(t),n),writeSignature:(e,t,n,r,i,o,a,s)=>Ic(e,fc(t),n,r,i,o,a,s),writeType:(e,t,n,r,i,o,a)=>Oc(e,fc(t),n,r,i,o,a),writeSymbol:(e,t,n,r,i)=>Ac(e,fc(t),n,r,i),writeTypePredicate:(e,t,n,r)=>Vc(e,fc(t),n,r),getAugmentedPropertiesOfType:Wz,getRootSymbols:function e(t){const n=function(e){if(6&ox(e))return R(ga(e).containingType.types,(t=>lg(t,e.escapedName)));if(33554432&e.flags){const{links:{leftSpread:t,rightSpread:n,syntheticOrigin:r}}=e;return t?[t,n]:r?[r]:nn(function(e){let t,n=e;for(;n=ga(n).target;)t=n;return t}(e))}return}(t);return n?A(n,e):[t]},getSymbolOfExpando:GL,getContextualType:(e,t)=>{const n=fc(e,W_);if(n)return 4&t?rt(n,(()=>aI(n,t))):aI(n,t)},getContextualTypeForObjectLiteralElement:e=>{const t=fc(e,b_);return t?GA(t,void 0):void 0},getContextualTypeForArgumentAtIndex:(e,t)=>{const n=fc(e,j_);return n&&MA(n,t)},getContextualTypeForJsxAttribute:e=>{const t=fc(e,vu);return t&&eI(t,void 0)},isContextSensitive:JS,getTypeOfPropertyOfContextualType:UA,getFullyQualifiedName:as,getResolvedSignature:(e,t,n)=>it(e,t,n,0),getCandidateSignaturesForStringLiteralCompletions:function(e,t){const n=new Set,r=[];rt(t,(()=>it(e,r,void 0,0)));for(const e of r)n.add(e);r.length=0,nt(t,(()=>it(e,r,void 0,0)));for(const e of r)n.add(e);return Ie(n)},getResolvedSignatureForSignatureHelp:(e,t,n)=>nt(e,(()=>it(e,t,n,16))),getExpandedParameters:Gd,hasEffectiveRestParameter:Nj,containsArgumentsReference:Nh,getConstantValue:e=>{const t=fc(e,uq);return t?dq(t):void 0},isValidPropertyAccess:(e,t)=>{const n=fc(e,I_);return!!n&&function(e,t){switch(e.kind){case 212:return GO(e,108===e.expression.kind,t,lD(tM(e.expression)));case 167:return GO(e,!1,t,lD(tM(e.left)));case 206:return GO(e,!1,t,aS(e))}}(n,mc(t))},isValidPropertyAccessForCompletions:(e,t,n)=>{const r=fc(e,gF);return!!r&&KO(r,t,n)},getSignatureFromDeclaration:e=>{const t=fc(e,i_);return t?wh(t):void 0},isImplementationOfOverload:e=>{const t=fc(e,i_);return t?iq(t):void 0},getImmediateAliasedSymbol:II,getAliasedSymbol:es,getEmitResolver:function(e,t,n){n||Fz(e,t);return De},requiresAddingImplicitUndefined:oq,getExportsOfModule:bs,getExportsAndPropertiesOfModule:function(e){const t=bs(e),n=ps(e);if(n!==e){const e=eu(n);ks(e)&&ae(t,yf(e))}return t},forEachExportAndPropertyOfModule:function(e,t){Ts(e).forEach(((e,n)=>{Ks(n)||t(e,n)}));const n=ps(e);if(n!==e){const e=eu(n);ks(e)&&function(e,t){e=Nm(e),403701760&e.flags&&ff(e).members.forEach(((e,n)=>{Xs(e,n)&&t(e,n)}))}(e,((e,n)=>{t(e,n)}))}},getSymbolWalker:_B((function(e){return Xh(e)||At}),Ih,jh,Iu,ff,eu,nN,bf,lb,Ay),getAmbientModules:function(){Yn||(Yn=[],Pe.forEach(((e,t)=>{KB.test(t)&&Yn.push(e)})));return Yn},getJsxIntrinsicTagNamesAt:function(e){const t=qI(WB.IntrinsicElements,e);return t?yf(t):s},isOptionalParameter:e=>{const t=fc(e,NN);return!!t&&uh(t)},tryGetMemberInModuleExports:(e,t)=>xs(mc(e),t),tryGetMemberInModuleExportsAndProperties:(e,t)=>function(e,t){const n=xs(e,t);if(n)return n;const r=ps(t);if(r===t)return;const i=eu(r);return ks(i)?lg(i,e):void 0}(mc(e),t),tryFindAmbientModule:e=>eh(e,!0),getApparentType:ym,getUnionType:Xb,isTypeAssignableTo:QS,createAnonymousType:Ys,createSignature:zd,createSymbol:na,createIndexInfo:fy,getAnyType:()=>At,getStringType:()=>rn,getStringLiteralType:Yk,getNumberType:()=>an,getNumberLiteralType:Zk,getBigIntType:()=>sn,getBigIntLiteralType:eS,getUnknownType:()=>qt,createPromiseType:Kj,createArrayType:Tb,getElementTypeOfArrayType:cw,getBooleanType:()=>fn,getFalseType:e=>e?cn:ln,getTrueType:e=>e?un:dn,getVoidType:()=>gn,getUndefinedType:()=>Ut,getNullType:()=>Qt,getESSymbolType:()=>mn,getNeverType:()=>hn,getNonPrimitiveType:()=>xn,getOptionalType:()=>Xt,getPromiseType:()=>Uv(!1),getPromiseLikeType:()=>Vv(!1),getAnyAsyncIterableType:()=>{const e=$v(!1);if(e!==Jn)return Dy(e,[At,At,At])},isSymbolAccessible:_c,isArrayType:iw,isTupleType:Fw,isArrayLikeType:lw,isEmptyAnonymousObjectType:zT,isTypeInvalidDueToUnionDiscriminant:function(e,t){return t.properties.some((t=>{const n=t.name&&(nP(t.name)?Yk(iC(t.name)):bx(t.name)),r=n&&lC(n)?_C(n):void 0,i=void 0===r?void 0:pl(e,r);return!!i&&bw(i)&&!QS(Jz(t),i)}))},getExactOptionalProperties:function(e){return yf(e).filter((e=>Xw(eu(e))))},getAllPossiblePropertiesOfTypes:function(e){const t=Xb(e);if(!(134217728&t.flags))return Wz(t);const n=Xu();for(const r of e)for(const{escapedName:e}of Wz(r))if(!n.has(e)){const r=Am(t,e);r&&n.set(e,r)}return Ie(n.values())},getSuggestedSymbolForNonexistentProperty:JO,getSuggestedSymbolForNonexistentJSXAttribute:zO,getSuggestedSymbolForNonexistentSymbol:(e,t,n)=>UO(e,mc(t),n),getSuggestedSymbolForNonexistentModule:VO,getSuggestedSymbolForNonexistentClassMember:BO,getBaseConstraintOfType:Mf,getDefaultFromTypeParameter:e=>e&&524288&e.flags?Hf(e):void 0,resolveName:(e,t,n,r)=>Ge(t,mc(e),n,void 0,!1,r),getJsxNamespace:e=>gc(qo(e)),getJsxFragmentFactory:e=>{const t=wq(e);return t&&gc(lb(t).escapedText)},getAccessibleSymbolChain:nc,getTypePredicateOfSignature:Ih,resolveExternalModuleName:e=>{const t=fc(e,W_);return t&&ls(t,t,!0)},resolveExternalModuleSymbol:ps,tryGetThisTypeAt:(e,t,n)=>{const r=fc(e);return r&&vA(r,t,n)},getTypeArgumentConstraint:e=>{const t=fc(e,x_);return t&&function(e){let t;Kg(e.parent)&&Array.isArray(e.parent.typeArguments)&&(t=e.parent.typeArguments.indexOf(e));if(void 0!==t){if(j_(e.parent))return vM(yM(e.parent),t);if(FN(e.parent.parent))return vM(yM(e.parent.parent),t);if(MF(e.parent)&&QF(e.parent.parent)){const n=tM(e.parent.expression),r=vM(mg(n,0),t),i=vM(mg(n,1),t);return 262144&i.flags?r:262144&r.flags?i:ix([r,i])}if(Ou(e.parent)){const n=hM(e.parent);if(!n)return;const r=bf(n[t]);return r&&LS(r,dS(n,mM(e.parent,n)))}}}(t)},getSuggestionDiagnostics:(n,r)=>{const i=fc(n,uP)||_n.fail("Could not determine parsed source file.");if(dT(i,z,e))return s;let o;try{return t=r,Pz(i),_n.assert(!!(1&ha(i).flags)),o=ae(o,Do.getDiagnostics(i.fileName)),YM(Nz(i),((e,t,n)=>{vd(e)||Dz(t,!!(33554432&e.flags))||(o||(o=[])).push({...n,category:2})})),o||s}finally{t=void 0}},runWithCancellationToken:(e,n)=>{try{return t=e,n(Ze)}finally{t=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:pu,isDeclarationVisible:Zc,isPropertyAccessible:XO,getTypeOnlyAliasDeclaration:is,getMemberOverrideModifierStatus:function(e,t,n){if(!t.name)return 0;const r=Fs(e),i=rd(r),o=Bd(i),a=eu(r),s=vh(e)&&Iu(i),c=(null==s?void 0:s.length)?Bd(me(s),i.thisType):void 0,l=Cu(i),_=t.parent?Av(t):Fv(t,16);return WJ(e,a,l,c,i,o,_,Iv(t),Ev(t),!1,n)},isTypeParameterPossiblyReferenced:FS,typeHasCallOrConstructSignatures:$z,getSymbolFlags:ts,getTypeArgumentsForResolvedSignature:function(e){return void 0===e.mapper?void 0:lS((e.target||e).typeParameters,e.mapper)},isLibType:Uc};function nt(e,t){if(e=dc(e,L_)){const n=[],r=[];for(;e;){const t=ha(e);if(n.push([t,t.resolvedSignature]),t.resolvedSignature=void 0,JT(e)){const t=ga(Fs(e)),n=t.type;r.push([t,n]),t.type=void 0}e=dc(e.parent,L_)}const i=t();for(const[e,t]of n)e.resolvedSignature=t;for(const[e,t]of r)e.type=t;return i}return t()}function rt(e,t){const n=dc(e,j_);if(n){let t=e;do{ha(t).skipDirectInference=!0,t=t.parent}while(t&&t!==n)}O=!0;const r=nt(e,t);if(O=!1,n){let t=e;do{ha(t).skipDirectInference=void 0,t=t.parent}while(t&&t!==n)}return r}function it(e,t,n,r){const i=fc(e,j_);je=n;const o=i?$L(i,t,r):void 0;return je=void 0,o}var ot=new Map,st=new Map,ct=new Map,lt=new Map,_t=new Map,ut=new Map,dt=new Map,pt=new Map,mt=new Map,gt=new Map,vt=new Map,bt=new Map,xt=new Map,kt=new Map,St=new Map,Tt=[],Ct=new Map,wt=new Set,Dt=na(4,"unknown"),Nt=na(0,"__resolving__"),Ft=new Map,Et=new Map,Pt=new Set,At=Ws(1,"any"),It=Ws(1,"any",262144,"auto"),Lt=Ws(1,"any",void 0,"wildcard"),jt=Ws(1,"any",void 0,"blocked string"),Rt=Ws(1,"error"),Mt=Ws(1,"unresolved"),Bt=Ws(1,"any",65536,"non-inferrable"),Jt=Ws(1,"intrinsic"),qt=Ws(2,"unknown"),Ut=Ws(4,"undefined"),Vt=Y?Ut:Ws(4,"undefined",65536,"widening"),Wt=Ws(4,"undefined",void 0,"missing"),$t=ve?Wt:Ut,Xt=Ws(4,"undefined",void 0,"optional"),Qt=Ws(8,"null"),tn=Y?Qt:Ws(8,"null",65536,"widening"),rn=Ws(32,"string"),an=Ws(64,"number"),sn=Ws(128,"bigint"),cn=Ws(8192,"false",void 0,"fresh"),ln=Ws(8192,"false"),un=Ws(8192,"true",void 0,"fresh"),dn=Ws(8192,"true");un.regularType=dn,un.freshType=un,dn.regularType=dn,dn.freshType=un,cn.regularType=ln,cn.freshType=cn,ln.regularType=ln,ln.freshType=cn;var pn,fn=Xb([ln,dn]),mn=Ws(512,"symbol"),gn=Ws(16,"void"),hn=Ws(262144,"never"),yn=Ws(262144,"never",262144,"silent"),vn=Ws(262144,"never",void 0,"implicit"),bn=Ws(262144,"never",void 0,"unreachable"),xn=Ws(131072,"object"),kn=Xb([rn,an]),Sn=Xb([rn,an,mn]),Tn=Xb([an,sn]),Cn=Xb([rn,an,fn,sn,Qt,Ut]),wn=Ex(["",""],[an]),Dn=gS((e=>{return 524288&e.flags?!(t=e).constraint&&!yy(t)||t.constraint===qn?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=Hs(t.symbol),t.restrictiveInstantiation.constraint=qn,t.restrictiveInstantiation):e;var t}),(()=>"(restrictive mapper)")),Nn=gS((e=>524288&e.flags?Lt:e),(()=>"(permissive mapper)")),Fn=Ws(262144,"never",void 0,"unique literal"),En=gS((e=>524288&e.flags?Fn:e),(()=>"(unique literal mapper)")),Pn=gS((e=>(!pn||e!==Wn&&e!==Hn&&e!==Kn||pn(!0),e)),(()=>"(unmeasurable reporter)")),An=gS((e=>(!pn||e!==Wn&&e!==Hn&&e!==Kn||pn(!1),e)),(()=>"(unreliable reporter)")),In=Ys(void 0,j,s,s,s),On=Ys(void 0,j,s,s,s);On.objectFlags|=2048;var Ln=Ys(void 0,j,s,s,s);Ln.objectFlags|=141440;var jn=na(2048,"__type");jn.members=Xu();var Rn=Ys(jn,j,s,s,s),Mn=Ys(void 0,j,s,s,s),Bn=Y?Xb([Ut,Qt,Mn]):qt,Jn=Ys(void 0,j,s,s,s);Jn.instantiations=new Map;var zn=Ys(void 0,j,s,s,s);zn.objectFlags|=262144;var qn=Ys(void 0,j,s,s,s),Un=Ys(void 0,j,s,s,s),Vn=Ys(void 0,j,s,s,s),Wn=Hs(),Hn=Hs();Hn.constraint=Wn;var Kn=Hs(),Gn=Hs(),Xn=Hs();Xn.constraint=Gn;var Qn,Yn,Zn,nr,rr,ir,or,ar,sr,cr,lr,_r,ur,dr,pr,fr,mr,gr,hr,yr,vr,br,xr,kr,Sr,Tr,Cr,wr,Dr,Nr,Fr,Er,Pr,Ar,Ir,Or,Lr,jr,Rr,Mr,Br,Jr,zr,qr,Ur,Vr,Wr,$r,Hr,Kr,Gr,Xr,Qr,Yr,Zr,ei,ti,ni,ri,ii,oi,ai,si,ci,li,_i,ui,di=ph(1,"<>",0,At),fi=zd(void 0,void 0,void 0,s,At,void 0,0,0),mi=zd(void 0,void 0,void 0,s,Rt,void 0,0,0),gi=zd(void 0,void 0,void 0,s,At,void 0,0,0),hi=zd(void 0,void 0,void 0,s,yn,void 0,0,0),yi=fy(an,rn,!0),vi=fy(rn,At,!1),bi=new Map,xi={get yieldType(){return _n.fail("Not supported")},get returnType(){return _n.fail("Not supported")},get nextType(){return _n.fail("Not supported")}},ki=zB(At,At,At),Si={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return Or||(Or=xv("AsyncIterator",3,e))||Jn},getGlobalIterableType:$v,getGlobalIterableIteratorType:Hv,getGlobalIteratorObjectType:function(e){return Mr||(Mr=xv("AsyncIteratorObject",3,e))||Jn},getGlobalGeneratorType:function(e){return Br||(Br=xv("AsyncGenerator",3,e))||Jn},getGlobalBuiltinIteratorTypes:function(){return Rr??(Rr=kv(["ReadableStreamAsyncIterator"],1))},resolveIterationType:(e,t)=>RM(e,t,ua.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:ua.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:ua.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:ua.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Ti={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return Dr||(Dr=xv("Iterator",3,e))||Jn},getGlobalIterableType:Qv,getGlobalIterableIteratorType:Yv,getGlobalIteratorObjectType:function(e){return Fr||(Fr=xv("IteratorObject",3,e))||Jn},getGlobalGeneratorType:function(e){return Er||(Er=xv("Generator",3,e))||Jn},getGlobalBuiltinIteratorTypes:function(){return jr??(jr=kv(["ArrayIterator","MapIterator","SetIterator","StringIterator"],1))},resolveIterationType:(e,t)=>e,mustHaveANextMethodDiagnostic:ua.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:ua.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:ua.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Ci=new Map,wi=new Map,Ni=new Map,Fi=0,Ei=0,Pi=0,Ai=!1,Ii=0,Oi=[],Li=[],ji=[],Ri=0,Mi=[],Bi=[],Ji=[],zi=0,qi=[],Ui=[],Vi=0,Wi=Yk(""),$i=Zk(0),Hi=eS({negative:!1,base10Value:"0"}),Ki=[],Gi=[],Xi=[],Qi=0,Yi=!1,Zi=0,eo=10,to=[],no=[],ro=[],io=[],oo=[],ao=[],so=[],co=[],lo=[],_o=[],uo=[],po=[],fo=[],mo=[],go=[],ho=[],yo=[],vo=[],xo=[],Co=0,wo=uy(),Do=uy(),No=Xb(N(xe?[...tJ.keys()].sort():Ie(tJ.keys()),Yk)),Eo=new Map,Po=new Map,Io=new Map,Oo=new Map,Lo=new Map,jo=new Map,Ro=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===z.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return function(){for(const t of e.getSourceFiles())oB(t,z);let t;Qn=new Map;for(const n of e.getSourceFiles())if(!n.redirectInfo){if(!Zp(n)){const e=n.locals.get("globalThis");if(null==e?void 0:e.declarations)for(const t of e.declarations)wo.add(Mp(t,ua.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));fa(Pe,n.locals)}if(n.jsGlobalAugmentations&&fa(Pe,n.jsGlobalAugmentations),n.patternAmbientModules&&n.patternAmbientModules.length&&(Zn=$(Zn,n.patternAmbientModules)),n.moduleAugmentations.length&&(t||(t=[])).push(n.moduleAugmentations),n.symbol&&n.symbol.globalExports){n.symbol.globalExports.forEach(((e,t)=>{Pe.has(t)||Pe.set(t,e)}))}}if(t)for(const e of t)for(const t of e)pp(t.parent)&&ma(t);(function(){const e=Oe.escapedName,t=Pe.get(e);t?_(t.declarations,(t=>{$T(t)||wo.add(Mp(t,ua.Declaration_name_conflicts_with_built_in_global_identifier_0,gc(e)))})):Pe.set(e,Oe)})(),ga(Oe).type=Vt,ga(ze).type=xv("IArguments",0,!0),ga(Dt).type=Rt,ga(Le).type=$s(16,Le),sr=xv("Array",1,!0),rr=xv("Object",0,!0),ir=xv("Function",0,!0),or=te&&xv("CallableFunction",0,!0)||ir,ar=te&&xv("NewableFunction",0,!0)||ir,lr=xv("String",0,!0),_r=xv("Number",0,!0),ur=xv("Boolean",0,!0),dr=xv("RegExp",0,!0),fr=Tb(At),(mr=Tb(It))===In&&(mr=Ys(void 0,j,s,s,s));if(cr=ab("ReadonlyArray",1)||sr,gr=cr?bb(cr,[At]):fr,pr=ab("ThisType",1),t)for(const e of t)for(const t of e)pp(t.parent)||ma(t);Qn.forEach((({firstFile:e,secondFile:t,conflictingSymbols:n})=>{if(n.size<8)n.forEach((({isBlockScoped:e,firstFileLocations:t,secondFileLocations:n},r)=>{const i=e?ua.Cannot_redeclare_block_scoped_variable_0:ua.Duplicate_identifier_0;for(const e of t)pa(e,i,r,n);for(const e of n)pa(e,i,r,t)}));else{const r=Ie(n.keys()).join(", ");wo.add(cT(Mp(e,ua.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),Mp(t,ua.Conflicts_are_in_this_file))),wo.add(cT(Mp(t,ua.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),Mp(e,ua.Conflicts_are_in_this_file)))}})),Qn=void 0}(),Ze;function Mo(e){return!!gF(e)&&(!!_N(e.name)&&(!(!gF(e.expression)&&!_N(e.expression))&&(_N(e.expression)?"Symbol"===hc(e.expression)&&nN(e.expression)===(bv("Symbol",1160127,void 0)||Dt):!!_N(e.expression.expression)&&("Symbol"===hc(e.expression.name)&&"globalThis"===hc(e.expression.expression)&&nN(e.expression.expression)===Le))))}function Bo(e){return e?St.get(e):void 0}function zo(e,t){return e&&St.set(e,t),t}function qo(e){if(e){const t=bd(e);if(t)if(XE(e)){if(t.localJsxFragmentNamespace)return t.localJsxFragmentNamespace;const n=t.pragmas.get("jsxfrag");if(n){const e=Xe(n)?n[0]:n;if(t.localJsxFragmentFactory=cO(e.arguments.factory,q),yJ(t.localJsxFragmentFactory,Uo,t_),t.localJsxFragmentFactory)return t.localJsxFragmentNamespace=lb(t.localJsxFragmentFactory).escapedText}const r=wq(e);if(r)return t.localJsxFragmentFactory=r,t.localJsxFragmentNamespace=lb(r).escapedText}else{const e=function(e){if(e.localJsxNamespace)return e.localJsxNamespace;const t=e.pragmas.get("jsx");if(t){const n=Xe(t)?t[0]:t;if(e.localJsxFactory=cO(n.arguments.factory,q),yJ(e.localJsxFactory,Uo,t_),e.localJsxFactory)return e.localJsxNamespace=lb(e.localJsxFactory).escapedText}}(t);if(e)return t.localJsxNamespace=e}}return _i||(_i="React",z.jsxFactory?(yJ(ui=cO(z.jsxFactory,q),Uo),ui&&(_i=lb(ui).escapedText)):z.reactNamespace&&(_i=mc(z.reactNamespace))),ui||(ui=vw.createQualifiedName(vw.createIdentifier(gc(_i)),"createElement")),_i}function Uo(e){return DT(e,-1,-1),NJ(e,Uo,void 0)}function Vo(e,t,n,...r){const i=$o(t,n,...r);return i.skippedOn=e,i}function Wo(e,t,...n){return e?Mp(e,t,...n):Zx(t,...n)}function $o(e,t,...n){const r=Wo(e,t,...n);return wo.add(r),r}function Ho(e){return To(bd(e).fileName,[".cts",".cjs"])?ua.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:ua.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript}function Ko(e,t){e?wo.add(t):Do.add({...t,category:2})}function Go(e,t,n,...r){if(t.pos<0||t.end<0){if(!e)return;const i=bd(t);Ko(e,"message"in n?Qx(i,0,0,n,...r):Wp(i,n))}else Ko(e,"message"in n?Mp(t,n,...r):zp(bd(t),t,n))}function Xo(e,t,n,...r){const i=$o(e,n,...r);if(t){cT(i,Mp(e,ua.Did_you_forget_to_use_await))}return i}function Qo(e,t){const n=Array.isArray(e)?_(e,Gc):Gc(e);return n&&cT(t,Mp(n,ua.The_declaration_was_marked_as_deprecated_here)),Do.add(t),t}function Yo(e){const t=Os(e);return t&&l(e.declarations)>1?64&t.flags?V(e.declarations,Zo):h(e.declarations,Zo):!!e.valueDeclaration&&Zo(e.valueDeclaration)||l(e.declarations)&&h(e.declarations,Zo)}function Zo(e){return!!(536870912&uU(e))}function ta(e,t,n){return Qo(t,Mp(e,ua._0_is_deprecated,n))}function na(e,t,n){g++;const r=new u(33554432|e,t);return r.links=new aJ,r.links.checkFlags=n||0,r}function ra(e,t){const n=na(1,e);return n.links.type=t,n}function oa(e,t){const n=na(4,e);return n.links.type=t,n}function sa(e){let t=0;return 2&e&&(t|=111551),1&e&&(t|=111550),4&e&&(t|=0),8&e&&(t|=900095),16&e&&(t|=110991),32&e&&(t|=899503),64&e&&(t|=788872),256&e&&(t|=899327),128&e&&(t|=899967),512&e&&(t|=110735),8192&e&&(t|=103359),32768&e&&(t|=46015),65536&e&&(t|=78783),262144&e&&(t|=526824),524288&e&&(t|=788968),2097152&e&&(t|=2097152),t}function ca(e,t){t.mergeId||(t.mergeId=YB,YB++),to[t.mergeId]=e}function la(e){const t=na(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=new Map(e.members)),e.exports&&(t.exports=new Map(e.exports)),ca(t,e),t}function _a(e,t,n=!1){if(!(e.flags&sa(t.flags))||67108864&(t.flags|e.flags)){if(t===e)return e;if(!(33554432&e.flags)){const n=Za(e);if(n===Dt)return t;if(n.flags&sa(t.flags)&&!(67108864&(t.flags|n.flags)))return r(e,t),t;e=la(n)}512&t.flags&&512&e.flags&&e.constEnumOnlyModule&&!t.constEnumOnlyModule&&(e.constEnumOnlyModule=!1),e.flags|=t.flags,t.valueDeclaration&&gg(e,t.valueDeclaration),ae(e.declarations,t.declarations),t.members&&(e.members||(e.members=Xu()),fa(e.members,t.members,n)),t.exports&&(e.exports||(e.exports=Xu()),fa(e.exports,t.exports,n,e)),n||ca(e,t)}else 1024&e.flags?e!==Le&&$o(t.declarations&&wc(t.declarations[0]),ua.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Ac(e)):r(e,t);return e;function r(e,t){const n=!!(384&e.flags||384&t.flags),r=!!(2&e.flags||2&t.flags),o=n?ua.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:r?ua.Cannot_redeclare_block_scoped_variable_0:ua.Duplicate_identifier_0,a=t.declarations&&bd(t.declarations[0]),s=e.declarations&&bd(e.declarations[0]),c=kd(a,z.checkJs),l=kd(s,z.checkJs),_=Ac(t);if(a&&s&&Qn&&!n&&a!==s){const n=-1===ea(a.path,s.path)?a:s,o=n===a?s:a,u=B(Qn,`${n.path}|${o.path}`,(()=>({firstFile:n,secondFile:o,conflictingSymbols:new Map}))),d=B(u.conflictingSymbols,_,(()=>({isBlockScoped:r,firstFileLocations:[],secondFileLocations:[]})));c||i(d.firstFileLocations,t),l||i(d.secondFileLocations,e)}else c||da(t,o,_,e),l||da(e,o,_,t)}function i(e,t){if(t.declarations)for(const n of t.declarations)se(e,n)}}function da(e,t,n,r){_(e.declarations,(e=>{pa(e,t,n,r.declarations)}))}function pa(e,t,n,r){const i=(Km(e,!1)?Xm(e):wc(e))||e,o=function(e,t,...n){const r=e?Mp(e,t,...n):Zx(t,...n);return wo.lookup(r)||(wo.add(r),r)}(i,t,n);for(const e of r||s){const t=(Km(e,!1)?Xm(e):wc(e))||e;if(t===i)continue;o.relatedInformation=o.relatedInformation||[];const r=Mp(t,ua._0_was_also_declared_here,n),a=Mp(t,ua.and_here);l(o.relatedInformation)>=5||V(o.relatedInformation,(e=>0===ik(e,a)||0===ik(e,r)))||cT(o,l(o.relatedInformation)?a:r)}}function fa(e,t,n=!1,r){t.forEach(((t,i)=>{const o=e.get(i),a=o?_a(o,t,n):Ns(t);r&&o&&33554432&a.flags&&(a.parent=r),e.set(i,a)}))}function ma(e){var t,n,r;const i=e.parent;if((null==(t=i.symbol.declarations)?void 0:t[0])===i)if(pp(i))fa(Pe,i.symbol.exports);else{let t=_s(e,e,33554432&e.parent.parent.flags?void 0:ua.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!1,!0);if(!t)return;if(t=ps(t),1920&t.flags)if(V(Zn,(e=>t===e.symbol))){const n=_a(i.symbol,t,!0);nr||(nr=new Map),nr.set(e.text,n)}else{if((null==(n=t.exports)?void 0:n.get("__export"))&&(null==(r=i.symbol.exports)?void 0:r.size)){const e=jd(t,"resolvedExports");for(const[n,r]of Ie(i.symbol.exports.entries()))e.has(n)&&!t.exports.has(n)&&_a(e.get(n),r)}_a(t,i.symbol)}else $o(e,ua.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,e.text)}else _n.assert(i.symbol.declarations.length>1)}function ga(e){if(33554432&e.flags)return e.links;const t=lJ(e);return no[t]??(no[t]=new aJ)}function ha(e){const t=cJ(e);return ro[t]||(ro[t]=new sJ)}function ya(e,t,n){if(n){const r=Ns(e.get(t));if(r){if(r.flags&n)return r;if(2097152&r.flags){if(ts(r)&n)return r}}}}function va(t,n){const r=bd(t),i=bd(n),o=Ep(t);if(r!==i){if(U&&(r.externalModuleIndicator||i.externalModuleIndicator)||!z.outFile||uv(n)||33554432&t.flags)return!0;if(a(n,t))return!0;const o=e.getSourceFiles();return o.indexOf(r)<=o.indexOf(i)}if(16777216&n.flags||uv(n)||rN(n))return!0;if(t.pos<=n.pos&&(!PN(t)||!sm(n.parent)||t.initializer||t.exclamationToken)){if(209===t.kind){const e=Ch(n,209);return e?dc(e,pF)!==dc(t,pF)||t.pose===t?"quit":wN(e)?e.parent.parent===t:!W&&FN(e)&&(e.parent===t||IN(e.parent)&&e.parent.parent===t||fl(e.parent)&&e.parent.parent===t||PN(e.parent)&&e.parent.parent===t||NN(e.parent)&&e.parent.parent.parent===t)));return!e||!(W||!FN(e))&&!!dc(n,(t=>t===e?"quit":i_(t)&&!om(t)))}return PN(t)?!c(t,n,!1):!ec(t,t.parent)||!(G&&Xf(t)===Xf(n)&&a(n,t))}return!!(282===n.parent.kind||278===n.parent.kind&&n.parent.isExportEquals)||(!(278!==n.kind||!n.isExportEquals)||!!a(n,t)&&(!G||!Xf(t)||!PN(t)&&!ec(t,t.parent)||!c(t,n,!0)));function a(e,t){return s(e,t)}function s(e,t){return!!dc(e,(n=>{if(n===o)return"quit";if(i_(n))return!om(n);if(ON(n))return t.pos=r&&o.pos<=i){const n=vw.createPropertyAccessExpression(vw.createThis(),e);ET(n.expression,n),ET(n,o),n.flowNode=o.returnFlowNode;if(!WT(hP(n,t,Uw(t))))return!0}return!1}(e,eu(Fs(t)),C(t.parent.members,ON),t.parent.pos,n.pos))return!0}}}else{if(!(173===t.kind&&!Ev(t))||Xf(e)!==Xf(t))return!0}}const i=et(n.parent,FN);if(i&&i.expression===n){if(NN(i.parent))return!!s(i.parent.parent.parent,t)||"quit";if(IN(i.parent))return!!s(i.parent.parent,t)||"quit"}return!1}))}function c(e,t,n){if(t.end>e.end)return!1;return void 0===dc(t,(t=>{if(t===e)return"quit";switch(t.kind){case 220:return!0;case 173:return!n||!(PN(e)&&t.parent===e.parent||ec(e,e.parent)&&t.parent===e.parent.parent)||"quit";case 242:switch(t.parent.kind){case 178:case 175:case 179:return!0;default:return!1}default:return!1}}))}}function ba(e){return ha(e).declarationRequiresScopeChange}function xa(e,t){ha(e).declarationRequiresScopeChange=t}function ka(e,t,n){return t?cT(e,Mp(t,282===t.kind||279===t.kind||281===t.kind?ua._0_was_exported_here:ua._0_was_imported_here,n)):e}function Sa(e){return Ye(e)?gc(e):Ap(e)}function Ta(e,t,n){if(!_N(e)||e.escapedText!==t||Az(e)||uv(e))return!1;const r=em(e,!1,!1);let i=r;for(;i;){if(d_(i.parent)){const o=Fs(i.parent);if(!o)break;if(lg(eu(o),t))return $o(e,ua.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Sa(n),Ac(o)),!0;if(i===r&&!Ev(i)){if(lg(rd(o).thisType,t))return $o(e,ua.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Sa(n)),!0}}i=i.parent}return!1}function Ca(e){const t=wa(e);return!(!t||!ss(t,64,!0))&&($o(e,ua.Cannot_extend_an_interface_0_Did_you_mean_implements,Xd(t)),!0)}function wa(e){switch(e.kind){case 80:case 212:return e.parent?wa(e.parent):void 0;case 234:if(cb(e.expression))return e.expression;default:return}}function Da(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function Na(e,t,n){return!!t&&!!dc(e,(e=>e===t||!!(e===n||i_(e)&&(!om(e)||3&Lh(e)))&&"quit"))}function Fa(e){switch(e.kind){case 272:return e;case 274:return e.parent;case 275:return e.parent.parent;case 277:return e.parent.parent.parent;default:return}}function Pa(e){return e.declarations&&v(e.declarations,Aa)}function Aa(e){return 272===e.kind||271===e.kind||274===e.kind&&!!e.name||275===e.kind||281===e.kind||277===e.kind||282===e.kind||278===e.kind&&gh(e)||PF(e)&&2===ng(e)&&gh(e)||Cx(e)&&PF(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind&&Ia(e.parent.right)||305===e.kind||304===e.kind&&Ia(e.initializer)||261===e.kind&&Rm(e)||209===e.kind&&Rm(e.parent.parent)}function Ia(e){return mh(e)||SF(e)&&HL(e)}function Oa(e,t){const n=Ha(e);if(n){const e=Nx(n.expression).arguments[0];return _N(n.name)?Za(lg(Eh(e),n.name.escapedText)):void 0}if(pE(e)||284===e.moduleReference.kind){const n=ls(e,wm(e)||Cm(e)),r=ps(n);if(r&&102<=U&&U<=199){const n=Ua(r,"module.exports",e,t);if(n)return n}return ns(e,n,r,!1),r}const r=os(e.moduleReference,t);return function(e,t){if(ns(e,void 0,t,!1)&&!e.isTypeOnly){const t=is(Fs(e)),n=282===t.kind||279===t.kind,r=n?ua.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:ua.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,i=n?ua._0_was_exported_here:ua._0_was_imported_here,o=279===t.kind?"*":$d(t.name);cT($o(e.moduleReference,r),Mp(t,i,o))}}(e,r),r}function La(e,t,n,r){const i=e.exports.get("export="),o=i?lg(eu(i),t,!0):e.exports.get(t),a=Za(o,r);return ns(n,o,a,!1),a}function ja(e){return jE(e)&&!e.isExportEquals||Fv(e,2048)||BE(e)||IE(e)}function Ra(t){return Ru(t)?e.getEmitSyntaxForUsageLocation(bd(t),t):void 0}function Ma(e,t){if(100<=U&&U<=199){if(99===Ra(e)){t??(t=ls(e,e,!0));const n=t&&xd(t);return n&&(ef(n)||".d.json.ts"===vO(n.fileName))}}return!1}function Ba(t,n,r,i){const o=t&&Ra(i);if(t&&void 0!==o){const n=e.getImpliedNodeFormatForEmit(t);if(99===o&&1===n&&100<=U&&U<=199)return!0;if(99===o&&99===n)return!1;if(!n&&t.isDeclarationFile){if(e.getRedirectFromSourceFile(t.path)||e.getRedirectFromOutput(t.path)){const n=e.getEmitModuleFormatOfFile(t);if(99===o&&5<=n&&n<=99)return!1}}}if(!Q)return!1;if(!t||t.isDeclarationFile){const e=La(n,"default",void 0,!0);return(!e||!V(e.declarations,ja))&&!La(n,mc("__esModule"),void 0,r)}return Fm(t)?"object"!=typeof t.externalModuleIndicator&&!La(n,mc("__esModule"),void 0,r):vs(n)}function Ja(t,n,r){var i;const o=null==(i=t.declarations)?void 0:i.find(uP),a=za(n);let s,c;if(up(t))s=t;else{if(o&&a&&102<=U&&U<=199&&1===Ra(a)&&99===e.getImpliedNodeFormatForEmit(o)&&(c=La(t,"module.exports",n,r)))return wk(z)?(ns(n,c,void 0,!1),c):void $o(n.name,ua.Module_0_can_only_be_default_imported_using_the_1_flag,Ac(t),"esModuleInterop");s=La(t,"default",n,r)}if(!a)return s;const l=Ma(a,t),_=Ba(o,t,r,a);if(s||_||l){if(_||l){const e=ps(t,r)||Za(t,r);return ns(n,t,e,!1),e}}else if(vs(t)&&!Q){const e=U>=5?"allowSyntheticDefaultImports":"esModuleInterop",r=t.exports.get("export=").valueDeclaration,i=$o(n.name,ua.Module_0_can_only_be_default_imported_using_the_1_flag,Ac(t),e);r&&cT(i,Mp(r,ua.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,e))}else wE(n)?function(e,t){var n,r,i;if(null==(n=e.exports)?void 0:n.has(t.symbol.escapedName))$o(t.name,ua.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Ac(e),Ac(t.symbol));else{const n=$o(t.name,ua.Module_0_has_no_default_export,Ac(e)),o=null==(r=e.exports)?void 0:r.get("__export");if(o){const e=null==(i=o.declarations)?void 0:i.find((e=>{var t,n;return!!(RE(e)&&e.moduleSpecifier&&(null==(n=null==(t=ls(e,e.moduleSpecifier))?void 0:t.exports)?void 0:n.has("default")))}));e&&cT(n,Mp(e,ua.export_Asterisk_does_not_re_export_a_default))}}}(t,n):$a(t,t,n,Bl(n)&&n.propertyName||n.name);return ns(n,s,void 0,!1),s}function za(e){switch(e.kind){case 274:return e.parent.moduleSpecifier;case 272:return VE(e.moduleReference)?e.moduleReference.expression:void 0;case 275:case 282:return e.parent.parent.moduleSpecifier;case 277:return e.parent.parent.parent.moduleSpecifier;default:return _n.assertNever(e)}}function Ua(e,t,n,r){var i;if(1536&e.flags){const o=Ss(e).get(t),a=Za(o,r);return ns(n,o,a,!1,null==(i=ga(e).typeOnlyExportStarMap)?void 0:i.get(t),t),a}}function Va(e,t,n=!1){var r;const i=wm(e)||e.moduleSpecifier,o=ls(e,i),a=!gF(t)&&t.propertyName||t.name;if(!_N(a)&&11!==a.kind)return;const s=Hd(a),c=fs(o,i,!1,"default"===s&&Q);if(c&&(s||11===a.kind)){if(up(o))return o;let l;l=o&&o.exports&&o.exports.get("export=")?lg(eu(c),s,!0):function(e,t){if(3&e.flags){const n=e.valueDeclaration.type;if(n)return Za(lg(aS(n),t))}}(c,s),l=Za(l,n);let _=Ua(c,s,t,n);if(void 0===_&&"default"===s){const e=null==(r=o.declarations)?void 0:r.find(uP);(Ma(i,o)||Ba(e,o,n,i))&&(_=ps(o,n)||Za(o,n))}const u=_&&l&&_!==l?function(e,t){if(e===Dt&&t===Dt)return Dt;if(790504&e.flags)return e;const n=na(e.flags|t.flags,e.escapedName);return _n.assert(e.declarations||t.declarations),n.declarations=X($(e.declarations,t.declarations),ft),n.parent=e.parent||t.parent,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),t.members&&(n.members=new Map(t.members)),e.exports&&(n.exports=new Map(e.exports)),n}(l,_):_||l;return Bl(t)&&Ma(i,o)&&"default"!==s?$o(a,ua.Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0,pi[U]):u||$a(o,c,e,a),u}}function $a(e,t,n,r){var i;const o=as(e,n),a=Ap(r),s=_N(r)?VO(r,t):void 0;if(void 0!==s){const e=Ac(s),t=$o(r,ua._0_has_no_exported_member_named_1_Did_you_mean_2,o,a,e);s.valueDeclaration&&cT(t,Mp(s.valueDeclaration,ua._0_is_declared_here,e))}else(null==(i=e.exports)?void 0:i.has("default"))?$o(r,ua.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,o,a):function(e,t,n,r,i){var o,a;const s=null==(a=null==(o=et(r.valueDeclaration,cu))?void 0:o.locals)?void 0:a.get(Hd(t)),c=r.exports;if(s){const r=null==c?void 0:c.get("export=");if(r)Bs(r,s)?function(e,t,n,r){if(U>=5){$o(t,wk(z)?ua._0_can_only_be_imported_by_using_a_default_import:ua._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n)}else if(Em(e)){$o(t,wk(z)?ua._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:ua._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n)}else{$o(t,wk(z)?ua._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:ua._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n,n,r)}}(e,t,n,i):$o(t,ua.Module_0_has_no_exported_member_1,i,n);else{const e=c?y(Xg(c),(e=>!!Bs(e,s))):void 0,r=e?$o(t,ua.Module_0_declares_1_locally_but_it_is_exported_as_2,i,n,Ac(e)):$o(t,ua.Module_0_declares_1_locally_but_it_is_not_exported,i,n);s.declarations&&cT(r,...N(s.declarations,((e,t)=>Mp(e,0===t?ua._0_is_declared_here:ua.and_here,n))))}}else $o(t,ua.Module_0_has_no_exported_member_1,i,n)}(n,r,a,e,o)}function Ha(e){if(pE(e)&&e.initializer&&gF(e.initializer))return e.initializer}function Ka(e,t,n){const r=e.propertyName||e.name;if(Kd(r)){const t=za(e),r=t&&ls(e,t);if(r)return Ja(r,e,!!n)}const i=e.parent.parent.moduleSpecifier?Va(e.parent.parent,e,n):11===r.kind?void 0:ss(r,t,!1,n);return ns(e,void 0,i,!1),i}function Ga(e,t){if(jF(e))return IR(e).symbol;if(!t_(e)&&!cb(e))return;const n=ss(e,901119,!0,t);return n||(IR(e),ha(e).resolvedSymbol)}function Xa(e,t=!1){switch(e.kind){case 272:case 261:return Oa(e,t);case 274:return function(e,t){const n=ls(e,e.parent.moduleSpecifier);if(n)return Ja(n,e,t)}(e,t);case 275:return function(e,t){const n=e.parent.parent.moduleSpecifier,r=ls(e,n),i=fs(r,n,t,!1);return ns(e,r,i,!1),i}(e,t);case 281:return function(e,t){const n=e.parent.moduleSpecifier,r=n&&ls(e,n),i=n&&fs(r,n,t,!1);return ns(e,r,i,!1),i}(e,t);case 277:case 209:return function(e,t){if(LE(e)&&Kd(e.propertyName||e.name)){const n=za(e),r=n&&ls(e,n);if(r)return Ja(r,e,t)}const n=pF(e)?Zh(e):e.parent.parent.parent,r=Ha(n),i=Va(n,r||e,t),o=e.propertyName||e.name;return r&&i&&_N(o)?Za(lg(eu(i),o.escapedText),t):(ns(e,void 0,i,!1),i)}(e,t);case 282:return Ka(e,901119,t);case 278:case 227:return function(e,t){const n=Ga(jE(e)?e.expression:e.right,t);return ns(e,void 0,n,!1),n}(e,t);case 271:return function(e,t){if(su(e.parent)){const n=ps(e.parent.symbol,t);return ns(e,void 0,n,!1),n}}(e,t);case 305:return ss(e.name,901119,!0,t);case 304:return Ga(e.initializer,t);case 213:case 212:return function(e,t){if(PF(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind)return Ga(e.parent.right,t)}(e,t);default:return _n.fail()}}function Qa(e,t=901119){return!!e&&(2097152==(e.flags&(2097152|t))||!!(2097152&e.flags&&67108864&e.flags))}function Za(e,t){return!t&&Qa(e)?es(e):e}function es(e){_n.assert(!!(2097152&e.flags),"Should only get Alias here.");const t=ga(e);if(t.aliasTarget)t.aliasTarget===Nt&&(t.aliasTarget=Dt);else{t.aliasTarget=Nt;const n=Pa(e);if(!n)return _n.fail();const r=Xa(n);t.aliasTarget===Nt?t.aliasTarget=r||Dt:$o(n,ua.Circular_definition_of_import_alias_0,Ac(e))}return t.aliasTarget}function ts(e,t,n){const r=t&&is(e),i=r&&RE(r),o=r&&(i?ls(r.moduleSpecifier,r.moduleSpecifier,!0):es(r.symbol)),a=i&&o?Ts(o):void 0;let s,c=n?0:e.flags;for(;2097152&e.flags;){const t=Js(es(e));if(!i&&t===o||(null==a?void 0:a.get(t.escapedName))===t)break;if(t===Dt)return-1;if(t===e||(null==s?void 0:s.has(t)))break;2097152&t.flags&&(s?s.add(t):s=new Set([e,t])),c|=t.flags,e=t}return c}function ns(e,t,n,r,i,o){if(!e||gF(e))return!1;const a=Fs(e);if(ql(e)){return ga(a).typeOnlyDeclaration=e,!0}if(i){const e=ga(a);return e.typeOnlyDeclaration=i,a.escapedName!==o&&(e.typeOnlyExportStarName=o),!0}const s=ga(a);return rs(s,t,r)||rs(s,n,r)}function rs(e,t,n){var r;if(t&&(void 0===e.typeOnlyDeclaration||n&&!1===e.typeOnlyDeclaration)){const n=(null==(r=t.exports)?void 0:r.get("export="))??t,i=n.declarations&&y(n.declarations,ql);e.typeOnlyDeclaration=i??ga(n).typeOnlyDeclaration??!1}return!!e.typeOnlyDeclaration}function is(e,t){var n;if(!(2097152&e.flags))return;const r=ga(e);if(void 0===r.typeOnlyDeclaration){r.typeOnlyDeclaration=!1;const t=Za(e);ns(null==(n=e.declarations)?void 0:n[0],Pa(e)&&II(e),t,!0)}if(void 0===t)return r.typeOnlyDeclaration||void 0;if(r.typeOnlyDeclaration){return ts(279===r.typeOnlyDeclaration.kind?Za(Ts(r.typeOnlyDeclaration.symbol.parent).get(r.typeOnlyExportStarName||e.escapedName)):es(r.typeOnlyDeclaration.symbol))&t?r.typeOnlyDeclaration:void 0}}function os(e,t){return 80===e.kind&&fb(e)&&(e=e.parent),80===e.kind||167===e.parent.kind?ss(e,1920,!1,t):(_n.assert(272===e.parent.kind),ss(e,901119,!1,t))}function as(e,t){return e.parent?as(e.parent,t)+"."+Ac(e):Ac(e,t,void 0,36)}function ss(e,t,n,r,i){if(Nd(e))return;const o=1920|(Em(e)?111551&t:0);let a;if(80===e.kind){const r=t===o||ty(e)?ua.Cannot_find_namespace_0:tN(lb(e)),s=Em(e)&&!ty(e)?function(e,t){if(Zy(e.parent)){const n=function(e){if(dc(e,(e=>Tu(e)||16777216&e.flags?Fg(e):"quit")))return;const t=Wg(e);if(t&&QF(t)&&fg(t.expression)){const e=Fs(t.expression.left);if(e)return cs(e)}if(t&&SF(t)&&fg(t.parent)&&QF(t.parent.parent)){const e=Fs(t.parent.left);if(e)return cs(e)}if(t&&(Jf(t)||sP(t))&&PF(t.parent.parent)&&6===ng(t.parent.parent)){const e=Fs(t.parent.parent.left);if(e)return cs(e)}const n=Vg(e);if(n&&i_(n)){const e=Fs(n);return e&&e.valueDeclaration}}(e.parent);if(n)return Ge(n,e,t,void 0,!0)}}(e,t):void 0;if(a=Ns(Ge(i||e,e,t,n||s?void 0:r,!0,!1)),!a)return Ns(s)}else if(167===e.kind||212===e.kind){const r=167===e.kind?e.left:e.expression,s=167===e.kind?e.right:e.name;let c=ss(r,o,n,!1,i);if(!c||Nd(s))return;if(c===Dt)return c;if(c.valueDeclaration&&Em(c.valueDeclaration)&&100!==Sk(z)&&pE(c.valueDeclaration)&&c.valueDeclaration.initializer&&rj(c.valueDeclaration.initializer)){const e=c.valueDeclaration.initializer.arguments[0],t=ls(e,e);if(t){const e=ps(t);e&&(c=e)}}if(a=Ns(ya(Ss(c),s.escapedText,t)),!a&&2097152&c.flags&&(a=Ns(ya(Ss(es(c)),s.escapedText,t))),!a){if(!n){const n=as(c),r=Ap(s),i=VO(s,c);if(i)return void $o(s,ua._0_has_no_exported_member_named_1_Did_you_mean_2,n,r,Ac(i));const o=CN(e)&&function(e){for(;CN(e.parent);)e=e.parent;return e}(e),a=rr&&788968&t&&o&&!wF(o.parent)&&function(e){let t=lb(e),n=Ge(t,t,111551,void 0,!0);if(n){for(;CN(t.parent);){if(n=lg(eu(n),t.parent.right.escapedText),!n)return;t=t.parent}return n}}(o);if(a)return void $o(o,ua._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Rp(o));if(1920&t&&CN(e.parent)){const t=Ns(ya(Ss(c),s.escapedText,788968));if(t)return void $o(e.parent.right,ua.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,Ac(t),gc(e.parent.right.escapedText))}$o(s,ua.Namespace_0_has_no_exported_member_1,n,r)}return}}else _n.assertNever(e,"Unknown entity name kind.");return!ty(e)&&t_(e)&&(2097152&a.flags||278===e.parent.kind)&&ns(fh(e),a,void 0,!0),a.flags&t||r?a:es(a)}function cs(e){const t=e.parent.valueDeclaration;if(!t)return;return(Vm(t)?Hm(t):Au(t)?$m(t):void 0)||t}function ls(e,t,n,r){const i=1===Sk(z);return r??(r=function(e){if(11===e.kind&&FC.has(e.text))return hk(z)?ua.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:ua.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig;return}(t)??(i?ua.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:ua.Cannot_find_module_0_or_its_corresponding_type_declarations)),_s(e,t,n?void 0:r,n)}function _s(e,t,n,r=!1,i=!1){return Ru(t)?us(e,t.text,n,r?void 0:t,i):void 0}function us(t,n,r,i,o=!1){var a,s,c,l,_,u,d,p,f,m,g,h;if(i&&Kt(n,"@types/")){$o(i,ua.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Gt(n,"@types/"),n)}const y=eh(n,!0);if(y)return y;const v=bd(t),b=Ru(t)?t:(null==(a=bE(t)?t:t.parent&&bE(t.parent)&&t.parent.name===t?t.parent:void 0)?void 0:a.name)||(null==(s=df(t)?t:void 0)?void 0:s.argument.literal)||Rm(t)&&Bm(t)||(null==(c=dc(t,_f))?void 0:c.arguments[0])||(null==(l=dc(t,Zt(CE,eA,RE)))?void 0:l.moduleSpecifier)||(null==(_=dc(t,Tm))?void 0:_.moduleReference.expression),x=b&&Ru(b)?e.getModeForUsageLocation(v,b):e.getDefaultResolutionModeForFile(v),k=Sk(z),S=null==(u=e.getResolvedModule(v,n,x))?void 0:u.resolvedModule,T=i&&S&&ZV(z,S,v),C=S&&(!T||T===ua.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(S.resolvedFileName);if(C){if(T&&$o(i,T,n,S.resolvedFileName),S.resolvedUsingTsExtension&&yO(n)){const e=(null==(d=dc(t,CE))?void 0:d.importClause)||dc(t,Zt(TE,RE));(i&&e&&!e.isTypeOnly||dc(t,_f))&&$o(i,ua.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,function(e){const t=HS(n,e);if(Mk(U)||99===x){const r=yO(n)&&HM(z);return t+(".mts"===e||".d.mts"===e?r?".mts":".mjs":".cts"===e||".d.mts"===e?r?".cts":".cjs":r?".ts":".js")}return t}(_n.checkDefined(kb(n))))}else if(S.resolvedUsingTsExtension&&!HM(z,v.fileName)){const e=(null==(p=dc(t,CE))?void 0:p.importClause)||dc(t,Zt(TE,RE));if(i&&!(null==e?void 0:e.isTypeOnly)&&!dc(t,cF)){const e=_n.checkDefined(kb(n));$o(i,ua.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,e)}}else if(z.rewriteRelativeImportExtensions&&!(33554432&t.flags)&&!yO(n)&&!df(t)&&!Ul(t)){const t=kg(n,z);if(!S.resolvedUsingTsExtension&&t)$o(i,ua.This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0,aa(Jo(v.fileName,e.getCurrentDirectory()),S.resolvedFileName,My(e)));else if(S.resolvedUsingTsExtension&&!t&&Qy(C,e))$o(i,ua.This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path,Ao(n));else if(S.resolvedUsingTsExtension&&t){const t=null==(f=e.getRedirectFromSourceFile(C.path))?void 0:f.resolvedRef;if(t){const n=!e.useCaseSensitiveFileNames(),r=e.getCommonSourceDirectory(),o=hU(t.commandLine,n);ia(r,o,n)!==ia(z.outDir||r,t.commandLine.options.outDir||o,n)&&$o(i,ua.This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files)}}}if(C.symbol){if(i&&S.isExternalLibraryImport&&!eT(S.extension)&&ds(!1,i,v,x,S,n),i&&(100===U||101===U)){const e=1===v.impliedNodeFormat&&!dc(t,_f)||!!dc(t,TE),r=dc(t,(e=>cF(e)||RE(e)||CE(e)||eA(e)));if(e&&99===C.impliedNodeFormat&&!dC(r))if(dc(t,TE))$o(i,ua.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,n);else{let e;const t=rT(v.fileName);".ts"!==t&&".js"!==t&&".tsx"!==t&&".jsx"!==t||(e=fd(v));const o=273===(null==r?void 0:r.kind)&&(null==(m=r.importClause)?void 0:m.isTypeOnly)?ua.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:206===(null==r?void 0:r.kind)?ua.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:ua.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead;wo.add(zp(bd(i),i,tk(e,o,n)))}}return Ns(C.symbol)}i&&r&&!CC(i)&&$o(i,ua.File_0_is_not_a_module,C.fileName)}else{if(Zn){const e=Ht(Zn,(e=>e.pattern),n);if(e){const t=nr&&nr.get(n);return Ns(t?t:e.symbol)}}if(i){if((!S||eT(S.extension)||void 0!==T)&&T!==ua.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(r){if(S){const t=e.getRedirectFromSourceFile(S.resolvedFileName);if(null==t?void 0:t.outputDts)return void $o(i,ua.Output_file_0_has_not_been_built_from_source_file_1,t.outputDts,S.resolvedFileName)}if(T)$o(i,T,n,S.resolvedFileName);else{const t=bo(n)&&!ko(n),o=3===k||99===k;if(!Ek(z)&&So(n,".json")&&1!==k&&Bk(z))$o(i,ua.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n);else if(99===x&&o&&t){const t=Jo(n,Fo(v.path)),r=null==(g=Ro.find((([n,r])=>e.fileExists(t+n))))?void 0:g[1];r?$o(i,ua.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,n+r):$o(i,ua.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if(null==(h=e.getResolvedModule(v,n,x))?void 0:h.alternateResult){Go(!0,i,tk(pd(v,e,n,x,n),r,n))}else $o(i,r,n)}}return}if(o){$o(i,ua.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,S.resolvedFileName)}else ds(le&&!!r,i,v,x,S,n)}}}function ds(t,n,r,i,{packageId:o,resolvedFileName:a},s){if(CC(n))return;let c;!ws(s)&&o&&(c=pd(r,e,s,i,o.name)),Go(t,n,tk(c,ua.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,s,a))}function ps(e,t){if(null==e?void 0:e.exports){const n=function(e,t){if(!e||e===Dt||e===t||1===t.exports.size||2097152&e.flags)return e;const n=ga(e);if(n.cjsExportMerged)return n.cjsExportMerged;const r=33554432&e.flags?e:la(e);r.flags=512|r.flags,void 0===r.exports&&(r.exports=Xu());t.exports.forEach(((e,t)=>{"export="!==t&&r.exports.set(t,r.exports.has(t)?_a(r.exports.get(t),e):e)})),r===e&&(ga(r).resolvedExports=void 0,ga(r).resolvedMembers=void 0);return ga(r).cjsExportMerged=r,n.cjsExportMerged=r}(Ns(Za(e.exports.get("export="),t)),Ns(e));return Ns(n)||e}}function fs(t,n,r,i){var o;const a=ps(t,r);if(!r&&a){if(!(i||1539&a.flags||Ku(a,308))){const e=U>=5?"allowSyntheticDefaultImports":"esModuleInterop";return $o(n,ua.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,e),a}const s=n.parent,c=CE(s)&&Tg(s);if(c||_f(s)){const l=_f(s)?s.arguments[0]:s.moduleSpecifier,_=eu(a),u=tj(_,a,t,l);if(u)return ys(a,u,s);const d=null==(o=null==t?void 0:t.declarations)?void 0:o.find(uP),p=Ra(l);let f;if(c&&d&&102<=U&&U<=199&&1===p&&99===e.getImpliedNodeFormatForEmit(d)&&(f=La(a,"module.exports",c,r)))return i||1539&a.flags||$o(n,ua.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,"esModuleInterop"),wk(z)&&ms(_)?ys(f,_,s):f;const m=d&&function(e,t){return 99===e&&1===t}(p,e.getImpliedNodeFormatForEmit(d));if((wk(z)||m)&&(ms(_)||lg(_,"default",!0)||m)){return ys(a,403701760&_.flags?nj(_,a,t,l):ej(a,a.parent),s)}}}return a}function ms(e){return V(_g(e,0))||V(_g(e,1))}function ys(e,t,n){const r=na(e.flags,e.escapedName);r.declarations=e.declarations?e.declarations.slice():[],r.parent=e.parent,r.links.target=e,r.links.originatingImport=n,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),e.members&&(r.members=new Map(e.members)),e.exports&&(r.exports=new Map(e.exports));const i=ff(t);return r.links.type=Ys(r,i.members,s,s,i.indexInfos),r}function vs(e){return void 0!==e.exports.get("export=")}function bs(e){return Xg(Ts(e))}function xs(e,t){const n=Ts(t);if(n)return n.get(e)}function ks(e){return!(12713980&e.flags||1&yx(e)||iw(e)||Fw(e))}function Ss(e){return 6256&e.flags?jd(e,"resolvedExports"):1536&e.flags?Ts(e):e.exports||j}function Ts(e){const t=ga(e);if(!t.resolvedExports){const{exports:n,typeOnlyExportStarMap:r}=Ds(e);t.resolvedExports=n,t.typeOnlyExportStarMap=r}return t.resolvedExports}function Cs(e,t,n,r){t&&t.forEach(((t,i)=>{if("default"===i)return;const o=e.get(i);if(o){if(n&&r&&o&&Za(o)!==Za(t)){const e=n.get(i);e.exportsWithDuplicate?e.exportsWithDuplicate.push(r):e.exportsWithDuplicate=[r]}}else e.set(i,t),n&&r&&n.set(i,{specifierText:Xd(r.moduleSpecifier)})}))}function Ds(e){const t=[];let n;const r=new Set,i=function e(i,o,a){!a&&(null==i?void 0:i.exports)&&i.exports.forEach(((e,t)=>r.add(t)));if(!(i&&i.exports&&se(t,i)))return;const s=new Map(i.exports),c=i.exports.get("__export");if(c){const t=Xu(),n=new Map;if(c.declarations)for(const r of c.declarations){const i=ls(r,r.moduleSpecifier);Cs(t,e(i,r,a||r.isTypeOnly),n,r)}n.forEach((({exportsWithDuplicate:e},t)=>{if("export="!==t&&e&&e.length&&!s.has(t))for(const r of e)wo.add(Mp(r,ua.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,n.get(t).specifierText,gc(t)))})),Cs(s,t)}(null==o?void 0:o.isTypeOnly)&&(n??(n=new Map),s.forEach(((e,t)=>n.set(t,o))));return s}(e=ps(e))||j;return n&&r.forEach((e=>n.delete(e))),{exports:i,typeOnlyExportStarMap:n}}function Ns(e){let t;return e&&e.mergeId&&(t=to[e.mergeId])?t:e}function Fs(e){return Ns(e.symbol&&Md(e.symbol))}function Ps(e){return su(e)?Fs(e):void 0}function Os(e){return Ns(e.parent&&Md(e.parent))}function Ls(e){var t,n;return(220===(null==(t=e.valueDeclaration)?void 0:t.kind)||219===(null==(n=e.valueDeclaration)?void 0:n.kind))&&Ps(e.valueDeclaration.parent)||e}function js(t,n,r){const i=Os(t);if(i&&!(262144&t.flags))return u(i);const o=R(t.declarations,(e=>{if(!cp(e)&&e.parent){if(Sc(e.parent))return Fs(e.parent);if(xE(e.parent)&&e.parent.parent&&ps(Fs(e.parent.parent))===t)return Fs(e.parent.parent)}if(jF(e)&&PF(e.parent)&&64===e.parent.operatorToken.kind&&Cx(e.parent.left)&&cb(e.parent.left.expression))return tg(e.parent.left)||Zm(e.parent.left.expression)?Fs(bd(e)):(IR(e.parent.left.expression),ha(e.parent.left.expression).resolvedSymbol)}));if(!l(o))return;const a=R(o,(e=>Ms(e,t)?e:void 0));let c=[],_=[];for(const e of a){const[t,...n]=u(e);c=re(c,t),_=ae(_,n)}return $(c,_);function u(i){const o=R(i.declarations,d),a=n&&function(t,n){const r=bd(n),i=cJ(r),o=ga(t);let a;if(o.extendedContainersByFile&&(a=o.extendedContainersByFile.get(i)))return a;if(r&&r.imports){for(const e of r.imports){if(ty(e))continue;const r=ls(n,e,!0);r&&(Ms(r,t)&&(a=re(a,r)))}if(l(a))return(o.extendedContainersByFile||(o.extendedContainersByFile=new Map)).set(i,a),a}if(o.extendedContainers)return o.extendedContainers;const c=e.getSourceFiles();for(const e of c){if(!_O(e))continue;const n=Fs(e);Ms(n,t)&&(a=re(a,n))}return o.extendedContainers=a||s}(t,n),c=function(e,t){const n=!!l(e.declarations)&&me(e.declarations);if(111551&t&&n&&n.parent&&pE(n.parent)&&(mF(n)&&n===n.parent.initializer||$N(n)&&n===n.parent.type))return Fs(n.parent)}(i,r);if(n&&i.flags&tc(r)&&nc(i,n,1920,!1))return re($($([i],o),a),c);const _=!(i.flags&tc(r))&&788968&i.flags&&1048576&rd(i).flags&&111551===r?Zs(n,(e=>id(e,(e=>{if(e.flags&tc(r)&&eu(e)===rd(i))return e})))):void 0;let u=_?[_,...o,i]:[...o,i];return u=re(u,c),u=ae(u,a),u}function d(e){return i&&Rs(e,i)}}function Rs(e,t){const n=bc(e),r=n&&n.exports&&n.exports.get("export=");return r&&Bs(r,t)?n:void 0}function Ms(e,t){if(e===Os(t))return t;const n=e.exports&&e.exports.get("export=");if(n&&Bs(n,t))return e;const r=Ss(e),i=r.get(t.escapedName);return i&&Bs(i,t)?i:id(r,(e=>{if(Bs(e,t))return e}))}function Bs(e,t){if(Ns(Za(Ns(e)))===Ns(Za(Ns(t))))return e}function Js(e){return Ns(e&&!!(1048576&e.flags)&&e.exportSymbol||e)}function zs(e,t){return!!(111551&e.flags||2097152&e.flags&&111551&ts(e,!t))}function qs(e){var t;const n=new p(Ze,e);return m++,n.id=m,null==(t=$n)||t.recordType(n),n}function Us(e,t){const n=qs(e);return n.symbol=t,n}function Vs(e){return new p(Ze,e)}function Ws(e,t,n=0,r){!function(e,t){const n=`${e},${t??""}`;Pt.has(n)&&_n.fail(`Duplicate intrinsic type name ${e}${t?` (${t})`:""}; you may need to pass a name to createIntrinsicType.`);Pt.add(n)}(t,r);const i=qs(e);return i.intrinsicName=t,i.debugIntrinsicName=r,i.objectFlags=52953088|n,i}function $s(e,t){const n=Us(1048576,t);return n.objectFlags=e,n.members=void 0,n.properties=void 0,n.callSignatures=void 0,n.constructSignatures=void 0,n.indexInfos=void 0,n}function Hs(e){return Us(524288,e)}function Ks(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function Gs(e,t){if(!xe){let t;return e.forEach(((e,n)=>{Xs(e,n)&&(t??(t=[])).push(e)})),t??s}if(0===e.size)return s;let n,r;return t&&96&t.flags&&e.forEach(((e,r)=>{Xs(e,r)&&i(e,t)&&(n=re(n,e))})),e.forEach(((e,n)=>{!Xs(e,n)||t&&96&t.flags&&i(e,t)||(r=re(r,e))})),null==n||n.sort(fU),null==r||r.sort(fU),$(n,r)??s;function i(e,t){const n=e.valueDeclaration;if(n&&t.declarations)for(const e of t.declarations)if(r=n,(i=e).pos<=r.pos&&i.end>=r.end)return!0;var r,i;return!1}}function Xs(e,t){return!Ks(t)&&zs(e)}function Qs(e,t,n,r,i){const o=e;return o.members=t,o.properties=s,o.callSignatures=n,o.constructSignatures=r,o.indexInfos=i,t!==j&&(o.properties=Gs(t,e.symbol)),o}function Ys(e,t,n,r,i){return Qs($s(16,e),t,n,r,i)}function Zs(e,t){let n;for(let r=e;r;r=r.parent){if(cu(r)&&r.locals&&!Yp(r)&&(n=t(r.locals,void 0,!0,r)))return n;switch(r.kind){case 308:if(!Zp(r))break;case 268:const e=Fs(r);if(n=t((null==e?void 0:e.exports)||j,void 0,!0,r))return n;break;case 264:case 232:case 265:let i;if((Fs(r).members||j).forEach(((e,t)=>{788968&e.flags&&(i||(i=Xu())).set(t,e)})),i&&(n=t(i,void 0,!1,r)))return n}}return t(Pe,void 0,!0)}function tc(e){return 111551===e?111551:1920}function nc(e,t,n,r,i=new Map){if(!e||function(e){if(e.declarations&&e.declarations.length){for(const t of e.declarations)switch(t.kind){case 173:case 175:case 178:case 179:continue;default:return!1}return!0}return!1}(e))return;const o=ga(e),a=o.accessibleChainCache||(o.accessibleChainCache=new Map),s=Zs(t,((e,t,n,r)=>r)),c=`${r?0:1}|${s?cJ(s):0}|${n}`;if(a.has(c))return a.get(c);const l=lJ(e);let _=i.get(l);_||i.set(l,_=[]);const u=Zs(t,d);return a.set(c,u),u;function d(n,i,o){if(!se(_,n))return;const a=function(n,i,o){if(f(n.get(e.escapedName),void 0,i))return[e];const a=id(n,(n=>{if(2097152&n.flags&&"export="!==n.escapedName&&"default"!==n.escapedName&&!(vx(n)&&t&&_O(bd(t)))&&(!r||V(n.declarations,Tm))&&(!o||!V(n.declarations,Sm))&&(i||!Ku(n,282))){const e=m(n,es(n),i);if(e)return e}if(n.escapedName===e.escapedName&&n.exportSymbol&&f(Ns(n.exportSymbol),void 0,i))return[e]}));return a||(n===Pe?m(Le,Le,i):void 0)}(n,i,o);return _.pop(),a}function p(e,n){return!ic(e,t,n)||!!nc(e.parent,t,tc(n),r,i)}function f(t,r,i){return(e===(r||t)||Ns(e)===Ns(r||t))&&!V(t.declarations,Sc)&&(i||p(Ns(t),n))}function m(e,t,r){if(f(e,t,r))return[e];const i=Ss(t),o=i&&d(i,!0);return o&&p(e,tc(n))?[e].concat(o):void 0}}function ic(e,t,n){let r=!1;return Zs(t,(t=>{let i=Ns(t.get(e.escapedName));if(!i)return!1;if(i===e)return!0;const o=2097152&i.flags&&!Ku(i,282);i=o?es(i):i;return!!((o?ts(i):i.flags)&n)&&(r=!0,!0)})),r}function ac(e,t){return 0===pc(e,t,111551,!1,!0).accessibility}function cc(e,t,n){return 0===pc(e,t,n,!1,!1).accessibility}function lc(e,t,n,r,i,o){if(!l(e))return;let a,s=!1;for(const c of e){const e=nc(c,t,r,!1);if(e){a=c;const t=Cc(e[0],i);if(t)return t}if(o&&V(c.declarations,Sc)){if(i){s=!0;continue}return{accessibility:0}}const l=lc(js(c,t,r),t,n,n===c?tc(r):r,i,o);if(l)return l}return s?{accessibility:0}:a?{accessibility:1,errorSymbolName:Ac(n,t,r),errorModuleName:a!==n?Ac(a,t,1920):void 0}:void 0}function _c(e,t,n,r){return pc(e,t,n,r,!0)}function pc(e,t,n,r,i){if(e&&t){const o=lc([e],t,e,n,r,i);if(o)return o;const a=_(e.declarations,bc);if(a){if(a!==bc(t))return{accessibility:2,errorSymbolName:Ac(e,t,n),errorModuleName:Ac(a),errorNode:Em(t)?t:void 0}}return{accessibility:1,errorSymbolName:Ac(e,t,n)}}return{accessibility:0}}function bc(e){const t=dc(e,xc);return t&&Fs(t)}function xc(e){return cp(e)||308===e.kind&&Zp(e)}function Sc(e){return lp(e)||308===e.kind&&Zp(e)}function Cc(e,t){let n;if(h(C(e.declarations,(e=>80!==e.kind)),(function(t){var n,i;if(!Zc(t)){const o=Fa(t);if(o&&!Fv(o,32)&&Zc(o.parent))return r(t,o);if(pE(t)&&GF(t.parent.parent)&&!Fv(t.parent.parent,32)&&Zc(t.parent.parent.parent))return r(t,t.parent.parent);if(wp(t)&&!Fv(t,32)&&Zc(t.parent))return r(t,t);if(pF(t)){if(2097152&e.flags&&Em(t)&&(null==(n=t.parent)?void 0:n.parent)&&pE(t.parent.parent)&&(null==(i=t.parent.parent.parent)?void 0:i.parent)&&GF(t.parent.parent.parent.parent)&&!Fv(t.parent.parent.parent.parent,32)&&t.parent.parent.parent.parent.parent&&Zc(t.parent.parent.parent.parent.parent))return r(t,t.parent.parent.parent.parent);if(2&e.flags){const e=rc(t);if(170===e.kind)return!1;const n=e.parent.parent;return 244===n.kind&&(!!Fv(n,32)||!!Zc(n.parent)&&r(t,n))}}return!1}return!0})))return{accessibility:0,aliasesToMakeVisible:n};function r(e,r){return t&&(ha(e).isVisible=!0,n=ce(n,r)),!0}}function Dc(e){let t;return t=187===e.parent.kind||234===e.parent.kind&&!wf(e.parent)||168===e.parent.kind||183===e.parent.kind&&e.parent.parameterName===e?1160127:167===e.kind||212===e.kind||272===e.parent.kind||167===e.parent.kind&&e.parent.left===e||212===e.parent.kind&&e.parent.expression===e||213===e.parent.kind&&e.parent.expression===e?1920:788968,t}function Ec(e,t,n=!0){const r=Dc(e),i=lb(e),o=Ge(t,i.escapedText,r,void 0,!1);return o&&262144&o.flags&&788968&r||!o&&_v(i)&&0===_c(Fs(em(i,!1,!1)),i,r,!1).accessibility?{accessibility:0}:o?Cc(o,n)||{accessibility:1,errorSymbolName:Xd(i),errorNode:i}:{accessibility:3,errorSymbolName:Xd(i),errorNode:i}}function Ac(e,t,n,r=4,i){let o=70221824,a=0;2&r&&(o|=128),1&r&&(o|=512),8&r&&(o|=16384),32&r&&(a|=4),16&r&&(a|=1);const s=4&r?Ne.symbolToNode:Ne.symbolToEntityName;return i?c(i).getText():sd(c);function c(r){const i=s(e,n,t,o,a),c=308===(null==t?void 0:t.kind)?NU():DU(),l=t&&bd(t);return c.writeNode(4,i,l,r),r}}function Ic(e,t,n=0,r,i,o,a,s){return i?c(i).getText():sd(c);function c(i){let c;c=262144&n?1===r?186:185:1===r?181:180;const l=Ne.signatureToSignatureDeclaration(e,c,t,70222336|Jc(n),void 0,void 0,o,a,s),_=FU(),u=t&&bd(t);return _.writeNode(4,l,u,jy(i)),i}}function Oc(e,t,n=1064960,r=Ly(""),i,o,a){const s=!i&&z.noErrorTruncation||1&n,c=Ne.typeToTypeNode(e,t,70221824|Jc(n)|(s?1:0),void 0,void 0,i,o,a);if(void 0===c)return _n.fail("should always get typenode");const l=e!==Mt?DU():wU(),_=t&&bd(t);l.writeNode(4,c,_,r);const u=r.getText(),d=i||(s?2*$u:2*Wu);return d&&u&&u.length>=d?u.substr(0,d-3)+"...":u}function Lc(e,t){let n=Mc(e.symbol)?Oc(e,e.symbol.valueDeclaration):Oc(e),r=Mc(t.symbol)?Oc(t,t.symbol.valueDeclaration):Oc(t);return n===r&&(n=Rc(e),r=Rc(t)),[n,r]}function Rc(e){return Oc(e,void 0,64)}function Mc(e){return e&&!!e.valueDeclaration&&W_(e.valueDeclaration)&&!JS(e.valueDeclaration)}function Jc(e=0){return 848330095&e}function zc(e){return!!(e.symbol&&32&e.symbol.flags&&(e===zu(e.symbol)||1048576&e.flags&&16777216&yx(e)))}function qc(e){return aS(e)}function Uc(t){var n;const r=4&yx(t)?t.target.symbol:t.symbol;return Fw(t)||!!(null==(n=null==r?void 0:r.declarations)?void 0:n.some((t=>e.isSourceFileDefaultLibrary(bd(t)))))}function Vc(e,t,n=16384,r){return r?i(r).getText():sd(i);function i(r){const i=70222336|Jc(n),o=Ne.typePredicateToTypePredicateNode(e,t,i),a=DU(),s=t&&bd(t);return a.writeNode(4,o,s,r),r}}function Wc(e){return 2===e?"private":4===e?"protected":"public"}function $c(e){return e&&e.parent&&269===e.parent.kind&&fp(e.parent.parent)}function Hc(e){return 308===e.kind||cp(e)}function Kc(e,t){const n=ga(e).nameType;if(n){if(3072&n.flags){const e=""+n.value;return gs(e,xk(z))||qT(e)?qT(e)&&Kt(e,"-")?`[${e}]`:e:`"${ky(e,34)}"`}if(16384&n.flags)return`[${Xc(n.symbol,t)}]`}}function Xc(e,t){var n;if((null==(n=null==t?void 0:t.remappedSymbolReferences)?void 0:n.has(lJ(e)))&&(e=t.remappedSymbolReferences.get(lJ(e))),t&&"default"===e.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!e.declarations||t.enclosingDeclaration&&dc(e.declarations[0],Hc)!==dc(t.enclosingDeclaration,Hc)))return"default";if(e.declarations&&e.declarations.length){let n=d(e.declarations,(e=>wc(e)?e:void 0));const r=n&&wc(n);if(n&&r){if(yF(n)&&rg(n))return vc(e);if(wN(r)&&!(4096&ox(e))){const n=ga(e).nameType;if(n&&3072&n.flags){const n=Kc(e,t);if(void 0!==n)return n}}return Ap(r)}if(n||(n=e.declarations[0]),n.parent&&261===n.parent.kind)return Ap(n.parent.name);switch(n.kind){case 232:case 219:case 220:return!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),232===n.kind?"(Anonymous class)":"(Anonymous function)"}}const r=Kc(e,t);return void 0!==r?r:vc(e)}function Zc(e){if(e){const t=ha(e);return void 0===t.isVisible&&(t.isVisible=!!function(){switch(e.kind){case 339:case 347:case 341:return!!(e.parent&&e.parent.parent&&e.parent.parent.parent&&uP(e.parent.parent.parent));case 209:return Zc(e.parent.parent);case 261:if(S_(e.name)&&!e.name.elements.length)return!1;case 268:case 264:case 265:case 266:case 263:case 267:case 272:if(fp(e))return!0;const t=ll(e);return 32&_U(e)||272!==e.kind&&308!==t.kind&&33554432&t.flags?Zc(t):Yp(t);case 173:case 172:case 178:case 179:case 175:case 174:if(Nv(e,6))return!1;case 177:case 181:case 180:case 182:case 170:case 269:case 185:case 186:case 188:case 184:case 189:case 190:case 193:case 194:case 197:case 203:return Zc(e.parent);case 274:case 275:case 277:return!1;case 169:case 308:case 271:return!0;default:return!1}}()),t.isVisible}return!1}function el(e,t){let n,r,i;return 11!==e.kind&&e.parent&&278===e.parent.kind?n=Ge(e,e,2998271,void 0,!1):282===e.parent.kind&&(n=Ka(e.parent,2998271)),n&&(i=new Set,i.add(lJ(n)),function e(n){_(n,(n=>{const o=Fa(n)||n;if(t?ha(n).isVisible=!0:(r=r||[],se(r,o)),Dm(n)){const t=lb(n.moduleReference),r=Ge(n,t.escapedText,901119,void 0,!1);r&&i&&J(i,lJ(r))&&e(r.declarations)}}))}(n.declarations)),r}function tl(e,t){const n=il(e,t);if(n>=0){const{length:e}=Ki;for(let t=n;t=Qi;n--){if(ol(Ki[n],Xi[n]))return-1;if(Ki[n]===e&&Xi[n]===t)return n}return-1}function ol(e,t){switch(t){case 0:return!!ga(e).type;case 2:return!!ga(e).declaredType;case 1:return!!e.resolvedBaseConstructorType;case 3:return!!e.resolvedReturnType;case 4:return!!e.immediateBaseConstraint;case 5:return!!e.resolvedTypeArguments;case 6:return!!e.baseTypesResolved;case 7:return!!ga(e).writeType;case 8:return void 0!==ha(e).parameterInitializerContainsUndefined}return _n.assertNever(t)}function sl(){return Ki.pop(),Xi.pop(),Gi.pop()}function ll(e){return dc(Zh(e),(e=>{switch(e.kind){case 261:case 262:case 277:case 276:case 275:case 274:return!1;default:return!0}})).parent}function pl(e,t){const n=lg(e,t);return n?eu(n):void 0}function ml(e,t){var n;let r;return pl(e,t)||(r=null==(n=Bg(e,t))?void 0:n.type)&&zl(r,!0,!0)}function gl(e){return e&&!!(1&e.flags)}function kl(e){return e===Rt||!!(1&e.flags&&e.aliasSymbol)}function Tl(e,t){if(0!==t)return Vl(e,!1,t);const n=Fs(e);return n&&ga(n).type||Vl(e,!1,t)}function Cl(e,t,n){if(262144&(e=aE(e,(e=>!(12&e.flags)))).flags)return In;if(134217728&e.flags)return lE(e,(e=>Cl(e,t,n)));let r=Xb(N(t,bx));const i=[],o=[];for(const t of yf(e)){const e=xx(t,19456);QS(e,r)||6&ax(t)||!Jk(t)?o.push(e):i.push(t)}if(Wx(e)||$x(r)){if(o.length&&(r=Xb([r,...o])),262144&r.flags)return e;const t=(Kr||(Kr=gv("Omit",2,!0)||Dt),Kr===Dt?void 0:Kr);return t?Ry(t,[e,r]):Rt}const a=Xu();for(const e of i)a.set(e.escapedName,Uk(e,!1));const c=Ys(n,a,s,s,Pg(e));return c.objectFlags|=4194304,c}function wl(e){return!!(132644864&e.flags)&&mR(Mf(e)||qt,4)}function Dl(e){return ZN(iE(e,wl)?lE(e,(e=>132644864&e.flags?Bf(e):e)):e,524288)}function Fl(e,t){const n=El(e);return n?hP(n,t):t}function El(e){const t=function(e){const t=e.parent.parent;switch(t.kind){case 209:case 304:return El(t);case 210:return El(e.parent);case 261:return t.initializer;case 227:return t.right}}(e);if(t&&Lg(t)&&t.flowNode){const n=Pl(e);if(n){const r=NI(AI.createStringLiteral(n),e),i=B_(t)?t:AI.createParenthesizedExpression(t),o=NI(AI.createElementAccessExpression(i,r),e);return ET(r,o),ET(o,e),i!==t&&ET(i,o),o.flowNode=t.flowNode,o}}}function Pl(e){const t=e.parent;return 209===e.kind&&207===t.kind?Al(e.propertyName||e.name):304===e.kind||305===e.kind?Al(e.name):""+t.elements.indexOf(e)}function Al(e){const t=bx(e);return 3072&t.flags?""+t.value:void 0}function Il(e){const t=e.dotDotDotToken?32:0,n=Tl(e.parent.parent,t);return n&&jl(e,n,!1)}function jl(e,t,n){if(gl(t))return t;const r=e.parent;Y&&33554432&e.flags&&Yh(e)?t=Vw(t):Y&&r.parent.initializer&&!HN(BF(r.parent.initializer),65536)&&(t=ZN(t,524288));const i=32|(n||bI(e)?16:0);let o;if(207===r.kind)if(e.dotDotDotToken){if(2&(t=zm(t)).flags||!LI(t))return $o(e,ua.Rest_types_may_only_be_created_from_object_types),Rt;const n=[];for(const e of r.elements)e.dotDotDotToken||n.push(e.propertyName||e.name);o=Cl(t,n,e.symbol)}else{const n=e.propertyName||e.name;o=Fl(e,ok(t,bx(n),i,n))}else{const n=MB(65|(e.dotDotDotToken?0:128),t,Ut,r),a=r.elements.indexOf(e);if(e.dotDotDotToken){const e=lE(t,(e=>117964800&e.flags?Bf(e):e));o=oE(e,Fw)?lE(e,(e=>jb(e,a))):Tb(n)}else if(lw(t)){o=Fl(e,sk(t,Zk(a),i,e.name)||Rt)}else o=n}return e.initializer?mv(rc(e))?Y&&!HN(jR(e,0),16777216)?Dl(o):o:MR(e,Xb([Dl(o),jR(e,0)],2)):o}function Rl(e){const t=rl(e);if(t)return aS(t)}function Ml(e){const t=sh(e,!0);return 210===t.kind&&0===t.elements.length}function zl(e,t=!1,n=!0){return Y&&n?Uw(e,t):e}function Vl(e,t,n){if(pE(e)&&250===e.parent.parent.kind){const t=Dx(hO(tM(e.parent.parent.expression,n)));return 2621440&t.flags?Fx(t):rn}if(pE(e)&&251===e.parent.parent.kind){return RB(e.parent.parent)||At}if(S_(e.parent))return Il(e);const r=PN(e)&&!Lv(e)||EN(e)||XP(e),i=t&&YT(e),o=N_(e);if(sp(e))return o?gl(o)||o===qt?o:Rt:de?qt:At;if(o)return zl(o,r,i);if((le||Em(e))&&pE(e)&&!S_(e.name)&&!(32&_U(e))&&!(33554432&e.flags)){if(!(6&uU(e))&&(!e.initializer||function(e){const t=sh(e,!0);return 106===t.kind||80===t.kind&&nN(t)===Oe}(e.initializer)))return It;if(e.initializer&&Ml(e.initializer))return mr}if(NN(e)){if(!e.symbol)return;const t=e.parent;if(179===t.kind&&Ad(t)){const n=Ku(Fs(e.parent),178);if(n){const r=wh(n),i=Wq(t);return i&&e===i?(_n.assert(!i.type),eu(r.thisParameter)):jh(r)}}const n=function(e,t){const n=Dh(e);if(!n)return;const r=e.parameters.indexOf(t);return t.dotDotDotToken?Tj(n,r):kj(n,r)}(t,e);if(n)return n;const r="this"===e.symbol.escapedName?wA(t):EA(e);if(r)return zl(r,!1,i)}if(Au(e)&&e.initializer){if(Em(e)&&!NN(e)){const t=r_(e,Fs(e),$m(e));if(t)return t}return zl(MR(e,jR(e,n)),r,i)}if(PN(e)&&(le||Em(e))){if(Pv(e)){const t=C(e.parent.members,ON),n=t.length?function(e,t){const n=Kt(e.escapedName,"__#")?vw.createPrivateIdentifier(e.escapedName.split("@")[1]):gc(e.escapedName);for(const r of t){const t=vw.createPropertyAccessExpression(vw.createThis(),n);ET(t.expression,t),ET(t,r),t.flowNode=r.returnFlowNode;const i=Yl(t,e);if(!le||i!==It&&i!==mr||$o(e.valueDeclaration,ua.Member_0_implicitly_has_an_1_type,Ac(e),Oc(i)),!oE(i,gO))return SB(i)}}(e.symbol,t):128&zv(e)?$C(e.symbol):void 0;return n&&zl(n,!0,i)}{const t=bC(e.parent),n=t?Ql(e.symbol,t):128&zv(e)?$C(e.symbol):void 0;return n&&zl(n,!0,i)}}return YE(e)?un:S_(e.name)?y_(e.name,!1,!0):void 0}function Wl(e){if(e.valueDeclaration&&PF(e.valueDeclaration)){const t=ga(e);return void 0===t.isConstructorDeclaredProperty&&(t.isConstructorDeclaredProperty=!1,t.isConstructorDeclaredProperty=!!Kl(e)&&h(e.declarations,(t=>PF(t)&&JA(t)&&(213!==t.left.kind||Rh(t.left.argumentExpression))&&!c_(void 0,t,e,t)))),t.isConstructorDeclaredProperty}return!1}function Hl(e){const t=e.valueDeclaration;return t&&PN(t)&&!mv(t)&&!t.initializer&&(le||Em(t))}function Kl(e){if(e.declarations)for(const t of e.declarations){const e=em(t,!1,!1);if(e&&(177===e.kind||HL(e)))return e}}function Ql(e,t){const n=Kt(e.escapedName,"__#")?vw.createPrivateIdentifier(e.escapedName.split("@")[1]):gc(e.escapedName),r=vw.createPropertyAccessExpression(vw.createThis(),n);ET(r.expression,r),ET(r,t),r.flowNode=t.returnFlowNode;const i=Yl(r,e);return!le||i!==It&&i!==mr||$o(e.valueDeclaration,ua.Member_0_implicitly_has_an_1_type,Ac(e),Oc(i)),oE(i,gO)?void 0:SB(i)}function Yl(e,t){const n=(null==t?void 0:t.valueDeclaration)&&(!Hl(t)||128&zv(t.valueDeclaration))&&$C(t)||Ut;return hP(e,It,n)}function Zl(e,t){const n=Hm(e.valueDeclaration);if(n){const t=Em(n)?nl(n):void 0;if(t&&t.typeExpression)return aS(t.typeExpression);return e.valueDeclaration&&r_(e.valueDeclaration,e,n)||Tw(IR(n))}let r,i=!1,o=!1;if(Wl(e)&&(r=Ql(e,Kl(e))),!r){let n;if(e.declarations){let a;for(const r of e.declarations){const s=PF(r)||yF(r)?r:Cx(r)?PF(r.parent)?r.parent:r:void 0;if(!s)continue;const c=Cx(s)?dg(s):ng(s);(4===c||PF(s)&&JA(s,c))&&(g_(s)?i=!0:o=!0),yF(s)||(a=c_(a,s,e,r)),a||(n||(n=[])).push(PF(s)||yF(s)?l_(e,t,s,c):hn)}r=a}if(!r){if(!l(n))return Rt;let t=i&&e.declarations?function(e,t){return _n.assert(e.length===t.length),e.filter(((e,n)=>{const r=t[n],i=PF(r)?r:PF(r.parent)?r.parent:void 0;return i&&g_(i)}))}(n,e.declarations):void 0;if(o){const n=$C(e);n&&((t||(t=[])).push(n),i=!0)}r=Xb(V(t,(e=>!!(-13&e.flags)))?t:n)}}const a=lD(zl(r,!1,o&&!i));return e.valueDeclaration&&Em(e.valueDeclaration)&&aE(a,(e=>!!(-13&e.flags)))===hn?(dD(e.valueDeclaration,At),At):a}function r_(e,t,n){var r,i;if(!Em(e)||!n||!mF(n)||n.properties.length)return;const o=Xu();for(;PF(e)||gF(e);){const t=Ps(e);(null==(r=null==t?void 0:t.exports)?void 0:r.size)&&fa(o,t.exports),e=PF(e)?e.parent:e.parent.parent}const a=Ps(e);(null==(i=null==a?void 0:a.exports)?void 0:i.size)&&fa(o,a.exports);const c=Ys(t,o,s,s,s);return c.objectFlags|=4096,c}function c_(e,t,n,r){var i;const o=mv(t.parent);if(o){const t=lD(aS(o));if(!e)return t;kl(e)||kl(t)||VS(e,t)||CB(void 0,e,r,t)}if(null==(i=n.parent)?void 0:i.valueDeclaration){const e=Ls(n.parent);if(e.valueDeclaration){const t=mv(e.valueDeclaration);if(t){const e=lg(aS(t),n.escapedName);if(e)return tu(e)}}}return e}function l_(e,t,n,r){if(yF(n)){if(t)return eu(t);const e=IR(n.arguments[2]),r=pl(e,"value");if(r)return r;const i=pl(e,"get");if(i){const e=_L(i);if(e)return jh(e)}const o=pl(e,"set");if(o){const e=_L(o);if(e)return Pj(e)}return At}if(function(e,t){return gF(e)&&110===e.expression.kind&&iO(t,(t=>oN(e,t)))}(n.left,n.right))return At;const i=1===r&&(gF(n.left)||hF(n.left))&&(tg(n.left.expression)||_N(n.left.expression)&&Zm(n.left.expression)),o=t?eu(t):i?Hk(IR(n.right)):Tw(IR(n.right));if(1048576&o.flags&&2===r&&"export="===e.escapedName){const n=ff(o),r=Xu();ad(n.members,r);const i=r.size;t&&!t.exports&&(t.exports=Xu()),(t||e).exports.forEach(((e,t)=>{var n;const i=r.get(t);if(!i||i===e||2097152&e.flags)r.set(t,e);else if(111551&e.flags&&111551&i.flags){if(e.valueDeclaration&&i.valueDeclaration&&bd(e.valueDeclaration)!==bd(i.valueDeclaration)){const t=gc(e.escapedName),r=(null==(n=et(i.valueDeclaration,Tc))?void 0:n.name)||i.valueDeclaration;cT($o(e.valueDeclaration,ua.Duplicate_identifier_0,t),Mp(r,ua._0_was_also_declared_here,t)),cT($o(r,ua.Duplicate_identifier_0,t),Mp(e.valueDeclaration,ua._0_was_also_declared_here,t))}const o=na(e.flags|i.flags,t);o.links.type=Xb([eu(e),eu(i)]),o.valueDeclaration=i.valueDeclaration,o.declarations=$(i.declarations,e.declarations),r.set(t,o)}else r.set(t,_a(e,i))}));const a=Ys(i!==r.size?void 0:n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);if(i===r.size&&(o.aliasSymbol&&(a.aliasSymbol=o.aliasSymbol,a.aliasTypeArguments=o.aliasTypeArguments),4&yx(o))){a.aliasSymbol=o.symbol;const e=Ay(o);a.aliasTypeArguments=l(e)?e:void 0}return a.objectFlags|=Cy([o])|20608&yx(o),a.symbol&&32&a.symbol.flags&&o===zu(a.symbol)&&(a.objectFlags|=16777216),a}return pw(o)?(dD(n,fr),fr):o}function g_(e){const t=em(e,!1,!1);return 177===t.kind||263===t.kind||219===t.kind&&!fg(t.parent)}function h_(e,t,n){if(e.initializer){return zl(BR(e,jR(e,0,S_(e.name)?y_(e.name,!0,!1):qt)))}return S_(e.name)?y_(e.name,t,n):(n&&!D_(e)&&dD(e,At),t?Bt:At)}function y_(e,t=!1,n=!1){t&&Mi.push(e);const r=207===e.kind?function(e,t,n){const r=Xu();let i,o=131200;_(e.elements,(e=>{const a=e.propertyName||e.name;if(e.dotDotDotToken)return void(i=fy(rn,At,!1));const s=bx(a);if(!lC(s))return void(o|=512);const c=_C(s),l=na(4|(e.initializer?16777216:0),c);l.links.type=h_(e,t,n),r.set(l.escapedName,l)}));const a=Ys(void 0,r,s,s,i?[i]:s);return a.objectFlags|=o,t&&(a.pattern=e,a.objectFlags|=131072),a}(e,t,n):function(e,t,n){const r=e.elements,i=he(r),o=i&&209===i.kind&&i.dotDotDotToken?i:void 0;if(0===r.length||1===r.length&&o)return q>=2?Sb(At):fr;const a=N(r,(e=>RF(e)?At:h_(e,t,n))),s=x(r,(e=>!(e===o||RF(e)||bI(e))),r.length-1)+1;let c=Ab(a,N(r,((e,t)=>e===o?4:t>=s?2:1)));return t&&(c=Ny(c),c.pattern=e,c.objectFlags|=131072),c}(e,t,n);return t&&Mi.pop(),r}function v_(e,t){return w_(Vl(e,!0,0),e,t)}function k_(e){const t=ha(e);if(!t.resolvedType){const n=na(4096,"__importAttributes"),r=Xu();_(e.elements,(e=>{const t=na(4,mC(e));t.parent=n,t.links.type=function(e){return Hk(IR(e.value))}(e),t.links.target=t,r.set(t.escapedName,t)}));const i=Ys(n,r,s,s,s);i.objectFlags|=262272,t.resolvedType=i}return t.resolvedType}function C_(e){const t=Ps(e),n=(r=!1,vr||(vr=fv("SymbolConstructor",r)));var r;return n&&t&&t===n}function w_(e,t,n){return e?(512&e.flags&&C_(t.parent)&&(e=nS(t)),n&&pD(t,e),16384&e.flags&&(pF(t)||!N_(t))&&e.symbol!==Fs(t)&&(e=mn),lD(e)):(e=NN(t)&&t.dotDotDotToken?fr:At,n&&(D_(t)||dD(t,e)),e)}function D_(e){const t=Zh(e);return CM(170===t.kind?t.parent:t)}function N_(e){const t=mv(e);if(t)return aS(t)}function F_(e){const t=ga(e);if(!t.type){const n=function(e){if(4194304&e.flags)return function(e){const t=rd(Os(e));return t.typeParameters?Dy(t,N(t.typeParameters,(e=>At))):t}(e);if(e===qe)return At;if(134217728&e.flags&&e.valueDeclaration){const t=Fs(bd(e.valueDeclaration)),n=na(t.flags,"exports");n.declarations=t.declarations?t.declarations.slice():[],n.parent=e,n.links.target=t,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),t.members&&(n.members=new Map(t.members)),t.exports&&(n.exports=new Map(t.exports));const r=Xu();return r.set("exports",n),Ys(e,r,s,s,s)}_n.assertIsDefined(e.valueDeclaration);const t=e.valueDeclaration;if(uP(t)&&ef(t))return t.statements.length?lD(Tw(tM(t.statements[0].expression))):In;if(p_(t))return A_(e);if(!tl(e,0))return 512&e.flags&&!(67108864&e.flags)?z_(e):V_(e);let n;if(278===t.kind)n=w_(N_(t)||IR(t.expression),t);else if(PF(t)||Em(t)&&(yF(t)||(gF(t)||sg(t))&&PF(t.parent)))n=Zl(e);else if(gF(t)||hF(t)||_N(t)||Ru(t)||WD(t)||gE(t)||mE(t)||IN(t)&&!Jf(t)||AN(t)||uP(t)){if(9136&e.flags)return z_(e);n=PF(t.parent)?Zl(e):N_(t)||At}else if(sP(t))n=N_(t)||UR(t);else if(YE(t))n=N_(t)||MI(t);else if(cP(t))n=N_(t)||qR(t.name,0);else if(Jf(t))n=N_(t)||VR(t,0);else if(NN(t)||PN(t)||EN(t)||pE(t)||pF(t)||Nl(t))n=v_(t,!0);else if(vE(t))n=z_(e);else{if(!_P(t))return _n.fail("Unhandled declaration kind! "+_n.formatSyntaxKind(t.kind)+" for "+_n.formatSymbol(e));n=q_(e)}if(!sl())return 512&e.flags&&!(67108864&e.flags)?z_(e):V_(e);return n}(e);return t.type||function(e){let t=e.valueDeclaration;return!!t&&(pF(t)&&(t=rc(t)),!!NN(t)&&qS(t.parent))}(e)||(t.type=n),n}return t.type}function E_(e){if(e)switch(e.kind){case 178:return hv(e);case 179:return vv(e);case 173:_n.assert(Lv(e));return mv(e)}}function P_(e){const t=E_(e);return t&&aS(t)}function A_(e){const t=ga(e);if(!t.type){if(!tl(e,0))return Rt;const n=Ku(e,178),r=Ku(e,179),i=et(Ku(e,173),f_);let o=n&&Em(n)&&Rl(n)||P_(n)||P_(r)||P_(i)||n&&n.body&&Qj(n)||i&&v_(i,!0);o||(r&&!CM(r)?Go(le,r,ua.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Ac(e)):n&&!CM(n)?Go(le,n,ua.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Ac(e)):i&&!CM(i)&&Go(le,i,ua.Member_0_implicitly_has_an_1_type,Ac(e),"any"),o=At),sl()||(E_(n)?$o(n,ua._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ac(e)):E_(r)||E_(i)?$o(r,ua._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ac(e)):n&&le&&$o(n,ua._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,Ac(e)),o=At),t.type??(t.type=o)}return t.type}function M_(e){const t=ga(e);if(!t.writeType){if(!tl(e,7))return Rt;const n=Ku(e,179)??et(Ku(e,173),f_);let r=P_(n);sl()||(E_(n)&&$o(n,ua._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ac(e)),r=At),t.writeType??(t.writeType=r||A_(e))}return t.writeType}function J_(e){const t=Cu(zu(e));return 34078720&t.flags?t:268435456&t.flags?y(t.types,(e=>!!(34078720&e.flags))):void 0}function z_(e){let t=ga(e);const n=t;if(!t.type){const r=e.valueDeclaration&&GL(e.valueDeclaration,!1);if(r){const n=KL(e,r);n&&(e=n,t=n.links)}n.type=t.type=function(e){const t=e.valueDeclaration;if(1536&e.flags&&up(e))return At;if(t&&(227===t.kind||Cx(t)&&227===t.parent.kind))return Zl(e);if(512&e.flags&&t&&uP(t)&&t.commonJsModuleIndicator){const t=ps(e);if(t!==e){if(!tl(e,0))return Rt;const n=Ns(e.exports.get("export=")),r=Zl(n,n===t?void 0:t);return sl()?r:V_(e)}}const n=$s(16,e);if(32&e.flags){const t=J_(e);return t?ix([n,t]):n}return Y&&16777216&e.flags?Uw(n,!0):n}(e)}return t.type}function q_(e){const t=ga(e);return t.type||(t.type=td(e))}function U_(e){const t=ga(e);if(!t.type){if(!tl(e,0))return Rt;const n=es(e),r=e.declarations&&Xa(Pa(e),!0),i=d(null==r?void 0:r.declarations,(e=>jE(e)?N_(e):void 0));if(t.type??(t.type=(null==r?void 0:r.declarations)&&hz(r.declarations)&&e.declarations.length?function(e){const t=bd(e.declarations[0]),n=gc(e.escapedName),r=e.declarations.every((e=>Em(e)&&Cx(e)&&tg(e.expression))),i=r?vw.createPropertyAccessExpression(vw.createPropertyAccessExpression(vw.createIdentifier("module"),vw.createIdentifier("exports")),n):vw.createPropertyAccessExpression(vw.createIdentifier("exports"),n);return r&&ET(i.expression.expression,i.expression),ET(i.expression,i),ET(i,t),i.flowNode=t.endFlowNode,hP(i,It,Ut)}(r):hz(e.declarations)?It:i||(111551&ts(n)?eu(n):Rt)),!sl())return V_(r??e),t.type??(t.type=Rt)}return t.type}function V_(e){const t=e.valueDeclaration;if(t){if(mv(t))return $o(e.valueDeclaration,ua._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ac(e)),Rt;le&&(170!==t.kind||t.initializer)&&$o(e.valueDeclaration,ua._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Ac(e))}else if(2097152&e.flags){const t=Pa(e);t&&$o(t,ua.Circular_definition_of_import_alias_0,Ac(e))}return At}function K_(e){const t=ga(e);return t.type||(_n.assertIsDefined(t.deferralParent),_n.assertIsDefined(t.deferralConstituents),t.type=134217728&t.deferralParent.flags?Xb(t.deferralConstituents):ix(t.deferralConstituents)),t.type}function Z_(e){const t=ox(e);return 2&t?65536&t?function(e){const t=ga(e);return!t.writeType&&t.deferralWriteConstituents&&(_n.assertIsDefined(t.deferralParent),_n.assertIsDefined(t.deferralConstituents),t.writeType=134217728&t.deferralParent.flags?Xb(t.deferralWriteConstituents):ix(t.deferralWriteConstituents)),t.writeType}(e)||K_(e):e.links.writeType||e.links.type:4&e.flags?Gw(eu(e),!!(16777216&e.flags)):98304&e.flags?1&t?function(e){const t=ga(e);return t.writeType||(t.writeType=LS(Z_(t.target),t.mapper))}(e):M_(e):eu(e)}function eu(e){const t=ox(e);return 65536&t?K_(e):1&t?function(e){const t=ga(e);return t.type||(t.type=LS(eu(t.target),t.mapper))}(e):262144&t?function(e){var t;if(!e.links.type){const n=e.links.mappedType;if(!tl(e,0))return n.containsError=!0,Rt;const i=LS(Vp(n.target||n),SS(n.mapper,Lp(n),e.links.keyType));let o=Y&&16777216&e.flags&&!mR(i,20)?Uw(i,!0):524288&e.links.checkFlags?Qw(i):i;sl()||($o(r,ua.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Ac(e),Oc(n)),o=Rt),(t=e.links).type??(t.type=o)}return e.links.type}(e):8192&t?function(e){const t=ga(e);t.type||(t.type=FD(e.links.propertyType,e.links.mappedType,e.links.constraintType)||qt);return t.type}(e):7&e.flags?F_(e):9136&e.flags?z_(e):8&e.flags?q_(e):98304&e.flags?A_(e):2097152&e.flags?U_(e):Rt}function tu(e){return Gw(eu(e),!!(16777216&e.flags))}function nu(e,t){if(void 0===e||!(4&yx(e)))return!1;for(const n of t)if(e.target===n)return!0;return!1}function ru(e,t){return void 0!==e&&void 0!==t&&!!(4&yx(e))&&e.target===t}function iu(e){return 4&yx(e)?e.target:e}function ou(e,t){return function e(n){if(7&yx(n)){const r=iu(n);return r===t||V(Iu(r),e)}if(268435456&n.flags)return V(n.types,e);return!1}(e)}function lu(e,t){for(const n of t)e=ce(e,nd(Fs(n)));return e}function _u(e,t){for(;;){if((e=e.parent)&&PF(e)){const t=ng(e);if(6===t||3===t){const t=Fs(e.left);t&&t.parent&&!dc(t.parent.valueDeclaration,(t=>e===t))&&(e=t.parent.valueDeclaration)}}if(!e)return;const n=e.kind;switch(n){case 264:case 232:case 265:case 180:case 181:case 174:case 185:case 186:case 318:case 263:case 175:case 219:case 220:case 266:case 346:case 347:case 341:case 339:case 201:case 195:{const r=_u(e,t);if((219===n||220===n||Jf(e))&&JS(e)){const t=pe(mg(eu(Fs(e)),0));if(t&&t.typeParameters)return[...r||s,...t.typeParameters]}if(201===n)return re(r,nd(Fs(e.typeParameter)));if(195===n)return $(r,gk(e));const i=lu(r,ul(e)),o=t&&(264===n||232===n||265===n||HL(e))&&zu(Fs(e)).thisType;return o?re(i,o):i}case 342:const r=Jg(e);r&&(e=r.valueDeclaration);break;case 321:{const n=_u(e,t);return e.tags?lu(n,A(e.tags,(e=>HP(e)?e.typeParameters:void 0))):n}}}}function du(e){var t;const n=32&e.flags||16&e.flags?e.valueDeclaration:null==(t=e.declarations)?void 0:t.find((e=>{if(265===e.kind)return!0;if(261!==e.kind)return!1;const t=e.initializer;return!!t&&(219===t.kind||220===t.kind)}));return _n.assert(!!n,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),_u(n)}function pu(e){if(!e.declarations)return;let t;for(const n of e.declarations)if(265===n.kind||264===n.kind||232===n.kind||HL(n)||Eg(n)){t=lu(t,ul(n))}return t}function mu(e){const t=mg(e,1);if(1===t.length){const e=t[0];if(!e.typeParameters&&1===e.parameters.length&&mJ(e)){const t=mj(e.parameters[0]);return gl(t)||cw(t)===At}}return!1}function gu(e){if(mg(e,1).length>0)return!0;if(34078720&e.flags){const t=Mf(e);return!!t&&mu(t)}return!1}function hu(e){const t=hx(e.symbol);return t&&vh(t)}function yu(e,t,n){const r=l(t),i=Em(n);return C(mg(e,1),(e=>(i||r>=kh(e.typeParameters))&&r<=l(e.typeParameters)))}function bu(e,t,n){const r=yu(e,t,n),i=N(t,aS);return E(r,(e=>V(e.typeParameters)?ny(e,i,Em(n)):e))}function Cu(e){if(!e.resolvedBaseConstructorType){const t=hx(e.symbol),n=t&&vh(t),r=hu(e);if(!r)return e.resolvedBaseConstructorType=Ut;if(!tl(e,1))return Rt;const i=tM(r.expression);if(n&&r!==n&&(_n.assert(!n.typeArguments),tM(n.expression)),269484032&i.flags&&ff(i),!sl())return $o(e.symbol.valueDeclaration,ua._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Ac(e.symbol)),e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=Rt);if(!(1&i.flags||i===tn||gu(i))){const t=$o(r.expression,ua.Type_0_is_not_a_constructor_function_type,Oc(i));if(524288&i.flags){const e=by(i);let n=qt;if(e){const t=mg(e,1);t[0]&&(n=jh(t[0]))}i.symbol.declarations&&cT(t,Mp(i.symbol.declarations[0],ua.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Ac(i.symbol),Oc(n)))}return e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=Rt)}e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=i)}return e.resolvedBaseConstructorType}function wu(e,t){$o(e,ua.Type_0_recursively_references_itself_as_a_base_type,Oc(t,void 0,2))}function Iu(e){if(!(7&yx(e)))return s;if(!e.baseTypesResolved){if(tl(e,6)&&(8&e.objectFlags?e.resolvedBaseTypes=[Lu(e)]:96&e.symbol.flags?(32&e.symbol.flags&&function(e){e.resolvedBaseTypes=Uu;const t=ym(Cu(e));if(!(269484033&t.flags))return e.resolvedBaseTypes=s;const n=hu(e);let r;const i=t.symbol?rd(t.symbol):void 0;if(t.symbol&&32&t.symbol.flags&&function(e){const t=e.outerTypeParameters;if(t){const n=t.length-1,r=Ay(e);return t[n].symbol!==r[n].symbol}return!0}(i))r=Oy(n,t.symbol);else if(1&t.flags)r=t;else{const i=bu(t,n.typeArguments,n);if(!i.length)return $o(n.expression,ua.No_base_constructor_has_the_specified_number_of_type_arguments),e.resolvedBaseTypes=s;r=jh(i[0])}if(kl(r))return e.resolvedBaseTypes=s;const o=zm(r);if(!ju(o)){const t=tk(ag(void 0,r),ua.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Oc(o));return wo.add(zp(bd(n.expression),n.expression,t)),e.resolvedBaseTypes=s}if(e===o||ou(o,e))return $o(e.symbol.valueDeclaration,ua.Type_0_recursively_references_itself_as_a_base_type,Oc(e,void 0,2)),e.resolvedBaseTypes=s;e.resolvedBaseTypes===Uu&&(e.members=void 0);e.resolvedBaseTypes=[o]}(e),64&e.symbol.flags&&function(e){if(e.resolvedBaseTypes=e.resolvedBaseTypes||s,e.symbol.declarations)for(const t of e.symbol.declarations)if(265===t.kind&&Sh(t))for(const n of Sh(t)){const r=zm(aS(n));kl(r)||(ju(r)?e===r||ou(r,e)?wu(t,e):e.resolvedBaseTypes===s?e.resolvedBaseTypes=[r]:e.resolvedBaseTypes.push(r):$o(n,ua.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}(e)):_n.fail("type must be class or interface"),!sl()&&e.symbol.declarations))for(const t of e.symbol.declarations)264!==t.kind&&265!==t.kind||wu(t,e);e.baseTypesResolved=!0}return e.resolvedBaseTypes}function Lu(e){return Tb(Xb(E(e.typeParameters,((t,n)=>8&e.elementFlags[n]?ok(t,an):t))||s),e.readonly)}function ju(e){if(524288&e.flags){const t=Mf(e);if(t)return ju(t)}return!!(1179649&e.flags&&!uf(e)||268435456&e.flags&&h(e.types,ju))}function zu(e){let t=ga(e);const n=t;if(!t.declaredType){const r=32&e.flags?1:2,i=KL(e,e.valueDeclaration&&function(e){var t;const n=e&&GL(e,!0),r=null==(t=null==n?void 0:n.exports)?void 0:t.get("prototype"),i=(null==r?void 0:r.valueDeclaration)&&function(e){if(!e.parent)return!1;let t=e.parent;for(;t&&212===t.kind;)t=t.parent;if(t&&PF(t)&&pb(t.left)&&64===t.operatorToken.kind){const e=pg(t);return mF(e)&&e}}(r.valueDeclaration);return i?Fs(i):void 0}(e.valueDeclaration));i&&(e=i,t=i.links);const o=n.declaredType=t.declaredType=$s(r,e),a=du(e),s=pu(e);(a||s||1===r||!function(e){if(!e.declarations)return!0;for(const t of e.declarations)if(265===t.kind){if(256&t.flags)return!1;const e=Sh(t);if(e)for(const t of e)if(cb(t.expression)){const e=ss(t.expression,788968,!0);if(!e||!(64&e.flags)||zu(e).thisType)return!1}}return!0}(e))&&(o.objectFlags|=4,o.typeParameters=$(a,s),o.outerTypeParameters=a,o.localTypeParameters=s,o.instantiations=new Map,o.instantiations.set(Sy(o.typeParameters),o),o.target=o,o.resolvedTypeArguments=o.typeParameters,o.thisType=Hs(e),o.thisType.isThisType=!0,o.thisType.constraint=o)}return t.declaredType}function qu(e){var t;const n=ga(e);if(!n.declaredType){if(!tl(e,2))return Rt;const r=_n.checkDefined(null==(t=e.declarations)?void 0:t.find(Eg),"Type alias symbol with no valid declaration found"),i=Fg(r)?r.typeExpression:r.type;let o=i?aS(i):Rt;if(sl()){const t=pu(e);t&&(n.typeParameters=t,n.instantiations=new Map,n.instantiations.set(Sy(t),o)),o===Jt&&"BuiltinIteratorReturn"===e.escapedName&&(o=Zv())}else o=Rt,341===r.kind?$o(r.typeExpression.type,ua.Type_alias_0_circularly_references_itself,Ac(e)):$o(Tc(r)&&r.name||r,ua.Type_alias_0_circularly_references_itself,Ac(e));n.declaredType??(n.declaredType=o)}return n.declaredType}function Hu(e){return 98304&e.flags&&8&e.symbol.flags?rd(Os(e.symbol)):e}function Zu(e){const t=ga(e);if(!t.declaredType){const n=[];if(e.declarations)for(const t of e.declarations)if(267===t.kind)for(const r of t.members)if(Ad(r)){const t=Fs(r),i=_q(r).value,o=$k(void 0!==i?tS(i,lJ(e),t):ed(t));ga(t).declaredType=o,n.push(Hk(o))}const r=n.length?Xb(n,1,e,void 0):ed(e);134217728&r.flags&&(r.flags|=32768,r.symbol=e),t.declaredType=r}return t.declaredType}function ed(e){const t=Us(65536,e),n=Us(65536,e);return t.regularType=t,t.freshType=n,n.regularType=t,n.freshType=n,t}function td(e){const t=ga(e);if(!t.declaredType){const n=Zu(Os(e));t.declaredType||(t.declaredType=n)}return t.declaredType}function nd(e){const t=ga(e);return t.declaredType||(t.declaredType=Hs(e))}function rd(e){return cd(e)||Rt}function cd(e){return 96&e.flags?zu(e):524288&e.flags?qu(e):262144&e.flags?nd(e):384&e.flags?Zu(e):8&e.flags?td(e):2097152&e.flags?function(e){const t=ga(e);return t.declaredType||(t.declaredType=rd(es(e)))}(e):void 0}function ld(e){switch(e.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 202:return!0;case 189:return ld(e.elementType);case 184:return!e.typeArguments||e.typeArguments.every(ld)}return!1}function _d(e){const t=dl(e);return!t||ld(t)}function ud(e){const t=mv(e);return t?ld(t):!Pu(e)}function dd(e){if(e.declarations&&1===e.declarations.length){const t=e.declarations[0];if(t)switch(t.kind){case 173:case 172:return ud(t);case 175:case 174:case 177:case 178:case 179:return function(e){const t=hv(e),n=ul(e);return(177===e.kind||!!t&&ld(t))&&e.parameters.every(ud)&&n.every(_d)}(t)}}return!1}function md(e,t,n){const r=Xu();for(const i of e)r.set(i.escapedName,n&&dd(i)?i:DS(i,t));return r}function gd(e,t){for(const n of t){if(hd(n))continue;const t=e.get(n.escapedName);(!t||t.valueDeclaration&&PF(t.valueDeclaration)&&!Wl(t)&&!Qf(t.valueDeclaration))&&(e.set(n.escapedName,n),e.set(n.escapedName,n))}}function hd(e){return!!e.valueDeclaration&&Gl(e.valueDeclaration)&&Ev(e.valueDeclaration)}function yd(e){if(!e.declaredProperties){const t=e.symbol,n=Rd(t);e.declaredProperties=Gs(n,t),e.declaredCallSignatures=s,e.declaredConstructSignatures=s,e.declaredIndexInfos=s,e.declaredCallSignatures=Fh(n.get("__call")),e.declaredConstructSignatures=Fh(n.get("__new")),e.declaredIndexInfos=my(t)}return e}function Td(e){return wd(e)&&lC(wN(e)?TI(e):IR(e.argumentExpression))}function Cd(e){return wd(e)&&QS(wN(e)?TI(e):IR(e.argumentExpression),Sn)}function wd(e){if(!wN(e)&&!hF(e))return!1;return cb(wN(e)?e.expression:e.argumentExpression)}function Dd(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function Ed(e){const t=wc(e);return!!t&&Td(t)}function Pd(e){const t=wc(e);return!!t&&Cd(t)}function Ad(e){return!Bh(e)||Ed(e)}function Id(e){return Jh(e)&&!Td(e)}function Od(e,t,n,r){_n.assert(!!r.symbol,"The member is expected to have a symbol.");const i=ha(r);if(!i.resolvedSymbol){i.resolvedSymbol=r.symbol;const o=PF(r)?r.left:r.name,a=hF(o)?IR(o.argumentExpression):TI(o);if(lC(a)){const s=_C(a),c=r.symbol.flags;let l=n.get(s);l||n.set(s,l=na(0,s,4096));const u=t&&t.get(s);if(!(32&e.flags)&&l.flags&sa(c)){const e=u?$(u.declarations,l.declarations):l.declarations,t=!(16384&a.flags)&&gc(s)||Ap(o);_(e,(e=>$o(wc(e)||e,ua.Property_0_was_also_declared_here,t))),$o(o||r,ua.Duplicate_property_0,t),l=na(0,s,4096)}return l.links.nameType=a,function(e,t,n){_n.assert(!!(4096&ox(e)),"Expected a late-bound symbol."),e.flags|=n,ga(t.symbol).lateSymbol=e,e.declarations?t.symbol.isReplaceableByMethod||e.declarations.push(t):e.declarations=[t],111551&n&&gg(e,t)}(l,r,c),l.parent?_n.assert(l.parent===e,"Existing symbol parent should match new one"):l.parent=e,i.resolvedSymbol=l}}return i.resolvedSymbol}function Ld(e,t,n,r){let i=n.get("__index");if(!i){const e=null==t?void 0:t.get("__index");e?(i=la(e),i.links.checkFlags|=4096):i=na(0,"__index",4096),n.set("__index",i)}i.declarations?r.symbol.isReplaceableByMethod||i.declarations.push(r):i.declarations=[r]}function jd(e,t){const n=ga(e);if(!n[t]){const r="resolvedExports"===t,i=r?1536&e.flags?Ds(e).exports:e.exports:e.members;n[t]=i||j;const o=Xu();for(const t of e.declarations||s){const n=Pf(t);if(n)for(const t of n)r===Pv(t)&&(Ed(t)?Od(e,i,o,t):Pd(t)&&Ld(0,i,o,t))}const a=Ls(e).assignmentDeclarationMembers;if(a){const t=Ie(a.values());for(const n of t){const t=ng(n);r===!(3===t||PF(n)&&JA(n,t)||9===t||6===t)&&Ed(n)&&Od(e,i,o,n)}}let c=function(e,t){if(!(null==e?void 0:e.size))return t;if(!(null==t?void 0:t.size))return e;const n=Xu();return fa(n,e),fa(n,t),n}(i,o);if(33554432&e.flags&&n.cjsExportMerged&&e.declarations)for(const n of e.declarations){const e=ga(n.symbol)[t];c?e&&e.forEach(((e,t)=>{const n=c.get(t);if(n){if(n===e)return;c.set(t,_a(n,e))}else c.set(t,e)})):c=e}n[t]=c||j}return n[t]}function Rd(e){return 6256&e.flags?jd(e,"resolvedMembers"):e.members||j}function Md(e){if(106500&e.flags&&"__computed"===e.escapedName){const t=ga(e);if(!t.lateSymbol&&V(e.declarations,Ed)){const t=Ns(e.parent);V(e.declarations,Pv)?Ss(t):Rd(t)}return t.lateSymbol||(t.lateSymbol=e)}return e}function Bd(e,t,n){if(4&yx(e)){const n=e.target,r=Ay(e);return l(n.typeParameters)===l(r)?Dy(n,$(r,[t||n.thisType])):e}if(268435456&e.flags){const r=E(e.types,(e=>Bd(e,t,n)));return r!==e.types?ix(r):e}return n?ym(e):e}function Jd(e,t,n,r){let i,o,a,s,c;ue(n,r,0,n.length)?(o=t.symbol?Rd(t.symbol):Xu(t.declaredProperties),a=t.declaredCallSignatures,s=t.declaredConstructSignatures,c=t.declaredIndexInfos):(i=dS(n,r),o=md(t.declaredProperties,i,1===n.length),a=_S(t.declaredCallSignatures,i),s=_S(t.declaredConstructSignatures,i),c=uS(t.declaredIndexInfos,i));const l=Iu(t);if(l.length){if(t.symbol&&o===Rd(t.symbol)){const e=Xu(t.declaredProperties),n=dy(t.symbol);n&&e.set("__index",n),o=e}Qs(e,o,a,s,c);const n=he(r);for(const e of l){const t=n?Bd(LS(e,i),n):e;gd(o,yf(t)),a=$(a,mg(t,0)),s=$(s,mg(t,1));const r=t!==At?Pg(t):[vi];c=$(c,C(r,(e=>!bg(c,e.keyType))))}}Qs(e,o,a,s,c)}function zd(e,t,n,r,i,o,a,s){const c=new f(Ze,s);return c.declaration=e,c.typeParameters=t,c.parameters=r,c.thisParameter=n,c.resolvedReturnType=i,c.resolvedTypePredicate=o,c.minArgumentCount=a,c.resolvedMinArgumentCount=void 0,c.target=void 0,c.mapper=void 0,c.compositeSignatures=void 0,c.compositeKind=void 0,c}function Ud(e){const t=zd(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,167&e.flags);return t.target=e.target,t.mapper=e.mapper,t.compositeSignatures=e.compositeSignatures,t.compositeKind=e.compositeKind,t}function Vd(e,t){const n=Ud(e);return n.compositeSignatures=t,n.compositeKind=134217728,n.target=void 0,n.mapper=void 0,n}function Wd(e,t){if((24&e.flags)===t)return e;e.optionalCallSignatureCache||(e.optionalCallSignatureCache={});const n=8===t?"inner":"outer";return e.optionalCallSignatureCache[n]||(e.optionalCallSignatureCache[n]=function(e,t){_n.assert(8===t||16===t,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const n=Ud(e);return n.flags|=t,n}(e,t))}function Gd(e,t){if(mJ(e)){const r=e.parameters.length-1,i=e.parameters[r],o=eu(i);if(Fw(o))return[n(o,r,i)];if(!t&&134217728&o.flags&&h(o.types,Fw))return N(o.types,(e=>n(e,r,i)))}return[e.parameters];function n(t,n,r){const i=Ay(t),o=function(e,t){const n=N(e.target.labeledElementDeclarations,((n,r)=>hj(n,r,e.target.elementFlags[r],t)));if(n){const e=[],t=new Set;for(let r=0;r{const a=o&&o[i]?o[i]:yj(e,n+i,t),s=t.target.elementFlags[i],c=na(1,a,12&s?32768:2&s?16384:0);return c.links.type=4&s?Tb(r):r,c}));return $(e.parameters.slice(0,n),a)}}function Qd(e,t,n,r,i){for(const o of e)if(tw(o,t,n,r,i,n?KS:WS))return o}function Zd(e,t,n){if(t.typeParameters){if(n>0)return;for(let n=1;n1&&(n=void 0===n?r:-1);for(const n of e[r])if(!t||!Qd(t,n,!1,!1,!0)){const i=Zd(e,n,r);if(i){let e=n;if(i.length>1){let t=n.thisParameter;const r=_(i,(e=>e.thisParameter));if(r){t=Zw(r,ix(R(i,(e=>e.thisParameter&&eu(e.thisParameter)))))}e=Vd(n,i),e.thisParameter=t}(t||(t=[])).push(e)}}}if(!l(t)&&-1!==n){const r=e[void 0!==n?n:0];let i=r.slice();for(const t of e)if(t!==r){const e=t[0];if(_n.assert(!!e,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),i=e.typeParameters&&V(i,(t=>!!t.typeParameters&&!np(e.typeParameters,t.typeParameters)))?void 0:N(i,(t=>rp(t,e))),!i)break}t=i}return t||s}function np(e,t){if(l(e)!==l(t))return!1;if(!e||!t)return!0;const n=dS(t,e);for(let r=0;r=i?e:t,a=o===e?t:e,s=o===e?r:i,c=Nj(e)||Nj(t),l=c&&!Nj(o),_=new Array(s+(l?1:0));for(let u=0;u=Dj(o)&&u>=Dj(a),h=u>=r?void 0:yj(e,u),y=u>=i?void 0:yj(t,u),v=na(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||`arg${u}`,m?32768:g?16384:0);v.links.type=m?Tb(f):f,_[u]=v}if(l){const e=na(1,"args",32768);e.links.type=Tb(kj(a,s)),a===t&&(e.links.type=LS(e.links.type,n)),_[s]=e}return _}(e,t,r),s=he(a);s&&32768&ox(s)&&(i|=1);const c=function(e,t,n){return e&&t?Zw(e,ix([eu(e),LS(eu(t),n)])):e||t}(e.thisParameter,t.thisParameter,r),l=zd(o,n,c,a,void 0,void 0,Math.max(e.minArgumentCount,t.minArgumentCount),i);return l.compositeKind=134217728,l.compositeSignatures=$(268435456!==e.compositeKind&&e.compositeSignatures||[e],[t]),r?l.mapper=268435456!==e.compositeKind&&e.mapper&&e.compositeSignatures?bS(e.mapper,r):r:268435456!==e.compositeKind&&e.mapper&&e.compositeSignatures&&(l.mapper=e.mapper),l}function ip(e){const t=Pg(e[0]);if(t){const n=[];for(const r of t){const t=r.keyType;h(e,(e=>!!Ag(e,t)))&&n.push(fy(t,Xb(N(e,(e=>Og(e,t)))),V(e,(e=>Ag(e,t).isReadonly))))}return n}return s}function op(e,t){return e?t?ix([e,t]):e:t}function _p(e){const t=T(e,(e=>mg(e,1).length>0)),n=N(e,mu);if(t>0&&t===T(n,(e=>e))){const e=n.indexOf(!0);n[e]=!1}return n}function mp(e,t,n,r){const i=[];for(let o=0;o!tw(e,n,!1,!1,!1,WS)))||(e=re(e,n));return e}function vp(e,t,n){if(e)for(let r=0;r{var n;418&t.flags||512&t.flags&&(null==(n=t.declarations)?void 0:n.length)&&h(t.declarations,cp)||e.set(t.escapedName,t)})),i=e}if(Qs(e,i,s,s,s),32&t.flags){const e=Cu(zu(t));303562752&e.flags?(i=Xu(function(e,t){const n=Gs(e,t),r=py(e);return r?$(n,[r]):n}(i,t)),gd(i,yf(e))):e===At&&(r=vi)}const o=py(i);if(o?n=gy(o,Ie(i.values())):(r&&(n=re(n,r)),384&t.flags&&(65536&rd(t).flags||V(e.properties,(e=>!!(67648&eu(e).flags))))&&(n=re(n,yi))),Qs(e,i,s,s,n||s),8208&t.flags&&(e.callSignatures=Fh(t)),32&t.flags){const n=zu(t);let r=t.members?Fh(t.members.get("__constructor")):s;16&t.flags&&(r=ae(r.slice(),R(e.callSignatures,(e=>HL(e.declaration)?zd(e.declaration,e.typeParameters,e.thisParameter,e.parameters,n,void 0,e.minArgumentCount,167&e.flags):void 0)))),r.length||(r=function(e){const t=mg(Cu(e),1),n=hx(e.symbol),r=!!n&&Fv(n,64);if(0===t.length)return[zd(void 0,e.localTypeParameters,void 0,s,e,void 0,0,r?4:0)];const i=hu(e),o=Em(i),a=rv(i),c=l(a),_=[];for(const n of t){const t=kh(n.typeParameters),i=l(n.typeParameters);if(o||c>=t&&c<=i){const s=i?iy(n,Th(a,n.typeParameters,t,o)):Ud(n);s.typeParameters=e.localTypeParameters,s.resolvedReturnType=e,s.flags=r?4|s.flags:-5&s.flags,_.push(s)}}return _}(n)),e.constructSignatures=r}}function xp(e,t,n){return LS(e,dS([t.indexType,t.objectType],[Zk(0),Ab([n])]))}function kp(e){const t=Ag(e.source,rn),n=af(e.mappedType),r=!(1&n),i=4&n?0:16777216,o=t?[fy(rn,FD(t.type,e.mappedType,e.constraintType)||qt,r&&t.isReadonly)]:s,a=Xu(),c=function(e){const t=Jp(e.mappedType);if(!(134217728&t.flags||268435456&t.flags))return;const n=134217728&t.flags?t.origin:t;if(!(n&&268435456&n.flags))return;const r=ix(n.types.filter((t=>t!==e.constraintType)));return r!==hn?r:void 0}(e);for(const t of yf(e.source)){if(c){if(!QS(xx(t,19456),c))continue}const n=8192|(r&&cR(t)?8:0),o=na(4|t.flags&i,t.escapedName,n);if(o.declarations=t.declarations,o.links.nameType=ga(t).nameType,o.links.propertyType=eu(t),33554432&e.constraintType.type.flags&&524288&e.constraintType.type.objectType.flags&&524288&e.constraintType.type.indexType.flags){const t=e.constraintType.type.objectType,n=xp(e.mappedType,e.constraintType.type,t);o.links.mappedType=n,o.links.constraintType=Dx(t)}else o.links.mappedType=e.mappedType,o.links.constraintType=e.constraintType;a.set(t.escapedName,o)}Qs(e,a,s,s,o)}function Sp(e){if(2097152&e.flags){const t=ym(e.type);return Ew(t)?Rb(t):Dx(t)}if(67108864&e.flags){if(e.root.isDistributive){const t=e.checkType,n=Sp(t);if(n!==t)return OS(e,kS(e.root.checkType,n,e.mapper),!1)}return e}if(134217728&e.flags)return lE(e,Sp,!0);if(268435456&e.flags){const t=e.types;return 2===t.length&&224&t[0].flags&&t[1]===Rn?e:ix(E(e.types,Sp))}return e}function Tp(e){return 4096&ox(e)}function Cp(e,t,n,r){for(const n of yf(e))r(xx(n,t));if(1&e.flags)r(rn);else for(const t of Pg(e))(!n||4194336&t.keyType.flags)&&r(t.keyType)}function Np(e){const t=Xu();let n;Qs(e,j,s,s,s);const r=Lp(e),i=Jp(e),o=e.target||e,a=Up(o),c=2!==pf(o),l=Vp(o),_=ym(of(e)),u=af(e);function d(i){eE(a?LS(a,SS(e.mapper,r,i)):i,(o=>function(i,o){if(lC(o)){const n=_C(o),r=t.get(n);if(r)r.links.nameType=Xb([r.links.nameType,o]),r.links.keyType=Xb([r.links.keyType,i]);else{const r=lC(i)?lg(_,_C(i)):void 0,a=!!(4&u||!(8&u)&&r&&16777216&r.flags),s=!!(1&u||!(2&u)&&r&&cR(r)),l=Y&&!a&&r&&16777216&r.flags,d=na(4|(a?16777216:0),n,262144|(r?Tp(r):0)|(s?8:0)|(l?524288:0));d.links.mappedType=e,d.links.nameType=o,d.links.keyType=i,r&&(d.links.syntheticOrigin=r,d.declarations=c?r.declarations:void 0),t.set(n,d)}}else if(hy(o)||65537&o.flags){const t=33&o.flags?rn:65600&o.flags?an:o,a=LS(l,SS(e.mapper,r,i)),s=Mg(_,o),c=fy(t,a,!!(1&u||!(2&u)&&(null==s?void 0:s.isReadonly)));n=vp(n,c,!0)}}(i,o)))}rf(e)?Cp(_,19456,!1,d):eE(Sp(i),d),Qs(e,t,s,s,n||s)}function Lp(e){return e.typeParameter||(e.typeParameter=nd(Fs(e.declaration.typeParameter)))}function Jp(e){return e.constraintType||(e.constraintType=bf(Lp(e))||Rt)}function Up(e){return e.declaration.nameType?e.nameType||(e.nameType=LS(aS(e.declaration.nameType),e.mapper)):void 0}function Vp(e){return e.templateType||(e.templateType=e.declaration.type?LS(zl(aS(e.declaration.type),!0,!!(4&af(e))),e.mapper):Rt)}function Hp(e){return dl(e.declaration.typeParameter)}function rf(e){const t=Hp(e);return 199===t.kind&&143===t.operator}function of(e){if(!e.modifiersType)if(rf(e))e.modifiersType=LS(aS(Hp(e).type),e.mapper);else{const t=Jp(lk(e.declaration)),n=t&&524288&t.flags?bf(t):t;e.modifiersType=n&&2097152&n.flags?LS(n.type,e.mapper):qt}return e.modifiersType}function af(e){const t=e.declaration;return(t.readonlyToken?41===t.readonlyToken.kind?2:1:0)|(t.questionToken?41===t.questionToken.kind?8:4:0)}function sf(e){const t=af(e);return 8&t?-1:4&t?1:0}function cf(e){if(32&yx(e))return sf(e)||cf(of(e));if(268435456&e.flags){const t=cf(e.types[0]);return h(e.types,((e,n)=>0===n||cf(e)===t))?t:0}return 0}function uf(e){if(32&yx(e)){const t=Jp(e);if($x(t))return!0;const n=Up(e);if(n&&$x(LS(n,fS(Lp(e),t))))return!0}return!1}function pf(e){const t=Up(e);return t?QS(t,Lp(e))?1:2:0}function ff(e){return e.members||(1048576&e.flags?4&e.objectFlags?function(e){const t=yd(e.target),n=$(t.typeParameters,[t.thisType]),r=Ay(e);Jd(e,t,n,r.length===n.length?r:$(r,[e]))}(e):3&e.objectFlags?function(e){Jd(e,yd(e),s,s)}(e):1024&e.objectFlags?kp(e):16&e.objectFlags?bp(e):32&e.objectFlags?Np(e):_n.fail("Unhandled object type "+_n.formatObjectFlags(e.objectFlags)):134217728&e.flags?function(e){const t=ep(N(e.types,(e=>e===ir?[mi]:mg(e,0)))),n=ep(N(e.types,(e=>mg(e,1)))),r=ip(e.types);Qs(e,j,t,n,r)}(e):268435456&e.flags?function(e){let t,n,r;const i=e.types,o=_p(i),a=T(o,(e=>e));for(let s=0;s0&&(e=N(e,(e=>{const t=Ud(e);return t.resolvedReturnType=mp(jh(e),i,o,s),t}))),n=yp(n,e)}t=yp(t,mg(c,0)),r=Ce(Pg(c),((e,t)=>vp(e,t,!1)),r)}Qs(e,j,t||s,n||s,r||s)}(e):_n.fail("Unhandled type "+_n.formatTypeFlags(e.flags))),e}function mf(e){return 1048576&e.flags?ff(e).properties:s}function gf(e,t){if(1048576&e.flags){const n=ff(e).members.get(t);if(n&&zs(n))return n}}function hf(e){if(!e.resolvedProperties){const t=Xu();for(const n of e.types){for(const r of yf(n))if(!t.has(r.escapedName)){const n=Jm(e,r.escapedName,!!(268435456&e.flags));n&&t.set(r.escapedName,n)}if(134217728&e.flags&&0===Pg(n).length)break}e.resolvedProperties=Gs(t,e.symbol)}return e.resolvedProperties}function yf(e){return 402653184&(e=Nm(e)).flags?hf(e):mf(e)}function vf(e){return 524288&e.flags?bf(e):33554432&e.flags?function(e){return Vf(e)?function(e){if(mm(e))return rk(e.objectType,e.indexType);const t=kf(e.indexType);if(t&&t!==e.indexType){const n=sk(e.objectType,t,e.accessFlags);if(n)return n}const n=kf(e.objectType);if(n&&n!==e.objectType)return sk(n,e.indexType,e.accessFlags);return}(e):void 0}(e):67108864&e.flags?Df(e):Mf(e)}function bf(e){return Vf(e)?by(e):void 0}function xf(e,t=0){var n;return t<5&&!(!e||!(524288&e.flags&&V(null==(n=e.symbol)?void 0:n.declarations,(e=>Fv(e,4096)))||402653184&e.flags&&V(e.types,(e=>xf(e,t)))||33554432&e.flags&&xf(e.objectType,t+1)||67108864&e.flags&&xf(Df(e),t+1)||16777216&e.flags&&xf(e.baseType,t)||32&yx(e)&&function(e,t){const n=ES(e);return!!n&&xf(n,t)}(e,t)||Ew(e)&&b(Jb(e),((n,r)=>!!(8&e.target.elementFlags[r])&&xf(n,t)))>=0))}function kf(e){const t=Gx(e,!1);return t!==e?t:vf(e)}function Sf(e){if(!e.resolvedDefaultConstraint){const t=function(e){return e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?LS(aS(e.root.node.trueType),e.combinedMapper):fk(e))}(e),n=mk(e);e.resolvedDefaultConstraint=gl(t)?n:gl(n)?t:Xb([t,n])}return e.resolvedDefaultConstraint}function Tf(e){if(void 0!==e.resolvedConstraintOfDistributive)return e.resolvedConstraintOfDistributive||void 0;if(e.root.isDistributive&&e.restrictiveInstantiation!==e){const t=Gx(e.checkType,!1),n=t===e.checkType?vf(t):t;if(n&&n!==e.checkType){const t=OS(e,kS(e.root.checkType,n,e.mapper),!0);if(!(262144&t.flags))return e.resolvedConstraintOfDistributive=t,t}}e.resolvedConstraintOfDistributive=!1}function Cf(e){return Tf(e)||Sf(e)}function Df(e){return Vf(e)?Cf(e):void 0}function Mf(e){if(533200896&e.flags||Ew(e)){const t=Wf(e);return t!==qn&&t!==Un?t:void 0}return 2097152&e.flags?Sn:void 0}function Bf(e){return Mf(e)||e}function Vf(e){return Wf(e)!==Un}function Wf(e){if(e.resolvedBaseConstraint)return e.resolvedBaseConstraint;const t=[];return e.resolvedBaseConstraint=n(e);function n(e){if(!e.immediateBaseConstraint){if(!tl(e,4))return Un;let n;const o=ZC(e);if((t.length<10||t.length<50&&!k(t,o))&&(t.push(o),n=function(e){if(524288&e.flags){const t=by(e);return e.isThisType||!t?t:i(t)}if(402653184&e.flags){const t=e.types,n=[];let r=!1;for(const e of t){const t=i(e);t?(t!==e&&(r=!0),n.push(t)):r=!0}return r?134217728&e.flags&&n.length===t.length?Xb(n):268435456&e.flags&&n.length?ix(n):void 0:e}if(2097152&e.flags){if(uf(e.type)){const t=e.type;if(Up(t)&&!rf(t))return i(gx(t,0))}return Sn}if(4194304&e.flags){const t=e.types,n=R(t,i);return n.length===t.length?Ex(e.texts,n):rn}if(8388608&e.flags){const t=i(e.type);return t&&t!==e.type?Ax(e.symbol,t):rn}if(33554432&e.flags){if(mm(e))return i(rk(e.objectType,e.indexType));const t=i(e.objectType),n=i(e.indexType),r=t&&n&&sk(t,n,e.accessFlags);return r&&i(r)}if(67108864&e.flags){const t=Cf(e);return t&&i(t)}if(16777216&e.flags)return i(Gy(e));if(Ew(e)){return Ab(N(Jb(e),((t,n)=>{const r=524288&t.flags&&8&e.target.elementFlags[n]&&i(t)||t;return r!==t&&oE(r,(e=>aw(e)&&!Ew(e)))?r:t})),e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations)}return e}(Gx(e,!1)),t.pop()),!sl()){if(524288&e.flags){const t=yy(e);if(t){const n=$o(t,ua.Type_parameter_0_has_a_circular_constraint,Oc(e));!r||lh(t,r)||lh(r,t)||cT(n,Mp(r,ua.Circularity_originates_in_type_at_this_location))}}n=Un}e.immediateBaseConstraint??(e.immediateBaseConstraint=n||qn)}return e.immediateBaseConstraint}function i(e){const t=n(e);return t!==qn&&t!==Un?t:void 0}}function $f(e){if(e.default)e.default===Vn&&(e.default=Un);else if(e.target){const t=$f(e.target);e.default=t?LS(t,e.mapper):qn}else{e.default=Vn;const t=e.symbol&&_(e.symbol.declarations,(e=>DN(e)&&e.default)),n=t?aS(t):qn;e.default===Vn&&(e.default=n)}return e.default}function Hf(e){const t=$f(e);return t!==qn&&t!==Un?t:void 0}function Gf(e){return!(!e.symbol||!_(e.symbol.declarations,(e=>DN(e)&&e.default)))}function pm(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){const t=e.target??e,n=ES(t);if(n&&!t.declaration.nameType){const r=of(e),i=uf(r)?pm(r):Mf(r);if(i&&oE(i,(e=>aw(e)||fm(e))))return LS(t,kS(n,i,e.mapper))}return e}(e))}function fm(e){return!!(268435456&e.flags)&&h(e.types,aw)}function mm(e){let t;return!(!(33554432&e.flags&&32&yx(t=e.objectType)&&!uf(t)&&$x(e.indexType))||8&af(t)||t.declaration.nameType)}function ym(e){const t=132644864&e.flags?Mf(e)||qt:e,n=yx(t);return 32&n?pm(t):4&n&&t!==e?Bd(t,e):268435456&t.flags?function(e,t){if(e===t)return e.resolvedApparentType||(e.resolvedApparentType=Bd(e,t,!0));const n=`I${zb(e)},${zb(t)}`;return Bo(n)??zo(n,Bd(e,t,!0))}(t,e):12583968&t.flags?lr:67648&t.flags?_r:4224&t.flags?Xr||(Xr=xv("BigInt",0,!1))||In:8448&t.flags?ur:16896&t.flags?qv():131072&t.flags?In:2097152&t.flags?Sn:2&t.flags&&!Y?In:t}function Nm(e){return zm(ym(zm(e)))}function Am(e,t,n){var r,i,o;let a,s,c,_=0;const u=134217728&e.flags;let d,p=4,f=u?0:8,m=!1;for(const r of e.types){const e=ym(r);if(!(kl(e)||262144&e.flags)){const r=lg(e,t,n),i=r?ax(r):0;if(r){if(106500&r.flags&&(d??(d=u?0:16777216),u?d|=16777216&r.flags:d&=r.flags),a){if(r!==a){if((HJ(r)||r)===(HJ(a)||a)&&-1===ew(a,r,((e,t)=>e===t?-1:0)))m=!!a.parent&&!!l(pu(a.parent));else{s||(s=new Map,s.set(lJ(a),a));const e=lJ(r);s.has(e)||s.set(e,r)}98304&_&&(98304&r.flags)!=(98304&_)&&(_=-98305&_|4)}}else a=r,_=98304&r.flags||4;u&&cR(r)?f|=8:u||cR(r)||(f&=-9),f|=(6&i?0:256)|(4&i?512:0)|(2&i?1024:0)|(256&i?2048:0),uO(r)||(p=2)}else if(u){const n=!Dd(t)&&Bg(e,t);n?(_=-98305&_|4,f|=32|(n.isReadonly?8:0),c=re(c,Fw(e)?Aw(e)||Ut:n.type)):!KD(e)||2097152&yx(e)?f|=16:(f|=32,c=re(c,Ut))}}}if(!a||u&&(s||48&f)&&1536&f&&(!s||!function(e){let t;for(const n of e){if(!n.declarations)return;if(t){if(t.forEach((e=>{k(n.declarations,e)||t.delete(e)})),0===t.size)return}else t=new Set(n.declarations)}return t}(s.values())))return;if(!(s||16&f||c)){if(m){const t=null==(r=et(a,Qu))?void 0:r.links,n=Zw(a,null==t?void 0:t.type);return n.parent=null==(o=null==(i=a.valueDeclaration)?void 0:i.symbol)?void 0:o.parent,n.links.containingType=e,n.links.mapper=null==t?void 0:t.mapper,n.links.writeType=Z_(a),n}return a}const g=s?Ie(s.values()):[a];let h,y,v;const b=[];let x,S,T=!1;for(const e of g){S?e.valueDeclaration&&e.valueDeclaration!==S&&(T=!0):S=e.valueDeclaration,h=ae(h,e.declarations);const t=eu(e);y||(y=t,v=ga(e).nameType);const n=Z_(e);(x||n!==t)&&(x=re(x||b.slice(),n)),t!==y&&(f|=64),(bw(t)||qx(t))&&(f|=128),262144&t.flags&&t!==Fn&&(f|=131072),b.push(t)}ae(b,c);const C=na(_|(d??0),t,p|f);return C.links.containingType=e,!T&&S&&(C.valueDeclaration=S,S.symbol.parent&&(C.parent=S.symbol.parent)),C.declarations=h,C.links.nameType=v,b.length>2?(C.links.checkFlags|=65536,C.links.deferralParent=e,C.links.deferralConstituents=b,C.links.deferralWriteConstituents=x):(C.links.type=u?Xb(b):ix(b),x&&(C.links.writeType=u?Xb(x):ix(x))),C}function jm(e,t,n){var r,i,o;let a=n?null==(r=e.propertyCacheWithoutObjectFunctionPropertyAugment)?void 0:r.get(t):null==(i=e.propertyCache)?void 0:i.get(t);if(!a&&(a=Am(e,t,n),a)){if((n?e.propertyCacheWithoutObjectFunctionPropertyAugment||(e.propertyCacheWithoutObjectFunctionPropertyAugment=Xu()):e.propertyCache||(e.propertyCache=Xu())).set(t,a),n&&!(48&ox(a))&&!(null==(o=e.propertyCache)?void 0:o.get(t))){(e.propertyCache||(e.propertyCache=Xu())).set(t,a)}}return a}function Jm(e,t,n){const r=jm(e,t,n);return!r||16&ox(r)?void 0:r}function zm(e){return 134217728&e.flags&&16777216&e.objectFlags?e.resolvedReducedType||(e.resolvedReducedType=function(e){const t=E(e.types,zm);if(t===e.types)return e;const n=Xb(t);134217728&n.flags&&(n.resolvedReducedType=n);return n}(e)):268435456&e.flags?(16777216&e.objectFlags||(e.objectFlags|=16777216|(V(hf(e),Um)?33554432:0)),33554432&e.objectFlags?hn:e):e}function Um(e){return Ym(e)||ig(e)}function Ym(e){return!(16777216&e.flags||192!=(131264&ox(e))||!(262144&eu(e).flags))}function ig(e){return!e.valueDeclaration&&!!(1024&ox(e))}function og(e){return!!(134217728&e.flags&&16777216&e.objectFlags&&V(e.types,og)||268435456&e.flags&&function(e){const t=e.uniqueLiteralFilledInstantiation||(e.uniqueLiteralFilledInstantiation=LS(e,En));return zm(t)!==t}(e))}function ag(e,t){if(268435456&t.flags&&33554432&yx(t)){const n=y(hf(t),Ym);if(n)return tk(e,ua.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Oc(t,void 0,536870912),Ac(n));const r=y(hf(t),ig);if(r)return tk(e,ua.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Oc(t,void 0,536870912),Ac(r))}return e}function lg(e,t,n,r){var i,o;if(1048576&(e=Nm(e)).flags){const a=ff(e),s=a.members.get(t);if(s&&!r&&512&(null==(i=e.symbol)?void 0:i.flags)&&(null==(o=ga(e.symbol).typeOnlyExportStarMap)?void 0:o.has(t)))return;if(s&&zs(s,r))return s;if(n)return;const c=a===zn?ir:a.callSignatures.length?or:a.constructSignatures.length?ar:void 0;if(c){const e=gf(c,t);if(e)return e}return gf(rr,t)}if(268435456&e.flags){const r=Jm(e,t,!0);return r||(n?void 0:Jm(e,t,n))}if(134217728&e.flags)return Jm(e,t,n)}function _g(e,t){if(403701760&e.flags){const n=ff(e);return 0===t?n.callSignatures:n.constructSignatures}return s}function mg(e,t){const n=_g(Nm(e),t);if(0===t&&!l(n)&&134217728&e.flags){if(e.arrayFallbackSignatures)return e.arrayFallbackSignatures;let r;if(oE(e,(e=>{var t;return!!(null==(t=e.symbol)?void 0:t.parent)&&function(e){if(!e||!sr.symbol||!cr.symbol)return!1;return!!Bs(e,sr.symbol)||!!Bs(e,cr.symbol)}(e.symbol.parent)&&(r?r===e.symbol.escapedName:(r=e.symbol.escapedName,!0))}))){const n=Tb(lE(e,(e=>pS((hg(e.symbol.parent)?cr:sr).typeParameters[0],e.mapper))),iE(e,(e=>hg(e.symbol.parent))));return e.arrayFallbackSignatures=mg(pl(n,r),t)}e.arrayFallbackSignatures=n}return n}function hg(e){return!(!e||!cr.symbol)&&!!Bs(e,cr.symbol)}function bg(e,t){return y(e,(e=>e.keyType===t))}function xg(e,t){let n,r,i;for(const o of e)o.keyType===rn?n=o:Cg(t,o.keyType)&&(r?(i||(i=[r])).push(o):r=o);return i?fy(qt,ix(N(i,(e=>e.type))),Ce(i,((e,t)=>e&&t.isReadonly),!0)):r||(n&&Cg(t,rn)?n:void 0)}function Cg(e,t){return QS(e,t)||t===rn&&QS(e,an)||t===an&&(e===wn||!!(1024&e.flags)&&qT(e.value))}function wg(e){if(403701760&e.flags){return ff(e).indexInfos}return s}function Pg(e){return wg(Nm(e))}function Ag(e,t){return bg(Pg(e),t)}function Og(e,t){var n;return null==(n=Ag(e,t))?void 0:n.type}function Rg(e,t){return Pg(e).filter((e=>Cg(t,e.keyType)))}function Mg(e,t){return xg(Pg(e),t)}function Bg(e,t){return Mg(e,Dd(t)?mn:Yk(gc(t)))}function Gg(e){var t;let n;for(const t of ul(e))n=ce(n,nd(t.symbol));return(null==n?void 0:n.length)?n:mE(e)?null==(t=Dh(e))?void 0:t.typeParameters:void 0}function Xg(e){const t=[];return e.forEach(((e,n)=>{Ks(n)||t.push(e)})),t}function eh(e,t){if(ws(e))return;const n=ya(Pe,'"'+e+'"',512);return n&&t?Ns(n):n}function nh(e){return Dg(e)||KT(e)||NN(e)&&QT(e)}function uh(e){if(nh(e))return!0;if(!NN(e))return!1;if(e.initializer){const t=wh(e.parent),n=e.parent.parameters.indexOf(e);return _n.assert(n>=0),n>=Dj(t,3)}const t=om(e.parent);return!!t&&(!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=TL(t).length)}function ph(e,t,n,r){return{kind:e,parameterName:t,parameterIndex:n,type:r}}function kh(e){let t=0;if(e)for(let n=0;n=n&&o<=i){const n=e?e.slice():[];for(let e=o;e!!rl(e)))&&!rl(e)&&!hI(e)&&(i|=32);for(let t=l?1:0;tc.arguments.length&&!u||(o=n.length)}if((178===e.kind||179===e.kind)&&Ad(e)&&(!s||!r)){const t=178===e.kind?179:178,n=Ku(Fs(e),t);n&&(r=function(e){const t=Wq(e);return t&&t.symbol}(n))}a&&a.typeExpression&&(r=Zw(na(1,"this"),aS(a.typeExpression)));const _=FP(e)?Vg(e):e,u=_&&LN(_)?zu(Ns(_.parent.symbol)):void 0,p=u?u.localTypeParameters:Gg(e);(Bu(e)||Em(e)&&function(e,t){if(FP(e)||!Nh(e))return!1;const n=he(e.parameters),r=n?Pc(n):al(e).filter(UP),i=d(r,(e=>e.typeExpression&&CP(e.typeExpression.type)?e.typeExpression.type:void 0)),o=na(3,"args",32768);i?o.links.type=Tb(aS(i.type)):(o.links.checkFlags|=65536,o.links.deferralParent=hn,o.links.deferralConstituents=[fr],o.links.deferralWriteConstituents=[fr]);i&&t.pop();return t.push(o),!0}(e,n))&&(i|=1),(VN(e)&&Fv(e,64)||LN(e)&&Fv(e.parent,64))&&(i|=4),t.resolvedSignature=zd(e,p,r,n,void 0,void 0,o,i)}return t.resolvedSignature}function Dh(e){if(!Em(e)||!a_(e))return;const t=nl(e);return(null==t?void 0:t.typeExpression)&&_L(aS(t.typeExpression))}function Nh(e){const t=ha(e);return void 0===t.containsArgumentsReference&&(512&t.flags?t.containsArgumentsReference=!0:t.containsArgumentsReference=function e(t){if(!t)return!1;switch(t.kind){case 80:return t.escapedText===ze.escapedName&&bq(t)===ze;case 173:case 175:case 178:case 179:return 168===t.name.kind&&e(t.name);case 212:case 213:return e(t.expression);case 304:return e(t.initializer);default:return!ey(t)&&!wf(t)&&!!rO(t,e)}}(e.body)),t.containsArgumentsReference}function Fh(e){if(!e||!e.declarations)return s;const t=[];for(let n=0;n0&&r.body){const t=e.declarations[n-1];if(r.parent===t.parent&&r.kind===t.kind&&r.pos===t.end)continue}if(Em(r)&&r.jsDoc){const e=qg(r);if(l(e)){for(const n of e){const e=n.typeExpression;void 0!==e.type||LN(r)||dD(e,At),t.push(wh(e))}continue}}t.push(!JT(r)&&!Jf(r)&&Dh(r)||wh(r))}}return t}function Eh(e){const t=ls(e,e);if(t){const e=ps(t);if(e)return eu(e)}return At}function Ah(e){if(e.thisParameter)return eu(e.thisParameter)}function Ih(e){if(!e.resolvedTypePredicate){if(e.target){const t=Ih(e.target);e.resolvedTypePredicate=t?CS(t,e.mapper):di}else if(e.compositeSignatures)e.resolvedTypePredicate=function(e,t){let n;const r=[];for(const i of e){const e=Ih(i);if(e){if(0!==e.kind&&1!==e.kind||n&&!Yb(n,e))return;n=e,r.push(e.type)}else{const e=268435456!==t?jh(i):void 0;if(e!==cn&&e!==ln)return}}if(!n)return;const i=Oh(r,t);return ph(n.kind,n.parameterName,n.parameterIndex,i)}(e.compositeSignatures,e.compositeKind)||di;else{const t=e.declaration&&hv(e.declaration);let n;if(!t){const t=Dh(e.declaration);t&&e!==t&&(n=Ih(t))}if(t||n)e.resolvedTypePredicate=t&&zN(t)?function(e,t){const n=e.parameterName,r=e.type&&aS(e.type);return 198===n.kind?ph(e.assertsModifier?2:0,void 0,void 0,r):ph(e.assertsModifier?3:1,n.escapedText,b(t.parameters,(e=>e.escapedName===n.escapedText)),r)}(t,e):n||di;else if(e.declaration&&a_(e.declaration)&&(!e.resolvedReturnType||256&e.resolvedReturnType.flags)&&wj(e)>0){const{declaration:t}=e;e.resolvedTypePredicate=di,e.resolvedTypePredicate=function(e){switch(e.kind){case 177:case 178:case 179:return}if(0!==Lh(e))return;let t;if(e.body&&242!==e.body.kind)t=e.body;else{if(Nf(e.body,(e=>{if(t||!e.expression)return!0;t=e.expression}))||!t||nR(e))return}return function(e,t){t=sh(t,!0);return 256&IR(t).flags?_(e.parameters,((n,r)=>{const i=eu(n.symbol);if(!i||256&i.flags||!_N(n.name)||vP(n.symbol)||Ju(n))return;const o=function(e,t,n,r){const i=Lg(t)&&t.flowNode||254===t.parent.kind&&t.parent.flowNode||rB(2,void 0,void 0),o=rB(32,t,i),a=hP(n.name,r,r,e,o);if(a===r)return;const s=rB(64,t,i),c=zm(hP(n.name,r,a,e,s));return 262144&c.flags?a:void 0}(e,t,n,i);return o?ph(1,gc(n.name.escapedText),r,o):void 0})):void 0}(e,t)}(t)||di}else e.resolvedTypePredicate=di}_n.assert(!!e.resolvedTypePredicate)}return e.resolvedTypePredicate===di?void 0:e.resolvedTypePredicate}function Oh(e,t,n){return 268435456!==t?Xb(e,n):ix(e)}function jh(e){if(!e.resolvedReturnType){if(!tl(e,3))return Rt;let t=e.target?LS(jh(e.target),e.mapper):e.compositeSignatures?LS(Oh(N(e.compositeSignatures,jh),e.compositeKind,2),e.mapper):Mh(e.declaration)||(Nd(e.declaration.body)?At:Qj(e.declaration));if(8&e.flags?t=Ww(t):16&e.flags&&(t=Uw(t)),!sl()){if(e.declaration){const t=hv(e.declaration);if(t)$o(t,ua.Return_type_annotation_circularly_references_itself);else if(le){const t=e.declaration,n=wc(t);n?$o(n,ua._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,Ap(n)):$o(t,ua.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=At}e.resolvedReturnType??(e.resolvedReturnType=t)}return e.resolvedReturnType}function Mh(e){if(177===e.kind)return zu(Ns(e.parent.symbol));const t=hv(e);if(FP(e)){const n=$g(e);if(n&&LN(n.parent)&&!t)return zu(Ns(n.parent.parent.symbol))}if(Ng(e))return aS(e.parameters[0].type);if(t)return aS(t);if(178===e.kind&&Ad(e)){const t=Em(e)&&Rl(e);if(t)return t;const n=P_(Ku(Fs(e),179));if(n)return n}return function(e){const t=Dh(e);return t&&jh(t)}(e)}function Kh(e){return e.compositeSignatures&&V(e.compositeSignatures,Kh)||!e.resolvedReturnType&&il(e,3)>=0}function Xh(e){if(mJ(e)){const t=eu(e.parameters[e.parameters.length-1]),n=Fw(t)?Aw(t):t;return n&&Og(n,an)}}function ny(e,t,n,r){const i=ry(e,Th(t,e.typeParameters,kh(e.typeParameters),n));if(r){const e=uL(jh(i));if(e){const t=Ud(e);t.typeParameters=r;const n=ly(t);n.mapper=i.mapper;const o=Ud(i);return o.resolvedReturnType=n,o}}return i}function ry(e,t){const n=e.instantiations||(e.instantiations=new Map),r=Sy(t);let i=n.get(r);return i||n.set(r,i=iy(e,t)),i}function iy(e,t){return wS(e,function(e,t){return dS(oy(e),t)}(e,t),!0)}function oy(e){return E(e.typeParameters,(e=>e.mapper?LS(e,e.mapper):e))}function ay(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return wS(e,vS(e.typeParameters),!0)}(e)):e}function sy(e){return e.typeParameters?e.canonicalSignatureCache||(e.canonicalSignatureCache=function(e){return ny(e,N(e.typeParameters,(e=>e.target&&!bf(e.target)?e.target:e)),Em(e.declaration))}(e)):e}function cy(e){const t=e.typeParameters;if(t){if(e.baseSignatureCache)return e.baseSignatureCache;const n=vS(t),r=dS(t,N(t,(e=>bf(e)||qt)));let i=N(t,(e=>LS(e,r)||qt));for(let e=0;e{hy(e)&&!bg(n,e)&&n.push(fy(e,t.type?aS(t.type):At,Nv(t,8),t))}))}}else if(Pd(t)){const e=PF(t)?t.left:t.name,_=hF(e)?IR(e.argumentExpression):TI(e);if(bg(n,_))continue;QS(_,Sn)&&(QS(_,an)?(r=!0,jv(t)||(i=!1)):QS(_,mn)?(o=!0,jv(t)||(a=!1)):(s=!0,jv(t)||(c=!1)),l.push(t.symbol))}const _=$(l,C(t,(t=>t!==e)));return s&&!bg(n,rn)&&n.push(PI(c,0,_,rn)),r&&!bg(n,an)&&n.push(PI(i,0,_,an)),o&&!bg(n,mn)&&n.push(PI(a,0,_,mn)),n}return s}function hy(e){return!!(608&e.flags)||qx(e)||!!(268435456&e.flags)&&!Vx(e)&&V(e.types,hy)}function yy(e){return R(C(e.symbol&&e.symbol.declarations,DN),dl)[0]}function vy(e,t){var n;let r;if(null==(n=e.symbol)?void 0:n.declarations)for(const n of e.symbol.declarations)if(196===n.parent.kind){const[i=n.parent,o]=oh(n.parent.parent);if(184!==o.kind||t){if(170===o.kind&&o.dotDotDotToken||192===o.kind||203===o.kind&&o.dotDotDotToken)r=re(r,Tb(qt));else if(205===o.kind)r=re(r,rn);else if(169===o.kind&&201===o.parent.kind)r=re(r,Sn);else if(201===o.kind&&o.type&&sh(o.type)===n.parent&&195===o.parent.kind&&o.parent.extendsType===o&&201===o.parent.checkType.kind&&o.parent.checkType.type){const e=o.parent.checkType;r=re(r,LS(aS(e.type),fS(nd(Fs(e.typeParameter)),e.typeParameter.constraint?aS(e.typeParameter.constraint):Sn)))}}else{const t=o,n=hM(t);if(n){const o=t.typeArguments.indexOf(i);if(o()=>fM(t,n,r)))));o!==e&&(r=re(r,o))}}}}}return r&&ix(r)}function by(e){if(!e.constraint)if(e.target){const t=bf(e.target);e.constraint=t?LS(t,e.mapper):qn}else{const t=yy(e);if(t){let n=aS(t);1&n.flags&&!kl(n)&&(n=201===t.parent.parent.kind?Sn:qt),e.constraint=n}else e.constraint=vy(e)||qn}return e.constraint===qn?void 0:e.constraint}function xy(e){const t=Ku(e.symbol,169),n=HP(t.parent)?zg(t.parent):t.parent;return n&&Ps(n)}function Sy(e){let t="";if(e){const n=e.length;let r=0;for(;r1&&(t+=":"+o),r+=o}}return t}function Ty(e,t){return e?`@${lJ(e)}`+(t?`:${Sy(t)}`:""):""}function Cy(e,t){let n=0;for(const r of e)void 0!==t&&r.flags&t||(n|=yx(r));return 458752&n}function wy(e,t){return V(t)&&e===Jn?qt:Dy(e,t)}function Dy(e,t){const n=Sy(t);let r=e.instantiations.get(n);return r||(r=$s(4,e.symbol),e.instantiations.set(n,r),r.objectFlags|=t?Cy(t):0,r.target=e,r.resolvedTypeArguments=t),r}function Ny(e){const t=Us(e.flags,e.symbol);return t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function Fy(e,t,n,r,i){if(!r){const e=Fk(r=Nk(t));i=n?lS(e,n):e}const o=$s(4,e.symbol);return o.target=e,o.node=t,o.mapper=n,o.aliasSymbol=r,o.aliasTypeArguments=i,o}function Ay(e){var t,n;if(!e.resolvedTypeArguments){if(!tl(e,5))return $(e.target.outerTypeParameters,null==(t=e.target.localTypeParameters)?void 0:t.map((()=>Rt)))||s;const i=e.node,o=i?184===i.kind?$(e.target.outerTypeParameters,mM(i,e.target.localTypeParameters)):189===i.kind?[aS(i.elementType)]:N(i.elements,aS):s;sl()?e.resolvedTypeArguments??(e.resolvedTypeArguments=e.mapper?lS(o,e.mapper):o):(e.resolvedTypeArguments??(e.resolvedTypeArguments=$(e.target.outerTypeParameters,(null==(n=e.target.localTypeParameters)?void 0:n.map((()=>Rt)))||s)),$o(e.node||r,e.target.symbol?ua.Type_arguments_for_0_circularly_reference_themselves:ua.Tuple_type_arguments_circularly_reference_themselves,e.target.symbol&&Ac(e.target.symbol)))}return e.resolvedTypeArguments}function Iy(e){return l(e.target.typeParameters)}function Oy(e,t){const n=rd(Ns(t)),r=n.localTypeParameters;if(r){const t=l(e.typeArguments),i=kh(r),o=Em(e);if(!(!le&&o)&&(tr.length)){const t=o&&MF(e)&&!EP(e.parent);if($o(e,i===r.length?t?ua.Expected_0_type_arguments_provide_these_with_an_extends_tag:ua.Generic_type_0_requires_1_type_argument_s:t?ua.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:ua.Generic_type_0_requires_between_1_and_2_type_arguments,Oc(n,void 0,2),i,r.length),!o)return Rt}if(184===e.kind&&Fb(e,l(e.typeArguments)!==r.length))return Fy(n,e,void 0);return Dy(n,$(n.outerTypeParameters,Th(rv(e),r,i,o)))}return ev(e,t)?n:Rt}function Ry(e,t,n,r){const i=rd(e);if(i===Jt){const n=oJ.get(e.escapedName);if(void 0!==n&&t&&1===t.length)return 4===n?Vy(t[0]):Ax(e,t[0])}const o=ga(e),a=o.typeParameters,s=Sy(t)+Ty(n,r);let c=o.instantiations.get(s);return c||o.instantiations.set(s,c=jS(i,dS(a,Th(t,a,kh(a),Em(e.valueDeclaration))),n,r)),c}function By(e){var t;const n=null==(t=e.declarations)?void 0:t.find(Eg);return!(!n||!Kf(n))}function Jy(e){return e.parent?`${Jy(e.parent)}.${e.escapedName}`:e.escapedName}function zy(e){const t=(167===e.kind?e.right:212===e.kind?e.name:e).escapedText;if(t){const n=167===e.kind?zy(e.left):212===e.kind?zy(e.expression):void 0,r=n?`${Jy(n)}.${t}`:t;let i=Ft.get(r);return i||(Ft.set(r,i=na(524288,t,1048576)),i.parent=n,i.links.declaredType=Mt),i}return Dt}function qy(e,t,n){const r=function(e){switch(e.kind){case 184:return e.typeName;case 234:const t=e.expression;if(cb(t))return t}}(e);if(!r)return Dt;const i=ss(r,t,n);return i&&i!==Dt?i:n?Dt:zy(r)}function Uy(e,t){if(t===Dt)return Rt;if(96&(t=function(e){const t=e.valueDeclaration;if(!t||!Em(t)||524288&e.flags||Km(t,!1))return;const n=pE(t)?$m(t):Hm(t);if(n){const t=Ps(n);if(t)return KL(t,e)}}(t)||t).flags)return Oy(e,t);if(524288&t.flags)return function(e,t){if(1048576&ox(t)){const n=rv(e),r=Ty(t,n);let i=Et.get(r);return i||(i=Ws(1,"error",void 0,`alias ${r}`),i.aliasSymbol=t,i.aliasTypeArguments=n,Et.set(r,i)),i}const n=rd(t),r=ga(t).typeParameters;if(r){const n=l(e.typeArguments),i=kh(r);if(nr.length)return $o(e,i===r.length?ua.Generic_type_0_requires_1_type_argument_s:ua.Generic_type_0_requires_between_1_and_2_type_arguments,Ac(t),i,r.length),Rt;const o=Nk(e);let a,s=!o||!By(t)&&By(o)?void 0:o;if(s)a=Fk(s);else if(Ou(e)){const t=qy(e,2097152,!0);if(t&&t!==Dt){const n=es(t);n&&524288&n.flags&&(s=n,a=rv(e)||(r?[]:void 0))}}return Ry(t,rv(e),s,a)}return ev(e,t)?n:Rt}(e,t);const n=cd(t);if(n)return ev(e,t)?Hk(n):Rt;if(111551&t.flags&&Zy(e)){const n=function(e,t){const n=ha(e);if(!n.resolvedJSDocType){const r=eu(t);let i=r;if(t.valueDeclaration){const n=206===e.kind&&e.qualifier;r.symbol&&r.symbol!==t&&n&&(i=Uy(e,r.symbol))}n.resolvedJSDocType=i}return n.resolvedJSDocType}(e,t);return n||(qy(e,788968),eu(t))}return Rt}function Vy(e){return Wy(e)?Ky(e,qt):e}function Wy(e){return!!(402653184&e.flags&&V(e.types,Wy)||16777216&e.flags&&!$y(e)&&Wy(e.baseType)||1048576&e.flags&&!zT(e)||115867648&e.flags&&!qx(e))}function $y(e){return!!(16777216&e.flags&&2&e.constraint.flags)}function Hy(e,t){return 3&t.flags||t===e||1&e.flags?e:Ky(e,t)}function Ky(e,t){const n=`${zb(e)}>${zb(t)}`,r=bt.get(n);if(r)return r;const i=qs(16777216);return i.baseType=e,i.constraint=t,bt.set(n,i),i}function Gy(e){return $y(e)?e.baseType:ix([e.constraint,e.baseType])}function Xy(e){return 190===e.kind&&1===e.elements.length}function Yy(e,t,n){return Xy(t)&&Xy(n)?Yy(e,t.elements[0],n.elements[0]):_k(aS(t))===_k(e)?aS(n):void 0}function Zy(e){return!!(16777216&e.flags)&&(184===e.kind||206===e.kind)}function ev(e,t){return!e.typeArguments||($o(e,ua.Type_0_is_not_generic,t?Ac(t):e.typeName?Ap(e.typeName):GB),!1)}function tv(e){if(_N(e.typeName)){const t=e.typeArguments;switch(e.typeName.escapedText){case"String":return ev(e),rn;case"Number":return ev(e),an;case"BigInt":return ev(e),sn;case"Boolean":return ev(e),fn;case"Void":return ev(e),gn;case"Undefined":return ev(e),Ut;case"Null":return ev(e),Qt;case"Function":case"function":return ev(e),ir;case"array":return t&&t.length||le?void 0:fr;case"promise":return t&&t.length||le?void 0:Kj(At);case"Object":if(t&&2===t.length){if(Om(e)){const e=aS(t[0]),n=aS(t[1]),r=e===rn||e===an?[fy(e,n,!1)]:s;return Ys(void 0,j,s,s,r)}return At}return ev(e),le?void 0:At}}}function nv(e){const t=ha(e);if(!t.resolvedType){if(Sl(e)&&$_(e.parent))return t.resolvedSymbol=Dt,t.resolvedType=IR(e.parent.expression);let n,r;const i=788968;Zy(e)&&(r=tv(e),r||(n=qy(e,i,!0),n===Dt?n=qy(e,111551|i):qy(e,i),r=Uy(e,n))),r||(n=qy(e,i),r=Uy(e,n)),t.resolvedSymbol=n,t.resolvedType=r}return t.resolvedType}function rv(e){return N(e.typeArguments,aS)}function iv(e){const t=ha(e);if(!t.resolvedType){const n=lj(e);t.resolvedType=Hk(lD(n))}return t.resolvedType}function sv(e,t){function n(e){const t=e.declarations;if(t)for(const e of t)switch(e.kind){case 264:case 265:case 267:return e}}if(!e)return t?Jn:In;const r=rd(e);return 1048576&r.flags?l(r.typeParameters)!==t?($o(n(e),ua.Global_type_0_must_have_1_type_parameter_s,vc(e),t),t?Jn:In):r:($o(n(e),ua.Global_type_0_must_be_a_class_or_interface_type,vc(e)),t?Jn:In)}function pv(e,t){return bv(e,111551,t?ua.Cannot_find_global_value_0:void 0)}function fv(e,t){return bv(e,788968,t?ua.Cannot_find_global_type_0:void 0)}function gv(e,t,n){const r=bv(e,788968,n?ua.Cannot_find_global_type_0:void 0);if(!r||(rd(r),l(ga(r).typeParameters)===t))return r;$o(r.declarations&&y(r.declarations,yE),ua.Global_type_0_must_have_1_type_parameter_s,vc(r),t)}function bv(e,t,n){return Ge(void 0,e,t,n,!1,!1)}function xv(e,t,n){const r=fv(e,n);return r||n?sv(r,t):void 0}function kv(e,t){let n;for(const r of e)n=re(n,xv(r,t,!1));return n??s}function Sv(){return zr||(zr=xv("ImportMeta",0,!0)||In)}function Tv(){if(!qr){const e=na(0,"ImportMetaExpression"),t=Sv(),n=na(4,"meta",8);n.parent=e,n.links.type=t;const r=Xu([n]);e.members=r,qr=Ys(e,r,s,s,s)}return qr}function Cv(e){return Ur||(Ur=xv("ImportCallOptions",0,e))||In}function Bv(e){return Vr||(Vr=xv("ImportAttributes",0,e))||In}function Jv(e){return yr||(yr=pv("Symbol",e))}function qv(){return br||(br=xv("Symbol",0,!1))||In}function Uv(e){return kr||(kr=xv("Promise",1,e))||Jn}function Vv(e){return Sr||(Sr=xv("PromiseLike",1,e))||Jn}function Wv(e){return Tr||(Tr=pv("Promise",e))}function $v(e){return Ir||(Ir=xv("AsyncIterable",3,e))||Jn}function Hv(e){return Lr||(Lr=xv("AsyncIterableIterator",3,e))||Jn}function Qv(e){return wr||(wr=xv("Iterable",3,e))||Jn}function Yv(e){return Nr||(Nr=xv("IterableIterator",3,e))||Jn}function Zv(){return oe?Ut:At}function rb(e){return Wr||(Wr=xv("Disposable",0,e))||In}function ab(e,t=0){const n=bv(e,788968,void 0);return n&&sv(n,t)}function vb(e){return Gr||(Gr=gv("Awaited",1,e)||(e?Dt:void 0)),Gr===Dt?void 0:Gr}function bb(e,t){return e!==Jn?Dy(e,t):In}function xb(e){return bb(xr||(xr=xv("TypedPropertyDescriptor",1,!0)||Jn),[e])}function Sb(e){return bb(Qv(!0),[e,gn,Ut])}function Tb(e,t){return bb(t?cr:sr,[e])}function Cb(e){switch(e.kind){case 191:return 2;case 192:return wb(e);case 203:return e.questionToken?2:e.dotDotDotToken?wb(e):1;default:return 1}}function wb(e){return oS(e.type)?4:8}function Db(e){const t=function(e){return iF(e)&&148===e.operator}(e.parent);if(oS(e))return t?cr:sr;return Ib(N(e.elements,Cb),t,N(e.elements,Nb))}function Nb(e){return GN(e)||NN(e)?e:void 0}function Fb(e,t){return!!Nk(e)||Eb(e)&&(189===e.kind?Pb(e.elementType):190===e.kind?V(e.elements,Pb):t||V(e.typeArguments,Pb))}function Eb(e){const t=e.parent;switch(t.kind){case 197:case 203:case 184:case 193:case 194:case 200:case 195:case 199:case 189:case 190:return Eb(t);case 266:return!0}return!1}function Pb(e){switch(e.kind){case 184:return Zy(e)||!!(524288&qy(e,788968).flags);case 187:return!0;case 199:return 158!==e.operator&&Pb(e.type);case 197:case 191:case 203:case 317:case 315:case 316:case 310:return Pb(e.type);case 192:return 189!==e.type.kind||Pb(e.type.elementType);case 193:case 194:return V(e.types,Pb);case 200:return Pb(e.objectType)||Pb(e.indexType);case 195:return Pb(e.checkType)||Pb(e.extendsType)||Pb(e.trueType)||Pb(e.falseType)}return!1}function Ab(e,t,n=!1,r=[]){const i=Ib(t||N(e,(e=>1)),n,r);return i===Jn?In:e.length?Ob(i,e):i}function Ib(e,t,n){if(1===e.length&&4&e[0])return t?cr:sr;const r=N(e,(e=>1&e?"#":2&e?"?":4&e?".":"*")).join()+(t?"R":"")+(V(n,(e=>!!e))?","+N(n,(e=>e?cJ(e):"_")).join(","):"");let i=ot.get(r);return i||ot.set(r,i=function(e,t,n){const r=e.length,i=T(e,(e=>!!(9&e)));let o;const a=[];let c=0;if(r){o=new Array(r);for(let i=0;i!!(8&e.elementFlags[n]&&134479872&t.flags)));if(n>=0)return ux(N(t,((t,n)=>8&e.elementFlags[n]?t:qt)))?lE(t[n],(r=>Lb(e,ke(t,n,r)))):Rt}const s=[],c=[],l=[];let u=-1,d=-1,p=-1;for(let c=0;c=1e4)return $o(r,wf(r)?ua.Type_produces_a_tuple_type_that_is_too_large_to_represent:ua.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Rt;_(e,((e,t)=>{var n;return m(e,l.target.elementFlags[t],null==(n=l.target.labeledElementDeclarations)?void 0:n[t])}))}else m(lw(l)&&Og(l,an)||Rt,4,null==(o=e.labeledElementDeclarations)?void 0:o[c]);else m(l,u,null==(a=e.labeledElementDeclarations)?void 0:a[c])}for(let e=0;e=0&&d8&c[d+t]?ok(e,an):e))),s.splice(d+1,p-d),c.splice(d+1,p-d),l.splice(d+1,p-d));const f=Ib(c,e.readonly,l);return f===Jn?In:c.length?Dy(f,s):f;function m(e,t,n){1&t&&(u=c.length),4&t&&d<0&&(d=c.length),6&t&&(p=c.length),s.push(2&t?zl(e,!0):e),c.push(t),l.push(n)}}function jb(e,t,n=0){const r=e.target,i=Iy(e)-n;return t>r.fixedLength?function(e){const t=Aw(e);return t&&Tb(t)}(e)||Ab(s):Ab(Ay(e).slice(t,i),r.elementFlags.slice(t,i),!1,r.labeledElementDeclarations&&r.labeledElementDeclarations.slice(t,i))}function Rb(e){return Xb(re(Ae(e.target.fixedLength,(e=>Yk(""+e))),Dx(e.target.readonly?cr:sr)))}function Mb(e,t){return e.elementFlags.length-x(e.elementFlags,(e=>!(e&t)))-1}function Bb(e){return e.fixedLength+Mb(e,3)}function Jb(e){const t=Ay(e),n=Iy(e);return t.length===n?t:t.slice(0,n)}function zb(e){return e.id}function qb(e,t){return xe?Se(e,t,at,gU)>=0:Se(e,t,zb,yt)>=0}function Ub(e,t){const n=xe?Se(e,t,at,gU):Se(e,t,zb,yt);return n<0&&(e.splice(~n,0,t),!0)}function Vb(e,t,n){const r=n.flags;if(!(262144&r))if(t|=416808959&r,132644864&r&&(t|=16777216),268435456&r&&67108864&yx(n)&&(t|=536870912),n===Lt&&(t|=33554432),kl(n)&&(t|=1073741824),!Y&&12&r)65536&yx(n)||(t|=2097152);else{const t=e.length,r=xe?Se(e,n,at,gU):t&&n.id>e[t-1].id?~t:Se(e,n,zb,yt);r<0&&e.splice(~r,0,n)}return t}function Wb(e,t,n){let r;for(const i of n)i!==r&&(t=134217728&i.flags?Wb(e,t|(Hb(i)?134217728:0),i.types):Vb(e,t,i),r=i);return t}function $b(e,t){return 4194304&t.flags?JD(e,t):RD(e,t)}function Hb(e){return!!(134217728&e.flags&&(e.aliasSymbol||e.origin))}function Kb(e,t){for(const n of t)if(134217728&n.flags){const t=n.origin;n.aliasSymbol||t&&!(134217728&t.flags)?se(e,n):t&&134217728&t.flags&&Kb(e,t.types)}}function Gb(e,t){const n=Vs(e);return n.types=t,n}function Xb(e,t=1,n,r,i){if(0===e.length)return hn;if(1===e.length)return e[0];if(2===e.length&&!i&&(134217728&e[0].flags||134217728&e[1].flags)){const i=0===t?"N":2===t?"S":"L",o=e[0].id=2&&a[0]===Ut&&a[1]===Wt&&zt(a,1),(12680192&s||16&s&&4&s)&&function(e,t,n){let r=e.length;for(;r>0;){r--;const i=e[r],o=i.flags;(12583936&o&&32&t||2048&o&&64&t||4096&o&&128&t||16384&o&&512&t||n&&4&o&&16&t||Kk(i)&&qb(e,i.regularType))&&zt(e,r)}}(a,s,!!(2&t)),1024&s&&12582912&s&&function(e){const t=C(e,qx);if(t.length){let n=e.length;for(;n>0;){n--;const r=e[n];1024&r.flags&&V(t,(e=>$b(r,e)))&&zt(e,n)}}}(a),536870912&s&&function(e){const t=[];for(const n of e)if(268435456&n.flags&&67108864&yx(n)){const e=34078720&n.types[0].flags?0:1;se(t,n.types[e])}for(const n of t){const t=[];for(const r of e)if(268435456&r.flags&&67108864&yx(r)){const e=34078720&r.types[0].flags?0:1;r.types[e]===n&&Ub(t,r.types[1-e])}if(oE(Mf(n),(e=>qb(t,e)))){let r=e.length;for(;r>0;){r--;const i=e[r];if(268435456&i.flags&&67108864&yx(i)){const o=34078720&i.types[0].flags?0:1;i.types[o]===n&&qb(t,i.types[1-o])&&zt(e,r)}}Ub(e,n)}}}(a),2===t&&(a=function(e,t){var n;if(e.length<2)return e;const i=Sy(e),o=xt.get(i);if(o)return o;const a=t&&V(e,(e=>!!(1048576&e.flags)&&!uf(e)&<(ff(e)))),s=e.length;let c=s,l=0;for(;c>0;){c--;const t=e[c];if(a||536346624&t.flags){if(524288&t.flags&&134217728&Bf(t).flags){pC(t,Xb(N(e,(e=>e===t?hn:e))),Po)&&zt(e,c);continue}const i=387448832&t.flags?y(yf(t),(e=>hw(eu(e)))):void 0,o=i&&Hk(eu(i));for(const a of e)if(t!==a){if(1e5===l&&l/(s-c)*s>1e6)return null==(n=$n)||n.instant($n.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:e.map((e=>e.id))}),void $o(r,ua.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(l++,i&&387448832&a.flags){const e=pl(a,i.escapedName);if(e&&hw(e)&&Hk(e)!==o)continue}if(pC(t,a,Po)&&(!(1&yx(iu(t)))||!(1&yx(iu(a)))||YS(t,a))){zt(e,c);break}}}}return xt.set(i,e),e}(a,!!(1048576&s)),!a))return Rt;if(0===a.length)return 8&s?2097152&s?Qt:tn:4&s?2097152&s?Ut:Vt:hn}if(!o&&134217728&s){const t=[];Kb(t,e);const r=[];for(const e of a)V(t,(t=>qb(t.types,e)))||r.push(e);if(!n&&1===t.length&&0===r.length)return t[0];if(Ce(t,((e,t)=>e+t.types.length),0)+r.length===a.length){for(const e of t)Ub(r,e);o=Gb(134217728,r)}}return Zb(a,(286523411&s?0:32768)|(268435456&s?16777216:0),n,i,o)}function Yb(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function Zb(e,t,n,r,i){if(0===e.length)return hn;if(1===e.length)return e[0];const o=(i?134217728&i.flags?`|${Sy(i.types)}`:268435456&i.flags?`&${Sy(i.types)}`:`#${i.type.id}|${Sy(e)}`:Sy(e))+Ty(n,r);let a=st.get(o);return a||(a=qs(134217728),a.objectFlags=t|Cy(e,12),a.types=e,a.origin=i,a.aliasSymbol=n,a.aliasTypeArguments=r,2===e.length&&8192&e[0].flags&&8192&e[1].flags&&(a.flags|=256,a.intrinsicName="boolean"),st.set(o,a)),a}function ex(e,t,n){const r=n.flags;return 268435456&r?tx(e,t,n.types):(zT(n)?67108864&t||(t|=67108864,e.set(n.id.toString(),n)):(3&r?(n===Lt&&(t|=33554432),kl(n)&&(t|=1073741824)):!Y&&12&r||(n===Wt&&(t|=524288,n=Ut),e.has(n.id.toString())||(97292&n.flags&&97292&t&&(t|=131072),e.set(n.id.toString(),n))),t|=416808959&r),t)}function tx(e,t,n){for(const r of n)t=ex(e,t,Hk(r));return t}function nx(e,t){for(const n of e)if(!qb(n.types,t)){if(t===Wt)return qb(n.types,Ut);if(t===Ut)return qb(n.types,Wt);const e=1024&t.flags?rn:67584&t.flags?an:4096&t.flags?sn:16384&t.flags?mn:void 0;if(!e||!qb(n.types,e))return!1}return!0}function rx(e,t){for(let n=0;n!(e.flags&t)))}function ix(e,t=0,n,r){const i=new Map,o=tx(i,0,e),a=Ie(i.values());let s=0;if(262144&o)return k(a,yn)?yn:hn;if(Y&&12&o&&68288512&o||131072&o&&12681212&o||12583968&o&&228316&o||67648&o&&12744636&o||4224&o&&12808060&o||16896&o&&12795388&o||20&o&&12812264&o)return hn;if(12582912&o&&1024&o&&function(e){let t=e.length;const n=C(e,(e=>!!(1024&e.flags)));for(;t>0;){t--;const r=e[t];if(12582912&r.flags)for(const i of n){if(GS(i,r)){zt(e,t);break}if(qx(r))return!0}}return!1}(a))return hn;if(1&o)return 33554432&o?Lt:1073741824&o?Rt:At;if(!Y&&12&o)return 67108864&o?hn:4&o?Ut:Qt;if((32&o&&12583936&o||64&o&&2048&o||128&o&&4096&o||512&o&&16384&o||16&o&&4&o||67108864&o&&13893600&o)&&(1&t||function(e,t){let n=e.length;for(;n>0;){n--;const r=e[n];(32&r.flags&&12583936&t||64&r.flags&&2048&t||128&r.flags&&4096&t||512&r.flags&&16384&t||16&r.flags&&4&t||zT(r)&&13893600&t)&&zt(e,n)}}(a,o)),524288&o&&(a[a.indexOf(Ut)]=Wt),0===a.length)return qt;if(1===a.length)return a[0];if(2===a.length&&!(2&t)){const e=34078720&a[0].flags?0:1,t=a[e],n=a[1-e];if(34078720&t.flags&&(12845052&n.flags&&!Ux(n)||67108864&o)){const e=Mf(t);if(e&&oE(e,(e=>!!(12845052&e.flags)||zT(e)))){if(XS(e,n))return t;if(!(134217728&e.flags&&iE(e,(e=>XS(e,n)))||XS(n,e)))return hn;s=67108864}}}const c=Sy(a)+(2&t?"*":Ty(n,r));let l=lt.get(c);if(!l){if(134217728&o)if(function(e){let t;const n=b(e,(e=>!!(32768&yx(e))));if(n<0)return!1;let r=n+1;for(;r!!(134217728&e.flags&&4&e.types[0].flags)))){const e=V(a,Xw)?Wt:Ut;rx(a,4),l=Xb([ix(a,t),e],1,n,r)}else if(h(a,(e=>!!(134217728&e.flags&&(8&e.types[0].flags||8&e.types[1].flags)))))rx(a,8),l=Xb([ix(a,t),Qt],1,n,r);else if(a.length>=3&&e.length>2){const e=Math.floor(a.length/2);l=ix([ix(a.slice(0,e),t),ix(a.slice(e),t)],t,n,r)}else{if(!ux(a))return Rt;const e=function(e,t){const n=sx(e),r=[];for(let i=0;i=0;t--)if(134217728&e[t].flags){const r=e[t].types,i=r.length;n[t]=r[o%i],o=Math.floor(o/i)}const a=ix(n,t);262144&a.flags||r.push(a)}return r}(a,t);l=Xb(e,1,n,r,V(e,(e=>!!(268435456&e.flags)))&&px(e)>px(a)?Gb(268435456,a):void 0)}else l=function(e,t,n,r){const i=qs(268435456);return i.objectFlags=t|Cy(e,12),i.types=e,i.aliasSymbol=n,i.aliasTypeArguments=r,i}(a,s,n,r);lt.set(c,l)}return l}function sx(e){return Ce(e,((e,t)=>134217728&t.flags?e*t.types.length:262144&t.flags?0:e),1)}function ux(e){var t;const n=sx(e);return!(n>=1e5)||(null==(t=$n)||t.instant($n.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:e.map((e=>e.id)),size:n}),$o(r,ua.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1)}function dx(e){return 402653184&e.flags&&!e.aliasSymbol?134217728&e.flags&&e.origin?dx(e.origin):px(e.types):1}function px(e){return Ce(e,((e,t)=>e+dx(t)),0)}function fx(e,t){const n=qs(2097152);return n.type=e,n.indexFlags=t,n}function mx(e,t){return 1&t?e.resolvedStringIndexType||(e.resolvedStringIndexType=fx(e,1)):e.resolvedIndexType||(e.resolvedIndexType=fx(e,0))}function gx(e,t){const n=Lp(e),r=Jp(e),i=Up(e.target||e);if(!(i||2&t))return r;const o=[];if($x(r)){if(rf(e))return mx(e,t);eE(r,s)}else if(rf(e)){Cp(ym(of(e)),19456,!!(1&t),s)}else eE(Sp(r),s);const a=2&t?aE(Xb(o),(e=>!(33&e.flags))):Xb(o);return 134217728&a.flags&&134217728&r.flags&&Sy(a.types)===Sy(r.types)?r:a;function s(t){const r=i?LS(i,SS(e.mapper,n,t)):t;o.push(r===rn?kn:r)}}function bx(e){if(uN(e))return hn;if(WD(e))return Hk(tM(e));if(wN(e))return Hk(TI(e));const t=zh(e);return void 0!==t?Yk(gc(t)):W_(e)?Hk(tM(e)):hn}function xx(e,t,n){if(n||!(6&ax(e))){let n=ga(Md(e)).nameType;if(!n){const t=wc(e.valueDeclaration);n="default"===e.escapedName?Yk("default"):t&&bx(t)||($h(e)?void 0:Yk(vc(e)))}if(n&&n.flags&t)return n}return hn}function kx(e,t){return!!(e.flags&t||268435456&e.flags&&V(e.types,(e=>kx(e,t))))}function Sx(e,t,n){const r=n&&(7&yx(e)||e.aliasSymbol)?function(e){const t=Vs(2097152);return t.type=e,t}(e):void 0;return Xb($(N(yf(e),(e=>xx(e,t))),N(Pg(e),(e=>e!==yi&&kx(e.keyType,t)?e.keyType===rn&&64&t?kn:e.keyType:hn))),1,void 0,void 0,r)}function wx(e,t=0){return!!(117964800&e.flags||Ew(e)||uf(e)&&Up(e)||134217728&e.flags&&!(4&t)&&og(e)||268435456&e.flags&&mR(e,132644864)&&V(e.types,zT))}function Dx(e,t=0){return $y(e=zm(e))?Vy(Dx(e.baseType,t)):wx(e,t)?mx(e,t):134217728&e.flags?ix(N(e.types,(e=>Dx(e,t)))):268435456&e.flags?Xb(N(e.types,(e=>Dx(e,t)))):32&yx(e)?gx(e,t):e===Lt?Lt:2&e.flags?hn:262145&e.flags?Sn:Sx(e,(2&t?1024:12583968)|(1&t?0:84544),0===t)}function Fx(e){const t=(Hr||(Hr=gv("Extract",2,!0)||Dt),Hr===Dt?void 0:Hr);return t?Ry(t,[e,rn]):rn}function Ex(e,t){const n=b(t,(e=>!!(134479872&e.flags)));if(n>=0)return ux(t)?lE(t[n],(r=>Ex(e,ke(t,n,r)))):Rt;if(k(t,Lt))return Lt;const r=[],i=[];let o=e[0];if(!function e(t,n){for(let a=0;a""===e))){if(h(r,(e=>!!(32&e.flags))))return rn;if(1===r.length&&qx(r[0]))return r[0]}const a=`${Sy(r)}|${N(i,(e=>e.length)).join(",")}|${i.join("")}`;let s=gt.get(a);return s||gt.set(a,s=function(e,t){const n=qs(4194304);return n.texts=e,n.types=t,n}(i,r)),s}function Px(e){return 1024&e.flags?e.value:2048&e.flags?""+e.value:4096&e.flags?yT(e.value):8204&e.flags?e.intrinsicName:void 0}function Ax(e,t){return 134479872&t.flags?lE(t,(t=>Ax(e,t))):1024&t.flags?Yk(Ix(e,t.value)):4194304&t.flags?Ex(...function(e,t,n){switch(oJ.get(e.escapedName)){case 0:return[t.map((e=>e.toUpperCase())),n.map((t=>Ax(e,t)))];case 1:return[t.map((e=>e.toLowerCase())),n.map((t=>Ax(e,t)))];case 2:return[""===t[0]?t:[t[0].charAt(0).toUpperCase()+t[0].slice(1),...t.slice(1)],""===t[0]?[Ax(e,n[0]),...n.slice(1)]:n];case 3:return[""===t[0]?t:[t[0].charAt(0).toLowerCase()+t[0].slice(1),...t.slice(1)],""===t[0]?[Ax(e,n[0]),...n.slice(1)]:n]}return[t,n]}(e,t.texts,t.types)):8388608&t.flags&&e===t.symbol?t:8388641&t.flags||$x(t)?Ox(e,t):zx(t)?Ox(e,Ex(["",""],[t])):t}function Ix(e,t){switch(oJ.get(e.escapedName)){case 0:return t.toUpperCase();case 1:return t.toLowerCase();case 2:return t.charAt(0).toUpperCase()+t.slice(1);case 3:return t.charAt(0).toLowerCase()+t.slice(1)}return t}function Ox(e,t){const n=`${lJ(e)},${zb(t)}`;let r=vt.get(n);return r||vt.set(n,r=function(e,t){const n=Us(8388608,e);return n.type=t,n}(e,t)),r}function Lx(e){if(le)return!1;if(4096&yx(e))return!0;if(134217728&e.flags)return h(e.types,Lx);if(268435456&e.flags)return V(e.types,Lx);if(132644864&e.flags){const t=Wf(e);return t!==e&&Lx(t)}return!1}function jx(e,t){return lC(e)?_C(e):t&&n_(t)?zh(t):void 0}function Rx(e,t){if(8208&t.flags){const n=dc(e.parent,(e=>!Cx(e)))||e.parent;return j_(n)?R_(n)&&_N(e)&&yN(n,e):h(t.declarations,(e=>!i_(e)||Zo(e)))}return!0}function Mx(e,t,n,r,i,o){const a=i&&213===i.kind?i:void 0,s=i&&uN(i)?void 0:jx(n,i);if(void 0!==s){if(256&o)return UA(t,s)||At;const e=lg(t,s);if(e){if(64&o&&i&&e.declarations&&Yo(e)&&Rx(i,e)){ta((null==a?void 0:a.argumentExpression)??(oF(i)?i.indexType:i),e.declarations,s)}if(a){if($O(e,a,HO(a.expression,t.symbol)),lR(a,e,Qg(a)))return void $o(a.argumentExpression,ua.Cannot_assign_to_0_because_it_is_a_read_only_property,Ac(e));if(8&o&&(ha(i).resolvedSymbol=e),AO(a,e))return It}const n=4&o?Z_(e):eu(e);return a&&1!==Qg(a)?hP(a,n):i&&oF(i)&&Xw(n)?Xb([n,Ut]):n}if(oE(t,Fw)&&qT(s)){const e=+s;if(i&&oE(t,(e=>!(12&e.target.combinedFlags)))&&!(16&o)){const n=Jx(i);if(Fw(t)){if(e<0)return $o(n,ua.A_tuple_type_cannot_be_indexed_with_a_negative_value),Ut;$o(n,ua.Tuple_type_0_of_length_1_has_no_element_at_index_2,Oc(t),Iy(t),gc(s))}else $o(n,ua.Property_0_does_not_exist_on_type_1,gc(s),Oc(t))}if(e>=0)return c(Ag(t,an)),Iw(t,e,1&o?Wt:void 0)}}if(!(12&n.flags)&&gR(n,12668512)){if(262145&t.flags)return t;const l=Mg(t,n)||Ag(t,rn);if(l){if(2&o&&l.keyType!==an)return void(a&&(4&o?$o(a,ua.Type_0_is_generic_and_can_only_be_indexed_for_reading,Oc(e)):$o(a,ua.Type_0_cannot_be_used_to_index_type_1,Oc(n),Oc(e))));if(i&&l.keyType===rn&&!gR(n,96)){return $o(Jx(i),ua.Type_0_cannot_be_used_as_an_index_type,Oc(n)),1&o?Xb([l.type,Wt]):l.type}return c(l),1&o&&!(t.symbol&&384&t.symbol.flags&&n.symbol&&32768&n.flags&&Os(n.symbol)===t.symbol)?Xb([l.type,Wt]):l.type}if(262144&n.flags)return hn;if(Lx(t))return At;if(a&&!yR(t)){if(KD(t)){if(le&&3072&n.flags)return wo.add(Mp(a,ua.Property_0_does_not_exist_on_type_1,n.value,Oc(t))),Ut;if(96&n.flags){return Xb(re(N(t.properties,(e=>eu(e))),Ut))}}if(t.symbol===Le&&void 0!==s&&Le.exports.has(s)&&418&Le.exports.get(s).flags)$o(a,ua.Property_0_does_not_exist_on_type_1,gc(s),Oc(t));else if(le&&!(128&o))if(void 0!==s&&MO(s,t)){const e=Oc(t);$o(a,ua.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,s,e,e+"["+Xd(a.argumentExpression)+"]")}else if(Og(t,an))$o(a.argumentExpression,ua.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let e;if(void 0!==s&&(e=qO(s,t)))void 0!==e&&$o(a.argumentExpression,ua.Property_0_does_not_exist_on_type_1_Did_you_mean_2,s,Oc(t),e);else{const e=function(e,t,n){function r(t){const r=gf(e,t);if(r){const e=_L(eu(r));return!!e&&Dj(e)>=1&&QS(n,kj(e,0))}return!1}const i=Yg(t)?"set":"get";if(!r(i))return;let o=db(t.expression);void 0===o?o=i:o+="."+i;return o}(t,a,n);if(void 0!==e)$o(a,ua.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Oc(t),e);else{let e;if(32768&n.flags)e=tk(void 0,ua.Property_0_does_not_exist_on_type_1,"["+Oc(n)+"]",Oc(t));else if(16384&n.flags){const r=as(n.symbol,a);e=tk(void 0,ua.Property_0_does_not_exist_on_type_1,"["+r+"]",Oc(t))}else 1024&n.flags||2048&n.flags?e=tk(void 0,ua.Property_0_does_not_exist_on_type_1,n.value,Oc(t)):96&n.flags&&(e=tk(void 0,ua.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Oc(n),Oc(t)));e=tk(e,ua.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Oc(r),Oc(t)),wo.add(zp(bd(a),a,e))}}}return}}if(16&o&&KD(t))return Ut;if(Lx(t))return At;if(i){const e=Jx(i);if(10!==e.kind&&3072&n.flags)$o(e,ua.Property_0_does_not_exist_on_type_1,""+n.value,Oc(t));else if(96&n.flags)$o(e,ua.Type_0_has_no_matching_index_signature_for_type_1,Oc(t),Oc(n));else{const t=10===e.kind?"bigint":Oc(n);$o(e,ua.Type_0_cannot_be_used_as_an_index_type,t)}}return gl(n)?n:void 0;function c(e){e&&e.isReadonly&&a&&(Yg(a)||ch(a))&&$o(a,ua.Index_signature_in_type_0_only_permits_reading,Oc(t))}}function Jx(e){return 213===e.kind?e.argumentExpression:200===e.kind?e.indexType:168===e.kind?e.expression:e}function zx(e){if(268435456&e.flags){let t=!1;for(const n of e.types)if(15372&n.flags||zx(n))t=!0;else if(!(1048576&n.flags))return!1;return t}return!!(225&e.flags)||qx(e)}function qx(e){return!!(4194304&e.flags)&&h(e.types,zx)||!!(8388608&e.flags)&&zx(e.type)}function Ux(e){return!!(12582912&e.flags)&&!qx(e)}function Vx(e){return!!Kx(e)}function Wx(e){return!!(4194304&Kx(e))}function $x(e){return!!(8388608&Kx(e))}function Kx(e){return 402653184&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|Ce(e.types,((e,t)=>e|Kx(t)),0)),12582912&e.objectFlags):16777216&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|Kx(e.baseType)|Kx(e.constraint)),12582912&e.objectFlags):(117964800&e.flags||uf(e)||Ew(e)?4194304:0)|(120061952&e.flags||Ux(e)?8388608:0)}function Gx(e,t){return 33554432&e.flags?function(e,t){const n=t?"simplifiedForWriting":"simplifiedForReading";if(e[n])return e[n]===Un?e:e[n];e[n]=Un;const r=Gx(e.objectType,t),i=Gx(e.indexType,t),o=function(e,t,n){if(134217728&t.flags){const r=N(t.types,(t=>Gx(ok(e,t),n)));return n?ix(r):Xb(r)}}(r,i,t);if(o)return e[n]=o;if(!(132644864&i.flags)){const o=Xx(r,i,t);if(o)return e[n]=o}if(Ew(r)&&67648&i.flags){const o=Ow(r,64&i.flags?0:r.target.fixedLength,0,t);if(o)return e[n]=o}if(uf(r)&&2!==pf(r))return e[n]=lE(rk(r,e.indexType),(e=>Gx(e,t)));return e[n]=e}(e,t):67108864&e.flags?function(e,t){const n=e.checkType,r=e.extendsType,i=fk(e),o=mk(e);if(262144&o.flags&&_k(i)===_k(n)){if(1&n.flags||QS(MS(n),MS(r)))return Gx(i,t);if(ek(n,r))return hn}else if(262144&i.flags&&_k(o)===_k(n)){if(!(1&n.flags)&&QS(MS(n),MS(r)))return hn;if(1&n.flags||ek(n,r))return Gx(o,t)}return e}(e,t):2097152&e.flags?function(e){if(uf(e.type)&&Up(e.type)&&!rf(e.type))return gx(e.type,0);return e}(e):e}function Xx(e,t,n){if(134217728&e.flags||268435456&e.flags&&!wx(e)){const r=N(e.types,(e=>Gx(ok(e,t),n)));return 268435456&e.flags||n?ix(r):Xb(r)}}function ek(e,t){return!!(262144&Xb([op(e,t),hn]).flags)}function rk(e,t){const n=dS([Lp(e)],[t]),r=bS(e.mapper,n),i=LS(Vp(e.target||e),r),o=sf(e)>0||(Vx(e)?cf(of(e))>0:function(e,t){const n=Mf(t);return!!n&&V(yf(e),(e=>!!(16777216&e.flags)&&QS(xx(e,19456),n)))}(e,t));return zl(i,!0,o)}function ok(e,t,n=0,r,i,o){return sk(e,t,n,r,i,o)||(r?Rt:qt)}function ak(e,t){return oE(e,(e=>{if(3072&e.flags){const n=_C(e);if(qT(n)){const e=+n;return e>=0&&e0&&!V(e.elements,(e=>XN(e)||QN(e)||GN(e)&&!(!e.questionToken&&!e.dotDotDotToken)))}function dk(e,t){return Vx(e)||t&&Fw(e)&&V(Jb(e),Vx)}function pk(e,t,n,i,o){let a,s,c=0;for(;;){if(1e3===c)return $o(r,ua.Type_instantiation_is_excessively_deep_and_possibly_infinite),Rt;const u=LS(_k(e.checkType),t),d=LS(e.extendsType,t);if(u===Rt||d===Rt)return Rt;if(u===Lt||d===Lt)return Lt;const p=ah(e.node.checkType),f=ah(e.node.extendsType),m=uk(p)&&uk(f)&&l(p.elements)===l(f.elements),g=dk(u,m);let h;if(e.inferTypeParameters){const n=gD(e.inferTypeParameters,void 0,0);t&&(n.nonFixingMapper=bS(n.nonFixingMapper,t)),g||qD(n.inferences,u,d,1536),h=t?bS(n.mapper,t):n.mapper}const y=h?LS(e.extendsType,h):d;if(!g&&!dk(y,m)){if(!(3&y.flags)&&(1&u.flags||!QS(RS(u),RS(y)))){(1&u.flags||n&&!(262144&y.flags)&&iE(RS(y),(e=>QS(e,RS(u)))))&&(s||(s=[])).push(LS(aS(e.node.trueType),h||t));const r=aS(e.node.falseType);if(67108864&r.flags){const n=r.root;if(n.node.parent===e.node&&(!n.isDistributive||n.checkType===e.checkType)){e=n;continue}if(_(r,t))continue}a=LS(r,t);break}if(3&y.flags||QS(MS(u),MS(y))){const n=aS(e.node.trueType),r=h||t;if(_(n,r))continue;a=LS(n,r);break}}a=qs(67108864),a.root=e,a.checkType=LS(e.checkType,t),a.extendsType=LS(e.extendsType,t),a.mapper=t,a.combinedMapper=h,a.aliasSymbol=i||e.aliasSymbol,a.aliasTypeArguments=i?o:lS(e.aliasTypeArguments,t);break}return s?Xb(re(s,a)):a;function _(n,r){if(67108864&n.flags&&r){const a=n.root;if(a.outerTypeParameters){const s=bS(n.mapper,r),l=N(a.outerTypeParameters,(e=>pS(e,s))),_=dS(a.outerTypeParameters,l),u=a.isDistributive?pS(a.checkType,_):void 0;if(!(u&&u!==a.checkType&&134479872&u.flags))return e=a,t=_,i=void 0,o=void 0,a.aliasSymbol&&c++,!0}}return!1}}function fk(e){return e.resolvedTrueType||(e.resolvedTrueType=LS(aS(e.root.node.trueType),e.mapper))}function mk(e){return e.resolvedFalseType||(e.resolvedFalseType=LS(aS(e.root.node.falseType),e.mapper))}function gk(e){let t;return e.locals&&e.locals.forEach((e=>{262144&e.flags&&(t=re(t,rd(e)))})),t}function yk(e){return _N(e)?[e]:re(yk(e.left),e.right)}function vk(e){var t;const n=ha(e);if(!n.resolvedType){if(!df(e))return $o(e.argument,ua.String_literal_expected),n.resolvedSymbol=Dt,n.resolvedType=Rt;const r=e.isTypeOf?111551:16777216&e.flags?900095:788968,i=ls(e,e.argument.literal);if(!i)return n.resolvedSymbol=Dt,n.resolvedType=Rt;const o=!!(null==(t=i.exports)?void 0:t.get("export=")),a=ps(i,!1);if(Nd(e.qualifier))if(a.flags&r)n.resolvedType=bk(e,n,a,r);else{$o(e,111551===r?ua.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:ua.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,e.argument.literal.text),n.resolvedSymbol=Dt,n.resolvedType=Rt}else{const t=yk(e.qualifier);let i,s=a;for(;i=t.shift();){const a=t.length?1920:r,c=Ns(Za(s)),l=e.isTypeOf||Em(e)&&o?lg(eu(c),i.escapedText,!1,!0):void 0,_=(e.isTypeOf?void 0:ya(Ss(c),i.escapedText,a))??l;if(!_)return $o(i,ua.Namespace_0_has_no_exported_member_1,as(s),Ap(i)),n.resolvedType=Rt;ha(i).resolvedSymbol=_,ha(i.parent).resolvedSymbol=_,s=_}n.resolvedType=bk(e,n,s,r)}}return n.resolvedType}function bk(e,t,n,r){const i=Za(n);return t.resolvedSymbol=i,111551===r?_j(eu(n),e):Uy(e,i)}function Tk(e){const t=ha(e);if(!t.resolvedType){const n=Nk(e);if(!e.symbol||0===Rd(e.symbol).size&&!n)t.resolvedType=Rn;else{let r=$s(16,e.symbol);r.aliasSymbol=n,r.aliasTypeArguments=Fk(n),NP(e)&&e.isArrayType&&(r=Tb(r)),t.resolvedType=r}}return t.resolvedType}function Nk(e){let t=e.parent;for(;nF(t)||pP(t)||iF(t)&&148===t.operator;)t=t.parent;return Eg(t)?Fs(t):void 0}function Fk(e){return e?pu(e):void 0}function Ik(e){return!!(1048576&e.flags)&&!uf(e)}function Ok(e){return jT(e)||!!(14925292&e.flags)}function Lk(e,t){if(!(134217728&e.flags))return e;if(h(e.types,Ok))return y(e.types,jT)||In;const n=y(e.types,(e=>!Ok(e)));if(!n)return e;return y(e.types,(e=>e!==n&&!Ok(e)))?e:function(e){const n=Xu();for(const r of yf(e))if(6&ax(r));else if(Jk(r)){const e=65536&r.flags&&!(32768&r.flags),i=na(16777220,r.escapedName,Tp(r)|(t?8:0));i.links.type=e?Ut:zl(eu(r),!0),i.declarations=r.declarations,i.links.nameType=ga(r).nameType,i.links.syntheticOrigin=r,n.set(r.escapedName,i)}const r=Ys(e.symbol,n,s,s,Pg(e));return r.objectFlags|=131200,r}(n)}function Rk(e,t,n,r,i){if(1&e.flags||1&t.flags)return At;if(2&e.flags||2&t.flags)return qt;if(262144&e.flags)return t;if(262144&t.flags)return e;if(134217728&(e=Lk(e,i)).flags)return ux([e,t])?lE(e,(e=>Rk(e,t,n,r,i))):Rt;if(134217728&(t=Lk(t,i)).flags)return ux([e,t])?lE(t,(t=>Rk(e,t,n,r,i))):Rt;if(14925280&t.flags)return e;if(Wx(e)||Wx(t)){if(jT(e))return t;if(268435456&e.flags){const o=e.types,a=o[o.length-1];if(Ik(a)&&Ik(t))return ix($(o.slice(0,o.length-1),[Rk(a,t,n,r,i)]))}return ix([e,t])}const o=Xu(),a=new Set,c=e===In?Pg(t):ip([e,t]);for(const e of yf(t))6&ax(e)?a.add(e.escapedName):Jk(e)&&o.set(e.escapedName,Uk(e,i));for(const t of yf(e))if(!a.has(t.escapedName)&&Jk(t))if(o.has(t.escapedName)){const e=o.get(t.escapedName),n=eu(e);if(16777216&e.flags){const r=$(t.declarations,e.declarations),i=na(4|16777216&t.flags,t.escapedName),a=eu(t),s=Qw(a),c=Qw(n);i.links.type=s===c?a:Xb([a,c],2),i.links.leftSpread=t,i.links.rightSpread=e,i.declarations=r,i.links.nameType=ga(t).nameType,o.set(t.escapedName,i)}}else o.set(t.escapedName,Uk(t,i));const l=Ys(n,o,s,s,E(c,(e=>function(e,t){return e.isReadonly!==t?fy(e.keyType,e.type,t,e.declaration,e.components):e}(e,i))));return l.objectFlags|=2228352|r,l}function Jk(e){var t;return!(V(e.declarations,Gl)||106496&e.flags&&(null==(t=e.declarations)?void 0:t.some((e=>d_(e.parent)))))}function Uk(e,t){const n=65536&e.flags&&!(32768&e.flags);if(!n&&t===cR(e))return e;const r=na(4|16777216&e.flags,e.escapedName,Tp(e)|(t?8:0));return r.links.type=n?Ut:eu(e),r.declarations=e.declarations,r.links.nameType=ga(e).nameType,r.links.syntheticOrigin=e,r}function Wk(e,t,n,r){const i=Us(e,n);return i.value=t,i.regularType=r||i,i}function $k(e){if(80896&e.flags){if(!e.freshType){const t=Wk(e.flags,e.value,e.symbol,e);t.freshType=t,e.freshType=t}return e.freshType}return e}function Hk(e){return 80896&e.flags?e.regularType:134217728&e.flags?e.regularType||(e.regularType=lE(e,Hk)):e}function Kk(e){return!!(80896&e.flags)&&e.freshType===e}function Yk(e){let t;return _t.get(e)||(_t.set(e,t=Wk(1024,e)),t)}function Zk(e){let t;return ut.get(e)||(ut.set(e,t=Wk(2048,e)),t)}function eS(e){let t;const n=yT(e);return dt.get(n)||(dt.set(n,t=Wk(4096,e)),t)}function tS(e,t,n){let r;const i=`${t}${"string"==typeof e?"@":"#"}${e}`,o=32768|("string"==typeof e?1024:2048);return pt.get(i)||(pt.set(i,r=Wk(o,e,n)),r)}function nS(e){if(Em(e)&&pP(e)){const t=Wg(e);t&&(e=Ig(t)||t)}if(jf(e)){const t=Lf(e)?Ps(e.left):Ps(e);if(t){const e=ga(t);return e.uniqueESSymbolType||(e.uniqueESSymbolType=function(e){const t=Us(16384,e);return t.escapedName=`__@${t.symbol.escapedName}@${lJ(t.symbol)}`,t}(t))}}return mn}function rS(e){const t=ha(e);return t.resolvedType||(t.resolvedType=function(e){const t=em(e,!1,!1),n=t&&t.parent;if(n&&(d_(n)||265===n.kind)&&!Ev(t)&&(!LN(t)||lh(e,t.body)))return zu(Fs(n)).thisType;if(n&&mF(n)&&PF(n.parent)&&6===ng(n.parent))return zu(Ps(n.parent.left).parent).thisType;const r=16777216&e.flags?Ug(e):void 0;return r&&SF(r)&&PF(r.parent)&&3===ng(r.parent)?zu(Ps(r.parent.left).parent).thisType:HL(t)&&lh(e,t.body)?zu(Fs(t)).thisType:($o(e,ua.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Rt)}(e)),t.resolvedType}function iS(e){return aS(oS(e.type)||e.type)}function oS(e){switch(e.kind){case 197:return oS(e.type);case 190:if(1===e.elements.length&&(192===(e=e.elements[0]).kind||203===e.kind&&e.dotDotDotToken))return oS(e.type);break;case 189:return e.elementType}}function aS(e){return function(e,t){let n,r=!0;for(;t&&!fu(t)&&321!==t.kind;){const i=t.parent;if(170===i.kind&&(r=!r),(r||34078720&e.flags)&&195===i.kind&&t===i.trueType){const t=Yy(e,i.checkType,i.extendsType);t&&(n=re(n,t))}else if(524288&e.flags&&201===i.kind&&!i.nameType&&t===i.type){const t=aS(i);if(Lp(t)===_k(e)){const e=ES(t);if(e){const t=bf(e);t&&oE(t,aw)&&(n=re(n,Xb([an,wn])))}}}t=i}return n?Hy(e,ix(n)):e}(sS(e),e)}function sS(e){switch(e.kind){case 133:case 313:case 314:return At;case 159:return qt;case 154:return rn;case 150:return an;case 163:return sn;case 136:return fn;case 155:return mn;case 116:return gn;case 157:return Ut;case 106:return Qt;case 146:return hn;case 151:return 524288&e.flags&&!le?At:xn;case 141:return Jt;case 198:case 110:return rS(e);case 202:return function(e){if(106===e.literal.kind)return Qt;const t=ha(e);return t.resolvedType||(t.resolvedType=Hk(tM(e.literal))),t.resolvedType}(e);case 184:case 234:return nv(e);case 183:return e.assertsModifier?gn:fn;case 187:return iv(e);case 189:case 190:return function(e){const t=ha(e);if(!t.resolvedType){const n=Db(e);if(n===Jn)t.resolvedType=In;else if(190===e.kind&&V(e.elements,(e=>!!(8&Cb(e))))||!Fb(e)){const r=189===e.kind?[aS(e.elementType)]:N(e.elements,aS);t.resolvedType=Ob(n,r)}else t.resolvedType=190===e.kind&&0===e.elements.length?n:Fy(n,e,void 0)}return t.resolvedType}(e);case 191:return function(e){return zl(aS(e.type),!0)}(e);case 193:return function(e){const t=ha(e);if(!t.resolvedType){const n=Nk(e);t.resolvedType=Xb(N(e.types,aS),1,n,Fk(n))}return t.resolvedType}(e);case 194:return function(e){const t=ha(e);if(!t.resolvedType){const n=Nk(e),r=N(e.types,aS),i=2===r.length?r.indexOf(Rn):-1,o=i>=0?r[1-i]:qt,a=!!(224&o.flags||4194304&o.flags&&qx(o));t.resolvedType=ix(r,a?1:0,n,Fk(n))}return t.resolvedType}(e);case 315:return function(e){const t=aS(e.type);return Y?zw(t,8):t}(e);case 317:return zl(aS(e.type));case 203:return function(e){const t=ha(e);return t.resolvedType||(t.resolvedType=e.dotDotDotToken?iS(e):zl(aS(e.type),!0,!!e.questionToken))}(e);case 197:case 316:case 310:return aS(e.type);case 192:return iS(e);case 319:return function(e){const t=aS(e.type),{parent:n}=e,r=e.parent.parent;if(pP(e.parent)&&UP(r)){const e=Ug(r),n=IP(r.parent.parent);if(e||n){const i=he(n?r.parent.parent.typeExpression.parameters:e.parameters),o=Jg(r);if(!i||o&&i.symbol===o&&Ju(i))return Tb(t)}}if(NN(n)&&TP(n.parent))return Tb(t);return zl(t)}(e);case 185:case 186:case 188:case 323:case 318:case 324:return Tk(e);case 199:return function(e){const t=ha(e);if(!t.resolvedType)switch(e.operator){case 143:t.resolvedType=Dx(aS(e.type));break;case 158:t.resolvedType=155===e.type.kind?nS(rh(e.parent)):Rt;break;case 148:t.resolvedType=aS(e.type);break;default:_n.assertNever(e.operator)}return t.resolvedType}(e);case 200:return ck(e);case 201:return lk(e);case 195:return function(e){const t=ha(e);if(!t.resolvedType){const n=aS(e.checkType),r=Nk(e),i=Fk(r),o=_u(e,!0),a=i?o:C(o,(t=>FS(t,e))),s={node:e,checkType:n,extendsType:aS(e.extendsType),isDistributive:!!(524288&n.flags),inferTypeParameters:gk(e),outerTypeParameters:a,instantiations:void 0,aliasSymbol:r,aliasTypeArguments:i};t.resolvedType=pk(s,void 0,!1),a&&(s.instantiations=new Map,s.instantiations.set(Sy(a),t.resolvedType))}return t.resolvedType}(e);case 196:return function(e){const t=ha(e);return t.resolvedType||(t.resolvedType=nd(Fs(e.typeParameter))),t.resolvedType}(e);case 204:return function(e){const t=ha(e);return t.resolvedType||(t.resolvedType=Ex([e.head.text,...N(e.templateSpans,(e=>e.literal.text))],N(e.templateSpans,(e=>aS(e.type))))),t.resolvedType}(e);case 206:return vk(e);case 80:case 167:case 212:const t=Bz(e);return t?rd(t):Rt;default:return Rt}}function cS(e,t,n){if(e&&e.length)for(let r=0;rV(n,(t=>FS(e,t))))):c,o.outerTypeParameters=c}if(c.length){const i=bS(e.mapper,t),o=N(c,(e=>pS(e,i))),s=n||e.aliasSymbol,l=n?r:lS(e.aliasTypeArguments,t),_=Sy(o)+Ty(s,l);a.instantiations||(a.instantiations=new Map,a.instantiations.set(Sy(c)+Ty(a.aliasSymbol,a.aliasTypeArguments),a));let u=a.instantiations.get(_);if(!u){let n=dS(c,o);134217728&a.objectFlags&&t&&(n=bS(n,t)),u=4&a.objectFlags?Fy(e.target,e.node,n,s,l):32&a.objectFlags?function(e,t,n,r){const i=ES(e);if(i){const e=LS(i,t);if(i!==e)return _E(zm(e),o,n,r)}return LS(Jp(e),t)===Lt?Lt:IS(e,t,n,r);function o(n){if(387448835&n.flags&&n!==Lt&&!kl(n)){if(!e.declaration.nameType){let r;if(iw(n)||1&n.flags&&il(i,4)<0&&(r=bf(i))&&oE(r,aw))return function(e,t,n){const r=AS(t,an,!0,n);return kl(r)?Rt:Tb(r,PS(ow(e),af(t)))}(n,e,kS(i,n,t));if(Fw(n))return function(e,t,n,r){const i=e.target.elementFlags,o=e.target.fixedLength,a=o?kS(n,e,r):r,s=N(Jb(e),((e,s)=>{const c=i[s];return s1&e?2:e)):8&c?N(i,(e=>2&e?1:e)):i,_=PS(e.target.readonly,af(t));return k(s,Rt)?Rt:Ab(s,l,_,e.target.labeledElementDeclarations)}(n,e,i,t);if(fm(n))return ix(N(n.types,o))}return IS(e,kS(i,n,t))}return n}}(a,n,s,l):IS(a,n,s,l),a.instantiations.set(_,u);const r=yx(u);if(403963917&u.flags&&!(524288&r)){const e=V(o,TD);524288&yx(u)||(u.objectFlags|=52&r?524288|(e?1048576:0):e?0:524288)}}return u}return e}function FS(e,t){if(e.symbol&&e.symbol.declarations&&1===e.symbol.declarations.length){const r=e.symbol.declarations[0].parent;for(let e=t;e!==r;e=e.parent)if(!e||242===e.kind||195===e.kind&&rO(e.extendsType,n))return!0;return n(t)}return!0;function n(t){switch(t.kind){case 198:return!!e.isThisType;case 80:return!e.isThisType&&wf(t)&&function(e){return!(184===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName||206===e.parent.kind&&e.parent.typeArguments&&e===e.parent.qualifier)}(t)&&sS(t)===e;case 187:const r=lb(t.exprName);if(!_v(r)){const i=nN(r),o=e.symbol.declarations[0],a=169===o.kind?o.parent:e.isThisType?o:void 0;if(i.declarations&&a)return V(i.declarations,(e=>lh(e,a)))||V(t.typeArguments,n)}return!0;case 175:case 174:return!t.type&&!!t.body||V(t.typeParameters,n)||V(t.parameters,n)||!!t.type&&n(t.type)}return!!rO(t,n)}}function ES(e){const t=Jp(e);if(2097152&t.flags){const e=_k(t.type);if(524288&e.flags)return e}}function PS(e,t){return!!(1&t)||!(2&t)&&e}function AS(e,t,n,r){const i=SS(r,Lp(e),t),o=LS(Vp(e.target||e),i),a=af(e);return Y&&4&a&&!mR(o,20)?Uw(o,!0):Y&&8&a&&n?ZN(o,524288):o}function IS(e,t,n,r){_n.assert(e.symbol,"anonymous type must have symbol to be instantiated");const i=$s(-1572865&e.objectFlags|64,e.symbol);if(32&e.objectFlags){i.declaration=e.declaration;const n=Lp(e),r=TS(n);i.typeParameter=r,t=bS(fS(n,r),t),r.mapper=t}return 8388608&e.objectFlags&&(i.node=e.node),i.target=e,i.mapper=t,i.aliasSymbol=n||e.aliasSymbol,i.aliasTypeArguments=n?r:lS(e.aliasTypeArguments,t),i.objectFlags|=i.aliasTypeArguments?Cy(i.aliasTypeArguments):0,i}function OS(e,t,n,r,i){const o=e.root;if(o.outerTypeParameters){const e=N(o.outerTypeParameters,(e=>pS(e,t))),a=(n?"C":"")+Sy(e)+Ty(r,i);let s=o.instantiations.get(a);if(!s){const t=dS(o.outerTypeParameters,e),c=o.checkType,l=o.isDistributive?zm(pS(c,t)):void 0;s=l&&c!==l&&134479872&l.flags?_E(l,(e=>pk(o,kS(c,e,t),n)),r,i):pk(o,t,n,r,i),o.instantiations.set(a,s)}return s}return e}function LS(e,t){return e&&t?jS(e,t,void 0,void 0):e}function jS(e,t,n,i){var o;if(!TD(e))return e;if(100===F||w>=5e6)return null==(o=$n)||o.instant($n.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:e.id,instantiationDepth:F,instantiationCount:w}),$o(r,ua.Type_instantiation_is_excessively_deep_and_possibly_infinite),Rt;const a=function(e){for(let t=Vi-1;t>=0;t--)if(e===qi[t])return t;return-1}(t);-1===a&&function(e){qi[Vi]=e,Ui[Vi]??(Ui[Vi]=new Map),Vi++}(t);const s=e.id+Ty(n,i),c=Ui[-1!==a?a:Vi-1],l=c.get(s);if(l)return l;S++,w++,F++;const _=function(e,t,n,r){const i=e.flags;if(524288&i)return pS(e,t);if(1048576&i){const i=e.objectFlags;if(52&i){if(4&i&&!e.node){const n=e.resolvedTypeArguments,r=lS(n,t);return r!==n?Ob(e.target,r):e}return 1024&i?function(e,t){const n=LS(e.mappedType,t);if(!(32&yx(n)))return e;const r=LS(e.constraintType,t);if(!(2097152&r.flags))return e;const i=DD(LS(e.source,t),n,r);if(i)return i;return e}(e,t):NS(e,t,n,r)}return e}if(402653184&i){const o=134217728&e.flags?e.origin:void 0,a=o&&402653184&o.flags?o.types:e.types,s=lS(a,t);if(s===a&&n===e.aliasSymbol)return e;const c=n||e.aliasSymbol,l=n?r:lS(e.aliasTypeArguments,t);return 268435456&i||o&&268435456&o.flags?ix(s,0,c,l):Xb(s,1,c,l)}if(2097152&i)return Dx(LS(e.type,t));if(4194304&i)return Ex(e.texts,lS(e.types,t));if(8388608&i)return Ax(e.symbol,LS(e.type,t));if(33554432&i){const i=n||e.aliasSymbol,o=n?r:lS(e.aliasTypeArguments,t);return ok(LS(e.objectType,t),LS(e.indexType,t),e.accessFlags,void 0,i,o)}if(67108864&i)return OS(e,bS(e.mapper,t),!1,n,r);if(16777216&i){const n=LS(e.baseType,t);if($y(e))return Vy(n);const r=LS(e.constraint,t);return 34078720&n.flags&&Vx(r)?Hy(n,r):3&r.flags||QS(MS(n),MS(r))?n:34078720&n.flags?Hy(n,r):ix([r,n])}return e}(e,t,n,i);return-1===a?(Vi--,qi[Vi]=void 0,Ui[Vi].clear()):c.set(s,_),F--,_}function RS(e){return 12976127&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=LS(e,Nn))}function MS(e){return 12976127&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=LS(e,Dn),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function BS(e,t){return fy(e.keyType,LS(e.type,t),e.isReadonly,e.declaration,e.components)}function JS(e){switch(_n.assert(175!==e.kind||Jf(e)),e.kind){case 219:case 220:case 175:case 263:return zS(e);case 211:return V(e.properties,JS);case 210:return V(e.elements,JS);case 228:return JS(e.whenTrue)||JS(e.whenFalse);case 227:return(57===e.operatorToken.kind||61===e.operatorToken.kind)&&(JS(e.left)||JS(e.right));case 304:return JS(e.initializer);case 218:return JS(e.expression);case 293:return V(e.properties,JS)||HE(e.parent)&&V(e.parent.parent.children,JS);case 292:{const{initializer:t}=e;return!!t&&JS(t)}case 295:case 230:{const{expression:t}=e;return!!t&&JS(t)}}return!1}function zS(e){return RT(e)||function(e){if(e.typeParameters||hv(e)||!e.body)return!1;if(242!==e.body.kind)return JS(e.body);return!!Nf(e.body,(e=>!!e.expression&&JS(e.expression)))}(e)||function(e){return!!(1&Lh(e)&&e.body&&Ff(e.body,JS))}(e)}function qS(e){return(JT(e)||Jf(e))&&zS(e)}function US(e){if(1048576&e.flags){const t=ff(e);if(t.constructSignatures.length||t.callSignatures.length){const n=$s(16,e.symbol);return n.members=t.members,n.properties=t.properties,n.callSignatures=s,n.constructSignatures=s,n.indexInfos=s,n}}else if(268435456&e.flags)return ix(N(e.types,US));return e}function VS(e,t){return pC(e,t,Lo)}function WS(e,t){return pC(e,t,Lo)?-1:0}function $S(e,t){return pC(e,t,Io)?-1:0}function KS(e,t){return pC(e,t,Eo)?-1:0}function GS(e,t){return pC(e,t,Eo)}function XS(e,t){return pC(e,t,Po)}function QS(e,t){return pC(e,t,Io)}function YS(e,t){return 134217728&e.flags?h(e.types,(e=>YS(e,t))):134217728&t.flags?V(t.types,(t=>YS(e,t))):268435456&e.flags?V(e.types,(e=>YS(e,t))):117964800&e.flags?YS(Mf(e)||qt,t):zT(t)?!!(1179648&e.flags):t===rr?!!(1179648&e.flags)&&!zT(e):t===ir?!!(1048576&e.flags)&&kN(e):ou(e,iu(t))||iw(t)&&!ow(t)&&YS(e,cr)}function ZS(e,t){return pC(e,t,Oo)}function tT(e,t){return ZS(e,t)||ZS(t,e)}function nT(e,t,n,r,i,o){return wC(e,t,Io,n,r,i,o)}function oT(e,t,n,r,i,o){return aT(e,t,Io,n,r,i,o,void 0)}function aT(e,t,n,r,i,o,a,s){return!!pC(e,t,n)||(!r||!pT(i,e,t,n,o,a,s))&&wC(e,t,n,r,o,a,s)}function sT(e){return!!(67108864&e.flags||268435456&e.flags&&V(e.types,sT))}function pT(e,t,n,r,i,o,a){if(!e||sT(n))return!1;if(!wC(t,n,r,void 0)&&function(e,t,n,r,i,o,a){const s=mg(t,0),c=mg(t,1);for(const l of[c,s])if(V(l,(e=>{const t=jh(e);return!(262145&t.flags)&&wC(t,n,r,void 0)}))){const r=a||{};nT(t,n,e,i,o,r);return cT(r.errors[r.errors.length-1],Mp(e,l===c?ua.Did_you_mean_to_use_new_with_this_expression:ua.Did_you_mean_to_call_this_expression)),!0}return!1}(e,t,n,r,i,o,a))return!0;switch(e.kind){case 235:if(!vC(e))break;case 295:case 218:return pT(e.expression,t,n,r,i,o,a);case 227:switch(e.operatorToken.kind){case 64:case 28:return pT(e.right,t,n,r,i,o,a)}break;case 211:return function(e,t,n,r,i,o){return!(12976124&n.flags)&&vT(function*(e){if(!l(e.properties))return;for(const t of e.properties){if(lP(t))continue;const e=xx(Fs(t),19456);if(e&&!(262144&e.flags))switch(t.kind){case 179:case 178:case 175:case 305:yield{errorNode:t.name,innerExpression:void 0,nameType:e};break;case 304:yield{errorNode:t.name,innerExpression:t.initializer,nameType:e,errorMessage:Op(t.name)?ua.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:_n.assertNever(t)}}}(e),t,n,r,i,o)}(e,t,n,r,o,a);case 210:return function(e,t,n,r,i,o){if(12976124&n.flags)return!1;if(fw(t))return vT(wT(e,n),t,n,r,i,o);cI(e,n,!1);const a=xI(e,1,!0);if(lI(),fw(a))return vT(wT(e,n),a,n,r,i,o);return!1}(e,t,n,r,o,a);case 293:return function(e,t,n,r,i,o){let a,s=vT(function*(e){if(!l(e.properties))return;for(const t of e.properties)eP(t)||jI(iC(t.name))||(yield{errorNode:t.name,innerExpression:t.initializer,nameType:Yk(iC(t.name))})}(e),t,n,r,i,o);if(HE(e.parent)&&WE(e.parent.parent)){const a=e.parent.parent,_=HI(WI(e)),u=void 0===_?"children":gc(_),d=Yk(u),p=ok(n,d),f=_y(a.children);if(!l(f))return s;const m=l(f)>1;let g,h;if(Qv(!1)!==Jn){const e=Sb(At);g=aE(p,(t=>QS(t,e))),h=aE(p,(t=>!QS(t,e)))}else g=aE(p,mw),h=aE(p,(e=>!mw(e)));if(m){if(g!==hn){const e=Ab(JI(a,0)),t=function*(e,t){if(!l(e.children))return;let n=0;for(let r=0;r!mw(e))),c=s!==hn?JB(13,0,s,void 0):void 0;let l=!1;for(let n=e.next();!n.done;n=e.next()){const{errorNode:e,innerExpression:s,nameType:_,errorMessage:u}=n.value;let d=c;const p=a!==hn?fT(t,a,_):void 0;if(!p||33554432&p.flags||(d=c?Xb([c,p]):p),!d)continue;let f=sk(t,_);if(!f)continue;const m=jx(_,void 0);if(!wC(f,d,r,void 0)){if(l=!0,!(s&&pT(s,f,d,r,void 0,i,o))){const n=o||{},c=s?gT(s,f):f;if(ve&&EC(c,d)){const t=Mp(e,ua.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Oc(c),Oc(d));wo.add(t),n.errors=[t]}else{const o=!!(m&&16777216&(lg(a,m)||Dt).flags),s=!!(m&&16777216&(lg(t,m)||Dt).flags);d=Gw(d,o),f=Gw(f,o&&s);wC(c,d,r,e,u,i,n)&&c!==f&&wC(f,d,r,e,u,i,n)}}}}return l}(t,e,g,r,i,o)||s}else if(!pC(ok(t,d),p,r)){s=!0;const e=$o(a.openingElement.tagName,ua.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,u,Oc(p));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(e)}}else if(h!==hn){const e=CT(f[0],d,c);e&&(s=vT(function*(){yield e}(),t,n,r,i,o)||s)}else if(!pC(ok(t,d),p,r)){s=!0;const e=$o(a.openingElement.tagName,ua.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,u,Oc(p));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(e)}}return s;function c(){if(!a){const t=Xd(e.parent.tagName),r=HI(WI(e)),i=void 0===r?"children":gc(r),o=ok(n,Yk(i)),s=ua._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;a={...s,key:"!!ALREADY FORMATTED!!",message:Yx(s,t,i,Oc(o))}}return a}}(e,t,n,r,o,a);case 220:return function(e,t,n,r,i,o){if(KF(e.body))return!1;if(V(e.parameters,Eu))return!1;const a=_L(t);if(!a)return!1;const s=mg(n,0);if(!l(s))return!1;const c=e.body,_=jh(a),u=Xb(N(s,jh));if(!wC(_,u,r,void 0)){const t=c&&pT(c,_,u,r,void 0,i,o);if(t)return t;const a=o||{};if(wC(_,u,r,c,void 0,i,a),a.errors)return n.symbol&&l(n.symbol.declarations)&&cT(a.errors[a.errors.length-1],Mp(n.symbol.declarations[0],ua.The_expected_type_comes_from_the_return_type_of_this_signature)),2&Lh(e)||pl(_,"then")||!wC(Kj(_),u,r,void 0)||cT(a.errors[a.errors.length-1],Mp(e,ua.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}(e,t,n,r,o,a)}return!1}function fT(e,t,n){const r=sk(t,n);if(r)return r;if(134217728&t.flags){const r=PC(e,t);if(r)return sk(r,n)}}function gT(e,t){cI(e,t,!1);const n=qR(e,1);return lI(),n}function vT(t,n,r,i,o,a){let s=!1;for(const c of t){const{errorNode:t,innerExpression:_,nameType:u,errorMessage:d}=c;let p=fT(n,r,u);if(!p||33554432&p.flags)continue;let f=sk(n,u);if(!f)continue;const m=jx(u,void 0);if(!wC(f,p,i,void 0)){if(s=!0,!(_&&pT(_,f,p,i,void 0,o,a))){const s=a||{},c=_?gT(_,f):f;if(ve&&EC(c,p)){const e=Mp(t,ua.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Oc(c),Oc(p));wo.add(e),s.errors=[e]}else{const e=!!(m&&16777216&(lg(r,m)||Dt).flags),a=!!(m&&16777216&(lg(n,m)||Dt).flags);p=Gw(p,e),f=Gw(f,e&&a);wC(c,p,i,t,d,o,s)&&c!==f&&wC(f,p,i,t,d,o,s)}if(s.errors){const t=s.errors[s.errors.length-1],n=lC(u)?_C(u):void 0,i=void 0!==n?lg(r,n):void 0;let o=!1;if(!i){const n=Mg(r,u);n&&n.declaration&&!e.isSourceFileDefaultLibrary(bd(n.declaration))&&(o=!0,cT(t,Mp(n.declaration,ua.The_expected_type_comes_from_this_index_signature)))}if(!o&&(i&&l(i.declarations)||r.symbol&&l(r.symbol.declarations))){const o=i&&l(i.declarations)?i.declarations[0]:r.symbol.declarations[0];e.isSourceFileDefaultLibrary(bd(o))||cT(t,Mp(o,ua.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!n||16384&u.flags?Oc(u):gc(n),Oc(r)))}}}}}return s}function CT(e,t,n){switch(e.kind){case 295:return{errorNode:e,innerExpression:e.expression,nameType:t};case 12:if(e.containsOnlyTriviaWhiteSpaces)break;return{errorNode:e,innerExpression:void 0,nameType:t,errorMessage:n()};case 285:case 286:case 289:return{errorNode:e,innerExpression:e,nameType:t};default:return _n.assertNever(e,"Found invalid jsx child")}}function*wT(e,t){const n=l(e.elements);if(n)for(let r=0;rc:Dj(e)>c))return!r||8&n||i(ua.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,Dj(e),c),0;e.typeParameters&&e.typeParameters!==t.typeParameters&&(e=pL(e,t=sy(t),void 0,a));const l=wj(e),_=Ej(e),u=Ej(t);(_||u)&&LS(_||u,s);const d=t.declaration?t.declaration.kind:0,p=!(3&n)&&Z&&175!==d&&174!==d&&177!==d;let f=-1;const m=Ah(e);if(m&&m!==gn){const e=Ah(t);if(e){const t=!p&&a(m,e,!1)||a(e,m,r);if(!t)return r&&i(ua.The_this_types_of_each_signature_are_incompatible),0;f&=t}}const g=_||u?Math.min(l,c):Math.max(l,c),h=_||u?g-1:-1;for(let c=0;c=Dj(e)&&c=3&&4&t[0].flags&&8&t[1].flags&&V(t,zT)?67108864:0)}return!!(67108864&e.objectFlags)}return!1}(t))return!0}return!1}function pC(e,t,n){if(Kk(e)&&(e=e.regularType),Kk(t)&&(t=t.regularType),e===t)return!0;if(n!==Lo){if(n===Oo&&!(262144&t.flags)&&sC(t,e,n)||sC(e,t,n))return!0}else if(!(520093696&(e.flags|t.flags))){if(e.flags!==t.flags)return!1;if(394239&e.flags)return!0}if(1048576&e.flags&&1048576&t.flags){const r=n.get(UC(e,t,0,n,!1));if(void 0!==r)return!!(1&r)}return!!(536346624&e.flags||536346624&t.flags)&&wC(e,t,n,void 0)}function fC(e,t){return 2048&yx(e)&&jI(t.escapedName)}function gC(e,t){for(;;){const n=Kk(e)?e.regularType:Ew(e)?SC(e,t):4&yx(e)?e.node?Dy(e.target,Ay(e)):uw(e)||e:402653184&e.flags?kC(e,t):16777216&e.flags?t?e.baseType:Gy(e):102760448&e.flags?Gx(e,t):e;if(n===e)return n;e=n}}function kC(e,t){const n=zm(e);if(n!==e)return n;if(268435456&e.flags&&function(e){let t=!1,n=!1;for(const r of e.types)if(t||(t=!!(132644864&r.flags)),n||(n=!!(12&r.flags)||zT(r)),t&&n)return!0;return!1}(e)){const n=E(e.types,(e=>gC(e,t)));if(n!==e.types)return ix(n)}return e}function SC(e,t){const n=Jb(e),r=E(n,(e=>102760448&e.flags?Gx(e,t):e));return n!==r?Lb(e.target,r):e}function wC(e,t,n,i,o,a,c){var _;let u,d,p,f,m,g,h,y,v=0,x=0,S=0,T=0,C=!1,w=0,D=0,F=16e6-n.size>>3;_n.assert(n!==Lo||!i,"no error reporting in identity checking");const P=U(e,t,3,!!i,o);if(y&&L(),C){const o=UC(e,t,0,n,!1);n.set(o,2|(F<=0?32:64)),null==(_=$n)||_.instant($n.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:e.id,targetId:t.id,depth:x,targetDepth:S});const a=F<=0?ua.Excessive_complexity_comparing_types_0_and_1:ua.Excessive_stack_depth_comparing_types_0_and_1,s=$o(i||r,a,Oc(e),Oc(t));c&&(c.errors||(c.errors=[])).push(s)}else if(u){if(a){const e=a();e&&(nk(e,u),u=e)}let r;if(o&&i&&!P&&e.symbol){const i=ga(e.symbol);if(i.originatingImport&&!_f(i.originatingImport)){if(wC(eu(i.target),t,n,void 0)){r=re(r,Mp(i.originatingImport,ua.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}}const s=zp(bd(i),i,u,r);d&&cT(s,...d),c&&(c.errors||(c.errors=[])).push(s),c&&c.skipLogging||wo.add(s)}return i&&c&&c.skipLogging&&0===P&&_n.assert(!!c.errors,"missed opportunity to interact with error."),0!==P;function A(e){u=e.errorInfo,h=e.lastSkippedInfo,y=e.incompatibleStack,w=e.overrideNextErrorInfo,D=e.skipParentCounter,d=e.relatedInfo}function I(){return{errorInfo:u,lastSkippedInfo:h,incompatibleStack:null==y?void 0:y.slice(),overrideNextErrorInfo:w,skipParentCounter:D,relatedInfo:null==d?void 0:d.slice()}}function O(e,...t){w++,h=void 0,(y||(y=[])).push([e,...t])}function L(){const e=y||[];y=void 0;const t=h;if(h=void 0,1===e.length)return j(...e[0]),void(t&&B(void 0,...t));let n="";const r=[];for(;e.length;){const[t,...i]=e.pop();switch(t.code){case ua.Types_of_property_0_are_incompatible.code:{0===n.indexOf("new ")&&(n=`(${n})`);const e=""+i[0];n=0===n.length?`${e}`:gs(e,xk(z))?`${n}.${e}`:"["===e[0]&&"]"===e[e.length-1]?`${n}${e}`:`${n}[${e}]`;break}case ua.Call_signature_return_types_0_and_1_are_incompatible.code:case ua.Construct_signature_return_types_0_and_1_are_incompatible.code:case ua.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case ua.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===n.length){let e=t;t.code===ua.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?e=ua.Call_signature_return_types_0_and_1_are_incompatible:t.code===ua.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(e=ua.Construct_signature_return_types_0_and_1_are_incompatible),r.unshift([e,i[0],i[1]])}else{n=`${t.code===ua.Construct_signature_return_types_0_and_1_are_incompatible.code||t.code===ua.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":""}${n}(${t.code===ua.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||t.code===ua.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"..."})`}break;case ua.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:r.unshift([ua.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,i[0],i[1]]);break;case ua.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:r.unshift([ua.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,i[0],i[1],i[2]]);break;default:return _n.fail(`Unhandled Diagnostic: ${t.code}`)}}n?j(")"===n[n.length-1]?ua.The_types_returned_by_0_are_incompatible_between_these_types:ua.The_types_of_0_are_incompatible_between_these_types,n):r.shift();for(const[e,...t]of r){const n=e.elidedInCompatabilityPyramid;e.elidedInCompatabilityPyramid=!1,j(e,...t),e.elidedInCompatabilityPyramid=n}t&&B(void 0,...t)}function j(e,...t){_n.assert(!!i),y&&L(),e.elidedInCompatabilityPyramid||(0===D?u=tk(u,e,...t):D--)}function R(e,...t){j(e,...t),D++}function M(e){_n.assert(!!u),d?d.push(e):d=[e]}function B(e,t,r){y&&L();const[i,o]=Lc(t,r);let a=t,s=i;262144&r.flags||!bw(t)||DC(r)||(a=kw(t),_n.assert(!QS(a,r),"generalized source shouldn't be assignable"),s=Rc(a));if(524288&(33554432&r.flags&&!(33554432&t.flags)?r.objectType.flags:r.flags)&&r!==Gn&&r!==Xn){const e=Mf(r);let n;e&&(QS(a,e)||(n=QS(t,e)))?j(ua._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,n?i:s,o,Oc(e)):(u=void 0,j(ua._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,o,s))}if(e)e===ua.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&ve&&NC(t,r).length&&(e=ua.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(n===Oo)e=ua.Type_0_is_not_comparable_to_type_1;else if(i===o)e=ua.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(ve&&NC(t,r).length)e=ua.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(1024&t.flags&&134217728&r.flags){const e=function(e,t){const n=t.types.filter((e=>!!(1024&e.flags)));return Ot(e.value,n,(e=>e.value))}(t,r);if(e)return void j(ua.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,s,o,Oc(e))}e=ua.Type_0_is_not_assignable_to_type_1}j(e,s,o)}function J(e,t,n){return Fw(e)?e.target.readonly&&sw(t)?(n&&j(ua.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Oc(e),Oc(t)),!1):aw(t):ow(e)&&sw(t)?(n&&j(ua.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Oc(e),Oc(t)),!1):!Fw(t)||iw(e)}function q(e,t,n){return U(e,t,3,n)}function U(e,t,r=3,o=!1,a,s=0){if(e===t)return-1;if(1048576&e.flags&&12713980&t.flags)return n===Oo&&!(262144&t.flags)&&sC(t,e,n)||sC(e,t,n,o?j:void 0)?-1:(o&&W(e,t,e,t,a),0);const c=gC(e,!1);let l=gC(t,!0);if(c===l)return-1;if(n===Lo)return c.flags!==l.flags?0:394239&c.flags?-1:($(c,l),te(c,l,!1,0,r));if(524288&c.flags&&vf(c)===l)return-1;if(13893600&c.flags&&134217728&l.flags){const e=l.types,t=2===e.length&&12&e[0].flags?e[1]:3===e.length&&12&e[0].flags&&12&e[1].flags?e[2]:void 0;if(t&&!(12&t.flags)&&(l=gC(t,!0),c===l))return-1}if(n===Oo&&!(262144&l.flags)&&sC(l,c,n)||sC(c,l,n,o?j:void 0))return-1;if(536346624&c.flags||536346624&l.flags){if(!(2&s)&&KD(c)&&8192&yx(c)&&function(e,t,r){var o;if(!aO(t)||!le&&4096&yx(t))return!1;const a=!!(2048&yx(e));if((n===Io||n===Oo)&&(ZF(rr,t)||!a&&jT(t)))return!1;let s,c=t;134217728&t.flags&&(c=cU(e,t,U)||function(e){if(mR(e,131072)){const t=aE(e,(e=>!(12713980&e.flags)));if(!(262144&t.flags))return t}return e}(t),s=134217728&c.flags?c.types:[c]);for(const t of yf(e))if(K(t,e.symbol)&&!fC(e,t)){if(!oO(c,t.escapedName,a)){if(r){const n=aE(c,aO);if(!i)return _n.fail();if(ZE(i)||xu(i)||xu(i.parent)){t.valueDeclaration&&YE(t.valueDeclaration)&&bd(i)===bd(t.valueDeclaration.name)&&(i=t.valueDeclaration.name);const e=Ac(t),r=zO(e,n),o=r?Ac(r):void 0;o?j(ua.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e,Oc(n),o):j(ua.Property_0_does_not_exist_on_type_1,e,Oc(n))}else{const r=(null==(o=e.symbol)?void 0:o.declarations)&&pe(e.symbol.declarations);let a;if(t.valueDeclaration&&dc(t.valueDeclaration,(e=>e===r))&&bd(r)===bd(i)){const e=t.valueDeclaration;_n.assertNode(e,b_);const r=e.name;i=r,_N(r)&&(a=qO(r,n))}void 0!==a?R(ua.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Ac(t),Oc(n),a):R(ua.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ac(t),Oc(n))}}return!0}if(s&&!U(eu(t),H(s,t.escapedName),3,r))return r&&O(ua.Types_of_property_0_are_incompatible,Ac(t)),!0}return!1}(c,l,o))return o&&B(a,c,t.aliasSymbol?t:l),0;const _=(n!==Oo||hw(c))&&!(2&s)&&282198012&c.flags&&c!==rr&&269484032&l.flags&&IC(l)&&(yf(c).length>0||$z(c)),u=!!(2048&yx(c));if(_&&!function(e,t,n){for(const r of yf(e))if(oO(t,r.escapedName,n))return!0;return!1}(c,l,u)){if(o){const n=Oc(e.aliasSymbol?e:c),r=Oc(t.aliasSymbol?t:l),i=mg(c,0),o=mg(c,1);i.length>0&&U(jh(i[0]),l,1,!1)||o.length>0&&U(jh(o[0]),l,1,!1)?j(ua.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,n,r):j(ua.Type_0_has_no_properties_in_common_with_type_1,n,r)}return 0}$(c,l);const d=134217728&c.flags&&c.types.length<4&&!(134217728&l.flags)||134217728&l.flags&&l.types.length<4&&!(536346624&c.flags)?G(c,l,o,s):te(c,l,o,s,r);if(d)return d}return o&&W(e,t,c,l,a),0}function W(e,t,n,r,o){var a,s;const c=!!uw(e),l=!!uw(t);n=e.aliasSymbol||c?e:n,r=t.aliasSymbol||l?t:r;let _=w>0;if(_&&w--,1048576&n.flags&&1048576&r.flags){const e=u;J(n,r,!0),u!==e&&(_=!!u)}if(1048576&n.flags&&12713980&r.flags)!function(e,t){const n=Mc(e.symbol)?Oc(e,e.symbol.valueDeclaration):Oc(e),r=Mc(t.symbol)?Oc(t,t.symbol.valueDeclaration):Oc(t);(lr===e&&rn===t||_r===e&&an===t||ur===e&&fn===t||qv()===e&&mn===t)&&j(ua._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,r,n)}(n,r);else if(n.symbol&&1048576&n.flags&&rr===n)j(ua.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(2048&yx(n)&&268435456&r.flags){const e=r.types,t=qI(WB.IntrinsicAttributes,i),n=qI(WB.IntrinsicClassAttributes,i);if(!kl(t)&&!kl(n)&&(k(e,t)||k(e,n)))return}else u=ag(u,t);if(!o&&_){const e=I();let t;return B(o,n,r),u&&u!==e.errorInfo&&(t={code:u.code,messageText:u.messageText}),A(e),t&&u&&(u.canonicalHead=t),void(h=[n,r])}if(B(o,n,r),524288&n.flags&&(null==(s=null==(a=n.symbol)?void 0:a.declarations)?void 0:s[0])&&!vf(n)){const e=TS(n);if(e.constraint=LS(r,fS(n,e)),Vf(e)){const e=Oc(r,n.symbol.declarations[0]);M(Mp(n.symbol.declarations[0],ua.This_type_parameter_might_need_an_extends_0_constraint,e))}}}function $(e,t){if($n&&402653184&e.flags&&402653184&t.flags){const n=e,r=t;if(n.objectFlags&r.objectFlags&32768)return;const o=n.types.length,a=r.types.length;o*a>1e6&&$n.instant($n.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:e.id,sourceSize:o,targetId:t.id,targetSize:a,pos:null==i?void 0:i.pos,end:null==i?void 0:i.end})}}function H(e,t){return Xb(Ce(e,((e,n)=>{var r;const i=402653184&(n=ym(n)).flags?Jm(n,t):gf(n,t);return re(e,i&&eu(i)||(null==(r=Bg(n,t))?void 0:r.type)||Ut)}),void 0)||s)}function K(e,t){return e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration}function G(e,t,r,i){if(134217728&e.flags){if(134217728&t.flags){const n=e.origin;if(n&&268435456&n.flags&&t.aliasSymbol&&k(n.types,t))return-1;const r=t.origin;if(r&&134217728&r.flags&&e.aliasSymbol&&k(r.types,e))return-1}return n===Oo?Z(e,t,r&&!(12713980&e.flags),i):function(e,t,n,r){let i=-1;const o=e.types,a=function(e,t){if(134217728&e.flags&&134217728&t.flags&&!(4&e.types[0].flags)&&4&t.types[0].flags)return uE(t,-5);return t}(e,t);for(let e=0;e=a.types.length&&o.length%a.types.length==0){const t=U(s,a.types[e%a.types.length],3,!1,void 0,r);if(t){i&=t;continue}}const c=U(s,t,1,n,void 0,r);if(!c)return 0;i&=c}return i}(e,t,r&&!(12713980&e.flags),i)}if(134217728&t.flags)return Q(eD(e),t,r&&!(12713980&e.flags)&&!(12713980&t.flags),i);if(268435456&t.flags)return function(e,t,n,r){let i=-1;const o=t.types;for(const t of o){const o=U(e,t,2,n,void 0,r);if(!o)return 0;i&=o}return i}(e,t,r,2);if(n===Oo&&12713980&t.flags){const n=E(e.types,(e=>132644864&e.flags?Mf(e)||qt:e));if(n!==e.types){if(262144&(e=ix(n)).flags)return 0;if(!(268435456&e.flags))return U(e,t,1,!1)||U(t,e,1,!1)}}return Z(e,t,!1,1)}function X(e,t){let n=-1;const r=e.types;for(const e of r){const r=Q(e,t,!1,0);if(!r)return 0;n&=r}return n}function Q(e,t,r,i){const o=t.types;if(134217728&t.flags){if(qb(o,e))return-1;if(n!==Oo&&32768&yx(t)&&!(32768&e.flags)&&(13312&e.flags||(n===Eo||n===Po)&&2048&e.flags)){const t=e===e.regularType?e.freshType:e.regularType,n=1024&e.flags?rn:2048&e.flags?an:4096&e.flags?sn:void 0;return n&&qb(o,n)||t&&qb(o,t)?-1:0}const r=gN(t,e);if(r){const t=U(e,r,2,!1,void 0,i);if(t)return t}}for(const t of o){const n=U(e,t,2,!1,void 0,i);if(n)return n}if(r){const n=PC(e,t,U);n&&U(e,n,2,!0,void 0,i)}return 0}function Z(e,t,n,r){const i=e.types;if(134217728&e.flags&&qb(i,t))return-1;const o=i.length;for(let e=0;e(D|=e?16:8,b(e))),3===T?(null==(a=$n)||a.instant($n.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:e.id,sourceIdStack:m.map((e=>e.id)),targetId:t.id,targetIdStack:g.map((e=>e.id)),depth:x,targetDepth:S}),k=3):(null==(c=$n)||c.push($n.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:e.id,targetId:t.id}),k=function(e,t,r,i){const o=I();let a=function(e,t,r,i,o){let a,c,l=!1,_=e.flags;const d=t.flags;if(n===Lo){if(402653184&_){let n=X(e,t);return n&&(n&=X(t,e)),n}if(2097152&_)return U(e.type,t.type,3,!1);if(33554432&_&&(a=U(e.objectType,t.objectType,3,!1))&&(a&=U(e.indexType,t.indexType,3,!1)))return a;if(67108864&_&&e.root.isDistributive===t.root.isDistributive&&(a=U(e.checkType,t.checkType,3,!1))&&(a&=U(e.extendsType,t.extendsType,3,!1))&&(a&=U(fk(e),fk(t),3,!1))&&(a&=U(mk(e),mk(t),3,!1)))return a;if(16777216&_&&(a=U(e.baseType,t.baseType,3,!1))&&(a&=U(e.constraint,t.constraint,3,!1)))return a;if(4194304&_&&ee(e.texts,t.texts)){const n=e.types,r=t.types;a=-1;for(let e=0;e!!(524288&e.flags)));){if(a=U(n,t,1,!1))return a;n=bf(n)}return 0}}else if(2097152&d){const n=t.type;if(2097152&_&&(a=U(n,e.type,3,!1)))return a;if(Fw(n)){if(a=U(e,Rb(n),2,r))return a}else{const i=kf(n);if(i){if(-1===U(e,Dx(i,4|t.indexFlags),2,r))return-1}else if(uf(n)){const t=Up(n),i=Jp(n);let o;if(t&&rf(n)){o=Xb([ne(t,n),t])}else o=t||i;if(-1===U(e,o,2,r))return-1}}}else if(33554432&d){if(33554432&_){if((a=U(e.objectType,t.objectType,3,r))&&(a&=U(e.indexType,t.indexType,3,r)),a)return a;r&&(c=u)}if(n===Io||n===Oo){const n=t.objectType,s=t.indexType,l=Mf(n)||n,_=Mf(s)||s;if(!Wx(l)&&!$x(_)){const t=sk(l,_,4|(l!==n?2:0));if(t){if(r&&c&&A(o),a=U(e,t,2,r,void 0,i))return a;r&&c&&u&&(u=h([c])<=h([u])?c:u)}}}r&&(c=void 0)}else if(uf(t)&&n!==Lo){const n=!!t.declaration.nameType,i=Vp(t),s=af(t);if(!(8&s)){if(!n&&33554432&i.flags&&i.objectType===e&&i.indexType===Lp(t))return-1;if(!uf(e)){const i=n?Up(t):Jp(t),l=Dx(e,2),_=4&s,d=_?op(i,l):void 0;if(_?!(262144&d.flags):U(i,l,3)){const o=Vp(t),s=Lp(t),c=uE(o,-13);if(!n&&33554432&c.flags&&c.indexType===s){if(a=U(e,c.objectType,2,r))return a}else{const t=ok(e,n?d||i:d?ix([d,s]):s);if(a=U(t,o,3,r))return a}}c=u,A(o)}}}else if(67108864&d){if(KC(t,g,S,10))return 3;const n=t;if(!(n.root.inferTypeParameters||(p=n.root,p.isDistributive&&(FS(p.checkType,p.node.trueType)||FS(p.checkType,p.node.falseType)))||67108864&e.flags&&e.root===n.root)){const t=!QS(RS(n.checkType),RS(n.extendsType)),r=!t&&QS(MS(n.checkType),MS(n.extendsType));if((a=t?-1:U(e,fk(n),2,!1,void 0,i))&&(a&=r?-1:U(e,mk(n),2,!1,void 0,i),a))return a}}else if(4194304&d){if(4194304&_){if(n===Oo)return function(e,t){const n=e.texts[0],r=t.texts[0],i=e.texts[e.texts.length-1],o=t.texts[t.texts.length-1],a=Math.min(n.length,r.length),s=Math.min(i.length,o.length);return n.slice(0,a)!==r.slice(0,a)||i.slice(i.length-s)!==o.slice(o.length-s)}(e,t)?0:-1;LS(e,Pn)}if(JD(e,t))return-1}else if(8388608&t.flags&&!(8388608&e.flags)&&RD(e,t))return-1;var p;if(34078720&_){if(!(33554432&_&&33554432&d)){const n=vf(e)||qt;if(a=U(n,t,1,!1,void 0,i))return a;if(a=U(Bd(n,e),t,1,r&&n!==qt&&!(d&_&524288),void 0,i))return a;if(mm(e)){const n=vf(e.indexType);if(n&&(a=U(ok(e.objectType,n),t,1,r)))return a}}}else if(2097152&_){const n=wx(e.type,e.indexFlags)&&32&yx(e.type);if(a=U(Sn,t,1,r&&!n))return a;if(n){const n=e.type,i=Up(n),o=i&&rf(n)?ne(i,n):i||Jp(n);if(a=U(o,t,1,r))return a}}else if(4194304&_&&!(1048576&d)){if(!(4194304&d)){const n=Mf(e);if(n&&n!==e&&(a=U(n,t,1,r)))return a}}else if(8388608&_)if(8388608&d){if(e.symbol!==t.symbol)return 0;if(a=U(e.type,t.type,3,r))return a}else{const n=Mf(e);if(n&&(a=U(n,t,1,r)))return a}else if(67108864&_){if(KC(e,m,x,10))return 3;if(67108864&d){const n=e.root.inferTypeParameters;let i,o=e.extendsType;if(n){const e=gD(n,void 0,0,q);qD(e.inferences,t.extendsType,o,1536),o=LS(o,e.mapper),i=e.mapper}if(VS(o,t.extendsType)&&(U(e.checkType,t.checkType,3)||U(t.checkType,e.checkType,3))&&((a=U(LS(fk(e),i),fk(t),3,r))&&(a&=U(mk(e),mk(t),3,r)),a))return a}const n=Sf(e);if(n&&(a=U(n,t,1,r)))return a;const i=67108864&d||!Vf(e)?void 0:Tf(e);if(i&&(A(o),a=U(i,t,1,r)))return a}else{if(n!==Eo&&n!==Po&&(32&yx(f=t)&&4&af(f))&&jT(e))return-1;if(uf(t))return uf(e)&&(a=function(e,t,r){const i=n===Oo||(n===Lo?af(e)===af(t):cf(e)<=cf(t));if(i){let n;if(n=U(Jp(t),LS(Jp(e),cf(e)<0?An:Pn),3,r)){const i=dS([Lp(e)],[Lp(t)]);if(LS(Up(e),i)===LS(Up(t),i))return n&U(LS(Vp(e),i),Vp(t),3,r)}}return 0}(e,t,r))?a:0;const p=!!(12713980&_);if(n!==Lo)_=(e=ym(e)).flags;else if(uf(e))return 0;if(4&yx(e)&&4&yx(t)&&e.target===t.target&&!Fw(e)&&!MC(e)&&!MC(t)){if(pw(e))return-1;const n=OC(e.target);if(n===s)return 1;const r=y(Ay(e),Ay(t),n,i);if(void 0!==r)return r}else{if(ow(t)?oE(e,aw):iw(t)&&oE(e,(e=>Fw(e)&&!e.target.readonly)))return n!==Lo?U(Og(e,an)||At,Og(t,an)||At,3,r):0;if(Ew(e)&&Fw(t)&&!Ew(t)){const n=Bf(e);if(n!==e)return U(n,t,1,r)}else if((n===Eo||n===Po)&&jT(t)&&8192&yx(t)&&!jT(e))return 0}if(269484032&_&&1048576&d){const n=r&&u===o.errorInfo&&!p;if(a=ae(e,t,n,void 0,!1,i),a&&(a&=ce(e,t,0,n,i),a&&(a&=ce(e,t,1,n,i),a&&(a&=ge(e,t,p,n,i)))),l&&a)u=c||u||o.errorInfo;else if(a)return a}if(269484032&_&&134217728&d){const r=uE(t,286261248);if(134217728&r.flags){const t=function(e,t){var r;const i=yf(e),o=pN(i,t);if(!o)return 0;let a=1;for(const n of o)if(a*=cE(tu(n)),a>25)return null==(r=$n)||r.instant($n.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:e.id,targetId:t.id,numCombinations:a}),0;const s=new Array(o.length),c=new Set;for(let e=0;er[i]),!1,0,Y||n===Oo))continue e}se(_,a,ft),i=!0}if(!i)return 0}let u=-1;for(const t of _)if(u&=ae(e,t,!1,c,!1,0),u&&(u&=ce(e,t,0,!1,0),u&&(u&=ce(e,t,1,!1,0),!u||Fw(e)&&Fw(t)||(u&=ge(e,t,!1,!1,0)))),!u)return u;return u}(e,r);if(t)return t}}}var f;return 0;function h(e){return e?Ce(e,((e,t)=>e+1+h(t.next)),0):0}function y(e,t,i,_){if(a=function(e=s,t=s,r=s,i,o){if(e.length!==t.length&&n===Lo)return 0;const a=e.length<=t.length?e.length:t.length;let c=-1;for(let s=0;s!!(24&e))))return c=void 0,void A(o);const d=t&&function(e,t){for(let n=0;n!(7&e)))))return 0;c=u,A(o)}}}(e,t,r,i,o);if(n!==Lo){if(!a&&(268435456&e.flags||524288&e.flags&&134217728&t.flags)){const n=function(e,t){let n,r=!1;for(const i of e)if(132644864&i.flags){let e=vf(i);for(;e&&69730304&e.flags;)e=vf(e);e&&(n=re(n,e),t&&(n=re(n,i)))}else(12812284&i.flags||zT(i))&&(r=!0);if(n&&(t||r)){if(r)for(const t of e)(12812284&t.flags||zT(t))&&(n=re(n,t));return gC(ix(n,2),!1)}}(268435456&e.flags?e.types:[e],!!(134217728&t.flags));n&&oE(n,(t=>t!==e))&&(a=U(n,t,1,!1,void 0,i))}a&&!(2&i)&&268435456&t.flags&&!Wx(t)&&269484032&e.flags?(a&=ae(e,t,r,void 0,!1,0),a&&KD(e)&&8192&yx(e)&&(a&=ge(e,t,!1,r,0))):a&&Ik(t)&&!aw(t)&&268435456&e.flags&&403701760&ym(e).flags&&!V(e.types,(e=>e===t||!!(262144&yx(e))))&&(a&=ae(e,t,r,void 0,!0,i))}a&&A(o);return a}(e,t,r,i),null==(l=$n)||l.pop()),pn&&(pn=b),1&o&&x--,2&o&&S--,T=y,k?(-1===k||0===x&&0===S)&&N(-1===k||3===k):(n.set(_,2|D),F--,N(!1)),k;function N(e){for(let t=h;t{r.push(LS(e,SS(t.mapper,Lp(t),n)))})),Xb(r)}function ie(e,t){if(!t||0===e.length)return e;let n;for(let r=0;r{return!!(4&ax(t))&&(n=e,r=WC(t),!VC(n,(e=>{const t=WC(e);return!!t&&ou(t,r)})));var n,r}))}(r,i))return a&&j(ua.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Ac(i),Oc(WC(r)||e),Oc(WC(i)||t)),0}else if(4&l)return a&&j(ua.Property_0_is_protected_in_type_1_but_public_in_type_2,Ac(i),Oc(e),Oc(t)),0;if(n===Po&&cR(r)&&!cR(i))return 0;const u=function(e,t,r,i,o){const a=Y&&!!(48&ox(t)),s=zl(tu(t),!1,a);return s.flags&(n===Po?1:3)?-1:U(r(e),s,3,i,void 0,o)}(r,i,o,a,s);return u?!c&&16777216&r.flags&&106500&i.flags&&!(16777216&i.flags)?(a&&j(ua.Property_0_is_optional_in_type_1_but_required_in_type_2,Ac(i),Oc(e),Oc(t)),0):u:(a&&O(ua.Types_of_property_0_are_incompatible,Ac(i)),0)}function ae(e,t,r,i,a,s){if(n===Lo)return function(e,t,n){if(!(1048576&e.flags&&1048576&t.flags))return 0;const r=ie(mf(e),n),i=ie(mf(t),n);if(r.length!==i.length)return 0;let o=-1;for(const e of r){const n=gf(t,e.escapedName);if(!n)return 0;const r=ew(e,n,U);if(!r)return 0;o&=r}return o}(e,t,i);let c=-1;if(Fw(t)){if(aw(e)){if(!t.target.readonly&&(ow(e)||Fw(e)&&e.target.readonly))return 0;const n=Iy(e),o=Iy(t),a=Fw(e)?4&e.target.combinedFlags:4,l=!!(12&t.target.combinedFlags),_=Fw(e)?e.target.minLength:0,u=t.target.minLength;if(!a&&n!(e&t)));return n>=0?n:e.elementFlags.length}(t.target,11),m=Mb(t.target,11);let g=!!i;for(let a=0;a=f?o-1-Math.min(u,m):a,y=t.target.elementFlags[h];if(8&y&&!(8&_))return r&&j(ua.Source_provides_no_match_for_variadic_element_at_position_0_in_target,h),0;if(8&_&&!(12&y))return r&&j(ua.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,a,h),0;if(1&y&&!(1&_))return r&&j(ua.Source_provides_no_match_for_required_element_at_position_0_in_target,h),0;if(g&&((12&_||12&y)&&(g=!1),g&&(null==i?void 0:i.has(""+a))))continue;const v=Gw(d[a],!!(_&y&2)),b=p[h],x=U(v,8&_&&4&y?Tb(b):Gw(b,!!(2&y)),3,r,void 0,s);if(!x)return r&&(o>1||n>1)&&(l&&a>=f&&u>=m&&f!==n-m-1?O(ua.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,f,n-m-1,h):O(ua.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,a,h)),0;c&=x}return c}if(12&t.target.combinedFlags)return 0}const _=!(n!==Eo&&n!==Po||KD(e)||pw(e)||Fw(e)),d=PD(e,t,_,!1);if(d)return r&&function(e,t){const n=_g(e,0),r=_g(e,1),i=mf(e);if((n.length||r.length)&&!i.length)return!!(mg(t,0).length&&n.length||mg(t,1).length&&r.length);return!0}(e,t)&&function(e,t,n,r){let i=!1;if(n.valueDeclaration&&Tc(n.valueDeclaration)&&uN(n.valueDeclaration.name)&&e.symbol&&32&e.symbol.flags){const r=n.valueDeclaration.name.escapedText,i=Wh(e.symbol,r);if(i&&lg(e,i)){const n=vw.getDeclarationName(e.symbol.valueDeclaration),i=vw.getDeclarationName(t.symbol.valueDeclaration);return void j(ua.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,Sa(r),Sa(""===n.escapedText?GB:n),Sa(""===i.escapedText?GB:i))}}const a=Ie(ED(e,t,r,!1));if((!o||o.code!==ua.Class_0_incorrectly_implements_interface_1.code&&o.code!==ua.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(i=!0),1===a.length){const r=Ac(n,void 0,0,20);j(ua.Property_0_is_missing_in_type_1_but_required_in_type_2,r,...Lc(e,t)),l(n.declarations)&&M(Mp(n.declarations[0],ua._0_is_declared_here,r)),i&&u&&w++}else J(e,t,!1)&&(a.length>5?j(ua.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Oc(e),Oc(t),N(a.slice(0,4),(e=>Ac(e))).join(", "),a.length-4):j(ua.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Oc(e),Oc(t),N(a,(e=>Ac(e))).join(", ")),i&&u&&w++)}(e,t,d,_),0;if(KD(t))for(const n of ie(yf(e),i))if(!gf(t,n.escapedName))return r&&j(ua.Property_0_does_not_exist_on_type_1,Ac(n),Oc(t)),0;const p=yf(t),f=Fw(e)&&Fw(t);for(const o of ie(p,i)){const i=o.escapedName;if(!(4194304&o.flags)&&(!f||qT(i)||"length"===i)&&(!a||16777216&o.flags)){const a=lg(e,i);if(a&&a!==o){const i=oe(e,t,a,o,tu,r,s,n===Oo);if(!i)return 0;c&=i}}}return c}function ce(e,t,r,i,o){var a,s;if(n===Lo)return function(e,t,n){const r=mg(e,n),i=mg(t,n);if(r.length!==i.length)return 0;let o=-1;for(let e=0;eIc(e,void 0,262144,r);return j(ua.Type_0_is_not_assignable_to_type_1,e(t),e(c)),j(ua.Types_of_construct_signatures_are_incompatible),d}}else e:for(const t of u){const n=I();let a=i;for(const e of _){const r=de(e,t,!0,a,o,p(e,t));if(r){d&=r,A(n);continue e}a=!1}return a&&j(ua.Type_0_provides_no_match_for_the_signature_1,Oc(e),Ic(t,void 0,void 0,r)),0}return d}function _e(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>O(ua.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Oc(e),Oc(t)):(e,t)=>O(ua.Call_signature_return_types_0_and_1_are_incompatible,Oc(e),Oc(t))}function ue(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>O(ua.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Oc(e),Oc(t)):(e,t)=>O(ua.Construct_signature_return_types_0_and_1_are_incompatible,Oc(e),Oc(t))}function de(e,t,r,i,o,a){const s=n===Eo?16:n===Po?24:0;return AT(r?ay(e):e,r?ay(t):t,s,i,j,a,(function(e,t,n){return U(e,t,3,n,void 0,o)}),Pn)}function fe(e,t,n,r){const i=U(e.type,t.type,3,n,void 0,r);return!i&&n&&(e.keyType===t.keyType?j(ua._0_index_signatures_are_incompatible,Oc(e.keyType)):j(ua._0_and_1_index_signatures_are_incompatible,Oc(e.keyType),Oc(t.keyType))),i}function ge(e,t,r,i,o){if(n===Lo)return function(e,t){const n=Pg(e),r=Pg(t);if(n.length!==r.length)return 0;for(const t of r){const n=Ag(e,t.keyType);if(!n||!U(n.type,t.type,3)||n.isReadonly!==t.isReadonly)return 0}return-1}(e,t);const a=Pg(t),s=V(a,(e=>e.keyType===rn));let c=-1;for(const t of a){const a=n!==Po&&!r&&s&&1&t.type.flags?-1:uf(e)&&s?U(Vp(e),t.type,3,i):he(e,t,i,o);if(!a)return 0;c&=a}return c}function he(e,t,r,i){const o=Mg(e,t.keyType);return o?fe(o,t,r,i):1&i||!(n!==Po||8192&yx(e))||!Yw(e)?(r&&j(ua.Index_signature_for_type_0_is_missing_in_type_1,Oc(t.keyType),Oc(e)),0):function(e,t,n,r){let i=-1;const o=t.keyType,a=268435456&e.flags?hf(e):mf(e);for(const s of a)if(!fC(e,s)&&Cg(xx(s,19456),o)){const e=tu(s),a=U(ve||4&e.flags||o===an||!(16777216&s.flags)?e:ZN(e,524288),t.type,3,n,void 0,r);if(!a)return n&&j(ua.Property_0_is_incompatible_with_index_signature,Ac(s)),0;i&=a}for(const a of Pg(e))if(Cg(a.keyType,o)){const e=fe(a,t,n,r);if(!e)return 0;i&=e}return i}(e,t,r,i)}}function DC(e){if(256&e.flags)return!1;if(402653184&e.flags)return!!_(e.types,DC);if(132644864&e.flags){const t=vf(e);if(t&&t!==e)return DC(t)}return hw(e)||!!(4194304&e.flags)||!!(8388608&e.flags)}function NC(e,t){return Fw(e)&&Fw(t)?s:yf(t).filter((t=>EC(pl(e,t.escapedName),eu(t))))}function EC(e,t){return!!e&&!!t&&mR(e,4)&&!!Xw(t)}function PC(e,t,n=$S){return cU(e,t,n)||function(e,t){const n=yx(e);if(20&n&&134217728&t.flags)return y(t.types,(t=>{if(1048576&t.flags){const r=n&yx(t);if(4&r)return e.target===t.target;if(16&r)return!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}return!1}))}(e,t)||function(e,t){if(128&yx(e)&&iE(t,lw))return y(t.types,(e=>!lw(e)))}(e,t)||function(e,t){let n=0;const r=mg(e,n).length>0||(n=1,mg(e,n).length>0);if(r)return y(t.types,(e=>mg(e,n).length>0))}(e,t)||function(e,t){let n;if(!(14811132&e.flags)){let r=0;for(const i of t.types)if(!(14811132&i.flags)){const t=ix([Dx(e),Dx(i)]);if(2097152&t.flags)return i;if(hw(t)||134217728&t.flags){const e=134217728&t.flags?T(t.types,hw):1;e>=r&&(n=i,r=e)}}}return n}(e,t)}function AC(e,t,n){const r=e.types,i=r.map((e=>12713980&e.flags||262144&zm(e).flags?0:-1));for(const[e,o]of t){let t=!1;for(let a=0;a!!n(e,s)))?t=!0:i[a]=3)}for(let e=0;ei[t])),0):e;return 262144&o.flags?e:o}function IC(e){if(1048576&e.flags){const t=ff(e);return 0===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.indexInfos.length&&t.properties.length>0&&h(t.properties,(e=>!!(16777216&e.flags)))}return 16777216&e.flags?IC(e.baseType):!!(268435456&e.flags)&&h(e.types,IC)}function OC(e){return e===sr||e===cr||8&e.objectFlags?M:jC(e.symbol,e.typeParameters)}function LC(e){return jC(e,ga(e).typeParameters)}function jC(e,t=s){var n,r;const i=ga(e);if(!i.variances){null==(n=$n)||n.push($n.Phase.CheckTypes,"getVariancesWorker",{arity:t.length,id:zb(rd(e))});const o=Yi,a=Qi;Yi||(Yi=!0,Qi=Ki.length),i.variances=s;const c=[];for(const n of t){const t=BC(n);let r=16384&t?8192&t?0:1:8192&t?2:void 0;if(void 0===r){let t=!1,i=!1;const o=pn;pn=e=>e?i=!0:t=!0;const a=RC(e,n,Wn),s=RC(e,n,Hn);r=(QS(s,a)?1:0)|(QS(a,s)?2:0),3===r&&QS(RC(e,n,Kn),a)&&(r=4),pn=o,(t||i)&&(t&&(r|=8),i&&(r|=16))}c.push(r)}o||(Yi=!1,Qi=a),i.variances=c,null==(r=$n)||r.pop({variances:c.map(_n.formatVariance)})}return i.variances}function RC(e,t,n){const r=fS(t,n),i=rd(e);if(kl(i))return i;const o=524288&e.flags?Ry(e,lS(ga(e).typeParameters,r)):Dy(i,lS(i.typeParameters,r));return wt.add(zb(o)),o}function MC(e){return wt.has(zb(e))}function BC(e){var t;return 28672&Ce(null==(t=e.symbol)?void 0:t.declarations,((e,t)=>e|zv(t)),0)}function zC(e){return 524288&e.flags&&!bf(e)}function qC(e){return function(e){return!!(4&yx(e))&&!e.node}(e)&&V(Ay(e),(e=>!!(524288&e.flags)||qC(e)))}function UC(e,t,n,r,i){if(r===Lo&&e.id>t.id){const n=e;e=t,t=n}const o=n?":"+n:"";return qC(e)&&qC(t)?function(e,t,n,r){const i=[];let o="";const a=c(e,0),s=c(t,0);return`${o}${a},${s}${n}`;function c(e,t=0){let n=""+e.target.id;for(const a of Ay(e)){if(524288&a.flags){if(r||zC(a)){let e=i.indexOf(a);e<0&&(e=i.length,i.push(a)),n+="="+e;continue}o="*"}else if(t<4&&qC(a)){n+="<"+c(a,t+1)+">";continue}n+="-"+a.id}return n}}(e,t,o,i):`${e.id},${t.id}${o}`}function VC(e,t){if(!(6&ox(e)))return t(e);for(const n of e.links.containingType.types){const r=lg(n,e.escapedName),i=r&&VC(r,t);if(i)return i}}function WC(e){return e.parent&&32&e.parent.flags?rd(Os(e)):void 0}function $C(e){const t=WC(e),n=t&&Iu(t)[0];return n&&pl(n,e.escapedName)}function HC(e,t,n){return VC(t,(t=>!!(4&ax(t,n))&&!ou(e,WC(t))))?void 0:e}function KC(e,t,n,r=3){if(n>=r){if(96&~yx(e)||(e=GC(e)),268435456&e.flags)return V(e.types,(e=>KC(e,t,n,r)));const i=ZC(e);let o=0,a=0;for(let e=0;e=a&&(o++,o>=r))return!0;a=n.id}}}return!1}function GC(e){let t;for(;!(96&~yx(e))&&(t=of(e))&&(t.symbol||268435456&t.flags&&V(t.types,(e=>!!e.symbol)));)e=t;return e}function YC(e,t){return 96&~yx(e)||(e=GC(e)),268435456&e.flags?V(e.types,(e=>YC(e,t))):ZC(e)===t}function ZC(e){if(1048576&e.flags&&!GD(e)){if(4&yx(e)&&e.node)return e.node;if(e.symbol&&!(16&yx(e)&&32&e.symbol.flags))return e.symbol;if(Fw(e))return e.target}if(524288&e.flags)return e.symbol;if(33554432&e.flags){do{e=e.objectType}while(33554432&e.flags);return e}return 67108864&e.flags?e.root:e}function ew(e,t,n){if(e===t)return-1;const r=6&ax(e);if(r!==(6&ax(t)))return 0;if(r){if(HJ(e)!==HJ(t))return 0}else if((16777216&e.flags)!=(16777216&t.flags))return 0;return cR(e)!==cR(t)?0:n(tu(e),tu(t))}function tw(e,t,n,r,i,o){if(e===t)return-1;if(!function(e,t,n){const r=wj(e),i=wj(t),o=Dj(e),a=Dj(t),s=Nj(e),c=Nj(t);return r===i&&o===a&&s===c||!!(n&&o<=a)}(e,t,n))return 0;if(l(e.typeParameters)!==l(t.typeParameters))return 0;if(t.typeParameters){const n=dS(e.typeParameters,t.typeParameters);for(let r=0;re|(134217728&t.flags?nw(t.types):t.flags)),0)}function rw(e){if(1===e.length)return e[0];const t=Y?E(e,(e=>aE(e,(e=>!(12&e.flags))))):e,n=function(e){let t;for(const n of e)if(!(262144&n.flags)){const e=kw(n);if(t??(t=e),e===n||e!==t)return!1}return!0}(t)?Xb(t):function(e){const t=Ce(e,((e,t)=>XS(e,t)?t:e));return h(e,(e=>e===t||XS(e,t)))?t:Ce(e,((e,t)=>GS(e,t)?t:e))}(t);return t===e?n:zw(n,12&nw(e))}function iw(e){return!!(4&yx(e))&&(e.target===sr||e.target===cr)}function ow(e){return!!(4&yx(e))&&e.target===cr}function aw(e){return iw(e)||Fw(e)}function sw(e){return iw(e)&&!ow(e)||Fw(e)&&!e.target.readonly}function cw(e){return iw(e)?Ay(e)[0]:void 0}function lw(e){return iw(e)||!(12&e.flags)&&QS(e,gr)}function _w(e){return sw(e)||!(13&e.flags)&&QS(e,fr)}function uw(e){if(!(4&yx(e)&&3&yx(e.target)))return;if(33554432&yx(e))return 67108864&yx(e)?e.cachedEquivalentBaseType:void 0;e.objectFlags|=33554432;const t=e.target;if(1&yx(t)){const e=hu(t);if(e&&80!==e.expression.kind&&212!==e.expression.kind)return}const n=Iu(t);if(1!==n.length)return;if(Rd(e.symbol).size)return;let r=l(t.typeParameters)?LS(n[0],dS(t.typeParameters,Ay(e).slice(0,t.typeParameters.length))):n[0];return l(Ay(e))>l(t.typeParameters)&&(r=Bd(r,ye(Ay(e)))),e.objectFlags|=67108864,e.cachedEquivalentBaseType=r}function dw(e){return Y?e===vn:e===Vt}function pw(e){const t=cw(e);return!!t&&dw(t)}function fw(e){let t;return Fw(e)||!!lg(e,"0")||lw(e)&&!!(t=pl(e,"length"))&&oE(t,(e=>!!(2048&e.flags)))}function mw(e){return lw(e)||fw(e)}function gw(e){return!(359436&e.flags)}function hw(e){return!!(97292&e.flags)}function yw(e){const t=Bf(e);return 268435456&t.flags?V(t.types,hw):hw(t)}function bw(e){return!!(256&e.flags)||(134217728&e.flags?!!(32768&e.flags)||h(e.types,hw):hw(e))}function kw(e){return 98304&e.flags?Hu(e):12583936&e.flags?rn:2048&e.flags?an:4096&e.flags?sn:8192&e.flags?fn:134217728&e.flags?function(e){const t=`B${zb(e)}`;return Bo(t)??zo(t,lE(e,kw))}(e):e}function Sw(e){return 12583936&e.flags?rn:67584&e.flags?an:4096&e.flags?sn:8192&e.flags?fn:134217728&e.flags?lE(e,Sw):e}function Tw(e){return 98304&e.flags&&Kk(e)?Hu(e):1024&e.flags&&Kk(e)?rn:2048&e.flags&&Kk(e)?an:4096&e.flags&&Kk(e)?sn:8192&e.flags&&Kk(e)?fn:134217728&e.flags?lE(e,Tw):e}function ww(e){return 16384&e.flags?mn:134217728&e.flags?lE(e,ww):e}function Dw(e,t){return JR(e,t)||(e=ww(Tw(e))),Hk(e)}function Nw(e,t,n,r){if(e&&hw(e)){e=Dw(e,t?DJ(n,t,r):void 0)}return e}function Fw(e){return!!(4&yx(e)&&8&e.target.objectFlags)}function Ew(e){return Fw(e)&&!!(8&e.target.combinedFlags)}function Pw(e){return Ew(e)&&1===e.target.elementFlags.length}function Aw(e){return Ow(e,e.target.fixedLength)}function Iw(e,t,n){return lE(e,(e=>{const r=e,i=Aw(r);return i?n&&t>=Bb(r.target)?Xb([i,n]):i:Ut}))}function Ow(e,t,n=0,r=!1,i=!1){const o=Iy(e)-n;if(tHN(e,4194304)))}function Jw(e){return 32&e.flags?Wi:64&e.flags?$i:128&e.flags?Hi:e===ln||e===cn||31&e.flags||1024&e.flags&&""===e.value||2048&e.flags&&0===e.value||4096&e.flags&&Lw(e)?e:hn}function zw(e,t){const n=t&~e.flags&12;return 0===n?e:Xb(4===n?[e,Ut]:8===n?[e,Qt]:[e,Ut,Qt])}function Uw(e,t=!1){_n.assert(Y);const n=t?$t:Ut;return e===n||134217728&e.flags&&e.types[0]===n?e:Xb([e,n])}function Vw(e){return Y?tF(e,2097152):e}function Ww(e){return Y?Xb([e,Xt]):e}function $w(e){return Y?sE(e,Xt):e}function Hw(e,t,n){return n?xl(t)?Uw(e):Ww(e):e}function Kw(e,t){return bl(t)?Vw(e):yl(t)?$w(e):e}function Gw(e,t){return ve&&t?sE(e,Wt):e}function Xw(e){return e===Wt||!!(134217728&e.flags)&&e.types[0]===Wt}function Qw(e){return ve?sE(e,Wt):ZN(e,524288)}function Yw(e){const t=yx(e);return 268435456&e.flags?h(e.types,Yw):!(!(e.symbol&&7040&e.symbol.flags)||32&e.symbol.flags||$z(e))||!!(4194304&t)||!!(1024&t&&Yw(e.source))}function Zw(e,t){const n=na(e.flags,e.escapedName,8&ox(e));n.declarations=e.declarations,n.parent=e.parent,n.links.type=t,n.links.target=e,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration);const r=ga(e).nameType;return r&&(n.links.nameType=r),n}function eD(e){if(!(KD(e)&&8192&yx(e)))return e;const t=e.regularType;if(t)return t;const n=e,r=function(e,t){const n=Xu();for(const r of mf(e)){const e=eu(r),i=t(e);n.set(r.escapedName,i===e?r:Zw(r,i))}return n}(e,eD),i=Ys(n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);return i.flags=n.flags,i.objectFlags|=-8193&n.objectFlags,e.regularType=i,i}function tD(e,t,n){return{parent:e,propertyName:t,siblings:n,resolvedProperties:void 0}}function iD(e){if(!e.siblings){const t=[];for(const n of iD(e.parent))if(KD(n)){const r=gf(n,e.propertyName);r&&eE(eu(r),(e=>{t.push(e)}))}e.siblings=t}return e.siblings}function oD(e){if(!e.resolvedProperties){const t=new Map;for(const n of iD(e))if(KD(n)&&!(2097152&yx(n)))for(const e of yf(n))t.set(e.escapedName,e);e.resolvedProperties=Ie(t.values())}return e.resolvedProperties}function aD(e,t){if(!(4&e.flags))return e;const n=eu(e),r=_D(n,t&&tD(t,e.escapedName,void 0));return r===n?e:Zw(e,r)}function cD(e){const t=Ct.get(e.escapedName);if(t)return t;const n=Zw(e,$t);return n.flags|=16777216,Ct.set(e.escapedName,n),n}function lD(e){return _D(e,void 0)}function _D(e,t){if(196608&yx(e)){if(void 0===t&&e.widened)return e.widened;let n;if(13&e.flags)n=At;else if(KD(e))n=function(e,t){const n=Xu();for(const r of mf(e))n.set(r.escapedName,aD(r,t));if(t)for(const e of oD(t))n.has(e.escapedName)||n.set(e.escapedName,cD(e));const r=Ys(e.symbol,n,s,s,E(Pg(e),(e=>fy(e.keyType,lD(e.type),e.isReadonly,e.declaration,e.components))));return r.objectFlags|=266240&yx(e),r}(e,t);else if(134217728&e.flags){const r=t||tD(void 0,void 0,e.types),i=E(e.types,(e=>12&e.flags?e:_D(e,r)));n=Xb(i,V(i,jT)?2:1)}else 268435456&e.flags?n=ix(E(e.types,lD)):aw(e)&&(n=Dy(e.target,E(Ay(e),lD)));return n&&void 0===t&&(e.widened=n),n||e}return e}function uD(e){var t;let n=!1;if(65536&yx(e))if(134217728&e.flags)if(V(e.types,jT))n=!0;else for(const t of e.types)n||(n=uD(t));else if(aw(e))for(const t of Ay(e))n||(n=uD(t));else if(KD(e))for(const r of mf(e)){const i=eu(r);if(65536&yx(i)&&(n=uD(i),!n)){const o=null==(t=r.declarations)?void 0:t.find((t=>{var n;return(null==(n=t.symbol.valueDeclaration)?void 0:n.parent)===e.symbol.valueDeclaration}));o&&($o(o,ua.Object_literal_s_property_0_implicitly_has_an_1_type,Ac(r),Oc(lD(i))),n=!0)}}return n}function dD(e,t,n){const r=Oc(lD(t));if(Em(e)&&!iT(bd(e),z))return;let i;switch(e.kind){case 227:case 173:case 172:i=le?ua.Member_0_implicitly_has_an_1_type:ua.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 170:const t=e;if(_N(t.name)){const n=yc(t.name);if((MN(t.parent)||AN(t.parent)||UN(t.parent))&&t.parent.parameters.includes(t)&&(Ge(t,t.name.escapedText,788968,void 0,!0)||n&&Tx(n))){const n="arg"+t.parent.parameters.indexOf(t),r=Ap(t.name)+(t.dotDotDotToken?"[]":"");return void Go(le,e,ua.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,n,r)}}i=e.dotDotDotToken?le?ua.Rest_parameter_0_implicitly_has_an_any_type:ua.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:le?ua.Parameter_0_implicitly_has_an_1_type:ua.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 209:if(i=ua.Binding_element_0_implicitly_has_an_1_type,!le)return;break;case 318:return void $o(e,ua.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);case 324:return void(le&&BP(e.parent)&&$o(e.parent.tagName,ua.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,r));case 263:case 175:case 174:case 178:case 179:case 219:case 220:if(le&&!e.name)return void $o(e,3===n?ua.Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:ua.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);i=le?3===n?ua._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:ua._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:ua._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 201:return void(le&&$o(e,ua.Mapped_object_type_implicitly_has_an_any_template_type));default:i=le?ua.Variable_0_implicitly_has_an_1_type:ua.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Go(le,e,i,Ap(wc(e)),r)}function pD(e,t,n){c((()=>{le&&65536&yx(t)&&(!n||a_(e)&&function(e,t){const n=hI(e);if(!n)return!0;let r=jh(n);const i=Lh(e);switch(t){case 1:return 1&i?r=DJ(1,r,!!(2&i))??r:2&i&&(r=MM(r)??r),Vx(r);case 3:const e=DJ(0,r,!!(2&i));return!!e&&Vx(e);case 2:const t=DJ(2,r,!!(2&i));return!!t&&Vx(t)}return!1}(e,n))&&(uD(t)||dD(e,t,n))}))}function fD(e,t,n){const r=wj(e),i=wj(t),o=Fj(e),a=Fj(t),s=a?i-1:i,c=o?s:Math.min(r,s),l=Ah(e);if(l){const e=Ah(t);e&&n(l,e)}for(let r=0;re.typeParameter)),N(e.inferences,((t,n)=>()=>(t.isFixed||(!function(e){if(e.intraExpressionInferenceSites){for(const{node:t,type:n}of e.intraExpressionInferenceSites){const r=175===t.kind?KA(t,2):aI(t,2);r&&qD(e.inferences,n,r)}e.intraExpressionInferenceSites=void 0}}(e),vD(e.inferences),t.isFixed=!0),YD(e,n)))))}(i),i.nonFixingMapper=function(e){return hS(N(e.inferences,(e=>e.typeParameter)),N(e.inferences,((t,n)=>()=>YD(e,n))))}(i),i}function vD(e){for(const t of e)t.isFixed||(t.inferredType=void 0)}function bD(e,t,n){(e.intraExpressionInferenceSites??(e.intraExpressionInferenceSites=[])).push({node:t,type:n})}function xD(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function kD(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed,impliedArity:e.impliedArity}}function SD(e){return e&&e.mapper}function TD(e){const t=yx(e);if(524288&t)return!!(1048576&t);const n=!!(132644864&e.flags||1048576&e.flags&&!CD(e)&&(4&t&&(e.node||V(Ay(e),TD))||16&t&&e.symbol&&14384&e.symbol.flags&&e.symbol.declarations||12583968&t)||402653184&e.flags&&!(32768&e.flags)&&!CD(e)&&V(e.types,TD));return 403963917&e.flags&&(e.objectFlags|=524288|(n?1048576:0)),n}function CD(e){if(e.aliasSymbol&&!e.aliasTypeArguments){const t=Ku(e.aliasSymbol,266);return!(!t||!dc(t.parent,(e=>308===e.kind||268!==e.kind&&"quit")))}return!1}function wD(e,t,n=0){return!!(e===t||402653184&e.flags&&V(e.types,(e=>wD(e,t,n)))||n<3&&67108864&e.flags&&(wD(fk(e),t,n+1)||wD(mk(e),t,n+1)))}function DD(e,t,n){const r=e.id+","+t.id+","+n.id;if(wi.has(r))return wi.get(r);const i=function(e,t,n){if(!(Ag(e,rn)||0!==yf(e).length&&ND(e)))return;if(iw(e)){const r=FD(Ay(e)[0],t,n);if(!r)return;return Tb(r,ow(e))}if(Fw(e)){const r=N(Jb(e),(e=>FD(e,t,n)));if(!h(r,(e=>!!e)))return;return Ab(r,4&af(t)?E(e.target.elementFlags,(e=>2&e?1:e)):e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations)}const r=$s(1040,void 0);return r.source=e,r.mappedType=t,r.constraintType=n,r}(e,t,n);return wi.set(r,i),i}function ND(e){return!(262144&yx(e))||KD(e)&&V(yf(e),(e=>ND(eu(e))))||Fw(e)&&V(Jb(e),ND)}function FD(e,t,n){const r=e.id+","+t.id+","+n.id;if(Ci.has(r))return Ci.get(r)||qt;vo.push(e),xo.push(t);const i=Co;let o;return KC(e,vo,vo.length,2)&&(Co|=1),KC(t,xo,xo.length,2)&&(Co|=2),3!==Co&&(o=function(e,t,n){const r=ok(n.type,Lp(t)),i=Vp(t),o=xD(r);return qD([o],e,i),lD(AD(o)||qt)}(e,t,n)),vo.pop(),xo.pop(),Co=i,Ci.set(r,o),o}function*ED(e,t,n,r){const i=yf(t);for(const t of i)if(!hd(t)&&(n||!(16777216&t.flags||48&ox(t)))){const n=lg(e,t.escapedName);if(n){if(r){const e=eu(t);if(97292&e.flags){const r=eu(n);1&r.flags||Hk(r)===Hk(e)||(yield t)}}}else yield t}}function PD(e,t,n,r){return fe(ED(e,t,n,r))}function AD(e){return e.candidates?Xb(e.candidates,2):e.contraCandidates?ix(e.contraCandidates):void 0}function ID(e){return!!ha(e).skipDirectInference}function OD(e){return!(!e.symbol||!V(e.symbol.declarations,ID))}function LD(e,t){if(""===e)return!1;const n=+e;return isFinite(n)&&(!t||""+n===e)}function jD(e){return eS(bT(e))}function RD(e,t){if(1&t.flags)return!0;if(4194336&t.flags)return QS(e,t);if(8388608&t.flags){const n=[];for(;8388608&t.flags;)n.unshift(t.symbol),t=t.type;return Ce(n,((e,t)=>Ax(t,e)),e)===e&&RD(e,t)}return!1}function MD(e,t){if(268435456&t.flags)return h(t.types,(t=>t===Rn||MD(e,t)));if(32&t.flags||QS(e,t))return!0;if(1024&e.flags){const n=e.value;return!!(64&t.flags&&LD(n,!1)||128&t.flags&&xT(n,!1)||8204&t.flags&&n===t.intrinsicName||8388608&t.flags&&RD(e,t)||4194304&t.flags&&JD(e,t))}if(4194304&e.flags){const n=e.texts;return 2===n.length&&""===n[0]&&""===n[1]&&QS(e.types[0],t)}return!1}function BD(e,t){return 1024&e.flags?zD([e.value],s,t):4194304&e.flags?ee(e.texts,t.texts)?N(e.types,((e,n)=>{return QS(Bf(e),Bf(t.types[n]))?e:12583969&(r=e).flags?r:Ex(["",""],[r]);var r})):zD(e.texts,e.types,t):void 0}function JD(e,t){const n=BD(e,t);return!!n&&h(n,((e,n)=>MD(e,t.types[n])))}function zD(e,t,n){const r=e.length-1,i=e[0],o=e[r],a=n.texts,s=a.length-1,c=a[0],l=a[s];if(0===r&&i.length0){let t=d,r=p;for(;r=f(t).indexOf(n,r),!(r>=0);){if(t++,t===e.length)return;r=0}m(t,r),p+=n.length}else if(p{if(!(1024&e.flags))return;const n=mc(e.value),r=na(4,n);r.links.type=At,e.symbol&&(r.declarations=e.symbol.declarations,r.valueDeclaration=e.symbol.valueDeclaration),t.set(n,r)}));const n=32&e.flags?[fy(rn,In,!1)]:s;return Ys(void 0,t,s,s,n)}(t),a.type,256)}else if(33554432&t.flags&&33554432&a.flags)p(t.objectType,a.objectType),p(t.indexType,a.indexType);else if(8388608&t.flags&&8388608&a.flags)t.symbol===a.symbol&&p(t.type,a.type);else if(16777216&t.flags)p(t.baseType,a),f(Gy(t),a,4);else if(67108864&a.flags)m(t,a,D);else if(402653184&a.flags)T(t,a.types,a.flags);else if(134217728&t.flags){const e=t.types;for(const t of e)p(t,a)}else if(4194304&a.flags)!function(e,t){const n=BD(e,t),r=t.types;if(n||h(t.texts,(e=>0===e.length)))for(let e=0;ee|t.flags),0);if(!(32&r)){const n=t.value;67648&r&&!LD(n,!0)&&(r&=-67649),4224&r&&!xT(n,!0)&&(r&=-4225);const o=Ce(e,((e,i)=>i.flags&r?32&e.flags?e:32&i.flags?t:4194304&e.flags?e:4194304&i.flags&&JD(t,i)?t:8388608&e.flags?e:8388608&i.flags&&n===Ix(i.symbol,n)?t:1024&e.flags?e:1024&i.flags&&i.value===n?i:64&e.flags?e:64&i.flags?Zk(+n):65536&e.flags?e:65536&i.flags?Zk(+n):2048&e.flags?e:2048&i.flags&&i.value===+n?i:128&e.flags?e:128&i.flags?jD(n):4096&e.flags?e:4096&i.flags&&yT(i.value)===n?i:256&e.flags?e:256&i.flags?"true"===n?un:"false"===n?cn:fn:8192&e.flags?e:8192&i.flags&&i.intrinsicName===n?i:4&e.flags?e:4&i.flags&&i.intrinsicName===n?i:8&e.flags?e:8&i.flags&&i.intrinsicName===n?i:e:e),hn);if(!(262144&o.flags)){p(o,i);continue}}}}p(t,i)}}(t,a);else{if(uf(t=zm(t))&&uf(a)&&m(t,a,F),!(512&r&&401080320&t.flags)){const e=ym(t);if(e!==t&&!(269484032&e.flags))return p(e,a);t=e}269484032&t.flags&&m(t,a,E)}else v(Ay(t),Ay(a),OC(t.target))}}}function f(e,t,n){const i=r;r|=n,p(e,t),r=i}function m(e,t,n){const r=e.id+","+t.id,i=a&&a.get(r);if(void 0!==i)return void(u=Math.min(u,i));(a||(a=new Map)).set(r,-1);const o=u;u=2048;const s=d;(c??(c=[])).push(e),(l??(l=[])).push(t),KC(e,c,c.length,2)&&(d|=1),KC(t,l,l.length,2)&&(d|=2),3!==d?n(e,t):u=-1,l.pop(),c.pop(),d=s,a.set(r,u),u=Math.min(u,o)}function g(e,t,n){let r,i;for(const o of t)for(const t of e)n(t,o)&&(p(t,o),r=ce(r,t),i=ce(i,o));return[r?C(e,(e=>!k(r,e))):e,i?C(t,(e=>!k(i,e))):t]}function v(e,t,n){const r=e.length!!S(e)));if(!e||t&&e!==t)return;t=e}return t}(t);return void(n&&f(e,n,1))}if(1===i&&!s){const e=A(o,((e,t)=>a[t]?void 0:e));if(e.length)return void p(Xb(e),n)}}else for(const n of t)S(n)?i++:p(e,n);if(268435456&n?1===i:i>0)for(const n of t)S(n)&&f(e,n,1)}function w(e,t,n){if(134217728&n.flags||268435456&n.flags){let r=!1;for(const i of n.types)r=w(e,t,i)||r;return r}if(2097152&n.flags){const r=S(n.type);if(r&&!r.isFixed&&!OD(e)){const i=DD(e,t,n);i&&f(i,r.typeParameter,262144&yx(e)?16:8)}return!0}if(524288&n.flags){f(Dx(e,e.pattern?2:0),n,32);const r=vf(n);if(r&&w(e,t,r))return!0;return p(Xb($(N(yf(e),eu),N(Pg(e),(e=>e!==yi?e.type:hn)))),Vp(t)),!0}return!1}function D(e,t){if(67108864&e.flags)p(e.checkType,t.checkType),p(e.extendsType,t.extendsType),p(fk(e),fk(t)),p(mk(e),mk(t));else{!function(e,t,n,i){const o=r;r|=i,T(e,t,n),r=o}(e,[fk(t),mk(t)],t.flags,i?64:0)}}function F(e,t){p(Jp(e),Jp(t)),p(Vp(e),Vp(t));const n=Up(e),r=Up(t);n&&r&&p(n,r)}function E(e,t){var n,r;if(4&yx(e)&&4&yx(t)&&(e.target===t.target||iw(e)&&iw(t)))v(Ay(e),Ay(t),OC(e.target));else{if(uf(e)&&uf(t)&&F(e,t),32&yx(t)&&!t.declaration.nameType){if(w(e,t,Jp(t)))return}if(!function(e,t){return Fw(e)&&Fw(t)?function(e,t){return!(8&t.target.combinedFlags)&&t.target.minLength>e.target.minLength||!(12&t.target.combinedFlags)&&(!!(12&e.target.combinedFlags)||t.target.fixedLength(12&e)==(12&o.target.elementFlags[t]))))){for(let t=0;t0){const e=mg(t,n),o=e.length;for(let t=0;tGS(t,e)?t:e))}function QD(e,t){const n=function(e){if(e.length>1){const t=C(e,GD);if(t.length){const n=Xb(t,2);return $(C(e,(e=>!GD(e))),[n])}}return e}(e.candidates),r=function(e){const t=bf(e);return!!t&&mR(67108864&t.flags?Sf(t):t,14811132)}(e.typeParameter)||xf(e.typeParameter),i=!r&&e.topLevel&&(e.isFixed||!function(e,t){const n=Ih(e);return n?!!n.type&&wD(n.type,t):wD(jh(e),t)}(t,e.typeParameter)),o=r?E(n,Hk):i?E(n,Tw):n;return lD(416&e.priority?Xb(o,2):rw(o))}function YD(e,t){const n=e.inferences[t];if(!n.inferredType){let r,i;if(e.signature){const o=n.candidates?QD(n,e.signature):void 0,a=n.contraCandidates?XD(n):void 0;if(o||a){const t=o&&(!a||!(262145&o.flags)&&V(n.contraCandidates,(e=>QS(o,e)))&&h(e.inferences,(e=>e!==n&&bf(e.typeParameter)!==n.typeParameter||h(e.candidates,(e=>QS(e,o))))));r=t?o:a,i=t?a:o}else if(1&e.flags)r=yn;else{const i=Hf(n.typeParameter);i&&(r=LS(i,xS(function(e,t){const n=e.inferences.slice(t);return dS(N(n,(e=>e.typeParameter)),N(n,(()=>qt)))}(e,t),e.nonFixingMapper)))}}else r=AD(n);n.inferredType=r||ZD(!!(2&e.flags));const o=bf(n.typeParameter);if(o){const t=LS(o,e.nonFixingMapper);if(r){const i=Bd(t,r);if(!e.compareTypes(r,i)){const t=128===n.priority?aE(r,(t=>!!e.compareTypes(t,i))):hn;r=262144&t.flags?void 0:t}}r||(r=i&&e.compareTypes(i,Bd(t,i))?i:t),n.inferredType=r}!function(){for(let e=Vi-1;e>=0;e--)Ui[e].clear()}()}return n.inferredType}function ZD(e){return e?At:qt}function eN(e){const t=[];for(let n=0;nhE(e)||yE(e)||$N(e))))}function iN(e,t,n,r){switch(e.kind){case 80:if(!dv(e)){const i=nN(e);return i!==Dt?`${r?cJ(r):"-1"}|${zb(t)}|${zb(n)}|${lJ(i)}`:void 0}case 110:return`0|${r?cJ(r):"-1"}|${zb(t)}|${zb(n)}`;case 236:case 218:return iN(e.expression,t,n,r);case 167:const i=iN(e.left,t,n,r);return i&&`${i}.${e.right.escapedText}`;case 212:case 213:const o=aN(e);if(void 0!==o){const i=iN(e.expression,t,n,r);return i&&`${i}.${o}`}if(hF(e)&&_N(e.argumentExpression)){const i=nN(e.argumentExpression);if(AP(i)||OP(i)&&!vP(i)){const o=iN(e.expression,t,n,r);return o&&`${o}.@${lJ(i)}`}}break;case 207:case 208:case 263:case 219:case 220:case 175:return`${cJ(e)}#${zb(t)}`}}function oN(e,t){switch(t.kind){case 218:case 236:return oN(e,t.expression);case 227:return ob(t)&&oN(e,t.left)||PF(t)&&28===t.operatorToken.kind&&oN(e,t.right)}switch(e.kind){case 237:return 237===t.kind&&e.keywordToken===t.keywordToken&&e.name.escapedText===t.name.escapedText;case 80:case 81:return dv(e)?110===t.kind:80===t.kind&&nN(e)===nN(t)||(pE(t)||pF(t))&&Js(nN(e))===Fs(t);case 110:return 110===t.kind;case 108:return 108===t.kind;case 236:case 218:case 239:return oN(e.expression,t);case 212:case 213:const n=aN(e);if(void 0!==n){const r=Cx(t)?aN(t):void 0;if(void 0!==r)return r===n&&oN(e.expression,t.expression)}if(hF(e)&&hF(t)&&_N(e.argumentExpression)&&_N(t.argumentExpression)){const n=nN(e.argumentExpression);if(n===nN(t.argumentExpression)&&(AP(n)||OP(n)&&!vP(n)))return oN(e.expression,t.expression)}break;case 167:return Cx(t)&&e.right.escapedText===aN(t)&&oN(e.left,t.expression);case 227:return PF(e)&&28===e.operatorToken.kind&&oN(e.right,t)}return!1}function aN(e){if(gF(e))return e.name.escapedText;if(hF(e))return Rh((t=e).argumentExpression)?mc(t.argumentExpression.text):cb(t.argumentExpression)?function(e){const t=ss(e,111551,!0);if(!t||!(AP(t)||8&t.flags))return;const n=t.valueDeclaration;if(void 0===n)return;const r=N_(n);if(r){const e=sN(r);if(void 0!==e)return e}if(Au(n)&&va(n,e)){const e=Wm(n);if(e){const t=S_(n.parent)?Il(n):YR(e);return t&&sN(t)}if(_P(n))return jp(n.name)}}(t.argumentExpression):void 0;var t;if(pF(e)){const t=Pl(e);return t?mc(t):void 0}return NN(e)?""+e.parent.parameters.indexOf(e):void 0}function sN(e){return 16384&e.flags?e.escapedName:3072&e.flags?mc(""+e.value):void 0}function cN(e,t){for(;Cx(e);)if(oN(e=e.expression,t))return!0;return!1}function lN(e,t){for(;yl(e);)if(oN(e=e.expression,t))return!0;return!1}function dN(e,t){if(e&&134217728&e.flags){const n=jm(e,t);if(n&&2&ox(n))return void 0===n.links.isDiscriminantProperty&&(n.links.isDiscriminantProperty=!(192&~n.links.checkFlags||Vx(eu(n)))),!!n.links.isDiscriminantProperty}return!1}function pN(e,t){let n;for(const r of e)if(dN(t,r.escapedName)){if(n){n.push(r);continue}n=[r]}return n}function fN(e){const t=e.types;if(!(t.length<10||32768&yx(e)||T(t,(e=>!!(119013376&e.flags)))<10)){if(void 0===e.keyPropertyName){const n=_(t,(e=>119013376&e.flags?_(yf(e),(e=>hw(eu(e))?e.escapedName:void 0)):void 0)),r=n&&function(e,t){const n=new Map;let r=0;for(const i of e)if(387448832&i.flags){const e=pl(i,t);if(!e||!bw(e))return;let o=!1;eE(e,(e=>{const t=zb(Hk(e)),r=n.get(t);r?r!==qt&&(n.set(t,qt),o=!0):n.set(t,i)})),o||r++}return r>=10&&2*r>=e.length?n:void 0}(t,n);e.keyPropertyName=r?n:"",e.constituentMap=r}return e.keyPropertyName.length?e.keyPropertyName:void 0}}function mN(e,t){var n;const r=null==(n=e.constituentMap)?void 0:n.get(zb(Hk(t)));return r!==qt?r:void 0}function gN(e,t){const n=fN(e),r=n&&pl(t,n);return r&&mN(e,r)}function hN(e,t){return oN(e,t)||cN(e,t)}function yN(e,t){if(e.arguments)for(const n of e.arguments)if(hN(t,n)||lN(n,t))return!0;return!(212!==e.expression.kind||!hN(t,e.expression.expression))}function vN(e){return e.id<=0&&(e.id=ZB,ZB++),e.id}function bN(e,t){if(e===t)return e;if(262144&t.flags)return t;const n=`A${zb(e)},${zb(t)}`;return Bo(n)??zo(n,function(e,t){const n=aE(e,(e=>function(e,t){if(!(134217728&e.flags))return QS(e,t);for(const n of e.types)if(QS(n,t))return!0;return!1}(t,e))),r=8192&t.flags&&Kk(t)?lE(n,$k):n;return QS(t,r)?r:e}(e,t))}function kN(e){if(256&yx(e))return!1;const t=ff(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&GS(e,ir))}function TN(e,t){return YN(e,t)&t}function HN(e,t){return 0!==TN(e,t)}function YN(e,t){401080320&e.flags&&(e=Mf(e)||qt);const n=e.flags;if(8388640&n)return Y?16317953:16776705;if(4195328&n){const t=1024&n&&""===e.value;return Y?t?12123649:7929345:t?12582401:16776705}if(65600&n)return Y?16317698:16776450;if(2048&n){const t=0===e.value;return Y?t?12123394:7929090:t?12582146:16776450}if(128&n)return Y?16317188:16775940;if(4096&n){const t=Lw(e);return Y?t?12122884:7928580:t?12581636:16775940}if(256&n)return Y?16316168:16774920;if(8448&n)return Y?e===cn||e===ln?12121864:7927560:e===cn||e===ln?12580616:16774920;if(1048576&n){return t&(Y?83427327:83886079)?16&yx(e)&&jT(e)?Y?83427327:83886079:kN(e)?Y?7880640:16728e3:Y?7888800:16736160:0}return 16&n?9830144:4&n?26607360:8&n?42917664:16896&n?Y?7925520:16772880:131072&n?Y?7888800:16736160:262144&n?0:134217728&n?Ce(e.types,((e,n)=>e|YN(n,t)),0):268435456&n?function(e,t){const n=mR(e,12713980);let r=0,i=134217727;for(const o of e.types)if(!(n&&1048576&o.flags)){const e=YN(o,t);r|=e,i&=e}return 8256&r|134209471&i}(e,t):83886079}function ZN(e,t){return aE(e,(e=>HN(e,t)))}function tF(e,t){const n=aF(ZN(Y&&2&e.flags?Bn:e,t));if(Y)switch(t){case 524288:return rF(n,65536,131072,33554432,Qt);case 1048576:return rF(n,131072,65536,16777216,Ut);case 2097152:case 4194304:return lE(n,(e=>HN(e,262144)?function(e){return hr||(hr=bv("NonNullable",524288,void 0)||Dt),hr!==Dt?Ry(hr,[e]):ix([e,In])}(e):e))}return n}function rF(e,t,n,r,i){const o=TN(e,50528256);if(!(o&t))return e;const a=Xb([In,i]);return lE(e,(e=>HN(e,t)?ix([e,o&r||!HN(e,n)?In:a]):e))}function aF(e){return e===Bn?qt:e}function lF(e,t){return t?Xb([Dl(e),YR(t)]):e}function _F(e,t){var n;const r=bx(t);if(!lC(r))return Rt;const i=_C(r);return pl(e,i)||CF(null==(n=Bg(e,i))?void 0:n.type)||Rt}function xF(e,t){return oE(e,fw)&&function(e,t){const n=pl(e,""+t);return n||(oE(e,Fw)?Iw(e,t,z.noUncheckedIndexedAccess?Ut:void 0):void 0)}(e,t)||CF(MB(65,e,Ut,void 0))||Rt}function CF(e){return e&&z.noUncheckedIndexedAccess?Xb([e,Wt]):e}function DF(e){return Tb(MB(65,e,Ut,void 0)||Rt)}function EF(e){return 227===e.parent.kind&&e.parent.left===e||251===e.parent.kind&&e.parent.initializer===e}function IF(e){return _F(OF(e.parent),e.name)}function OF(e){const{parent:t}=e;switch(t.kind){case 250:return rn;case 251:return RB(t)||Rt;case 227:return function(e){return 210===e.parent.kind&&EF(e.parent)||304===e.parent.kind&&EF(e.parent.parent)?lF(OF(e),e.right):YR(e.right)}(t);case 221:return Ut;case 210:return function(e,t){return xF(OF(e),e.elements.indexOf(t))}(t,e);case 231:return function(e){return DF(OF(e.parent))}(t);case 304:return IF(t);case 305:return function(e){return lF(IF(e),e.objectAssignmentInitializer)}(t)}return Rt}function BF(e){return ha(e).resolvedType||YR(e)}function JF(e){return 261===e.kind?function(e){return e.initializer?BF(e.initializer):250===e.parent.parent.kind?rn:251===e.parent.parent.kind&&RB(e.parent.parent)||Rt}(e):function(e){const t=e.parent,n=JF(t.parent);return lF(207===t.kind?_F(n,e.propertyName||e.name):e.dotDotDotToken?DF(n):xF(n,t.elements.indexOf(e)),e.initializer)}(e)}function UF(e){switch(e.kind){case 218:return UF(e.expression);case 227:switch(e.operatorToken.kind){case 64:case 76:case 77:case 78:return UF(e.left);case 28:return UF(e.right)}}return e}function VF(e){const{parent:t}=e;return 218===t.kind||227===t.kind&&64===t.operatorToken.kind&&t.left===e||227===t.kind&&28===t.operatorToken.kind&&t.right===e?VF(t):e}function WF(e){return 297===e.kind?Hk(YR(e.expression)):hn}function HF(e){const t=ha(e);if(!t.switchTypes){t.switchTypes=[];for(const n of e.caseBlock.clauses)t.switchTypes.push(WF(n))}return t.switchTypes}function XF(e){if(V(e.caseBlock.clauses,(e=>297===e.kind&&!Ru(e.expression))))return;const t=[];for(const n of e.caseBlock.clauses){const e=297===n.kind?n.expression.text:void 0;t.push(e&&!k(t,e)?e:void 0)}return t}function ZF(e,t){return!!(e===t||262144&e.flags||134217728&t.flags&&function(e,t){if(134217728&e.flags){for(const n of e.types)if(!qb(t.types,n))return!1;return!0}if(98304&e.flags&&Hu(e)===t)return!0;return qb(t.types,e)}(e,t))}function eE(e,t){return 134217728&e.flags?_(e.types,t):t(e)}function iE(e,t){return 134217728&e.flags?V(e.types,t):t(e)}function oE(e,t){return 134217728&e.flags?h(e.types,t):t(e)}function aE(e,t){if(134217728&e.flags){const n=e.types,r=C(n,t);if(r===n)return e;const i=e.origin;let o;if(i&&134217728&i.flags){const e=i.types,a=C(e,(e=>!!(134217728&e.flags)||t(e)));if(e.length-a.length==n.length-r.length){if(1===a.length)return a[0];o=Gb(134217728,a)}}return Zb(r,16809984&e.objectFlags,void 0,void 0,o)}return 262144&e.flags||t(e)?e:hn}function sE(e,t){return aE(e,(e=>e!==t))}function cE(e){return 134217728&e.flags?e.types.length:1}function lE(e,t,n){if(262144&e.flags)return e;if(!(134217728&e.flags))return t(e);const r=e.origin,i=r&&134217728&r.flags?r.types:e.types;let o,a=!1;for(const e of i){const r=134217728&e.flags?lE(e,t,n):t(e);a||(a=e!==r),r&&(o?o.push(r):o=[r])}return a?o&&Xb(o,n?0:1):e}function _E(e,t,n,r){return 134217728&e.flags&&n?Xb(N(e.types,t),1,n,r):lE(e,t)}function uE(e,t){return aE(e,(e=>!!(e.flags&t)))}function dE(e,t){return mR(e,4194528)&&mR(t,12590080)?lE(e,(e=>32&e.flags?uE(t,12583968):qx(e)&&!mR(t,12582944)?uE(t,1024):64&e.flags?uE(t,2112):128&e.flags?uE(t,4224):e)):e}function kE(e){return 0===e.flags}function DE(e){return 0===e.flags?e.type:e}function NE(e,t){return t?{flags:0,type:262144&e.flags?yn:e}:e}function FE(e){return Tt[e.id]||(Tt[e.id]=function(e){const t=$s(256);return t.elementType=e,t}(e))}function PE(e,t){const n=eD(kw(eM(t)));return ZF(n,e.elementType)?e:FE(Xb([e.elementType,n]))}function AE(e){return e.finalArrayType||(e.finalArrayType=262144&(t=e.elementType).flags?mr:Tb(134217728&t.flags?Xb(t.types,2):t));var t}function OE(e){return 256&yx(e)?AE(e):e}function JE(e){return 256&yx(e)?e.elementType:hn}function zE(e){const t=VF(e),n=t.parent,r=gF(n)&&("length"===n.name.escapedText||214===n.parent.kind&&_N(n.name)&&Qh(n.name)),i=213===n.kind&&n.expression===t&&227===n.parent.kind&&64===n.parent.operatorToken.kind&&n.parent.left===n&&!Yg(n.parent)&&gR(YR(n.argumentExpression),67648);return r||i}function qE(e,t){if(8752&(e=Za(e)).flags)return eu(e);if(7&e.flags){if(262144&ox(e)){const t=e.links.syntheticOrigin;if(t&&qE(t))return eu(e)}const r=e.valueDeclaration;if(r){if((pE(n=r)||PN(n)||EN(n)||NN(n))&&(mv(n)||Em(n)&&Pu(n)&&n.initializer&&JT(n.initializer)&&hv(n.initializer)))return eu(e);if(pE(r)&&251===r.parent.parent.kind){const e=r.parent.parent,t=UE(e.expression,void 0);if(t){return MB(e.awaitModifier?15:13,t,Ut,void 0)}}t&&cT(t,Mp(r,ua._0_needs_an_explicit_type_annotation,Ac(e)))}}var n}function UE(e,t){if(!(67108864&e.flags))switch(e.kind){case 80:return qE(Js(nN(e)),t);case 110:return function(e){const t=em(e,!1,!1);if(i_(t)){const e=wh(t);if(e.thisParameter)return qE(e.thisParameter)}if(d_(t.parent)){const e=Fs(t.parent);return Ev(t)?eu(e):rd(e).thisType}}(e);case 108:return bA(e);case 212:{const n=UE(e.expression,t);if(n){const r=e.name;let i;if(uN(r)){if(!n.symbol)return;i=lg(n,Wh(n.symbol,r.escapedText))}else i=lg(n,r.escapedText);return i&&qE(i,t)}return}case 218:return UE(e.expression,t)}}function KE(e){const t=ha(e);let n=t.effectsSignature;if(void 0===n){let r;if(PF(e)){r=bR(mO(e.right))}else 245===e.parent.kind?r=UE(e.expression,void 0):108!==e.expression.kind&&(r=yl(e)?SO(Kw(tM(e.expression),e.expression),e.expression):mO(e.expression));const i=mg(r&&ym(r)||qt,0),o=1!==i.length||i[0].typeParameters?V(i,QE)?$L(e):void 0:i[0];n=t.effectsSignature=o&&QE(o)?o:mi}return n===mi?void 0:n}function QE(e){return!!(Ih(e)||e.declaration&&262144&(Mh(e.declaration)||qt).flags)}function tP(e){const t=iP(e,!1);return si=e,ci=t,t}function rP(e){const t=sh(e,!0);return 97===t.kind||227===t.kind&&(56===t.operatorToken.kind&&(rP(t.left)||rP(t.right))||57===t.operatorToken.kind&&rP(t.left)&&rP(t.right))}function iP(e,t){for(;;){if(e===si)return ci;const n=e.flags;if(4096&n){if(!t){const t=vN(e),n=_o[t];return void 0!==n?n:_o[t]=iP(e,!0)}t=!1}if(368&n)e=e.antecedent;else if(512&n){const t=KE(e.node);if(t){const n=Ih(t);if(n&&3===n.kind&&!n.type){const t=e.node.arguments[n.parameterIndex];if(t&&rP(t))return!1}if(262144&jh(t).flags)return!1}e=e.antecedent}else{if(4&n)return V(e.antecedent,(e=>iP(e,!1)));if(8&n){const t=e.antecedent;if(void 0===t||0===t.length)return!1;e=t[0]}else{if(!(128&n)){if(1024&n){si=void 0;const t=e.node.target,n=t.antecedent;t.antecedent=e.node.antecedents;const r=iP(e.antecedent,!1);return t.antecedent=n,r}return!(1&n)}{const t=e.node;if(t.clauseStart===t.clauseEnd&&tR(t.switchStatement))return!1;e=e.antecedent}}}}}function dP(e,t){for(;;){const n=e.flags;if(4096&n){if(!t){const t=vN(e),n=uo[t];return void 0!==n?n:uo[t]=dP(e,!0)}t=!1}if(496&n)e=e.antecedent;else if(512&n){if(108===e.node.expression.kind)return!0;e=e.antecedent}else{if(4&n)return h(e.antecedent,(e=>dP(e,!1)));if(!(8&n)){if(1024&n){const t=e.node.target,n=t.antecedent;t.antecedent=e.node.antecedents;const r=dP(e.antecedent,!1);return t.antecedent=n,r}return!!(1&n)}e=e.antecedent[0]}}}function gP(e){switch(e.kind){case 110:return!0;case 80:if(!dv(e)){const t=nN(e);return AP(t)||OP(t)&&!vP(t)||!!t.valueDeclaration&&SF(t.valueDeclaration)}break;case 212:case 213:return gP(e.expression)&&cR(ha(e).resolvedSymbol||Dt);case 207:case 208:const t=Zh(e.parent);return NN(t)||BT(t)?!SP(t):pE(t)&&dU(t)}return!1}function hP(e,t,n=t,r,i=(t=>null==(t=et(e,Lg))?void 0:t.flowNode)()){let o,a=!1,s=0;if(Ai)return Rt;if(!i)return t;Ii++;const c=Pi,l=DE(d(i));Pi=c;const _=256&yx(l)&&zE(e)?mr:OE(l);return _===bn||e.parent&&236===e.parent.kind&&!(262144&_.flags)&&262144&ZN(_,2097152).flags?t:_;function u(){return a?o:(a=!0,o=iN(e,t,n,r))}function d(i){var o;if(2e3===s)return null==(o=$n)||o.instant($n.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:i.id}),Ai=!0,function(e){const t=dc(e,__),n=bd(e),r=Gp(n,t.statements.pos);wo.add(Qx(n,r.start,r.length,ua.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}(e),Rt;let a;for(s++;;){const o=i.flags;if(4096&o){for(let e=c;e=0&&n.parameterIndex298===e.kind));if(n===r||o>=n&&oTN(e,t)===t))}return Xb(N(i.slice(n,r),(t=>t?V(e,t):hn)))}(i,t.node);else if(112===n.kind)i=function(e,{switchStatement:t,clauseStart:n,clauseEnd:r}){const i=b(t.caseBlock.clauses,(e=>298===e.kind)),o=n===r||i>=n&&i297===t.kind?Q(e,t.expression,!0):hn)))}(i,t.node);else{Y&&(lN(n,e)?i=q(i,t.node,(e=>!(262148&e.flags))):222===n.kind&&lN(n.expression,e)&&(i=q(i,t.node,(e=>!(262144&e.flags||1024&e.flags&&"undefined"===e.value)))));const r=D(n,i);r&&(i=function(e,t,n){if(n.clauseStartmN(e,t)||qt)));if(t!==qt)return t}return F(e,t,(e=>U(e,n)))}(i,r,t.node))}return NE(i,kE(r))}function T(e){const r=[];let i,o=!1,a=!1;for(const s of e.antecedent){if(!i&&128&s.flags&&s.node.clauseStart===s.node.clauseEnd){i=s;continue}const e=d(s),c=DE(e);if(c===t&&t===n)return c;se(r,c),ZF(c,n)||(o=!0),kE(e)&&(a=!0)}if(i){const e=d(i),s=DE(e);if(!(262144&s.flags||k(r,s)||tR(i.node.switchStatement))){if(s===t&&t===n)return s;r.push(s),ZF(s,n)||(o=!0),kE(e)&&(a=!0)}}return NE(w(r,o?2:1),a)}function C(e){const r=vN(e),i=io[r]||(io[r]=new Map),o=u();if(!o)return t;const a=i.get(o);if(a)return a;for(let t=Fi;t{const t=ml(e,r)||qt;return!(262144&t.flags)&&!(262144&s.flags)&&tT(s,t)}))}function P(e,t,n,r,i){if((37===n||38===n)&&134217728&e.flags){const o=fN(e);if(o&&o===aN(t)){const t=mN(e,YR(r));if(t)return n===(i?37:38)?t:hw(pl(t,o)||qt)?sE(e,t):e}}return F(e,t,(e=>B(e,n,r,i)))}function A(t,n,r){if(oN(e,n))return tF(t,r?4194304:8388608);Y&&r&&lN(n,e)&&(t=tF(t,2097152));const i=D(n,t);return i?F(t,i,(e=>ZN(e,r?4194304:8388608))):t}function O(e,t,n){const r=lg(e,t);return r?!!(16777216&r.flags||48&ox(r))||n:!!Bg(e,t)||!n}function L(e,t,n){const r=_C(t);if(iE(e,(e=>O(e,r,!0))))return aE(e,(e=>O(e,r,n)));if(n){const n=(Yr||(Yr=gv("Record",2,!0)||Dt),Yr===Dt?void 0:Yr);if(n)return ix([e,Ry(n,[t,qt])])}return e}function j(e,t,n,r,i){return Q(e,t,i=i!==(112===n.kind)!=(38!==r&&36!==r))}function R(t,n,r){switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return A(Q(t,n.right,r),n.left,r);case 35:case 36:case 37:case 38:const i=n.operatorToken.kind,o=UF(n.left),a=UF(n.right);if(222===o.kind&&Ru(a))return J(t,o,i,a,r);if(222===a.kind&&Ru(o))return J(t,a,i,o,r);if(oN(e,o))return B(t,i,a,r);if(oN(e,a))return B(t,i,o,r);Y&&(lN(o,e)?t=M(t,i,a,r):lN(a,e)&&(t=M(t,i,o,r)));const s=D(o,t);if(s)return P(t,s,i,a,r);const c=D(a,t);if(c)return P(t,c,i,o,r);if($(o))return H(t,i,a,r);if($(a))return H(t,i,o,r);if(s_(a)&&!Cx(o))return j(t,o,a,i,r);if(s_(o)&&!Cx(a))return j(t,a,o,i,r);break;case 104:return function(t,n,r){const i=UF(n.left);if(!oN(e,i))return r&&Y&&lN(i,e)?tF(t,2097152):t;const o=n.right,a=YR(o);if(!YS(a,rr))return t;const s=KE(n),c=s&&Ih(s);if(c&&1===c.kind&&0===c.parameterIndex)return G(t,c.type,r,!0);if(!YS(a,ir))return t;const l=lE(a,K);if(gl(t)&&(l===rr||l===ir)||!r&&(!(1048576&l.flags)||zT(l)))return t;return G(t,l,r,!0)}(t,n,r);case 103:if(uN(n.left))return function(t,n,r){const i=UF(n.right);if(!oN(e,i))return t;_n.assertNode(n.left,uN);const o=EO(n.left);if(void 0===o)return t;const a=o.parent,s=Pv(_n.checkDefined(o.valueDeclaration,"should always have a declaration"))?eu(a):rd(a);return G(t,s,r,!0)}(t,n,r);const l=UF(n.right);if(Xw(t)&&Cx(e)&&oN(e.expression,l)){const i=YR(n.left);if(lC(i)&&aN(e)===_C(i))return ZN(t,r?524288:65536)}if(oN(e,l)){const e=YR(n.left);if(lC(e))return L(t,e,r)}break;case 28:return Q(t,n.right,r);case 56:return r?Q(Q(t,n.left,!0),n.right,!0):Xb([Q(t,n.left,!1),Q(t,n.right,!1)]);case 57:return r?Xb([Q(t,n.left,!0),Q(t,n.right,!0)]):Q(Q(t,n.left,!1),n.right,!1)}return t}function M(e,t,n,r){const i=35===t||37===t,o=35===t||36===t?12:4,a=YR(n);return i!==r&&oE(a,(e=>!!(e.flags&o)))||i===r&&oE(a,(e=>!(e.flags&(3|o))))?tF(e,2097152):e}function B(e,t,n,r){if(1&e.flags)return e;36!==t&&38!==t||(r=!r);const i=YR(n),o=35===t||36===t;if(12&i.flags){if(!Y)return e;return tF(e,o?r?262144:2097152:8&i.flags?r?131072:1048576:r?65536:524288)}if(r){if(!o&&(2&e.flags||iE(e,zT))){if(12845052&i.flags||zT(i))return i;if(1048576&i.flags)return xn}return dE(aE(e,(e=>{return tT(e,i)||o&&(t=i,!!(8288&e.flags)&&!!(352&t.flags));var t})),i)}return hw(i)?aE(e,(e=>!(yw(e)&&tT(e,i)))):e}function J(t,n,r,i,o){36!==r&&38!==r||(o=!o);const a=UF(n.expression);if(!oN(e,a)){Y&&lN(a,e)&&o===("undefined"!==i.text)&&(t=tF(t,2097152));const n=D(a,t);return n?F(t,n,(e=>z(e,i,o))):t}return z(t,i,o)}function z(e,t,n){return n?V(e,t.text):tF(e,tJ.get(t.text)||32768)}function q(e,{switchStatement:t,clauseStart:n,clauseEnd:r},i){return n!==r&&h(HF(t).slice(n,r),i)?ZN(e,2097152):e}function U(e,{switchStatement:t,clauseStart:n,clauseEnd:r}){const i=HF(t);if(!i.length)return e;const o=i.slice(n,r),a=n===r||k(o,hn);if(2&e.flags&&!a){let t;for(let n=0;ntT(s,e))),s);if(!a)return c;const l=aE(e,(e=>!(yw(e)&&k(i,4&e.flags?Ut:Hk(function(e){return 268435456&e.flags&&y(e.types,hw)||e}(e)),((e,t)=>hw(e)&&tT(e,t))))));return 262144&c.flags?l:Xb([c,l])}function V(e,t){switch(t){case"string":return W(e,rn,1);case"number":return W(e,an,2);case"bigint":return W(e,sn,4);case"boolean":return W(e,fn,8);case"symbol":return W(e,mn,16);case"object":return 1&e.flags?e:Xb([W(e,xn,32),W(e,Qt,131072)]);case"function":return 1&e.flags?e:W(e,ir,64);case"undefined":return W(e,Ut,65536)}return W(e,xn,128)}function W(e,t,n){return lE(e,(e=>pC(e,t,Po)?HN(e,n)?e:hn:GS(t,e)?t:HN(e,n)?ix([e,t]):hn))}function $(t){return(gF(t)&&"constructor"===hc(t.name)||hF(t)&&Ru(t.argumentExpression)&&"constructor"===t.argumentExpression.text)&&oN(e,t.expression)}function H(e,t,n,r){if(r?35!==t&&37!==t:36!==t&&38!==t)return e;const i=YR(n);if(!pq(i)&&!gu(i))return e;const o=lg(i,"prototype");if(!o)return e;const a=eu(o),s=gl(a)?void 0:a;return s&&s!==rr&&s!==ir?gl(e)?s:aE(e,(e=>function(e,t){if(1048576&e.flags&&1&yx(e)||1048576&t.flags&&1&yx(t))return e.symbol===t.symbol;return GS(e,t)}(e,s))):e}function K(e){const t=pl(e,"prototype");if(t&&!gl(t))return t;const n=mg(e,1);return n.length?Xb(N(n,(e=>jh(ay(e))))):In}function G(e,t,n,r){const i=134217728&e.flags?`N${zb(e)},${zb(t)},${(n?1:0)|(r?2:0)}`:void 0;return Bo(i)??zo(i,function(e,t,n,r){if(!n){if(e===t)return hn;if(r)return aE(e,(e=>!YS(e,t)));const n=G(e=2&e.flags?Bn:e,t,!0,!1);return aF(aE(e,(e=>!ZF(e,n))))}if(3&e.flags)return t;if(e===t)return t;const i=r?YS:GS,o=134217728&e.flags?fN(e):void 0,a=lE(t,(t=>{const n=o&&pl(t,o),a=lE(n&&mN(e,n)||e,r?e=>YS(e,t)?e:YS(t,e)?t:hn:e=>XS(e,t)?e:XS(t,e)?t:GS(e,t)?e:GS(t,e)?t:hn);return 262144&a.flags?lE(e,(e=>mR(e,132644864)&&i(t,Mf(e)||qt)?ix([e,t]):hn)):a}));return 262144&a.flags?GS(t,e)?t:QS(e,t)?e:QS(t,e)?t:ix([e,t]):a}(e,t,n,r))}function X(t,n,r,i){if(n.type&&(!gl(t)||n.type!==rr&&n.type!==ir)){const o=function(e,t){if(1===e.kind||3===e.kind)return t.arguments[e.parameterIndex];const n=sh(t.expression);return Cx(n)?sh(n.expression):void 0}(n,r);if(o){if(oN(e,o))return G(t,n.type,i,!1);Y&&lN(o,e)&&(i&&!HN(n.type,65536)||!i&&oE(n.type,gO))&&(t=tF(t,2097152));const r=D(o,t);if(r)return F(t,r,(e=>G(e,n.type,i,!1)))}}return t}function Q(t,n,r){if(bl(n)||PF(n.parent)&&(61===n.parent.operatorToken.kind||78===n.parent.operatorToken.kind)&&n.parent.left===n)return function(t,n,r){if(oN(e,n))return tF(t,r?2097152:262144);const i=D(n,t);if(i)return F(t,i,(e=>ZN(e,r?2097152:262144)));return t}(t,n,r);switch(n.kind){case 80:if(!oN(e,n)&&I<5){const i=nN(n);if(AP(i)){const n=i.valueDeclaration;if(n&&pE(n)&&!n.type&&n.initializer&&gP(e)){I++;const e=Q(t,n.initializer,r);return I--,e}}}case 110:case 108:case 212:case 213:return A(t,n,r);case 214:return function(t,n,r){if(yN(n,e)){const e=r||!hl(n)?KE(n):void 0,i=e&&Ih(e);if(i&&(0===i.kind||1===i.kind))return X(t,i,n,r)}if(Xw(t)&&Cx(e)&&gF(n.expression)){const i=n.expression;if(oN(e.expression,UF(i.expression))&&_N(i.name)&&"hasOwnProperty"===i.name.escapedText&&1===n.arguments.length){const i=n.arguments[0];if(Ru(i)&&aN(e)===mc(i.text))return ZN(t,r?524288:65536)}}return t}(t,n,r);case 218:case 236:case 239:return Q(t,n.expression,r);case 227:return R(t,n,r);case 225:if(54===n.operator)return Q(t,n.operand,!r)}return t}}function yP(e){return dc(e.parent,(e=>i_(e)&&!om(e)||269===e.kind||308===e.kind||173===e.kind))}function vP(e){return!bP(e,void 0)}function bP(e,t){const n=dc(e.valueDeclaration,DP);if(!n)return!1;const r=ha(n);return 131072&r.flags||(r.flags|=131072,dc(n.parent,(e=>DP(e)&&!!(131072&ha(e).flags)))||PP(n)),!e.lastAssignmentPos||t&&Math.abs(e.lastAssignmentPos)233!==e.kind&&wP(e.name)))}function DP(e){return a_(e)||uP(e)}function PP(e){switch(e.kind){case 80:const t=Qg(e);if(0!==t){const n=nN(e),r=1===t||void 0!==n.lastAssignmentPos&&n.lastAssignmentPos<0;if(OP(n)){if(void 0===n.lastAssignmentPos||Math.abs(n.lastAssignmentPos)!==Number.MAX_VALUE){const t=dc(e,DP),r=dc(n.valueDeclaration,DP);n.lastAssignmentPos=t===r?function(e,t){let n=e.pos;for(;e&&e.pos>t.pos;){switch(e.kind){case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 255:case 256:case 259:case 264:n=e.end}e=e.parent}return n}(e,n.valueDeclaration):Number.MAX_VALUE}r&&n.lastAssignmentPos>0&&(n.lastAssignmentPos*=-1)}}return;case 282:const n=e.parent.parent,r=e.propertyName||e.name;if(!e.isTypeOnly&&!n.isTypeOnly&&!n.moduleSpecifier&&11!==r.kind){const e=ss(r,111551,!0,!0);if(e&&OP(e)){const t=void 0!==e.lastAssignmentPos&&e.lastAssignmentPos<0?-1:1;e.lastAssignmentPos=t*Number.MAX_VALUE}}return;case 265:case 266:case 267:return}x_(e)||rO(e,PP)}function AP(e){return 3&e.flags&&!!(6&lO(e))}function OP(e){const t=e.valueDeclaration&&Zh(e.valueDeclaration);return!!t&&(NN(t)||pE(t)&&(aP(t.parent)||LP(t)))}function LP(e){return!!(1&e.parent.flags)&&!(32&oc(e)||244===e.parent.parent.kind&&Yp(e.parent.parent.parent))}function jP(e,t){const n=Y&&170===t.kind&&t.initializer&&HN(e,16777216)&&!function(e){const t=ha(e);if(void 0===t.parameterInitializerContainsUndefined){if(!tl(e,8))return V_(e.symbol),!0;const n=!!HN(jR(e,0),16777216);if(!sl())return V_(e.symbol),!0;t.parameterInitializerContainsUndefined??(t.parameterInitializerContainsUndefined=n)}return t.parameterInitializerContainsUndefined}(t);return n?ZN(e,524288):e}function RP(e){return 268435456&e.flags?V(e.types,RP):!!(132644864&e.flags&&134217740&Bf(e).flags)}function MP(e){return 268435456&e.flags?V(e.types,MP):!(!(132644864&e.flags)||mR(Bf(e),12))}function JP(e,t,n){$y(e)&&(e=e.baseType);const r=!(n&&2&n)&&iE(e,RP)&&(function(e,t){const n=t.parent;return 212===n.kind||167===n.kind||214===n.kind&&n.expression===t||215===n.kind&&n.expression===t||213===n.kind&&n.expression===t&&!(iE(e,MP)&&$x(YR(n.argumentExpression)))}(e,t)||function(e,t){const n=(_N(e)||gF(e)||hF(e))&&!((HE(e.parent)||$E(e.parent))&&e.parent.tagName===e)&&aI(e,t&&32&t?8:void 0);return n&&!Vx(n)}(t,n));return r?lE(e,Bf):e}function zP(e){return!!dc(e,(e=>{const t=e.parent;return void 0===t?"quit":jE(t)?t.expression===e&&cb(e):!!BE(t)&&(t.name===e||t.propertyName===e)}))}function qP(e,t,n,r){if($e&&(!(33554432&e.flags)||EN(e)||PN(e)))switch(t){case 1:return VP(e);case 2:return $P(e,n,r);case 3:return GP(e);case 4:return QP(e);case 5:return ZP(e);case 6:return tA(e);case 7:return nA(e);case 8:return rA(e);case 0:if(_N(e)&&(bm(e)||cP(e.parent)||TE(e.parent)&&e.parent.moduleReference===e)&&dA(e)){if(O_(e.parent)){if((gF(e.parent)?e.parent.expression:e.parent.left)!==e)return}return void VP(e)}if(O_(e)){let t=e;for(;O_(t);){if(wf(t))return;t=t.parent}return $P(e)}if(jE(e))return GP(e);if(xu(e)||XE(e))return QP(e);if(TE(e))return Dm(e)||oz(e)?tA(e):void 0;if(BE(e))return nA(e);if((a_(e)||AN(e))&&ZP(e),!z.emitDecoratorMetadata)return;if(!(EI(e)&&Rv(e)&&e.modifiers&&dm(W,e,e.parent,e.parent.parent)))return;return rA(e);default:_n.assertNever(t,`Unhandled reference hint: ${t}`)}}function VP(e){const t=nN(e);t&&t!==ze&&t!==Dt&&!dv(e)&&iA(t,e)}function $P(e,t,n){const r=gF(e)?e.expression:e.left;if(_v(r)||!_N(r))return;const i=nN(r);if(!i||i===Dt)return;if(Ck(z)||Ak(z)&&zP(e))return void iA(i,e);const o=n||IR(r);if(gl(o)||o===yn)return void iA(i,e);let a=t;if(!a&&!n){const t=gF(e)?e.name:e.right,n=uN(t)&&NO(t.escapedText,t),r=ym(0!==Qg(e)||DO(e)?lD(o):o);a=uN(t)?n&&PO(r,n)||void 0:lg(r,t.escapedText)}a&&(nq(a)||8&a.flags&&307===e.parent.kind)||iA(i,e)}function GP(e){if(_N(e.expression)){const t=e.expression,n=Js(ss(t,-1,!0,!0,e));n&&iA(n,t)}}function QP(e){if(!VI(e)){const t=wo&&2===z.jsx?ua.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:void 0,n=qo(e),r=xu(e)?e.tagName:e,i=1!==z.jsx&&3!==z.jsx;let o;if(XE(e)&&"null"===n||(o=Ge(r,n,i?111551:111167,t,!0)),o&&(o.isReferenced=-1,$e&&2097152&o.flags&&!is(o)&&oA(o)),XE(e)){const n=Cq(bd(e));if(n){const e=lb(n).escapedText;Ge(r,e,i?111551:111167,t,!0)}}}}function ZP(e){if(q<2&&2&Lh(e)){const n=hv(e);sA((t=n)&&_m(t),!1)}var t}function tA(e){Fv(e,32)&&aA(e)}function nA(e){if(e.parent.parent.moduleSpecifier||e.isTypeOnly||e.parent.parent.isTypeOnly);else{const t=e.propertyName||e.name;if(11===t.kind)return;const n=Ge(t,t.escapedText,2998271,void 0,!0);if(n&&(n===Oe||n===Le||n.declarations&&Yp(ll(n.declarations[0]))));else{const r=n&&(2097152&n.flags?es(n):n);(!r||111551&ts(r))&&(aA(e),VP(t))}}}function rA(e){if(z.emitDecoratorMetadata){const t=y(e.modifiers,FN);if(!t)return;switch(Fq(t,16),e.kind){case 264:const t=ov(e);if(t)for(const e of t.parameters)lA($M(e));break;case 178:case 179:const n=178===e.kind?179:178,r=Ku(Fs(e),n);lA(E_(e)||r&&E_(r));break;case 175:for(const t of e.parameters)lA($M(t));lA(hv(e));break;case 173:lA(mv(e));break;case 170:lA($M(e));const i=e.parent;for(const e of i.parameters)lA($M(e));lA(hv(i))}}}function iA(e,t){if($e&&Qa(e,111551)&&!uv(t)){const n=es(e);1160127&ts(e,!0)&&(Ck(z)||Ak(z)&&zP(t)||!nq(Js(n)))&&oA(e)}}function oA(e){_n.assert($e);const t=ga(e);if(!t.referenced){t.referenced=!0;const n=Pa(e);if(!n)return _n.fail();if(Dm(n)&&111551&ts(Za(e))){VP(lb(n.moduleReference))}}}function aA(e){const t=Fs(e),n=es(t);if(n){(n===Dt||111551&ts(t,!0)&&!nq(n))&&oA(t)}}function sA(e,t){if(!e)return;const n=lb(e),r=2097152|(80===e.kind?788968:1920),i=Ge(n,n.escapedText,r,void 0,!0);if(i&&2097152&i.flags)if($e&&zs(i)&&!nq(es(i))&&!is(i))oA(i);else if(t&&Ck(z)&&kk(z)>=5&&!zs(i)&&!V(i.declarations,ql)){const t=$o(e,ua.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),r=y(i.declarations||s,Aa);r&&cT(t,Mp(r,ua._0_was_imported_here,hc(n)))}}function lA(e){const t=VM(e);t&&t_(t)&&sA(t,!0)}function _A(e,t){if(dv(e))return;if(t===ze){if(jO(e,!0))return void $o(e,ua.arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks);let t=Kf(e);if(t)for(q<2&&(220===t.kind?$o(e,ua.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression):Fv(t,1024)&&$o(e,ua.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method)),ha(t).flags|=512;t&&TF(t);)t=Kf(t),t&&(ha(t).flags|=512);return}const n=Js(t),r=cz(n,e);Yo(r)&&Rx(e,r)&&r.declarations&&ta(e,r.declarations,e.escapedText);const i=n.valueDeclaration;if(i&&32&n.flags&&d_(i)&&i.name!==e){let t=em(e,!1,!1);for(;308!==t.kind&&t.parent!==i;)t=em(t,!1,!1);308!==t.kind&&(ha(i).flags|=262144,ha(t).flags|=262144,ha(e).flags|=536870912)}!function(e,t){if(q>=2||!(34&t.flags)||!t.valueDeclaration||uP(t.valueDeclaration)||300===t.valueDeclaration.parent.kind)return;const n=Ep(t.valueDeclaration),r=function(e,t){return!!dc(e,(e=>e===t?"quit":i_(e)||e.parent&&PN(e.parent)&&!Pv(e.parent)&&e.parent.initializer===e))}(e,n),i=pA(n);if(i){if(r){let r=!0;if(tE(n)){const i=Ch(t.valueDeclaration,262);if(i&&i.parent===n){const i=function(e,t){return dc(e,(e=>e===t?"quit":e===t.initializer||e===t.condition||e===t.incrementor||e===t.statement))}(e.parent,n);if(i){const e=ha(i);e.flags|=8192;se(e.capturedBlockScopeBindings||(e.capturedBlockScopeBindings=[]),t),i===n.initializer&&(r=!1)}}}r&&(ha(i).flags|=4096)}if(tE(n)){const r=Ch(t.valueDeclaration,262);r&&r.parent===n&&function(e,t){let n=e;for(;218===n.parent.kind;)n=n.parent;let r=!1;if(Yg(n))r=!0;else if(225===n.parent.kind||226===n.parent.kind){const e=n.parent;r=46===e.operator||47===e.operator}if(!r)return!1;return!!dc(n,(e=>e===t?"quit":e===t.statement))}(e,n)&&(ha(t.valueDeclaration).flags|=65536)}ha(t.valueDeclaration).flags|=32768}r&&(ha(t.valueDeclaration).flags|=16384)}(e,t)}function uA(e,t){if(dv(e))return yA(e);const n=nN(e);if(n===Dt)return Rt;if(_A(e,n),n===ze)return jO(e,!0)?Rt:eu(n);dA(e)&&qP(e,1);const r=Js(n);let i=r.valueDeclaration;const o=i;if(i&&209===i.kind&&k(Mi,i.parent)&&dc(e,(e=>e===i.parent)))return Bt;let a=function(e,t){var n;const r=eu(e),i=e.valueDeclaration;if(i){if(pF(i)&&!i.initializer&&!i.dotDotDotToken&&i.parent.elements.length>=2){const e=i.parent.parent,n=Zh(e);if(261===n.kind&&6&uU(n)||170===n.kind){const r=ha(e);if(!(4194304&r.flags)){r.flags|=4194304;const o=Tl(e,0),a=o&&lE(o,Bf);if(r.flags&=-4194305,a&&134217728&a.flags&&(170!==n.kind||!SP(n))){const e=hP(i.parent,a,a,void 0,t.flowNode);return 262144&e.flags?hn:jl(i,e,!0)}}}}if(NN(i)&&!i.type&&!i.initializer&&!i.dotDotDotToken){const e=i.parent;if(e.parameters.length>=2&&qS(e)){const r=yI(e);if(r&&1===r.parameters.length&&mJ(r)){const o=Nm(LS(eu(r.parameters[0]),null==(n=uI(e))?void 0:n.nonFixingMapper));if(134217728&o.flags&&oE(o,Fw)&&!V(e.parameters,SP))return ok(hP(e,o,o,void 0,t.flowNode),Zk(e.parameters.indexOf(i)-(cv(e)?1:0)))}}}}return r}(r,e);const s=Qg(e);if(s){if(!(3&r.flags||Em(e)&&512&r.flags)){return $o(e,384&r.flags?ua.Cannot_assign_to_0_because_it_is_an_enum:32&r.flags?ua.Cannot_assign_to_0_because_it_is_a_class:1536&r.flags?ua.Cannot_assign_to_0_because_it_is_a_namespace:16&r.flags?ua.Cannot_assign_to_0_because_it_is_a_function:2097152&r.flags?ua.Cannot_assign_to_0_because_it_is_an_import:ua.Cannot_assign_to_0_because_it_is_not_a_variable,Ac(n)),Rt}if(cR(r))return 3&r.flags?$o(e,ua.Cannot_assign_to_0_because_it_is_a_constant,Ac(n)):$o(e,ua.Cannot_assign_to_0_because_it_is_a_read_only_property,Ac(n)),Rt}const c=2097152&r.flags;if(3&r.flags){if(1===s)return Zg(e)?kw(a):a}else{if(!c)return a;i=Pa(n)}if(!i)return a;a=JP(a,e,t);const l=170===Zh(i).kind,_=yP(i);let u=yP(e);const d=u!==_,p=e.parent&&e.parent.parent&&lP(e.parent)&&EF(e.parent.parent),f=134217728&n.flags,m=a===It||a===mr,g=m&&236===e.parent.kind;for(;u!==_&&(219===u.kind||220===u.kind||zf(u))&&(AP(r)&&a!==mr||OP(r)&&bP(r,e));)u=yP(u);const h=o&&pE(o)&&!Y_(o.parent.parent)&&!o.initializer&&!o.exclamationToken&&LP(o)&&!function(e){return(void 0!==e.lastAssignmentPos||vP(e)&&void 0!==e.lastAssignmentPos)&&e.lastAssignmentPos<0}(n),y=l||c||d&&!h||p||f||function(e,t){if(pF(t)){const n=dc(e,pF);return n&&Zh(n)===Zh(t)}}(e,i)||a!==It&&a!==mr&&(!Y||!!(19&a.flags)||uv(e)||rN(e)||282===e.parent.kind)||236===e.parent.kind||261===i.kind&&i.exclamationToken||33554432&i.flags,v=g?Ut:y?l?jP(a,i):a:m?Ut:Uw(a),b=g?Vw(hP(e,a,v,u)):hP(e,a,v,u);if(zE(e)||a!==It&&a!==mr){if(!y&&!WT(a)&&WT(b))return $o(e,ua.Variable_0_is_used_before_being_assigned,Ac(n)),a}else if(b===It||b===mr)return le&&($o(wc(i),ua.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Ac(n),Oc(b)),$o(e,ua.Variable_0_implicitly_has_an_1_type,Ac(n),Oc(b))),SB(b);return s?kw(b):b}function dA(e){var t;const n=e.parent;if(n){if(gF(n)&&n.expression===e)return!1;if(BE(n)&&n.isTypeOnly)return!1;const r=null==(t=n.parent)?void 0:t.parent;if(r&&RE(r)&&r.isTypeOnly)return!1}return!0}function pA(e){return dc(e,(e=>!e||ey(e)?"quit":H_(e,!1)))}function fA(e,t){if(ha(e).flags|=2,173===t.kind||177===t.kind){ha(t.parent).flags|=4}else ha(t).flags|=4}function mA(e){return lf(e)?e:i_(e)?void 0:rO(e,mA)}function gA(e){return Cu(rd(Fs(e)))===tn}function hA(e,t,n){const r=t.parent;bh(r)&&!gA(r)&&Lg(e)&&e.flowNode&&!dP(e.flowNode,!1)&&$o(e,n)}function yA(e){const t=uv(e);let n=em(e,!0,!0),r=!1,i=!1;for(177===n.kind&&hA(e,n,ua.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);220===n.kind&&(n=em(n,!1,!i),r=!0),168===n.kind;)n=em(n,!r,!1),i=!0;if(function(e,t){PN(t)&&Pv(t)&&W&&t.initializer&&Is(t.initializer,e.pos)&&Rv(t.parent)&&$o(e,ua.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}(e,n),i)$o(e,ua.this_cannot_be_referenced_in_a_computed_property_name);else switch(n.kind){case 268:$o(e,ua.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 267:$o(e,ua.this_cannot_be_referenced_in_current_location)}!t&&r&&q<2&&fA(e,n);const o=vA(e,!0,n);if(_e){const t=eu(Le);if(o===t&&r)$o(e,ua.The_containing_arrow_function_captures_the_global_value_of_this);else if(!o){const r=$o(e,ua.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!uP(n)){const e=vA(n);e&&e!==t&&cT(r,Mp(n,ua.An_outer_value_of_this_is_shadowed_by_this_container))}}}return o||At}function vA(e,t=!0,n=em(e,!1,!1)){const r=Em(e);if(i_(n)&&(!OA(e)||cv(n))){let t=Ah(wh(n))||r&&function(e){const t=Yc(e);if(t&&t.typeExpression)return aS(t.typeExpression);const n=Dh(e);if(n)return Ah(n)}(n);if(!t){const e=function(e){if(219===e.kind&&PF(e.parent)&&3===ng(e.parent))return e.parent.left.expression.expression;if(175===e.kind&&211===e.parent.kind&&PF(e.parent.parent)&&6===ng(e.parent.parent))return e.parent.parent.left.expression;if(219===e.kind&&304===e.parent.kind&&211===e.parent.parent.kind&&PF(e.parent.parent.parent)&&6===ng(e.parent.parent.parent))return e.parent.parent.parent.left.expression;if(219===e.kind&&sP(e.parent)&&_N(e.parent.name)&&("value"===e.parent.name.escapedText||"get"===e.parent.name.escapedText||"set"===e.parent.name.escapedText)&&mF(e.parent.parent)&&yF(e.parent.parent.parent)&&e.parent.parent.parent.arguments[2]===e.parent.parent&&9===ng(e.parent.parent.parent))return e.parent.parent.parent.arguments[0].expression;if(IN(e)&&_N(e.name)&&("value"===e.name.escapedText||"get"===e.name.escapedText||"set"===e.name.escapedText)&&mF(e.parent)&&yF(e.parent.parent)&&e.parent.parent.arguments[2]===e.parent&&9===ng(e.parent.parent))return e.parent.parent.arguments[0].expression}(n);if(r&&e){const n=tM(e).symbol;n&&n.members&&16&n.flags&&(t=rd(n).thisType)}else HL(n)&&(t=rd(Ns(n.symbol)).thisType);t||(t=wA(n))}if(t)return hP(e,t)}if(d_(n.parent)){const t=Fs(n.parent);return hP(e,Ev(n)?eu(t):rd(t).thisType)}if(uP(n)){if(n.commonJsModuleIndicator){const e=Fs(n);return e&&eu(e)}if(n.externalModuleIndicator)return Ut;if(t)return eu(Le)}}function bA(e){const t=214===e.parent.kind&&e.parent.expression===e,n=im(e,!0);let r=n,i=!1,o=!1;if(!t){for(;r&&220===r.kind;)Fv(r,1024)&&(o=!0),r=im(r,!0),i=q<2;r&&Fv(r,1024)&&(o=!0)}let a=0;if(!r||!function(e){if(t)return 177===e.kind;if(d_(e.parent)||211===e.parent.kind)return Ev(e)?175===e.kind||174===e.kind||178===e.kind||179===e.kind||173===e.kind||176===e.kind:175===e.kind||174===e.kind||178===e.kind||179===e.kind||173===e.kind||172===e.kind||177===e.kind;return!1}(r)){const n=dc(e,(e=>e===r?"quit":168===e.kind));return n&&168===n.kind?$o(e,ua.super_cannot_be_referenced_in_a_computed_property_name):t?$o(e,ua.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(d_(r.parent)||211===r.parent.kind)?$o(e,ua.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):$o(e,ua.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Rt}if(t||177!==n.kind||hA(e,r,ua.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),Ev(r)||t?(a=32,!t&&q>=2&&q<=8&&(PN(r)||ON(r))&&Pp(e.parent,(e=>{uP(e)&&!Zp(e)||(ha(e).flags|=2097152)}))):a=16,ha(e).flags|=a,175===r.kind&&o&&(am(e.parent)&&Yg(e.parent)?ha(r).flags|=256:ha(r).flags|=128),i&&fA(e.parent,r),211===r.parent.kind)return q<2?($o(e,ua.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Rt):At;const s=r.parent;if(!bh(s))return $o(e,ua.super_can_only_be_referenced_in_a_derived_class),Rt;if(gA(s))return t?Rt:tn;const c=rd(Fs(s)),l=c&&Iu(c)[0];return l?177===r.kind&&function(e,t){return!!dc(e,(e=>a_(e)?"quit":170===e.kind&&e.parent===t))}(e,r)?($o(e,ua.super_cannot_be_referenced_in_constructor_arguments),Rt):32===a?Cu(c):Bd(l,c.thisType):Rt}function xA(e){return 175!==e.kind&&178!==e.kind&&179!==e.kind||211!==e.parent.kind?219===e.kind&&304===e.parent.kind?e.parent.parent:void 0:e.parent}function kA(e){return 4&yx(e)&&e.target===pr?Ay(e)[0]:void 0}function SA(e){return lE(e,(e=>268435456&e.flags?_(e.types,kA):kA(e)))}function CA(e,t){let n=e,r=t;for(;r;){const e=SA(r);if(e)return e;if(304!==n.parent.kind)break;n=n.parent.parent,r=rI(n,void 0)}}function wA(e){if(220===e.kind)return;if(qS(e)){const t=yI(e);if(t){const e=t.thisParameter;if(e)return eu(e)}}const t=Em(e);if(_e||t){const n=xA(e);if(n){const e=rI(n,void 0),t=CA(n,e);return t?LS(t,SD(uI(n))):lD(e?Vw(e):IR(n))}const r=ih(e.parent);if(ob(r)){const e=r.left;if(Cx(e)){const{expression:n}=e;if(t&&_N(n)){const e=bd(r);if(e.commonJsModuleIndicator&&nN(n)===e.symbol)return}return lD(IR(n))}}}}function EA(e){const t=e.parent;if(!qS(t))return;const n=om(t);if(n&&n.arguments){const r=TL(n),i=t.parameters.indexOf(e);if(e.dotDotDotToken)return hL(r,i,r.length,At,void 0,0);const o=ha(n),a=o.resolvedSignature;o.resolvedSignature=fi;const s=i!!(117964819&e.flags)||aM(e,n,void 0))):2&n?aE(t,(e=>!!(117964819&e.flags)||!!FM(e))):t}const i=om(e);return i?aI(i,t):void 0}function RA(e,t){const n=TL(e).indexOf(t);return-1===n?void 0:MA(e,n)}function MA(e,t){if(_f(e))return 0===t?rn:1===t?Cv(!1):At;const n=ha(e).resolvedSignature===gi?gi:$L(e);if(xu(e)&&0===t)return dI(n,e);const r=n.parameters.length-1;return mJ(n)&&t>=r?ok(eu(n.parameters[r]),Zk(t-r),256):kj(n,t)}function BA(e,t){const n=e.parent,{left:r,operatorToken:i,right:o}=n;switch(i.kind){case 64:case 77:case 76:case 78:return e===o?function(e){var t,n;const r=ng(e);switch(r){case 0:case 4:const i=function(e){if(su(e)&&e.symbol)return e.symbol;if(_N(e))return nN(e);if(gF(e)){const n=YR(e.expression);return uN(e.name)?t(n,e.name):lg(n,e.name.escapedText)}if(hF(e)){const t=IR(e.argumentExpression);if(!lC(t))return;return lg(YR(e.expression),_C(t))}return;function t(e,t){const n=NO(t.escapedText,t);return n&&PO(e,n)}}(e.left),o=i&&i.valueDeclaration;if(o&&(PN(o)||EN(o))){const t=mv(o);return t&&LS(aS(t),ga(i).mapper)||(PN(o)?o.initializer&&YR(e.left):void 0)}return 0===r?YR(e.left):zA(e);case 5:if(JA(e,r))return zA(e);if(su(e.left)&&e.left.symbol){const t=e.left.symbol.valueDeclaration;if(!t)return;const n=tt(e.left,Cx),r=mv(t);if(r)return aS(r);if(_N(n.expression)){const e=n.expression,t=Ge(e,e.escapedText,111551,void 0,!0);if(t){const e=t.valueDeclaration&&mv(t.valueDeclaration);if(e){const t=ug(n);if(void 0!==t)return UA(aS(e),t)}return}}return Em(t)||t===e.left?void 0:YR(e.left)}return YR(e.left);case 1:case 6:case 3:case 2:let a;2!==r&&(a=su(e.left)?null==(t=e.left.symbol)?void 0:t.valueDeclaration:void 0),a||(a=null==(n=e.symbol)?void 0:n.valueDeclaration);const s=a&&mv(a);return s?aS(s):void 0;case 7:case 8:case 9:return _n.fail("Does not apply");default:return _n.assertNever(r)}}(n):void 0;case 57:case 61:const i=aI(n,t);return e===o&&(i&&i.pattern||!i&&!Gm(n))?YR(r):i;case 56:case 28:return e===o?aI(n,t):void 0;default:return}}function JA(e,t=ng(e)){if(4===t)return!0;if(!Em(e)||5!==t||!_N(e.left.expression))return!1;const n=e.left.expression.escapedText,r=Ge(e.left,n,111551,void 0,!0,!0);return cm(null==r?void 0:r.valueDeclaration)}function zA(e){if(!e.symbol)return YR(e.left);if(e.symbol.valueDeclaration){const t=mv(e.symbol.valueDeclaration);if(t){const e=aS(t);if(e)return e}}const t=tt(e.left,Cx);if(!Jf(em(t.expression,!1,!1)))return;const n=yA(t.expression),r=ug(t);return void 0!==r&&UA(n,r)||void 0}function qA(e,t){if(67108864&e.flags){const n=e;return!!(262144&zm(fk(n)).flags)&&_k(mk(n))===_k(n.checkType)&&QS(t,n.extendsType)}return!!(268435456&e.flags)&&V(e.types,(e=>qA(e,t)))}function UA(e,t,n){return lE(e,(e=>{if(268435456&e.flags){let r,i,o=!1;for(const a of e.types){if(!(1048576&a.flags))continue;if(uf(a)&&2!==pf(a)){r=VA(r,WA(a,t,n));continue}const e=$A(a,t);e?(o=!0,i=void 0,r=VA(r,e)):o||(i=re(i,a))}if(i)for(const e of i){r=VA(r,HA(e,t,n))}if(!r)return;return 1===r.length?r[0]:ix(r)}if(1048576&e.flags)return uf(e)&&2!==pf(e)?WA(e,t,n):$A(e,t)??HA(e,t,n)}),!0)}function VA(e,t){return t?re(e,1&t.flags?qt:t):e}function WA(e,t,n){const r=n||Yk(gc(t)),i=Jp(e);if(e.nameType&&qA(e.nameType,r)||qA(i,r))return;return QS(r,Mf(i)||i)?rk(e,r):void 0}function $A(e,t){const n=lg(e,t);var r;if(n&&!(262144&ox(r=n)&&!r.links.type&&il(r,0)>=0))return Gw(eu(n),!!(16777216&n.flags))}function HA(e,t,n){var r;if(Fw(e)&&qT(t)&&+t>=0){const t=Ow(e,e.target.fixedLength,0,!1,!0);if(t)return t}return null==(r=xg(wg(e),n||Yk(gc(t))))?void 0:r.type}function KA(e,t){if(_n.assert(Jf(e)),!(67108864&e.flags))return GA(e,t)}function GA(e,t){const n=e.parent,r=sP(e)&&IA(e,t);if(r)return r;const i=rI(n,t);if(i){if(Ad(e)){const t=Fs(e);return UA(i,t.escapedName,ga(t).nameType)}if(Bh(e)){const t=wc(e);if(t&&wN(t)){const e=tM(t.expression),n=lC(e)&&UA(i,_C(e));if(n)return n}}if(e.name){const t=bx(e.name);return lE(i,(e=>{var n;return null==(n=xg(wg(e),t))?void 0:n.type}),!0)}}}function YA(e,t,n,r,i){return e&&lE(e,(e=>{if(Fw(e)){if((void 0===r||ti)?n-t:0,a=o>0&&12&e.target.combinedFlags?Mb(e.target,3):0;return o>0&&o<=a?Ay(e)[Iy(e)-o]:Ow(e,void 0===r?e.target.fixedLength:Math.min(e.target.fixedLength,r),void 0===n||void 0===i?a:Math.min(a,n-i),!1,!0)}return(!r||tlw(e)?ok(e,Zk(a)):e),!0))}(n,e,t):void 0}function eI(e,t){if(YE(e)){const n=rI(e.parent,t);if(!n||gl(n))return;return UA(n,rC(e.name))}return aI(e.parent,t)}function tI(e){switch(e.kind){case 11:case 9:case 10:case 15:case 229:case 112:case 97:case 106:case 80:case 157:return!0;case 212:case 218:return tI(e.expression);case 295:return!e.expression||tI(e.expression)}return!1}function nI(e,t){const n=`D${cJ(e)},${zb(t)}`;return Bo(n)??zo(n,function(e,t){const n=fN(e),r=n&&y(t.properties,(e=>e.symbol&&304===e.kind&&e.symbol.escapedName===n&&tI(e.initializer))),i=r&&eM(r.initializer);return i&&mN(e,i)}(t,e)??AC(t,$(N(C(e.properties,(e=>!!e.symbol&&(304===e.kind?tI(e.initializer)&&dN(t,e.symbol.escapedName):305===e.kind&&dN(t,e.symbol.escapedName)))),(e=>[()=>eM(304===e.kind?e.initializer:e.name),e.symbol.escapedName])),N(C(yf(t),(n=>{var r;return!!(16777216&n.flags)&&!!(null==(r=null==e?void 0:e.symbol)?void 0:r.members)&&!e.symbol.members.has(n.escapedName)&&dN(t,n.escapedName)})),(e=>[()=>Ut,e.escapedName]))),QS))}function rI(e,t){const n=iI(Jf(e)?KA(e,t):aI(e,t),e,t);if(n&&!(t&&2&t&&34078720&n.flags)){const t=lE(n,(e=>32&yx(e)?e:ym(e)),!0);return 134217728&t.flags&&mF(e)?nI(e,t):134217728&t.flags&&ZE(e)?function(e,t){const n=`D${cJ(e)},${zb(t)}`,r=Bo(n);if(r)return r;const i=HI(WI(e));return zo(n,AC(t,$(N(C(e.properties,(e=>!!e.symbol&&292===e.kind&&dN(t,e.symbol.escapedName)&&(!e.initializer||tI(e.initializer)))),(e=>[e.initializer?()=>eM(e.initializer):()=>un,e.symbol.escapedName])),N(C(yf(t),(n=>{var r;if(!(16777216&n.flags&&(null==(r=null==e?void 0:e.symbol)?void 0:r.members)))return!1;const o=e.parent.parent;return(n.escapedName!==i||!WE(o)||!_y(o.children).length)&&!e.symbol.members.has(n.escapedName)&&dN(t,n.escapedName)})),(e=>[()=>Ut,e.escapedName]))),QS))}(e,t):t}}function iI(e,t,n){if(e&&mR(e,132644864)){const r=uI(t);if(r&&1&n&&V(r.inferences,KR)){const t=oI(e,r.nonFixingMapper);if(!(3&t.flags))return t}if(null==r?void 0:r.returnMapper){const t=oI(e,r.returnMapper);if(!(3&t.flags))return 134217728&t.flags&&qb(t.types,ln)&&qb(t.types,dn)?aE(t,(e=>e!==ln&&e!==dn)):t}}return e}function oI(e,t){return 132644864&e.flags?LS(e,t):134217728&e.flags?Xb(N(e.types,(e=>oI(e,t))),0):268435456&e.flags?ix(N(e.types,(e=>oI(e,t)))):e}function aI(e,t){var n;if(67108864&e.flags)return;const r=_I(e,!t);if(r>=0)return Li[r];const{parent:i}=e;switch(i.kind){case 261:case 170:case 173:case 172:case 209:return function(e,t){const n=e.parent;if(Pu(n)&&e===n.initializer){const e=IA(n,t);if(e)return e;if(!(8&t)&&S_(n.name)&&n.name.elements.length>0)return y_(n.name,!0,!1)}}(e,t);case 220:case 254:return function(e,t){const n=Kf(e);if(n){let e=jA(n,t);if(e){const t=Lh(n);if(1&t){const n=!!(2&t);134217728&e.flags&&(e=aE(e,(e=>!!DJ(1,e,n))));const r=DJ(1,e,!!(2&t));if(!r)return;e=r}if(2&t){const t=lE(e,MM);return t&&Xb([t,Gj(t)])}return e}}}(e,t);case 230:return function(e,t){const n=Kf(e);if(n){const r=Lh(n);let i=jA(n,t);if(i){const n=!!(2&r);if(!e.asteriskToken&&134217728&i.flags&&(i=aE(i,(e=>!!DJ(1,e,n)))),e.asteriskToken){const r=FJ(i,n),o=(null==r?void 0:r.yieldType)??yn,a=aI(e,t)??yn,s=(null==r?void 0:r.nextType)??qt,c=Yj(o,a,s,!1);return n?Xb([c,Yj(o,a,s,!0)]):c}return DJ(0,i,n)}}}(i,t);case 224:return function(e,t){const n=aI(e,t);if(n){const e=MM(n);return e&&Xb([e,Gj(e)])}}(i,t);case 214:case 215:return RA(i,e);case 171:return function(e){const t=Hj(e);return t?ly(t):void 0}(i);case 217:case 235:return Sl(i.type)?aI(i,t):aS(i.type);case 227:return BA(e,t);case 304:case 305:return GA(i,t);case 306:return aI(i.parent,t);case 210:{const r=i,o=rI(r,t),a=Yd(r.elements,e),s=(n=ha(r)).spreadIndices??(n.spreadIndices=function(e){let t,n;for(let r=0;r=0)return Li[n]}return MA(e,0)}(i,t);case 302:return function(e){return UA(Bv(!1),mC(e))}(i)}}function sI(e){cI(e,aI(e,void 0),!0)}function cI(e,t,n){Oi[Ri]=e,Li[Ri]=t,ji[Ri]=n,Ri++}function lI(){Ri--,Oi[Ri]=void 0,Li[Ri]=void 0,ji[Ri]=void 0}function _I(e,t){for(let n=Ri-1;n>=0;n--)if(e===Oi[n]&&(t||!ji[n]))return n;return-1}function uI(e){for(let t=zi-1;t>=0;t--)if(lh(e,Bi[t]))return Ji[t]}function dI(e,t){return XE(t)||0!==vL(t)?function(e,t){let n=Aj(e,qt);n=pI(t,WI(t),n);const r=qI(WB.IntrinsicAttributes,t);kl(r)||(n=op(r,n));return n}(e,t):function(e,t){const n=WI(t),r=(i=n,$I(WB.ElementAttributesPropertyNameContainer,i));var i;let o=void 0===r?Aj(e,qt):""===r?jh(e):function(e,t){if(e.compositeSignatures){const n=[];for(const r of e.compositeSignatures){const e=jh(r);if(gl(e))return e;const i=pl(e,t);if(!i)return;n.push(i)}return ix(n)}const n=jh(e);return gl(n)?n:pl(n,t)}(e,r);if(!o)return r&&l(t.attributes.properties)&&$o(t,ua.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,gc(r)),qt;if(o=pI(t,n,o),gl(o))return o;{let n=o;const r=qI(WB.IntrinsicClassAttributes,t);if(!kl(r)){const i=pu(r.symbol),o=jh(e);let a;if(i){a=LS(r,dS(i,Th([o],i,kh(i),Em(t))))}else a=r;n=op(a,n)}const i=qI(WB.IntrinsicAttributes,t);return kl(i)||(n=op(i,n)),n}}(e,t)}function pI(e,t,n){const r=(i=t)&&ya(i.exports,WB.LibraryManagedAttributes,788968);var i;if(r){const t=function(e){if(XE(e))return UL(e);if(RI(e.tagName))return ly(qL(e,XI(e)));const t=IR(e.tagName);if(1024&t.flags){const n=GI(t,e);return n?ly(qL(e,n)):Rt}return t}(e),i=tO(r,Em(e),t,n);if(i)return i}return n}function mI(e){return qk(z,"noImplicitAny")?Ce(e,((e,t)=>e!==t&&e?np(e.typeParameters,t.typeParameters)?function(e,t){const n=e.typeParameters||t.typeParameters;let r;e.typeParameters&&t.typeParameters&&(r=dS(t.typeParameters,e.typeParameters));let i=166&(e.flags|t.flags);const o=e.declaration,a=function(e,t,n){const r=wj(e),i=wj(t),o=r>=i?e:t,a=o===e?t:e,s=o===e?r:i,c=Nj(e)||Nj(t),l=c&&!Nj(o),_=new Array(s+(l?1:0));for(let u=0;u=Dj(o)&&u>=Dj(a),h=u>=r?void 0:yj(e,u),y=u>=i?void 0:yj(t,u),v=na(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||`arg${u}`,m?32768:g?16384:0);v.links.type=m?Tb(f):f,_[u]=v}if(l){const e=na(1,"args",32768);e.links.type=Tb(kj(a,s)),a===t&&(e.links.type=LS(e.links.type,n)),_[s]=e}return _}(e,t,r),s=he(a);s&&32768&ox(s)&&(i|=1);const c=function(e,t,n){if(!e||!t)return e||t;const r=Xb([eu(e),LS(eu(t),n)]);return Zw(e,r)}(e.thisParameter,t.thisParameter,r),l=Math.max(e.minArgumentCount,t.minArgumentCount),_=zd(o,n,c,a,void 0,void 0,l,i);_.compositeKind=268435456,_.compositeSignatures=$(268435456===e.compositeKind&&e.compositeSignatures||[e],[t]),r&&(_.mapper=268435456===e.compositeKind&&e.mapper&&e.compositeSignatures?bS(e.mapper,r):r);return _}(e,t):void 0:e)):void 0}function gI(e,t){const n=C(mg(e,0),(e=>!function(e,t){let n=0;for(;nfunction(e){const t=bd(e);if(!eU(t)&&!e.isUnterminated){let r;n??(n=hs(99,!0)),n.setScriptTarget(t.languageVersion),n.setLanguageVariant(t.languageVariant),n.setOnError(((e,i,o)=>{const a=n.getTokenEnd();if(3===e.category&&r&&a===r.start&&i===r.length){const n=Hx(t.fileName,t.text,a,i,e,o);cT(r,n)}else r&&a===r.start||(r=Qx(t,a,i,e,o),wo.add(r))})),n.setText(t.text,e.pos,e.end-e.pos);try{return n.scan(),_n.assert(14===n.reScanSlashToken(!0),"Expected scanner to rescan RegularExpressionLiteral"),!!r}finally{n.setText(""),n.setOnError(void 0)}}return!1}(e)))),dr}function bI(e){return 209===e.kind&&!!e.initializer||304===e.kind&&bI(e.initializer)||305===e.kind&&!!e.objectAssignmentInitializer||227===e.kind&&64===e.operatorToken.kind}function xI(e,t,n){const r=e.elements,i=r.length,o=[],a=[];sI(e);const s=Yg(e),c=zR(e),l=rI(e,void 0),_=function(e){const t=ih(e.parent);return LF(t)&&R_(t.parent)}(e)||!!l&&iE(l,(e=>fw(e)||uf(e)&&!e.nameType&&!!ES(e.target||e)));let u=!1;for(let c=0;c8&a[t]?sk(e,an)||At:e)),2):Y?vn:Vt,c))}function kI(e){if(!(4&yx(e)))return e;let t=e.literalType;return t||(t=e.literalType=Ny(e),t.objectFlags|=147456),t}function SI(e){switch(e.kind){case 168:return function(e){return gR(TI(e),67648)}(e);case 80:return qT(e.escapedText);case 9:case 11:return qT(e.text);default:return!1}}function TI(e){const t=ha(e.expression);if(!t.resolvedType){if(($N(e.parent.parent)||d_(e.parent.parent)||hE(e.parent.parent))&&PF(e.expression)&&103===e.expression.operatorToken.kind&&178!==e.parent.kind&&179!==e.parent.kind)return t.resolvedType=Rt;if(t.resolvedType=tM(e.expression),PN(e.parent)&&!Pv(e.parent)&&jF(e.parent.parent)){const t=pA(Ep(e.parent.parent));t&&(ha(t).flags|=4096,ha(e).flags|=32768,ha(e.parent.parent).flags|=32768)}(12&t.resolvedType.flags||!gR(t.resolvedType,12668512)&&!QS(t.resolvedType,Sn))&&$o(e,ua.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return t.resolvedType}function CI(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return qT(e.escapedName)||n&&Tc(n)&&SI(n.name)}function wI(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return $h(e)||n&&Tc(n)&&wN(n.name)&&gR(TI(n.name),512)}function DI(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return n&&Tc(n)&&wN(n.name)}function PI(e,t,n,r){var i;const o=[];let a;for(let e=t;e0&&(a=Rk(a,x(),e.symbol,m,_),o=[],i=Xu(),h=!1,y=!1,v=!1);const n=zm(tM(s.expression,2&t));if(LI(n)){const t=Lk(n,_);if(r&&zI(t,r,s),b=o.length,kl(a))continue;a=Rk(a,t,e.symbol,m,_)}else $o(s,ua.Spread_types_may_only_be_created_from_object_types),a=Rt;continue}_n.assert(178===s.kind||179===s.kind),Sz(s)}!k||19456&k.flags?i.set(f.escapedName,f):QS(k,Sn)&&(QS(k,an)?y=!0:QS(k,mn)?v=!0:h=!0,n&&(g=!0)),o.push(f)}return lI(),kl(a)?Rt:a!==In?(o.length>0&&(a=Rk(a,x(),e.symbol,m,_),o=[],i=Xu(),h=!1,y=!1),lE(a,(e=>e===In?x():e))):x();function x(){const t=[],r=zR(e);h&&t.push(PI(r,b,o,rn)),y&&t.push(PI(r,b,o,an)),v&&t.push(PI(r,b,o,mn));const a=Ys(e.symbol,i,s,s,t);return a.objectFlags|=131200|m,f&&(a.objectFlags|=4096),g&&(a.objectFlags|=512),n&&(a.pattern=e),a}}function LI(e){const t=Rw(lE(e,Bf));return!!(119144449&t.flags||402653184&t.flags&&h(t.types,LI))}function jI(e){return e.includes("-")}function RI(e){return _N(e)&&Py(e.escapedText)||nP(e)}function MI(e,t){return e.initializer?qR(e.initializer,t):un}function BI(e,t=0){const n=Y?Xu():void 0;let r,i=Xu(),o=On,a=!1,c=!1,l=2048;const _=HI(WI(e));let u,d=e;if(!XE(e)){const s=e.attributes;u=s.symbol,d=s;const p=aI(s,0);for(const e of s.properties){const u=e.symbol;if(YE(e)){const r=MI(e,t);l|=458752&yx(r);const o=na(4|u.flags,u.escapedName);if(o.declarations=u.declarations,o.parent=u.parent,u.valueDeclaration&&(o.valueDeclaration=u.valueDeclaration),o.links.type=r,o.links.target=u,i.set(o.escapedName,o),null==n||n.set(o.escapedName,o),rC(e.name)===_&&(c=!0),p){const t=lg(p,u.escapedName);t&&t.declarations&&Yo(t)&&_N(e.name)&&ta(e.name,t.declarations,e.name.escapedText)}if(p&&2&t&&!(4&t)&&JS(e)){const t=uI(s);_n.assert(t);bD(t,e.initializer.expression,r)}}else{_n.assert(294===e.kind),i.size>0&&(o=Rk(o,f(),s.symbol,l,!1),i=Xu());const c=zm(tM(e.expression,2&t));gl(c)&&(a=!0),LI(c)?(o=Rk(o,c,s.symbol,l,!1),n&&zI(c,n,e)):($o(e.expression,ua.Spread_types_may_only_be_created_from_object_types),r=r?ix([r,c]):c)}}a||i.size>0&&(o=Rk(o,f(),s.symbol,l,!1))}const p=e.parent;if((WE(p)&&p.openingElement===e||GE(p)&&p.openingFragment===e)&&_y(p.children).length>0){const n=JI(p,t);if(!a&&_&&""!==_){c&&$o(d,ua._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,gc(_));const t=HE(e)?rI(e.attributes,void 0):void 0,r=t&&UA(t,_),i=na(4,_);i.links.type=1===n.length?n[0]:r&&iE(r,fw)?Ab(n):Tb(Xb(n)),i.valueDeclaration=vw.createPropertySignature(void 0,gc(_),void 0,void 0),ET(i.valueDeclaration,d),i.valueDeclaration.symbol=i;const a=Xu();a.set(_,i),o=Rk(o,Ys(u,a,s,s,s),u,l|Cy(n),!1)}}return a?At:r&&o!==On?ix([r,o]):r||(o===On?f():o);function f(){return l|=8192,function(e,t,n){const r=Ys(t,n,s,s,s);return r.objectFlags|=139392|e,r}(l,u,i)}}function JI(e,t){const n=[];for(const r of e.children)if(12===r.kind)r.containsOnlyTriviaWhiteSpaces||n.push(rn);else{if(295===r.kind&&!r.expression)continue;n.push(qR(r,t))}return n}function zI(e,t,n){for(const r of yf(e))if(!(16777216&r.flags||48&ox(r))){const e=t.get(r.escapedName);if(e){cT($o(e.valueDeclaration,ua._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,gc(e.escapedName)),Mp(n,ua.This_spread_always_overwrites_this_property))}}}function qI(e,t){const n=WI(t),r=n&&Ss(n),i=r&&ya(r,e,788968);return i?rd(i):Rt}function UI(e){const t=ha(e);if(!t.resolvedSymbol){const n=qI(WB.IntrinsicElements,e);if(kl(n))return le&&$o(e,ua.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,gc(WB.IntrinsicElements)),t.resolvedSymbol=Dt;{if(!_N(e.tagName)&&!nP(e.tagName))return _n.fail();const r=nP(e.tagName)?aC(e.tagName):e.tagName.escapedText,i=lg(n,r);if(i)return t.jsxFlags|=1,t.resolvedSymbol=i;const o=Rz(n,Yk(gc(r)));return o?(t.jsxFlags|=2,t.resolvedSymbol=o):ml(n,r)?(t.jsxFlags|=2,t.resolvedSymbol=n.symbol):($o(e,ua.Property_0_does_not_exist_on_type_1,cC(e.tagName),"JSX."+WB.IntrinsicElements),t.resolvedSymbol=Dt)}}return t.resolvedSymbol}function VI(e){const t=e&&bd(e),n=t&&ha(t);if(n&&!1===n.jsxImplicitImportContainer)return;if(n&&n.jsxImplicitImportContainer)return n.jsxImplicitImportContainer;const r=Qk(Xk(z,t),z);if(!r)return;const i=1===Sk(z)?ua.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:ua.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed,o=function(e,t){const n=z.importHelpers?1:0,r=null==e?void 0:e.imports[n];r&&_n.assert(ty(r)&&r.text===t,`Expected sourceFile.imports[${n}] to be the synthesized JSX runtime import`);return r}(t,r),a=us(o||e,r,i,e),s=a&&a!==Dt?Ns(Za(a)):void 0;return n&&(n.jsxImplicitImportContainer=s||!1),s}function WI(e){const t=e&&ha(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){let n=VI(e);if(!n||n===Dt){const t=qo(e);n=Ge(e,t,1920,void 0,!1)}if(n){const e=Za(ya(Ss(Za(n)),WB.JSX,1920));if(e&&e!==Dt)return t&&(t.jsxNamespace=e),e}t&&(t.jsxNamespace=!1)}const n=Za(bv(WB.JSX,1920,void 0));return n!==Dt?n:void 0}function $I(e,t){const n=t&&ya(t.exports,e,788968),r=n&&rd(n),i=r&&yf(r);if(i){if(0===i.length)return"";if(1===i.length)return i[0].escapedName;i.length>1&&n.declarations&&$o(n.declarations[0],ua.The_global_type_JSX_0_may_not_have_more_than_one_property,gc(e))}}function HI(e){return 4===z.jsx||5===z.jsx?"children":$I(WB.ElementChildrenAttributeNameContainer,e)}function KI(e,t){if(32&e.flags)return[fi];if(1024&e.flags){const n=GI(e,t);if(n){return[qL(t,n)]}return $o(t,ua.Property_0_does_not_exist_on_type_1,e.value,"JSX."+WB.IntrinsicElements),s}const n=ym(e);let r=mg(n,1);return 0===r.length&&(r=mg(n,0)),0===r.length&&134217728&n.flags&&(r=ep(N(n.types,(e=>KI(e,t))))),r}function GI(e,t){const n=qI(WB.IntrinsicElements,t);if(!kl(n)){const t=lg(n,mc(e.value));if(t)return eu(t);const r=Og(n,rn);return r||void 0}return At}function XI(e){var t;_n.assert(RI(e.tagName));const n=ha(e);if(!n.resolvedJsxElementAttributesType){const r=UI(e);if(1&n.jsxFlags)return n.resolvedJsxElementAttributesType=eu(r)||Rt;if(2&n.jsxFlags){const r=nP(e.tagName)?aC(e.tagName):e.tagName.escapedText;return n.resolvedJsxElementAttributesType=(null==(t=Bg(qI(WB.IntrinsicElements,e),r))?void 0:t.type)||Rt}return n.resolvedJsxElementAttributesType=Rt}return n.resolvedJsxElementAttributesType}function QI(e){const t=qI(WB.ElementClass,e);if(!kl(t))return t}function YI(e){return qI(WB.Element,e)}function ZI(e){const t=YI(e);if(t)return Xb([t,Qt])}function eO(e){const t=WI(e);if(!t)return;const n=(r=t)&&ya(r.exports,WB.ElementType,788968);var r;if(!n)return;const i=tO(n,Em(e));return i&&!kl(i)?i:void 0}function tO(e,t,...n){const r=rd(e);if(524288&e.flags){const i=ga(e).typeParameters;if(l(i)>=n.length){const o=Th(n,i,n.length,t);return 0===l(o)?r:Ry(e,o)}}if(l(r.typeParameters)>=n.length){return Dy(r,Th(n,r.typeParameters,n.length,t))}}function nO(e){const t=xu(e);var n;t&&function(e){(function(e){if(gF(e)&&nP(e.expression))return rU(e.expression,ua.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(nP(e)&&Gk(z)&&!Py(e.namespace.escapedText))rU(e,ua.React_components_cannot_include_JSX_namespace_names)})(e.tagName),Rq(e,e.typeArguments);const t=new Map;for(const n of e.attributes.properties){if(294===n.kind)continue;const{name:e,initializer:r}=n,i=rC(e);if(t.get(i))return rU(e,ua.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(t.set(i,!0),r&&295===r.kind&&!r.expression)return rU(r,ua.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}(e),n=e,0===(z.jsx||0)&&$o(n,ua.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===YI(n)&&le&&$o(n,ua.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),QP(e);const r=$L(e);if(XL(r,e),t){const t=e,n=eO(t);if(void 0!==n){const e=t.tagName;wC(RI(e)?Yk(cC(e)):tM(e),n,Io,e,ua.Its_type_0_is_not_a_valid_JSX_element_type,(()=>{const t=Xd(e);return tk(void 0,ua._0_cannot_be_used_as_a_JSX_component,t)}))}else!function(e,t,n){if(1===e){const e=ZI(n);e&&wC(t,e,Io,n.tagName,ua.Its_return_type_0_is_not_a_valid_JSX_element,r)}else if(0===e){const e=QI(n);e&&wC(t,e,Io,n.tagName,ua.Its_instance_type_0_is_not_a_valid_JSX_element,r)}else{const e=ZI(n),i=QI(n);if(!e||!i)return;wC(t,Xb([e,i]),Io,n.tagName,ua.Its_element_type_0_is_not_a_valid_JSX_element,r)}function r(){const e=Xd(n.tagName);return tk(void 0,ua._0_cannot_be_used_as_a_JSX_component,e)}}(vL(t),jh(r),t)}}function oO(e,t,n){if(1048576&e.flags&&(gf(e,t)||Bg(e,t)||Dd(t)&&Ag(e,rn)||n&&jI(t)))return!0;if(16777216&e.flags)return oO(e.baseType,t,n);if(402653184&e.flags&&aO(e))for(const r of e.types)if(oO(r,t,n))return!0;return!1}function aO(e){return!!(1048576&e.flags&&!(512&yx(e))||131072&e.flags||16777216&e.flags&&aO(e.baseType)||134217728&e.flags&&V(e.types,aO)||268435456&e.flags&&h(e.types,aO))}function sO(e,t){if(function(e){if(e.expression&&DA(e.expression))rU(e.expression,ua.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(e),e.expression){const n=tM(e.expression,t);return e.dotDotDotToken&&n!==At&&!iw(n)&&$o(e,ua.JSX_spread_child_must_be_an_array_type),n}return Rt}function lO(e){return e.valueDeclaration?uU(e.valueDeclaration):0}function uO(e){if(8192&e.flags||4&ox(e))return!0;if(Em(e.valueDeclaration)){const t=e.valueDeclaration.parent;return t&&PF(t)&&3===ng(t)}}function dO(e,t,n,r,i,o=!0){return pO(e,t,n,r,i,o?167===e.kind?e.right:206===e.kind?e:209===e.kind&&e.propertyName?e.propertyName:e.name:void 0)}function pO(e,t,n,r,i,o){var a;const s=ax(i,n);if(t){if(q<2&&fO(i))return o&&$o(o,ua.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(64&s)return o&&$o(o,ua.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Ac(i),Oc(WC(i))),!1;if(!(256&s)&&(null==(a=i.declarations)?void 0:a.some(m_)))return o&&$o(o,ua.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,Ac(i)),!1}if(64&s&&fO(i)&&(sm(e)||lm(e)||uF(e.parent)&&cm(e.parent.parent))){const t=Os(i);if(t&&32&t.flags&&dc(e,(e=>!!(LN(e)&&Fd(e.body)||PN(e))||!(!d_(e)&&!a_(e))&&"quit")))return o&&$o(o,ua.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Ac(i),Ac(t)),!1}if(!(6&s))return!0;if(2&s){return!!Oz(e,hx(Os(i)))||(o&&$o(o,ua.Property_0_is_private_and_only_accessible_within_class_1,Ac(i),Oc(WC(i))),!1)}if(t)return!0;let c=Iz(e,(e=>HC(rd(Fs(e)),i,n)));return!c&&(c=function(e){const t=function(e){const t=em(e,!1,!1);return t&&i_(t)?cv(t):void 0}(e);let n=(null==t?void 0:t.type)&&aS(t.type);if(n)524288&n.flags&&(n=bf(n));else{const t=em(e,!1,!1);i_(t)&&(n=wA(t))}if(n&&7&yx(n))return iu(n);return}(e),c=c&&HC(c,i,n),256&s||!c)?(o&&$o(o,ua.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Ac(i),Oc(WC(i)||r)),!1):!!(256&s)||(524288&r.flags&&(r=r.isThisType?bf(r):Mf(r)),!(!r||!ou(r,c))||(o&&$o(o,ua.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Ac(i),Oc(c),Oc(r)),!1))}function fO(e){return!!VC(e,(e=>!(8192&e.flags)))}function mO(e){return SO(tM(e),e)}function gO(e){return HN(e,50331648)}function hO(e){return gO(e)?Vw(e):e}function bO(e,t){const n=cb(e)?Rp(e):void 0;if(106!==e.kind)if(void 0!==n&&n.length<100){if(_N(e)&&"undefined"===n)return void $o(e,ua.The_value_0_cannot_be_used_here,"undefined");$o(e,16777216&t?33554432&t?ua._0_is_possibly_null_or_undefined:ua._0_is_possibly_undefined:ua._0_is_possibly_null,n)}else $o(e,16777216&t?33554432&t?ua.Object_is_possibly_null_or_undefined:ua.Object_is_possibly_undefined:ua.Object_is_possibly_null);else $o(e,ua.The_value_0_cannot_be_used_here,"null")}function xO(e,t){$o(e,16777216&t?33554432&t?ua.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:ua.Cannot_invoke_an_object_which_is_possibly_undefined:ua.Cannot_invoke_an_object_which_is_possibly_null)}function kO(e,t,n){if(Y&&2&e.flags){if(cb(t)){const e=Rp(t);if(e.length<100)return $o(t,ua._0_is_of_type_unknown,e),Rt}return $o(t,ua.Object_is_of_type_unknown),Rt}const r=TN(e,50331648);if(50331648&r){n(t,r);const i=Vw(e);return 262156&i.flags?Rt:i}return e}function SO(e,t){return kO(e,t,bO)}function TO(e,t){const n=SO(e,t);if(16&n.flags){if(cb(t)){const e=Rp(t);if(_N(t)&&"undefined"===e)return $o(t,ua.The_value_0_cannot_be_used_here,e),n;if(e.length<100)return $o(t,ua._0_is_possibly_undefined,e),n}$o(t,ua.Object_is_possibly_undefined)}return n}function CO(e,t,n){return 64&e.flags?function(e,t){const n=tM(e.expression),r=Kw(n,e.expression);return Hw(IO(e,e.expression,SO(r,e.expression),e.name,t),e,r!==n)}(e,t):IO(e,e.expression,mO(e.expression),e.name,t,n)}function wO(e,t){const n=km(e)&&_v(e.left)?SO(yA(e.left),e.left):mO(e.left);return IO(e,e.left,n,e.right,t)}function DO(e){for(;218===e.parent.kind;)e=e.parent;return R_(e.parent)&&e.parent.expression===e}function NO(e,t){for(let n=Zf(t);n;n=Xf(n)){const{symbol:t}=n,r=Wh(t,e),i=t.members&&t.members.get(r)||t.exports&&t.exports.get(r);if(i)return i}}function FO(e){!function(e){if(!Xf(e))return rU(e,ua.Private_identifiers_are_not_allowed_outside_class_bodies);if(!nE(e.parent)){if(!bm(e))return rU(e,ua.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const t=PF(e.parent)&&103===e.parent.operatorToken.kind;if(!EO(e)&&!t)return rU(e,ua.Cannot_find_name_0,hc(e))}}(e);const t=EO(e);return t&&$O(t,void 0,!1),At}function EO(e){if(!bm(e))return;const t=ha(e);return void 0===t.resolvedSymbol&&(t.resolvedSymbol=NO(e.escapedText,e)),t.resolvedSymbol}function PO(e,t){return lg(e,t.escapedName)}function AO(e,t){return(Wl(t)||sm(e)&&Hl(t))&&em(e,!0,!1)===Kl(t)}function IO(e,t,n,r,i,o){const a=ha(t).resolvedSymbol,s=Qg(e),c=ym(0!==s||DO(e)?lD(n):n),l=gl(c)||c===yn;let u,d;if(uN(r)){(q{const n=e.valueDeclaration;if(n&&Tc(n)&&uN(n.name)&&n.name.escapedText===t.escapedText)return r=e,!0}));const o=Sa(t);if(r){const i=_n.checkDefined(r.valueDeclaration),a=_n.checkDefined(Xf(i));if(null==n?void 0:n.valueDeclaration){const r=n.valueDeclaration,s=Xf(r);if(_n.assert(!!s),dc(s,(e=>a===e)))return cT($o(t,ua.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,o,Oc(e)),Mp(r,ua.The_shadowing_declaration_of_0_is_defined_here,o),Mp(i,ua.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,o)),!0}return $o(t,ua.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,o,Sa(a.name||GB)),!0}return!1}(n,r,t))return Rt;const e=Zf(r);e&&kd(bd(e),z.checkJs)&&rU(r,ua.Private_field_0_must_be_declared_in_an_enclosing_class,hc(r))}else{65536&u.flags&&!(32768&u.flags)&&1!==s&&$o(e,ua.Private_accessor_was_defined_without_a_getter)}}else{if(l)return _N(t)&&a&&qP(e,2,void 0,n),kl(c)?Rt:c;u=lg(c,r.escapedText,yR(c),167===e.kind)}if(qP(e,2,u,n),u){const n=cz(u,r);if(Yo(n)&&Rx(e,n)&&n.declarations&&ta(r,n.declarations,r.escapedText),function(e,t,n){const{valueDeclaration:r}=e;if(!r||bd(t).isDeclarationFile)return;let i;const o=hc(n);!jO(t)||function(e){return PN(e)&&!Lv(e)&&e.questionToken}(r)||Cx(t)&&Cx(t.expression)||va(r,n)||IN(r)&&256&_U(r)||!H&&function(e){if(e.parent&&32&e.parent.flags){const t=Iu(rd(e.parent));if(t.length){const n=lg(t[0],e.escapedName);return!(!n||!n.valueDeclaration)}}return!1}(e)?264!==r.kind||184===t.parent.kind||33554432&r.flags||va(r,n)||(i=$o(n,ua.Class_0_used_before_its_declaration,o)):i=$o(n,ua.Property_0_is_used_before_its_initialization,o);i&&cT(i,Mp(r,ua._0_is_declared_here,o))}(u,e,r),$O(u,e,HO(t,a)),ha(e).resolvedSymbol=u,dO(e,108===t.kind,_x(e),c,u),lR(e,u,s))return $o(r,ua.Cannot_assign_to_0_because_it_is_a_read_only_property,hc(r)),Rt;d=AO(e,u)?It:o||lx(e)?Z_(u):eu(u)}else{const t=uN(r)||0!==s&&Wx(n)&&!VT(n)?void 0:Bg(c,r.escapedText);if(!t||!t.type){const t=OO(e,n.symbol,!0);return!t&&Lx(n)?At:n.symbol===Le?(Le.exports.has(r.escapedText)&&418&Le.exports.get(r.escapedText).flags?$o(r,ua.Property_0_does_not_exist_on_type_1,gc(r.escapedText),Oc(n)):le&&$o(r,ua.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Oc(n)),At):(r.escapedText&&!Ca(e)&&RO(r,VT(n)?c:n,t),Rt)}t.isReadonly&&(Yg(e)||ch(e))&&$o(e,ua.Index_signature_in_type_0_only_permits_reading,Oc(c)),d=t.type,z.noUncheckedIndexedAccess&&1!==Qg(e)&&(d=Xb([d,Wt])),z.noPropertyAccessFromIndexSignature&&gF(e)&&$o(r,ua.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,gc(r.escapedText)),t.declaration&&Zo(t.declaration)&&ta(r,[t.declaration],r.escapedText)}return LO(e,u,d,r,i)}function OO(e,t,n){var r;const i=bd(e);if(i&&void 0===z.checkJs&&void 0===i.checkJsDirective&&(1===i.scriptKind||2===i.scriptKind)){const o=_(null==t?void 0:t.declarations,bd),a=!(null==t?void 0:t.valueDeclaration)||!d_(t.valueDeclaration)||(null==(r=t.valueDeclaration.heritageClauses)?void 0:r.length)||gm(!1,t.valueDeclaration);return!(i!==o&&o&&Yp(o)||n&&t&&32&t.flags&&a||e&&n&&gF(e)&&110===e.expression.kind&&a)}return!1}function LO(e,t,n,r,i){const o=Qg(e);if(1===o)return Gw(n,!!(t&&16777216&t.flags));if(t&&!(98311&t.flags)&&!(8192&t.flags&&134217728&n.flags)&&!hz(t.declarations))return n;if(n===It)return Yl(e,t);n=JP(n,e,i);let a=!1;if(Y&&ie&&Cx(e)&&110===e.expression.kind){const n=t&&t.valueDeclaration;if(n&&GJ(n)&&!Ev(n)){const t=yP(e);177!==t.kind||t.parent!==n.parent||33554432&n.flags||(a=!0)}}else Y&&t&&t.valueDeclaration&&gF(t.valueDeclaration)&&dg(t.valueDeclaration)&&yP(e)===yP(t.valueDeclaration)&&(a=!0);const s=hP(e,n,a?Uw(n):n);return a&&!WT(n)&&WT(s)?($o(r,ua.Property_0_is_used_before_being_assigned,Ac(t)),n):o?kw(s):s}function jO(e,t){return!!dc(e,(e=>{switch(e.kind){case 173:case 176:return!0;case 187:case 288:return"quit";case 220:return!t&&"quit";case 242:return!(!a_(e.parent)||220===e.parent.kind)&&"quit";default:return!1}}))}function RO(e,t,n){const r=ha(e),i=r.nonExistentPropCheckCache||(r.nonExistentPropCheckCache=new Set),o=`${zb(t)}|${n}`;if(i.has(o))return;let a,s;if(i.add(o),!uN(e)&&134217728&t.flags&&!(12713980&t.flags))for(const n of t.types)if(!lg(n,e.escapedText)&&!Bg(n,e.escapedText)){a=tk(a,ua.Property_0_does_not_exist_on_type_1,Ap(e),Oc(n));break}if(MO(e.escapedText,t)){const n=Ap(e),r=Oc(t);a=tk(a,ua.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,n,r,r+"."+n)}else{const r=EM(t);if(r&&lg(r,e.escapedText))a=tk(a,ua.Property_0_does_not_exist_on_type_1,Ap(e),Oc(t)),s=Mp(e,ua.Did_you_forget_to_use_await);else{const r=Ap(e),i=Oc(t),o=function(e,t){const n=ym(t).symbol;if(!n)return;const r=vc(n),i=tp().get(r);if(i)for(const[t,n]of i)if(k(n,e))return t}(r,t);if(void 0!==o)a=tk(a,ua.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,r,i,o);else{const o=JO(e,t);if(void 0!==o){const e=vc(o);a=tk(a,n?ua.Property_0_may_not_exist_on_type_1_Did_you_mean_2:ua.Property_0_does_not_exist_on_type_1_Did_you_mean_2,r,i,e),s=o.valueDeclaration&&Mp(o.valueDeclaration,ua._0_is_declared_here,e)}else{const e=function(e){return z.lib&&!z.lib.includes("lib.dom.d.ts")&&(t=e,n=e=>e.symbol&&/^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(gc(e.symbol.escapedName)),402653184&t.flags?h(t.types,n):n(t))&&jT(e);var t,n}(t)?ua.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:ua.Property_0_does_not_exist_on_type_1;a=tk(ag(a,t),e,r,i)}}}}const c=zp(bd(e),e,a);s&&cT(c,s),Ko(!n||a.code!==ua.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,c)}function MO(e,t){const n=t.symbol&&lg(eu(t.symbol),e);return void 0!==n&&!!n.valueDeclaration&&Ev(n.valueDeclaration)}function BO(e,t){return WO(e,yf(t),106500)}function JO(e,t){let n=yf(t);if("string"!=typeof e){const r=e.parent;gF(r)&&(n=C(n,(e=>KO(r,t,e)))),e=hc(e)}return WO(e,n,111551)}function zO(e,t){const n=Ye(e)?e:hc(e),r=yf(t);return("for"===n?y(r,(e=>"htmlFor"===vc(e))):"class"===n?y(r,(e=>"className"===vc(e))):void 0)??WO(n,r,111551)}function qO(e,t){const n=JO(e,t);return n&&vc(n)}function UO(e,t,n){_n.assert(void 0!==t,"outername should always be defined");return Qe(e,t,n,void 0,!1,!1)}function VO(e,t){return t.exports&&WO(hc(e),pU(bs(t)),2623475)}function WO(e,t,n){return Ot(e,t,(function(e){const t=vc(e);if(Kt(t,'"'))return;if(e.flags&n)return t;if(2097152&e.flags){const r=function(e){if(ga(e).aliasTarget!==Nt)return es(e)}(e);if(r&&r.flags&n)return t}return}))}function $O(e,t,n){const r=e&&106500&e.flags&&e.valueDeclaration;if(!r)return;const i=Nv(r,2),o=e.valueDeclaration&&Tc(e.valueDeclaration)&&uN(e.valueDeclaration.name);if((i||o)&&(!t||!lx(t)||65536&e.flags)){if(n){const n=dc(t,a_);if(n&&n.symbol===e)return}(1&ox(e)?ga(e).target:e).isReferenced=-1}}function HO(e,t){return 110===e.kind||!!t&&cb(e)&&t===nN(lb(e))}function KO(e,t,n){return XO(e,212===e.kind&&108===e.expression.kind,!1,t,n)}function GO(e,t,n,r){if(gl(r))return!0;const i=lg(r,n);return!!i&&XO(e,t,!1,r,i)}function XO(e,t,n,r,i){if(gl(r))return!0;if(i.valueDeclaration&&Gl(i.valueDeclaration)){const t=Xf(i.valueDeclaration);return!yl(e)&&!!dc(e,(e=>e===t))}return pO(e,t,n,r,i)}function QO(e){const t=e.initializer;if(262===t.kind){const e=t.declarations[0];if(e&&!S_(e.name))return Fs(e)}else if(80===t.kind)return nN(t)}function YO(e,t){return 64&e.flags?function(e,t){const n=tM(e.expression),r=Kw(n,e.expression);return Hw(ZO(e,SO(r,e.expression),t),e,r!==n)}(e,t):ZO(e,mO(e.expression),t)}function ZO(e,t,n){const r=0!==Qg(e)||DO(e)?lD(t):t,i=e.argumentExpression,o=tM(i);if(kl(r)||r===yn)return r;if(yR(r)&&!Ru(i))return $o(i,ua.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Rt;const a=function(e){const t=sh(e);if(80===t.kind){const r=nN(t);if(3&r.flags){let t=e,i=e.parent;for(;i;){if(250===i.kind&&t===i.statement&&QO(i)===r&&1===Pg(n=YR(i.expression)).length&&Ag(n,an))return!0;t=i,i=i.parent}}}var n;return!1}(i)?an:o,s=Qg(e);let c;0===s?c=32:(c=4|(Wx(r)&&!VT(r)?2:0),2===s&&(c|=32));const l=sk(r,a,c,e)||Rt;return kM(LO(e,ha(e).resolvedSymbol,l,i,n),e)}function eL(e){return R_(e)||bF(e)||xu(e)}function tL(e){return eL(e)&&_(e.typeArguments,vz),216===e.kind?tM(e.template):xu(e)?tM(e.attributes):PF(e)?tM(e.left):R_(e)&&_(e.arguments,(e=>{tM(e)})),fi}function nL(e){return tL(e),mi}function rL(e){return!!e&&(231===e.kind||238===e.kind&&e.isSpread)}function iL(e){return b(e,rL)}function oL(e){return!!(16&e.flags)}function aL(e){return!!(23&e.flags)}function sL(e,t,n,r=!1){if(XE(e))return!0;let i,o=!1,a=wj(n),s=Dj(n);if(216===e.kind)if(i=t.length,229===e.template.kind){const t=ye(e.template.templateSpans);o=Nd(t.literal)||!!t.literal.isUnterminated}else{const t=e.template;_n.assert(15===t.kind),o=!!t.isUnterminated}else if(171===e.kind)i=CL(e,n);else if(227===e.kind)i=1;else if(xu(e)){if(o=e.attributes.end===e.end,o)return!0;i=0===s?t.length:1,a=0===t.length?a:1,s=Math.min(s,1)}else{if(!e.arguments)return _n.assert(215===e.kind),0===Dj(n);{i=r?t.length+1:t.length,o=e.arguments.end===e.end;const a=iL(t);if(a>=0)return a>=Dj(n)&&(Nj(n)||aa)return!1;if(o||i>=s)return!0;for(let t=i;t=r&&t.length<=n}function lL(e,t){let n;return!!(e.target&&(n=Sj(e.target,t))&&Vx(n))}function _L(e){return dL(e,0,!1)}function uL(e){return dL(e,0,!1)||dL(e,1,!1)}function dL(e,t,n){if(1048576&e.flags){const r=ff(e);if(n||0===r.properties.length&&0===r.indexInfos.length){if(0===t&&1===r.callSignatures.length&&0===r.constructSignatures.length)return r.callSignatures[0];if(1===t&&1===r.constructSignatures.length&&0===r.callSignatures.length)return r.constructSignatures[0]}}}function pL(e,t,n,r){const i=gD(oy(e),e,0,r),o=Fj(t),a=n&&(o&&524288&o.flags?n.nonFixingMapper:n.mapper);return fD(a?wS(t,a):t,e,((e,t)=>{qD(i.inferences,e,t)})),n||mD(t,e,((e,t)=>{qD(i.inferences,e,t,128)})),ny(e,eN(i),Em(t.declaration))}function fL(e){if(!e)return gn;const t=tM(e);return yb(e)?t:vl(e.parent)?Vw(t):yl(e.parent)?$w(t):t}function mL(e,t,n,r,i){if(xu(e))return function(e,t,n,r){const i=dI(t,e),o=AR(e.attributes,i,r,n);return qD(r.inferences,o,i),eN(r)}(e,t,r,i);if(171!==e.kind&&227!==e.kind){const n=h(t.typeParameters,(e=>!!Hf(e))),r=aI(e,n?8:0);if(r){const o=jh(t);if(TD(o)){const a=uI(e);if(!(!n&&aI(e,8)!==r)){const e=LS(r,SD(hD(a,1))),t=_L(e),n=t&&t.typeParameters?ly(ry(t,t.typeParameters)):e;qD(i.inferences,n,o,128)}const s=gD(t.typeParameters,t,i.flags),c=LS(r,a&&function(e){return e.outerReturnMapper??(e.outerReturnMapper=xS(e.returnMapper,hD(e).mapper))}(a));qD(s.inferences,c,o),i.returnMapper=V(s.inferences,HR)?SD(function(e){const t=C(e.inferences,HR);return t.length?yD(N(t,kD),e.signature,e.flags,e.compareTypes):void 0}(s)):void 0}}}const o=Ej(t),a=o?Math.min(wj(t)-1,n.length):n.length;if(o&&524288&o.flags){const e=y(i.inferences,(e=>e.typeParameter===o));e&&(e.impliedArity=b(n,rL,a)<0?n.length-a:void 0)}const s=Ah(t);if(s&&TD(s)){const t=kL(e);qD(i.inferences,fL(t),s)}for(let e=0;e=n-1){const t=e[n-1];if(rL(t)){const e=238===t.kind?t.type:AR(t.expression,r,i,o);return lw(e)?gL(e):Tb(MB(33,e,Ut,231===t.kind?t.expression:t),a)}}const s=[],c=[],l=[];for(let _=t;_tk(void 0,ua.Type_0_does_not_satisfy_the_constraint_1):void 0,l=r||ua.Type_0_does_not_satisfy_the_constraint_1;s||(s=dS(o,a));const _=a[e];if(!nT(_,Bd(LS(i,s),_),n?t[e]:void 0,l,c))return}}return a}function vL(e){if(RI(e.tagName))return 2;const t=ym(tM(e.tagName));return l(mg(t,1))?0:l(mg(t,0))?1:2}function bL(e){return PA(e,Em(e)?-2147483615:33)}function xL(e,t,n,r,i,o,a){const c={errors:void 0,skipLogging:!0};if(ku(e))return function(e,t,n,r,i,o,a){const s=dI(t,e),c=XE(e)?BI(e):AR(e.attributes,s,void 0,r),_=4&r?eD(c):c;return function(){var t;if(VI(e))return!0;const n=!HE(e)&&!$E(e)||RI(e.tagName)||nP(e.tagName)?void 0:tM(e.tagName);if(!n)return!0;const r=mg(n,0);if(!l(r))return!0;const o=Cq(e);if(!o)return!0;const s=ss(o,111551,!0,!1,e);if(!s)return!0;const c=mg(eu(s),0);if(!l(c))return!0;let _=!1,u=0;for(const e of c){const t=mg(kj(e,0),0);if(l(t))for(const e of t){if(_=!0,Nj(e))return!0;const t=wj(e);t>u&&(u=t)}}if(!_)return!0;let d=1/0;for(const e of r){const t=Dj(e);t{n.push(e.expression)})),n}if(171===e.kind)return function(e){const t=e.expression,n=Hj(e);if(n){const e=[];for(const r of n.parameters){const n=eu(r);e.push(SL(t,n))}return e}return _n.fail()}(e);if(227===e.kind)return[e.left];if(xu(e))return e.attributes.properties.length>0||HE(e)&&e.parent.children.length>0?[e.attributes]:s;const t=e.arguments||s,n=iL(t);if(n>=0){const e=t.slice(0,n);for(let r=n;r{var o;const a=i.target.elementFlags[r],s=SL(n,4&a?Tb(t):t,!!(12&a),null==(o=i.target.labeledElementDeclarations)?void 0:o[r]);e.push(s)})):e.push(n)}return e}return t}function CL(e,t){return z.experimentalDecorators?function(e,t){switch(e.parent.kind){case 264:case 232:return 1;case 173:return Lv(e.parent)?3:2;case 175:case 178:case 179:return t.parameters.length<=2?2:3;case 170:return 3;default:return _n.fail()}}(e,t):Math.min(Math.max(wj(t),1),2)}function wL(e){const t=bd(e),{start:n,length:r}=Qp(t,gF(e.expression)?e.expression.name:e.expression);return{start:n,length:r,sourceFile:t}}function DL(e,t,...n){if(yF(e)){const{sourceFile:r,start:i,length:o}=wL(e);return"message"in t?Qx(r,i,o,t,...n):Wp(r,t)}return"message"in t?Mp(e,t,...n):zp(bd(e),e,t)}function NL(e,t,n,r){var i;const o=iL(n);if(o>-1)return Mp(n[o],ua.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let a,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,_=Number.POSITIVE_INFINITY;for(const e of t){const t=Dj(e),r=wj(e);tl&&(l=t),n.length1&&(b=L(S,Eo,w,D)),b||(b=L(S,Io,w,D));const F=ha(e);if(F.resolvedSignature!==gi&&!n)return _n.assert(F.resolvedSignature),F.resolvedSignature;if(b)return b;if(b=function(e,t,n,r,i){return _n.assert(t.length>0),Sz(e),r||1===t.length||t.some((e=>!!e.typeParameters))?function(e,t,n,r){const i=function(e,t){let n=-1,r=-1;for(let i=0;i=t)return i;a>r&&(r=a,n=i)}return n}(t,void 0===je?n.length:je),o=t[i],{typeParameters:a}=o;if(!a)return o;const s=eL(e)?e.typeArguments:void 0,c=s?iy(o,function(e,t,n){const r=e.map(Jz);for(;r.length>t.length;)r.pop();for(;r.lengthe.thisParameter));let n;t.length&&(n=PL(t,t.map(mj)));const{min:r,max:i}=lT(e,EL),o=[];for(let t=0;tmJ(e)?tSj(e,t)))))}const a=R(e,(e=>mJ(e)?ye(e.parameters):void 0));let s=128;if(0!==a.length){const t=Tb(Xb(R(e,Xh),2));o.push(AL(a,t)),s|=1}e.some(gJ)&&(s|=2);return zd(e[0].declaration,void 0,n,o,ix(e.map(jh)),void 0,r,s)}(t)}(e,S,T,!!n,r),F.resolvedSignature=b,f)if(!o&&p&&(o=ua.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),m)if(1===m.length||m.length>3){const t=m[m.length-1];let n;m.length>3&&(n=tk(n,ua.The_last_overload_gave_the_following_error),n=tk(n,ua.No_overload_matches_this_call)),o&&(n=tk(n,o));const r=xL(e,T,t,Io,0,!0,(()=>n));if(r)for(const e of r)t.declaration&&m.length>3&&cT(e,Mp(t.declaration,ua.The_last_overload_is_declared_here)),I(t,e),wo.add(e);else _n.fail("No error for last overload signature")}else{const t=[];let n=0,r=Number.MAX_VALUE,i=0,a=0;for(const o of m){const s=xL(e,T,o,Io,0,!0,(()=>tk(void 0,ua.Overload_0_of_1_2_gave_the_following_error,a+1,S.length,Ic(o))));s?(s.length<=r&&(r=s.length,i=a),n=Math.max(n,s.length),t.push(s)):_n.fail("No error for 3 or fewer overload signatures"),a++}const s=n>1?t[i]:P(t);_n.assert(s.length>0,"No errors reported for 3 or fewer overload signatures");let c=tk(N(s,$p),ua.No_overload_matches_this_call);o&&(c=tk(c,o));const l=[...A(s,(e=>e.relatedInformation))];let _;if(h(s,(e=>e.start===s[0].start&&e.length===s[0].length&&e.file===s[0].file))){const{file:e,start:t,length:n}=s[0];_={file:e,start:t,length:n,code:c.code,category:c.category,messageText:c,relatedInformation:l}}else _=zp(bd(e),R_(E=e)?gF(E.expression)?E.expression.name:E.expression:bF(E)?gF(E.tag)?E.tag.name:E.tag:xu(E)?E.tagName:E,c,l);I(m[0],_),wo.add(_)}else if(g)wo.add(NL(e,[g],T,o));else if(v)yL(v,e.typeArguments,!0,o);else if(!d){const n=C(t,(e=>cL(e,x)));0===n.length?wo.add(function(e,t,n,r){const i=n.length;if(1===t.length){const o=t[0],a=kh(o.typeParameters),s=l(o.typeParameters);if(r){let t=tk(void 0,ua.Expected_0_type_arguments_but_got_1,ai?a=Math.min(a,t):n1?y(c,(e=>a_(e)&&Fd(e.body))):void 0;if(l){const e=wh(l),n=!e.typeParameters;L([e],Io,n)&&cT(t,Mp(l,ua.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}m=i,g=o,v=a}function L(t,n,r,i=!1){if(m=void 0,g=void 0,v=void 0,r){const r=t[0];if(V(x)||!sL(e,T,r,i))return;return xL(e,T,r,n,0,!1,void 0)?void(m=[r]):r}for(let r=0;r!!(4&e.flags))))return $o(e,ua.Cannot_create_an_instance_of_an_abstract_class),nL(e);const o=r.symbol&&hx(r.symbol);return o&&Fv(o,64)?($o(e,ua.Cannot_create_an_instance_of_an_abstract_class),nL(e)):FL(e,i,t,n,0)}const o=mg(r,0);if(o.length){const r=FL(e,o,t,n,0);return le||(r.declaration&&!HL(r.declaration)&&jh(r)!==gn&&$o(e,ua.Only_a_void_function_can_be_called_with_the_new_keyword),Ah(r)===gn&&$o(e,ua.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),r}return BL(e.expression,r,1),nL(e)}function jL(e,t){return Xe(e)?V(e,(e=>jL(e,t))):134217728===e.compositeKind?V(e.compositeSignatures,t):t(e)}function RL(e,t){const n=Iu(t);if(!l(n))return!1;const r=n[0];if(268435456&r.flags){const t=_p(r.types);let n=0;for(const i of r.types){if(!t[n]&&3&yx(i)){if(i.symbol===e)return!0;if(RL(e,i))return!0}n++}return!1}return r.symbol===e||RL(e,r)}function ML(e,t,n){let r;const i=0===n,o=RM(t),a=o&&mg(o,n).length>0;if(134217728&t.flags){const e=t.types;let o=!1;for(const a of e){if(0!==mg(a,n).length){if(o=!0,r)break}else if(r||(r=tk(r,i?ua.Type_0_has_no_call_signatures:ua.Type_0_has_no_construct_signatures,Oc(a)),r=tk(r,i?ua.Not_all_constituents_of_type_0_are_callable:ua.Not_all_constituents_of_type_0_are_constructable,Oc(t))),o)break}o||(r=tk(void 0,i?ua.No_constituent_of_type_0_is_callable:ua.No_constituent_of_type_0_is_constructable,Oc(t))),r||(r=tk(r,i?ua.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:ua.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Oc(t)))}else r=tk(r,i?ua.Type_0_has_no_call_signatures:ua.Type_0_has_no_construct_signatures,Oc(t));let s=i?ua.This_expression_is_not_callable:ua.This_expression_is_not_constructable;if(yF(e.parent)&&0===e.parent.arguments.length){const{resolvedSymbol:t}=ha(e);t&&32768&t.flags&&(s=ua.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:tk(r,s),relatedMessage:a?ua.Did_you_forget_to_use_await:void 0}}function BL(e,t,n,r){const{messageChain:i,relatedMessage:o}=ML(e,t,n),a=zp(bd(e),e,i);if(o&&cT(a,Mp(e,o)),yF(e.parent)){const{start:t,length:n}=wL(e.parent);a.start=t,a.length=n}wo.add(a),JL(t,n,r?cT(a,r):a)}function JL(e,t,n){if(!e.symbol)return;const r=ga(e.symbol).originatingImport;if(r&&!_f(r)){const i=mg(eu(ga(e.symbol).target),t);if(!i||!i.length)return;cT(n,Mp(r,ua.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function zL(e,t,n){const r=tM(e.expression),i=ym(r);if(kl(i))return nL(e);const o=mg(i,0),a=mg(i,1).length;if(OL(r,i,o.length,a))return tL(e);if(s=e,(c=o).length&&h(c,(e=>0===e.minArgumentCount&&!mJ(e)&&e.parameters.lengthEm(e.declaration)&&!!Bc(e.declaration)))?($o(e,ua.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Oc(i)),nL(e)):FL(e,a,t,n,r)}(e,t,n);case 215:return LL(e,t,n);case 216:return function(e,t,n){const r=tM(e.tag),i=ym(r);if(kl(i))return nL(e);const o=mg(i,0),a=mg(i,1).length;if(OL(r,i,o.length,a))return tL(e);if(!o.length){if(fF(e.parent)){const t=Mp(e.tag,ua.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return wo.add(t),nL(e)}return BL(e.tag,i,0),nL(e)}return FL(e,o,t,n,0)}(e,t,n);case 171:return zL(e,t,n);case 290:case 287:case 286:return VL(e,t,n);case 227:return function(e,t,n){const r=tM(e.right);if(!gl(r)){const i=bR(r);if(i){const r=ym(i);if(kl(r))return nL(e);const o=mg(r,0),a=mg(r,1);if(OL(i,r,o.length,a.length))return tL(e);if(o.length)return FL(e,o,t,n,0)}else if(!$z(r)&&!GS(r,ir))return $o(e.right,ua.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),nL(e)}return fi}(e,t,n)}_n.assertNever(e,"Branch in 'resolveSignature' should be unreachable.")}function $L(e,t,n){const r=ha(e),i=r.resolvedSignature;if(i&&i!==gi&&!t)return i;const o=Qi;i||(Qi=Ki.length),r.resolvedSignature=gi;const a=WL(e,t,n||0);return Qi=o,a!==gi&&(r.resolvedSignature=Fi===Ei?a:i),a}function HL(e){var t;if(!e||!Em(e))return!1;const n=mE(e)||SF(e)?e:(pE(e)||sP(e))&&e.initializer&&SF(e.initializer)?e.initializer:void 0;if(n){if(Bc(e))return!0;if(sP(ih(n.parent)))return!1;const r=Fs(n);return!!(null==(t=null==r?void 0:r.members)?void 0:t.size)}return!1}function KL(e,t){var n,r;if(t){const i=ga(t);if(!i.inferredClassSymbol||!i.inferredClassSymbol.has(lJ(e))){const o=Qu(e)?e:la(e);return o.exports=o.exports||Xu(),o.members=o.members||Xu(),o.flags|=32&t.flags,(null==(n=t.exports)?void 0:n.size)&&fa(o.exports,t.exports),(null==(r=t.members)?void 0:r.size)&&fa(o.members,t.members),(i.inferredClassSymbol||(i.inferredClassSymbol=new Map)).set(lJ(o),o),o}return i.inferredClassSymbol.get(lJ(e))}}function GL(e,t){if(!e.parent)return;let n,r;if(pE(e.parent)&&e.parent.initializer===e){if(!(Em(e)||dU(e.parent)&&a_(e)))return;n=e.parent.name,r=e.parent}else if(PF(e.parent)){const i=e.parent,o=e.parent.operatorToken.kind;if(64!==o||!t&&i.right!==e){if(!(57!==o&&61!==o||(pE(i.parent)&&i.parent.initializer===i?(n=i.parent.name,r=i.parent):PF(i.parent)&&64===i.parent.operatorToken.kind&&(t||i.parent.right===i)&&(n=i.parent.left,r=n),n&&cg(n)&&Qm(n,i.left))))return}else n=i.left,r=n}else t&&mE(e)&&(n=e.name,r=e);return r&&n&&(t||Km(e,pb(n)))?Ps(r):void 0}function XL(e,t){var n,r,i,o;if(!(128&e.flags)&&(e.declaration&&536870912&e.declaration.flags)){const a=QL(t),s=db(um(t));n=a,r=e.declaration,i=s,o=Ic(e),Qo(r,i?Mp(n,ua.The_signature_0_of_1_is_deprecated,o,i):Mp(n,ua._0_is_deprecated,o))}}function QL(e){switch((e=sh(e)).kind){case 214:case 171:case 215:return QL(e.expression);case 216:return QL(e.tag);case 287:case 286:return QL(e.tagName);case 213:return e.argumentExpression;case 212:return e.name;case 184:const t=e;return CN(t.typeName)?t.typeName.right:t;default:return e}}function YL(e){if(!yF(e))return!1;let t=e.expression;if(gF(t)&&"for"===t.name.escapedText&&(t=t.expression),!_N(t)||"Symbol"!==t.escapedText)return!1;const n=Jv(!1);return!!n&&n===Ge(t,"Symbol",111551,void 0,!1)}function ZL(e){if(function(e){if(z.verbatimModuleSyntax&&1===U)return rU(e,Ho(e));if(237===e.expression.kind){if(99!==U&&200!==U)return rU(e,ua.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve)}else if(5===U)return rU(e,ua.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext);if(e.typeArguments)return rU(e,ua.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const t=e.arguments;if(!(100<=U&&U<=199)&&99!==U&&200!==U&&(Iq(t),t.length>1)){return rU(t[1],ua.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve)}if(0===t.length||t.length>2)return rU(e,ua.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const n=y(t,LF);if(n)return rU(n,ua.Argument_of_dynamic_import_cannot_be_spread_element)}(e),0===e.arguments.length)return Xj(e,At);const t=e.arguments[0],n=IR(t),r=e.arguments.length>1?IR(e.arguments[1]):void 0;for(let t=2;t!!e.typeParameters&&cL(e,n))),(e=>{const t=yL(e,n,!0);return t?ny(e,t,Em(e.declaration)):e}))}}function uj(e,t,n){const r=tM(e,n),i=aS(t);if(kl(i))return i;return oT(r,i,dc(t.parent,(e=>239===e.kind||351===e.kind)),e,ua.Type_0_does_not_satisfy_the_expected_type_1),r}function dj(e){return function(e){const t=e.name.escapedText;switch(e.keywordToken){case 105:if("target"!==t)return rU(e.name,ua._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,gc(e.name.escapedText),Ea(e.keywordToken),"target");break;case 102:if("meta"!==t){const n=yF(e.parent)&&e.parent.expression===e;if("defer"!==t)return n?rU(e.name,ua._0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer,gc(e.name.escapedText)):rU(e.name,ua._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,gc(e.name.escapedText),Ea(e.keywordToken),"meta");if(!n)nU(e,e.end,0,ua._0_expected,"(")}}}(e),105===e.keywordToken?fj(e):102===e.keywordToken?"defer"===e.name.escapedText?(_n.assert(!yF(e.parent)||e.parent.expression!==e,"Trying to get the type of `import.defer` in `import.defer(...)`"),Rt):function(e){100<=U&&U<=199?99!==bd(e).impliedNodeFormat&&$o(e,ua.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):U<6&&4!==U&&$o(e,ua.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext);const t=bd(e);return _n.assert(!!(8388608&t.flags),"Containing file is missing import meta node flag."),"meta"===e.name.escapedText?Sv():Rt}(e):_n.assertNever(e.keywordToken)}function pj(e){switch(e.keywordToken){case 102:return Tv();case 105:const t=fj(e);return kl(t)?Rt:function(e){const t=na(0,"NewTargetExpression"),n=na(4,"target",8);n.parent=t,n.links.type=e;const r=Xu([n]);return t.members=r,Ys(t,r,s,s,s)}(t);default:_n.assertNever(e.keywordToken)}}function fj(e){const t=rm(e);if(t){if(177===t.kind){return eu(Fs(t.parent))}return eu(Fs(t))}return $o(e,ua.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Rt}function mj(e){const t=e.valueDeclaration;return zl(eu(e),!1,!!t&&(Pu(t)||YT(t)))}function gj(e,t,n){switch(e.name.kind){case 80:{const r=e.name.escapedText;return e.dotDotDotToken?12&n?r:`${r}_${t}`:3&n?r:`${r}_n`}case 208:if(e.dotDotDotToken){const r=e.name.elements,i=et(he(r),pF),o=r.length-((null==i?void 0:i.dotDotDotToken)?1:0);if(t=r-1)return t===r-1?o:Tb(ok(o,an));const a=[],s=[],c=[];for(let n=t;n!(1&e))),i=r<0?n.target.fixedLength:r;i>0&&(t=e.parameters.length-1+i)}}if(void 0===t){if(!n&&32&e.flags)return 0;t=e.minArgumentCount}if(r)return t;for(let n=t-1;n>=0;n--){if(262144&aE(kj(e,n),oL).flags)break;t=n}e.resolvedMinArgumentCount=t}return e.resolvedMinArgumentCount}function Nj(e){if(mJ(e)){const t=eu(e.parameters[e.parameters.length-1]);return!Fw(t)||!!(12&t.target.combinedFlags)}return!1}function Fj(e){if(mJ(e)){const t=eu(e.parameters[e.parameters.length-1]);if(!Fw(t))return gl(t)?fr:t;if(12&t.target.combinedFlags)return jb(t,t.target.fixedLength)}}function Ej(e){const t=Fj(e);return!t||iw(t)||gl(t)?void 0:t}function Pj(e){return Aj(e,hn)}function Aj(e,t){return e.parameters.length>0?kj(e,0):t}function Ij(e,t,n){const r=e.parameters.length-(mJ(e)?1:0);for(let i=0;i=0);const i=LN(e.parent)?eu(Fs(e.parent.parent)):Uz(e.parent),o=LN(e.parent)?Ut:Vz(e.parent),a=Zk(r),s=ra("target",i),c=ra("propertyKey",o),l=ra("parameterIndex",a);n.decoratorSignature=JM(void 0,void 0,[s,c,l],gn);break}case 175:case 178:case 179:case 173:{const e=t;if(!d_(e.parent))break;const r=ra("target",Uz(e)),i=ra("propertyKey",Vz(e)),o=PN(e)?gn:xb(Jz(e));if(!PN(t)||Lv(t)){const t=ra("descriptor",xb(Jz(e)));n.decoratorSignature=JM(void 0,void 0,[r,i,t],Xb([o,gn]))}else n.decoratorSignature=JM(void 0,void 0,[r,i],Xb([o,gn]));break}}return n.decoratorSignature===fi?void 0:n.decoratorSignature}(e):$j(e)}function Kj(e){const t=Uv(!0);return t!==Jn?Dy(t,[e=MM(OM(e))||qt]):qt}function Gj(e){const t=Vv(!0);return t!==Jn?Dy(t,[e=MM(OM(e))||qt]):qt}function Xj(e,t){const n=Kj(t);return n===qt?($o(e,_f(e)?ua.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:ua.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Rt):(Wv(!0)||$o(e,_f(e)?ua.A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:ua.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),n)}function Qj(e,t){if(!e.body)return Rt;const n=Lh(e),r=!!(2&n),i=!!(1&n);let o,a,s,c=gn;if(242!==e.body.kind)o=IR(e.body,t&&-9&t),zR(e.body)&&(o=Hk(o)),r&&(o=OM(PM(o,!1,e,ua.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(i){const n=rR(e,t);n?n.length>0&&(o=Xb(n,2)):c=hn;const{yieldTypes:r,nextTypes:i}=function(e,t){const n=[],r=[],i=!!(2&Lh(e));return Ff(e.body,(e=>{let o,a=e.expression?tM(e.expression,t&&-9&t):Vt;if(e.expression&&zR(e.expression)&&(a=Hk(a)),se(n,Zj(e,a,At,i)),e.asteriskToken){const t=$B(a,i?19:17,e.expression);o=t&&t.nextType}else o=aI(e,void 0);o&&se(r,o)})),{yieldTypes:n,nextTypes:r}}(e,t);a=V(r)?Xb(r,2):void 0,s=V(i)?ix(i):void 0}else{const r=rR(e,t);if(!r)return 2&n?Xj(e,hn):hn;if(0===r.length){const t=jA(e,void 0),r=t&&iE(PJ(t,n)||gn,(e=>!!(4&e.flags)))?Ut:gn;return 2&n?Xj(e,r):r}o=Xb(r,2)}if(o||a||s){if(a&&pD(e,a,3),o&&pD(e,o,1),s&&pD(e,s,2),o&&hw(o)||a&&hw(a)||s&&hw(s)){const t=hI(e),n=t?t===wh(e)?i?void 0:o:iI(jh(t),e,void 0):void 0;i?(a=Nw(a,n,0,r),o=Nw(o,n,1,r),s=Nw(s,n,2,r)):o=function(e,t,n){e&&hw(e)&&(e=Dw(e,t?n?EM(t):t:void 0));return e}(o,n,r)}a&&(a=lD(a)),o&&(o=lD(o)),s&&(s=lD(s))}return i?Yj(a||hn,o||c,s||LA(2,e)||qt,r):r?Kj(o||c):o||c}function Yj(e,t,n,r){const i=r?Si:Ti,o=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||qt,t=i.resolveIterationType(t,void 0)||qt,o===Jn){const r=i.getGlobalIterableIteratorType(!1);return r!==Jn?bb(r,[e,t,n]):(i.getGlobalIterableIteratorType(!0),In)}return bb(o,[e,t,n])}function Zj(e,t,n,r){const i=e.expression||e,o=e.asteriskToken?MB(r?19:17,t,n,i):t;return r?RM(o,i,e.asteriskToken?ua.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:ua.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function eR(e,t,n){let r=0;for(let i=0;i=t?n[i]:void 0;r|=void 0!==o?tJ.get(o)||32768:0}return r}function tR(e){const t=ha(e);if(void 0===t.isExhaustive){t.isExhaustive=0;const n=function(e){if(222===e.expression.kind){const t=XF(e);if(!t)return!1;const n=Bf(IR(e.expression.expression)),r=eR(0,0,t);return 3&n.flags?!(556800&~r):!iE(n,(e=>TN(e,r)===r))}const t=Bf(IR(e.expression));if(!bw(t))return!1;const n=HF(e);if(!n.length||V(n,gw))return!1;return r=lE(t,Hk),i=n,134217728&r.flags?!_(r.types,(e=>!k(i,e))):k(i,r);var r,i}(e);0===t.isExhaustive&&(t.isExhaustive=n)}else 0===t.isExhaustive&&(t.isExhaustive=!1);return t.isExhaustive}function nR(e){return e.endFlowNode&&tP(e.endFlowNode)}function rR(e,t){const n=Lh(e),r=[];let i=nR(e),o=!1;if(Nf(e.body,(a=>{let s=a.expression;if(s){if(s=sh(s,!0),2&n&&224===s.kind&&(s=sh(s.expression,!0)),214===s.kind&&80===s.expression.kind&&IR(s.expression).symbol===Ns(e.symbol)&&(!JT(e.symbol.valueDeclaration)||gP(s.expression)))return void(o=!0);let i=IR(s,t&&-9&t);2&n&&(i=OM(PM(i,!1,e,ua.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),262144&i.flags&&(o=!0),se(r,zR(s)?Hk(i):i)}else i=!0})),0!==r.length||i||!o&&!function(e){switch(e.kind){case 219:case 220:return!0;case 175:return 211===e.parent.kind;default:return!1}}(e))return!(Y&&r.length&&i)||HL(e)&&r.some((t=>t.symbol===e.symbol))||se(r,Ut),r}function iR(e,t){return void c((function(){const n=Lh(e),r=t&&PJ(t,n);if(r&&(mR(r,16)||5&r.flags))return;if(174===e.kind||Nd(e.body)||242!==e.body.kind||!nR(e))return;const i=1024&e.flags,o=hv(e)||e;if(r&&262144&r.flags)$o(o,ua.A_function_returning_never_cannot_have_a_reachable_end_point);else if(r&&!i)$o(o,ua.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(r&&Y&&!QS(Ut,r))$o(o,ua.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(z.noImplicitReturns){if(!r){if(!i)return;const t=jh(wh(e));if(AJ(e,t))return}$o(o,ua.Not_all_code_paths_return_a_value)}}))}function oR(e,t){if(_n.assert(175!==e.kind||Jf(e)),Sz(e),SF(e)&&kB(e,e.name),t&&4&t&&JS(e)){if(!hv(e)&&!RT(e)){const n=yI(e);if(n&&TD(jh(n))){const n=ha(e);if(n.contextFreeType)return n.contextFreeType;const r=Qj(e,t),i=zd(void 0,void 0,void 0,s,r,void 0,0,64),o=Ys(e.symbol,j,[i],s,s);return o.objectFlags|=262144,n.contextFreeType=o}}return zn}return jq(e)||219!==e.kind||zq(e),function(e,t){const n=ha(e);if(!(64&n.flags)){const r=yI(e);if(!(64&n.flags)){n.flags|=64;const i=pe(mg(eu(Fs(e)),0));if(!i)return;if(JS(e))if(r){const n=uI(e);let o;if(t&&2&t){Ij(i,r,n);const e=Fj(r);e&&524288&e.flags&&(o=wS(r,n.nonFixingMapper))}o||(o=n?wS(r,n.mapper):r),function(e,t){if(t.typeParameters){if(e.typeParameters)return;e.typeParameters=t.typeParameters}if(t.thisParameter){const n=e.thisParameter;(!n||n.valueDeclaration&&!n.valueDeclaration.type)&&(n||(e.thisParameter=Zw(t.thisParameter,void 0)),Oj(e.thisParameter,eu(t.thisParameter)))}const n=e.parameters.length-(mJ(e)?1:0);for(let r=0;re.parameters.length){const n=uI(e);t&&2&t&&Ij(i,r,n)}if(r&&!Mh(e)&&!i.resolvedReturnType){const n=Qj(e,t);i.resolvedReturnType||(i.resolvedReturnType=n)}oM(e)}}}(e,t),eu(Fs(e))}function aR(e,t,n,r=!1){if(!QS(t,Tn)){const i=r&&FM(t);return Xo(e,!!i&&QS(i,Tn),n),!1}return!0}function sR(e){if(!yF(e))return!1;if(!rg(e))return!1;const t=IR(e.arguments[2]);if(pl(t,"value")){const e=lg(t,"writable"),n=e&&eu(e);if(!n||n===cn||n===ln)return!0;if(e&&e.valueDeclaration&&sP(e.valueDeclaration)){const t=tM(e.valueDeclaration.initializer);if(t===cn||t===ln)return!0}return!1}return!lg(t,"set")}function cR(e){return!!(8&ox(e)||4&e.flags&&8&ax(e)||3&e.flags&&6&lO(e)||98304&e.flags&&!(65536&e.flags)||8&e.flags||V(e.declarations,sR))}function lR(e,t,n){var r,i;if(0===n)return!1;if(cR(t)){if(4&t.flags&&Cx(e)&&110===e.expression.kind){const n=yP(e);if(!n||177!==n.kind&&!HL(n))return!0;if(t.valueDeclaration){const e=PF(t.valueDeclaration),o=n.parent===t.valueDeclaration.parent,a=n===t.valueDeclaration.parent,s=e&&(null==(r=t.parent)?void 0:r.valueDeclaration)===n.parent,c=e&&(null==(i=t.parent)?void 0:i.valueDeclaration)===n;return!(o||a||s||c)}}return!0}if(Cx(e)){const t=sh(e.expression);if(80===t.kind){const e=ha(t).resolvedSymbol;if(2097152&e.flags){const t=Pa(e);return!!t&&275===t.kind}}}return!1}function _R(e,t,n){const r=PA(e,39);return 80===r.kind||Cx(r)?!(64&r.flags)||($o(e,n),!1):($o(e,t),!1)}function uR(e){tM(e.expression);const t=sh(e.expression);if(!Cx(t))return $o(t,ua.The_operand_of_a_delete_operator_must_be_a_property_reference),fn;gF(t)&&uN(t.name)&&$o(t,ua.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const n=Js(ha(t).resolvedSymbol);return n&&(cR(n)?$o(t,ua.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):function(e,t){const n=eu(t);!Y||262147&n.flags||(ve?16777216&t.flags:HN(n,16777216))||$o(e,ua.The_operand_of_a_delete_operator_must_be_optional)}(t,n)),fn}function dR(e){let t=!1;const n=Yf(e);if(n&&ON(n)){$o(e,NF(e)?ua.await_expression_cannot_be_used_inside_a_class_static_block:ua.await_using_statements_cannot_be_used_inside_a_class_static_block),t=!0}else if(!(65536&e.flags))if(nm(e)){const n=bd(e);if(!eU(n)){let r;if(!hp(n,z)){r??(r=Gp(n,e.pos));const i=NF(e)?ua.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:ua.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,o=Qx(n,r.start,r.length,i);wo.add(o),t=!0}switch(U){case 100:case 101:case 102:case 199:if(1===n.impliedNodeFormat){r??(r=Gp(n,e.pos)),wo.add(Qx(n,r.start,r.length,ua.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),t=!0;break}case 7:case 99:case 200:case 4:if(q>=4)break;default:r??(r=Gp(n,e.pos));const i=NF(e)?ua.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:ua.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;wo.add(Qx(n,r.start,r.length,i)),t=!0}}}else{const r=bd(e);if(!eU(r)){const i=Gp(r,e.pos),o=NF(e)?ua.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:ua.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,a=Qx(r,i.start,i.length,o);if(n&&177!==n.kind&&!(2&Lh(n))){cT(a,Mp(n,ua.Did_you_mean_to_mark_this_function_as_async))}wo.add(a),t=!0}}return NF(e)&&OA(e)&&($o(e,ua.await_expressions_cannot_be_used_in_a_parameter_initializer),t=!0),t}function pR(e){return mR(e,4224)?gR(e,3)||mR(e,67648)?Tn:sn:an}function fR(e,t){if(mR(e,t))return!0;const n=Bf(e);return!!n&&mR(n,t)}function mR(e,t){if(e.flags&t)return!0;if(402653184&e.flags){const n=e.types;for(const e of n)if(mR(e,t))return!0}return!1}function gR(e,t,n){return!!(e.flags&t)||!(n&&31&e.flags)&&(!!(67648&t)&&QS(e,an)||!!(4224&t)&&QS(e,sn)||!!(12583968&t)&&QS(e,rn)||!!(8448&t)&&QS(e,fn)||!!(16&t)&&QS(e,gn)||!!(262144&t)&&QS(e,hn)||!!(8&t)&&QS(e,Qt)||!!(4&t)&&QS(e,Ut)||!!(512&t)&&QS(e,mn)||!!(131072&t)&&QS(e,xn))}function hR(e,t,n){return 134217728&e.flags?h(e.types,(e=>hR(e,t,n))):gR(e,t,n)}function yR(e){return!!(16&yx(e))&&!!e.symbol&&vR(e.symbol)}function vR(e){return!!(128&e.flags)}function bR(e){const t=rJ("hasInstance");if(hR(e,131072)){const n=lg(e,t);if(n){const e=eu(n);if(e&&0!==mg(e,0).length)return e}}}function xR(e,t,n,r){if(n===yn||r===yn)return yn;if(uN(e)){if((qe===Mn||!!(268435456&e.flags)&&zT(Bf(e))))&&$o(t,ua.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Oc(r)),fn}function kR(e,t,n,r,i=!1){const o=e.properties,a=o[n];if(304===a.kind||305===a.kind){const e=a.name,n=bx(e);if(lC(n)){const e=lg(t,_C(n));e&&($O(e,a,i),dO(a,!1,!0,t,e))}const r=Fl(a,ok(t,n,32|(bI(a)?16:0),e));return TR(305===a.kind?a:a.initializer,r)}if(306===a.kind){if(!(njb(e,n))):Tb(r),i)}$o(o.operatorToken,ua.A_rest_element_cannot_have_an_initializer)}}}function TR(e,t,n,r){let i;if(305===e.kind){const r=e;r.objectAssignmentInitializer&&(Y&&!HN(tM(r.objectAssignmentInitializer),16777216)&&(t=ZN(t,524288)),function(e,t,n,r,i){const o=t.kind;if(64===o&&(211===e.kind||210===e.kind))return TR(e,tM(n,r),r,110===n.kind);let a;a=Xv(o)?LB(e,r):tM(e,r);const s=tM(n,r);NR(e,t,n,a,s,r,i)}(r.name,r.equalsToken,r.objectAssignmentInitializer,n)),i=e.name}else i=e;return 227===i.kind&&64===i.operatorToken.kind&&(we(i,n),i=i.left,Y&&(t=ZN(t,524288))),211===i.kind?function(e,t,n){const r=e.properties;if(Y&&0===r.length)return SO(t,e);for(let i=0;i=32&&Go(_P(ih(n.parent.parent)),a||t,ua.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2,Xd(e),Ea(s),r.value%32)}return l}case 40:case 65:if(r===yn||i===yn)return yn;let h;if(gR(r,12583968)||gR(i,12583968)||(r=SO(r,e),i=SO(i,n)),gR(r,67648,!0)&&gR(i,67648,!0)?h=an:gR(r,4224,!0)&&gR(i,4224,!0)?h=sn:gR(r,12583968,!0)||gR(i,12583968,!0)?h=rn:(gl(r)||gl(i))&&(h=kl(r)||kl(i)?Rt:At),h&&!d(s))return h;if(!h){const e=12655843;return m(((t,n)=>gR(t,e)&&gR(n,e))),At}return 65===s&&p(h),h;case 30:case 32:case 33:case 34:return d(s)&&(r=Sw(SO(r,e)),i=Sw(SO(i,n)),f(((e,t)=>{if(gl(e)||gl(t))return!0;const n=QS(e,Tn),r=QS(t,Tn);return n&&r||!n&&!r&&tT(e,t)}))),fn;case 35:case 36:case 37:case 38:if(!(o&&64&o)){if((Ll(e)||Ll(n))&&(!Em(e)||37===s||38===s)){const e=35===s||37===s;$o(a,ua.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,e?"false":"true")}!function(e,t,n,r){const i=g(sh(n)),o=g(sh(r));if(i||o){const a=$o(e,ua.This_condition_will_always_return_0,Ea(37===t||35===t?97:112));if(i&&o)return;const s=38===t||36===t?Ea(54):"",c=i?r:n,l=sh(c);cT(a,Mp(c,ua.Did_you_mean_0,`${s}Number.isNaN(${cb(l)?Rp(l):"..."})`))}}(a,s,e,n),f(((e,t)=>wR(e,t)||wR(t,e)))}return fn;case 104:return function(e,t,n,r,i){if(n===yn||r===yn)return yn;!gl(n)&&hR(n,12713980)&&$o(e,ua.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),_n.assert(hb(e.parent));const o=$L(e.parent,void 0,i);return o===gi?yn:(nT(jh(o),fn,t,ua.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),fn)}(e,n,r,i,o);case 103:return xR(e,n,r,i);case 56:case 77:{const e=HN(r,4194304)?Xb([(_=Y?r:kw(i),lE(_,Jw)),i]):r;return 77===s&&p(i),e}case 57:case 76:{const e=HN(r,8388608)?Xb([Vw(Rw(r)),i],2):r;return 76===s&&p(i),e}case 61:case 78:{const e=HN(r,262144)?Xb([Vw(r),i],2):r;return 78===s&&p(i),e}case 64:const y=PF(e.parent)?ng(e.parent):0;return function(e,t){if(2===e)for(const e of mf(t)){const t=eu(e);if(t.symbol&&32&t.symbol.flags){const t=e.escapedName,n=Ge(e.valueDeclaration,t,788968,void 0,!1);(null==n?void 0:n.declarations)&&n.declarations.some(KP)&&(da(n,ua.Duplicate_identifier_0,gc(t),e),da(e,ua.Duplicate_identifier_0,gc(t),n))}}}(y,i),function(t){var r;switch(t){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const t=Ps(e),i=Hm(n);return!!i&&mF(i)&&!!(null==(r=null==t?void 0:t.exports)?void 0:r.size);default:return!1}}(y)?(1048576&i.flags&&(2===y||6===y||jT(i)||kN(i)||1&yx(i))||p(i),r):(p(i),i);case 28:if(!z.allowUnreachableCode&&CR(e)&&!(218===(l=e.parent).parent.kind&&WD(l.left)&&"0"===l.left.text&&(yF(l.parent.parent)&&l.parent.parent.expression===l.parent||216===l.parent.parent.kind)&&(Cx(l.right)||_N(l.right)&&"eval"===l.right.escapedText))){const t=bd(e),n=Ya(t.text,e.pos);t.parseDiagnostics.some((e=>e.code===ua.JSX_expressions_must_have_one_parent_element.code&&As(e,n)))||$o(e,ua.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return i;default:return _n.fail()}var l,_;function u(e,t){return gR(e,4224)&&gR(t,4224)}function d(t){const o=fR(r,16896)?e:fR(i,16896)?n:void 0;return!o||($o(o,ua.The_0_operator_cannot_be_applied_to_type_symbol,Ea(t)),!1)}function p(i){nb(s)&&c((function(){let o=r;_z(t.kind)&&212===e.kind&&(o=CO(e,void 0,!0));if(_R(e,ua.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,ua.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let t;if(ve&&gF(e)&&mR(i,4)){const n=pl(YR(e.expression),e.name.escapedText);EC(i,n)&&(t=ua.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}oT(i,o,e,n,t)}}))}function f(e){return!e(r,i)&&(m(e),!0)}function m(e){let n=!1;const o=a||t;if(e){const t=MM(r),o=MM(i);n=!(t===r&&o===i)&&!(!t||!o)&&e(t,o)}let s=r,c=i;!n&&e&&([s,c]=function(e,t,n){let r=e,i=t;const o=kw(e),a=kw(t);n(o,a)||(r=o,i=a);return[r,i]}(r,i,e));const[l,_]=Lc(s,c);(function(e,n,r,i){switch(t.kind){case 37:case 35:case 38:case 36:return Xo(e,n,ua.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,r,i);default:return}})(o,n,l,_)||Xo(o,n,ua.Operator_0_cannot_be_applied_to_types_1_and_2,Ea(t.kind),l,_)}function g(e){if(_N(e)&&"NaN"===e.escapedText){const t=Qr||(Qr=pv("NaN",!1));return!!t&&t===nN(e)}return!1}}function FR(e){const t=e.parent;return kF(t)&&FR(t)||hF(t)&&t.argumentExpression===e}function ER(e){const t=[e.head.text],n=[];for(const r of e.templateSpans){const e=tM(r.expression);fR(e,16896)&&$o(r.expression,ua.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),t.push(r.literal.text),n.push(QS(e,Cn)?e:rn)}const r=216!==e.parent.kind&&Ee(e).value;return r?$k(Yk(r)):zR(e)||FR(e)||iE(aI(e,void 0)||qt,PR)?Ex(t,n):rn}function PR(e){return!!(4195328&e.flags||117964800&e.flags&&mR(Mf(e)||qt,12583968))}function AR(e,t,n,r){const i=function(e){return ZE(e)&&!$E(e.parent)?e.parent.parent:e}(e);cI(i,t,!1),function(e,t){Bi[zi]=e,Ji[zi]=t,zi++}(i,n);const o=tM(e,1|r|(n?2:0));n&&n.intraExpressionInferenceSites&&(n.intraExpressionInferenceSites=void 0);const a=mR(o,15360)&&JR(o,iI(t,e,void 0))?Hk(o):o;return zi--,Bi[zi]=void 0,Ji[zi]=void 0,lI(),a}function IR(e,t){if(t)return tM(e,t);const n=ha(e);if(!n.resolvedType){const r=Fi,i=li;Fi=Ei,li=void 0,n.resolvedType=tM(e,t),li=i,Fi=r}return n.resolvedType}function OR(e){return 217===(e=sh(e,!0)).kind||235===e.kind||NA(e)}function jR(e,t,n){const r=Wm(e);if(Em(e)){const n=nC(e);if(n)return uj(r,n,t)}const i=ZR(r)||(n?AR(r,n,void 0,t||0):IR(r,t));if(NN(pF(e)?rc(e):e)){if(207===e.name.kind&&KD(i))return function(e,t){let n;for(const r of t.elements)if(r.initializer){const t=RR(r);t&&!lg(e,t)&&(n=re(n,r))}if(!n)return e;const r=Xu();for(const t of mf(e))r.set(t.escapedName,t);for(const e of n){const t=na(16777220,RR(e));t.links.type=h_(e,!1,!1),r.set(t.escapedName,t)}const i=Ys(e.symbol,r,s,s,Pg(e));return i.objectFlags=e.objectFlags,i}(i,e.name);if(208===e.name.kind&&Fw(i))return function(e,t){if(12&e.target.combinedFlags||Iy(e)>=t.elements.length)return e;const n=t.elements,r=Jb(e).slice(),i=e.target.elementFlags.slice();for(let t=Iy(e);tJR(e,t)))}if(117964800&t.flags){const n=Mf(t)||qt;return mR(n,32)&&mR(e,1024)||mR(n,64)&&mR(e,2048)||mR(n,128)&&mR(e,4096)||mR(n,512)&&mR(e,16384)||JR(e,n)}return!!(14681088&t.flags&&mR(e,1024)||2048&t.flags&&mR(e,2048)||4096&t.flags&&mR(e,4096)||8192&t.flags&&mR(e,8192)||16384&t.flags&&mR(e,16384))}return!1}function zR(e){const t=e.parent;return $_(t)&&Sl(t.type)||NA(t)&&Sl(FA(t))||oj(e)&&xf(aI(e,0))||(kF(t)||fF(t)||LF(t))&&zR(t)||(sP(t)||cP(t)||$F(t))&&zR(t.parent)}function qR(e,t,n){const r=tM(e,t,n);return zR(e)||Of(e)?Hk(r):OR(e)?r:Dw(r,iI(aI(e,void 0),e,void 0))}function UR(e,t){return 168===e.name.kind&&TI(e.name),qR(e.initializer,t)}function VR(e,t){Hq(e),168===e.name.kind&&TI(e.name);return WR(e,oR(e,t),t)}function WR(e,t,n){if(n&&10&n){const r=dL(t,0,!0),i=dL(t,1,!0),o=r||i;if(o&&o.typeParameters){const t=rI(e,2);if(t){const i=dL(Vw(t),r?0:1,!1);if(i&&!i.typeParameters){if(8&n)return $R(e,n),zn;const t=uI(e),r=t.signature&&jh(t.signature),a=r&&uL(r);if(a&&!a.typeParameters&&!h(t.inferences,HR)){const e=function(e,t){const n=[];let r,i;for(const o of t){const t=o.symbol.escapedName;if(GR(e.inferredTypeParameters,t)||GR(n,t)){const a=Hs(na(262144,XR($(e.inferredTypeParameters,n),t)));a.target=o,r=re(r,o),i=re(i,a),n.push(a)}else n.push(o)}if(i){const e=dS(r,i);for(const t of i)t.mapper=e}return n}(t,o.typeParameters),n=ry(o,e),r=N(t.inferences,(e=>xD(e.typeParameter)));if(fD(n,i,((e,t)=>{qD(r,e,t,0,!0)})),V(r,HR)&&(mD(n,i,((e,t)=>{qD(r,e,t)})),!function(e,t){for(let n=0;ne.symbol.escapedName===t))}function XR(e,t){let n=t.length;for(;n>1&&t.charCodeAt(n-1)>=48&&t.charCodeAt(n-1)<=57;)n--;const r=t.slice(0,n);for(let t=1;;t++){const n=r+t;if(!GR(e,n))return n}}function QR(e){const t=_L(e);if(t&&!t.typeParameters)return jh(t)}function YR(e){const t=ZR(e);if(t)return t;if(268435456&e.flags&&li){const t=li[cJ(e)];if(t)return t}const n=Ii,r=tM(e,64);if(Ii!==n){(li||(li=[]))[cJ(e)]=r,FT(e,268435456|e.flags)}return r}function ZR(e){let t=sh(e,!0);if(NA(t)){const e=FA(t);if(!Sl(e))return aS(e)}if(t=sh(e),NF(t)){const e=ZR(t.expression);return e?RM(e):void 0}return!yF(t)||108===t.expression.kind||Lm(t,!0)||YL(t)||_f(t)?$_(t)&&!Sl(t.type)?aS(t.type):Ol(e)||s_(e)?tM(e):void 0:hl(t)?function(e){const t=tM(e.expression),n=Kw(t,e.expression),r=QR(t);return r&&Hw(r,e,n!==t)}(t):QR(mO(t.expression))}function eM(e){const t=ha(e);if(t.contextFreeType)return t.contextFreeType;cI(e,At,!1);const n=t.contextFreeType=tM(e,4);return lI(),n}function tM(n,i,o){var a,l;null==(a=$n)||a.push($n.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const _=r;r=n,w=0;const u=function(e,n,r){const i=e.kind;if(t)switch(i){case 232:case 219:case 220:t.throwIfCancellationRequested()}switch(i){case 80:return uA(e,n);case 81:return FO(e);case 110:return yA(e);case 108:return bA(e);case 106:return tn;case 15:case 11:return ID(e)?jt:$k(Yk(e.text));case 9:return aU(e),$k(Zk(+e.text));case 10:return function(e){const t=sF(e.parent)||FF(e.parent)&&sF(e.parent.parent);if(!t&&!(33554432&e.flags)&&q<7&&rU(e,ua.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))return!0}(e),$k(eS({negative:!1,base10Value:hT(e.text)}));case 112:return un;case 97:return cn;case 229:return ER(e);case 14:return vI(e);case 210:return xI(e,n,r);case 211:return OI(e,n);case 212:return CO(e,n);case 167:return wO(e,n);case 213:return YO(e,n);case 214:if(_f(e))return ZL(e);case 215:return function(e,t){var n,r,i;Rq(e,e.typeArguments);const o=$L(e,void 0,t);if(o===gi)return yn;if(XL(o,e),108===e.expression.kind)return gn;if(215===e.kind){const t=o.declaration;if(t&&177!==t.kind&&181!==t.kind&&186!==t.kind&&(!FP(t)||177!==(null==(r=null==(n=$g(t))?void 0:n.parent)?void 0:r.kind))&&!Ng(t)&&!HL(t))return le&&$o(e,ua.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),At}if(Em(e)&&rj(e))return Eh(e.arguments[0]);const a=jh(o);if(16896&a.flags&&YL(e))return nS(ih(e.parent));if(214===e.kind&&!e.questionDotToken&&245===e.parent.kind&&16&a.flags&&Ih(o))if(_b(e.expression)){if(!KE(e)){const t=$o(e.expression,ua.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);UE(e.expression,t)}}else $o(e.expression,ua.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);if(Em(e)){const t=GL(e,!1);if(null==(i=null==t?void 0:t.exports)?void 0:i.size){const e=Ys(t,t.exports,s,s,s);return e.objectFlags|=4096,ix([a,e])}}return a}(e,n);case 216:return ij(e);case 218:return function(e,t){if(Fu(e)){if(eC(e))return uj(e.expression,tC(e),t);if(NA(e))return aj(e,t)}return tM(e.expression,t)}(e,n);case 232:return function(e){return UJ(e),Sz(e),function(e){if(e.name)return;const t=AA(e);if(!Gh(t))return;let n;n=!W&&qdR(e)));const t=tM(e.expression),n=PM(t,!0,e,ua.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return n!==t||kl(n)||3&t.flags||Ko(!1,Mp(e,ua.await_has_no_effect_on_the_type_of_this_expression)),n}(e);case 225:return function(e){const t=tM(e.operand);if(t===yn)return yn;switch(e.operand.kind){case 9:switch(e.operator){case 41:return $k(Zk(-e.operand.text));case 40:return $k(Zk(+e.operand.text))}break;case 10:if(41===e.operator)return $k(eS({negative:!0,base10Value:hT(e.operand.text)}))}switch(e.operator){case 40:case 41:case 55:return SO(t,e.operand),fR(t,16896)&&$o(e.operand,ua.The_0_operator_cannot_be_applied_to_type_symbol,Ea(e.operator)),40===e.operator?(fR(t,4224)&&$o(e.operand,ua.Operator_0_cannot_be_applied_to_type_1,Ea(e.operator),Oc(kw(t))),an):pR(t);case 54:IB(t,e.operand);const n=TN(t,12582912);return 4194304===n?cn:8388608===n?un:fn;case 46:case 47:return aR(e.operand,SO(t,e.operand),ua.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&_R(e.operand,ua.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,ua.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),pR(t)}return Rt}(e);case 226:return function(e){const t=tM(e.operand);return t===yn?yn:(aR(e.operand,SO(t,e.operand),ua.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&_R(e.operand,ua.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,ua.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),pR(t))}(e);case 227:return we(e,n);case 228:return function(e,t){const n=LB(e.condition,t);return AB(e.condition,n,e.whenTrue),Xb([tM(e.whenTrue,t),tM(e.whenFalse,t)],2)}(e,n);case 231:return function(e,t){return qaM(e,n,void 0))));const o=i&&FJ(i,r),a=o&&o.yieldType||At,s=o&&o.nextType||At,l=e.expression?tM(e.expression):Vt,_=Zj(e,l,s,r);if(i&&_&&oT(_,a,e.expression||e,e.expression),e.asteriskToken)return JB(r?19:17,1,l,e.expression)||At;if(i)return DJ(2,i,r)||At;let u=LA(2,t);return u||(u=At,c((()=>{if(le&&!OT(e)){const t=aI(e,void 0);t&&!gl(t)||$o(e,ua.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}}))),u}(e);case 238:return function(e){return e.isSpread?ok(e.type,an):e.type}(e);case 295:return sO(e,n);case 285:case 286:return function(e){return Sz(e),YI(e)||At}(e);case 289:return function(e){nO(e.openingFragment);const t=bd(e);!Gk(z)||!z.jsxFactory&&!t.pragmas.has("jsx")||z.jsxFragmentFactory||t.pragmas.has("jsxfrag")||$o(e,z.jsxFactory?ua.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:ua.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),JI(e);const n=YI(e);return kl(n)?At:n}(e);case 293:return function(e,t){return BI(e.parent,t)}(e,n);case 287:_n.fail("Shouldn't ever directly check a JsxOpeningElement")}return Rt}(n,i,o),d=WR(n,u,i);return yR(d)&&function(t,n){var r;const i=212===t.parent.kind&&t.parent.expression===t||213===t.parent.kind&&t.parent.expression===t||(80===t.kind||167===t.kind)&&Lz(t)||187===t.parent.kind&&t.parent.exprName===t||282===t.parent.kind;i||$o(t,ua.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query);if(z.isolatedModules||z.verbatimModuleSyntax&&i&&!Ge(t,lb(t),2097152,void 0,!1,!0)){_n.assert(!!(128&n.symbol.flags));const i=n.symbol.valueDeclaration,o=null==(r=e.getRedirectFromOutput(bd(i).resolvedPath))?void 0:r.resolvedRef;!(33554432&i.flags)||kT(t)||o&&Ak(o.commandLine.options)||$o(t,ua.Cannot_access_ambient_const_enums_when_0_is_enabled,Ue)}}(n,d),r=_,null==(l=$n)||l.pop(),d}function nM(e){Pq(e),e.expression&&tU(e.expression,ua.Type_expected),vz(e.constraint),vz(e.default);const t=nd(Fs(e));Mf(t),function(e){return $f(e)!==Un}(t)||$o(e.default,ua.Type_parameter_0_has_a_circular_default,Oc(t));const n=bf(t),r=Hf(t);n&&r&&nT(r,Bd(LS(n,fS(t,r)),r),e.default,ua.Type_0_does_not_satisfy_the_constraint_1),Sz(e),c((()=>MJ(e.name,ua.Type_parameter_name_cannot_be_0)))}function rM(e){Pq(e),TB(e);const t=Kf(e);Fv(e,31)&&(z.erasableSyntaxOnly&&$o(e,ua.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),177===t.kind&&Fd(t.body)||$o(e,ua.A_parameter_property_is_only_allowed_in_a_constructor_implementation),177===t.kind&&_N(e.name)&&"constructor"===e.name.escapedText&&$o(e.name,ua.constructor_cannot_be_used_as_a_parameter_property_name)),!e.initializer&&YT(e)&&S_(e.name)&&t.body&&$o(e,ua.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),e.name&&_N(e.name)&&("this"===e.name.escapedText||"new"===e.name.escapedText)&&(0!==t.parameters.indexOf(e)&&$o(e,ua.A_0_parameter_must_be_the_first_parameter,e.name.escapedText),177!==t.kind&&181!==t.kind&&186!==t.kind||$o(e,ua.A_constructor_cannot_have_a_this_parameter),220===t.kind&&$o(e,ua.An_arrow_function_cannot_have_a_this_parameter),178!==t.kind&&179!==t.kind||$o(e,ua.get_and_set_accessors_cannot_declare_this_parameters)),!e.dotDotDotToken||S_(e.name)||QS(zm(eu(e.symbol)),gr)||$o(e,ua.A_rest_parameter_must_be_of_an_array_type)}function iM(e,t,n){for(const r of e.elements){if(RF(r))continue;const e=r.name;if(80===e.kind&&e.escapedText===n)return $o(t,ua.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((208===e.kind||207===e.kind)&&iM(e,t,n))return!0}}function oM(e){182===e.kind?function(e){Pq(e)||function(e){const t=e.parameters[0];if(1!==e.parameters.length)return rU(t?t.name:e,ua.An_index_signature_must_have_exactly_one_parameter);if(Iq(e.parameters,ua.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return rU(t.dotDotDotToken,ua.An_index_signature_cannot_have_a_rest_parameter);if(wv(t))return rU(t.name,ua.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return rU(t.questionToken,ua.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return rU(t.name,ua.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return rU(t.name,ua.An_index_signature_parameter_must_have_a_type_annotation);const n=aS(t.type);if(iE(n,(e=>!!(19456&e.flags)))||Vx(n))return rU(t.name,ua.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead);if(!oE(n,hy))return rU(t.name,ua.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type);if(!e.type)return rU(e,ua.An_index_signature_must_have_a_type_annotation)}(e)}(e):185!==e.kind&&263!==e.kind&&186!==e.kind&&180!==e.kind&&177!==e.kind&&181!==e.kind||jq(e);const t=Lh(e);4&t||(!(3&~t)&&q{_N(e)&&r.add(e.escapedText),S_(e)&&i.add(t)}));const o=Nh(e);if(o){const e=t.length-1,o=t[e];n&&o&&_N(o.name)&&o.typeExpression&&o.typeExpression.type&&!r.has(o.name.escapedText)&&!i.has(e)&&!iw(aS(o.typeExpression.type))&&$o(o.name,ua.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,hc(o.name))}else _(t,(({name:e,isNameFirst:t},o)=>{i.has(o)||_N(e)&&r.has(e.escapedText)||(CN(e)?n&&$o(e,ua.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Rp(e),Rp(e.left)):t||Go(n,e,ua.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,hc(e)))}))}(e),_(e.parameters,rM),e.type&&vz(e.type),c((function(){!function(e){if(q>=2||!Bu(e)||33554432&e.flags||Nd(e.body))return;_(e.parameters,(e=>{e.name&&!S_(e.name)&&e.name.escapedText===ze.escapedName&&Vo("noEmit",e,ua.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(e);let t=hv(e),n=t;if(Em(e)){const r=nl(e);if(r&&r.typeExpression&&qN(r.typeExpression.type)){const e=_L(aS(r.typeExpression));e&&e.declaration&&(t=hv(e.declaration),n=r.typeExpression.type)}}if(le&&!t)switch(e.kind){case 181:$o(e,ua.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 180:$o(e,ua.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(t&&n){const r=Lh(e);if(1==(5&r)){const e=aS(t);e===gn?$o(n,ua.A_generator_cannot_have_a_void_type_annotation):aM(e,r,n)}else 2==(3&r)&&function(e,t,n){const r=aS(t);if(q>=2){if(kl(r))return;const e=Uv(!0);if(e!==Jn&&!ru(r,e))return void o(ua.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,t,n,Oc(MM(r)||gn))}else{if(qP(e,5),kl(r))return;const a=_m(t);if(void 0===a)return void o(ua.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,Oc(r));const s=ss(a,111551,!0),c=s?eu(s):Rt;if(kl(c))return void(80===a.kind&&"Promise"===a.escapedText&&iu(r)===Uv(!1)?$o(n,ua.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):o(ua.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,Rp(a)));const l=(i=!0,Cr||(Cr=xv("PromiseConstructorLike",0,i))||In);if(l===In)return void o(ua.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,Rp(a));const _=ua.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!nT(c,l,n,_,(()=>t===n?void 0:tk(void 0,ua.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type))))return;const u=a&&lb(a),d=ya(e.locals,u.escapedText,111551);if(d)return void $o(d.valueDeclaration,ua.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,hc(u),Rp(a))}var i;function o(e,t,n,r){if(t===n)$o(n,e,r);else{cT($o(n,ua.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),Mp(t,e,r))}}PM(r,!1,e,ua.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(e,t,n)}182!==e.kind&&318!==e.kind&&QM(e)}))}function aM(e,t,n){const r=DJ(0,e,!!(2&t))||At;return nT(Yj(r,DJ(1,e,!!(2&t))||r,DJ(2,e,!!(2&t))||qt,!!(2&t)),e,n)}function sM(e){const t=new Map;for(const n of e.members)if(172===n.kind){let e;const r=n.name;switch(r.kind){case 11:case 9:e=r.text;break;case 80:e=hc(r);break;default:continue}t.get(e)?($o(wc(n.symbol.valueDeclaration),ua.Duplicate_identifier_0,e),$o(n.name,ua.Duplicate_identifier_0,e)):t.set(e,!0)}}function cM(e){if(265===e.kind){const t=Fs(e);if(t.declarations&&t.declarations.length>0&&t.declarations[0]!==e)return}const t=dy(Fs(e));if(null==t?void 0:t.declarations){const e=new Map;for(const n of t.declarations)JN(n)&&1===n.parameters.length&&n.parameters[0].type&&eE(aS(n.parameters[0].type),(t=>{const r=e.get(zb(t));r?r.declarations.push(n):e.set(zb(t),{type:t,declarations:[n]})}));e.forEach((e=>{if(e.declarations.length>1)for(const t of e.declarations)$o(t,ua.Duplicate_index_signature_for_type_0,Oc(e.type))}))}}function lM(e){Pq(e)||function(e){if(wN(e.name)&&PF(e.name.expression)&&103===e.name.expression.operatorToken.kind)return rU(e.parent.members[0],ua.A_mapped_type_may_not_declare_properties_or_methods);if(d_(e.parent)){if(HD(e.name)&&"constructor"===e.name.text)return rU(e.name,ua.Classes_may_not_have_a_field_named_constructor);if($q(e.name,ua.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(q<2&&uN(e.name))return rU(e.name,ua.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(q<2&&f_(e)&&!(33554432&e.flags))return rU(e.name,ua.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(f_(e)&&qq(e.questionToken,ua.An_accessor_property_cannot_be_declared_optional))return!0}else if(265===e.parent.kind){if($q(e.name,ua.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(_n.assertNode(e,EN),e.initializer)return rU(e.initializer,ua.An_interface_property_cannot_have_an_initializer)}else if($N(e.parent)){if($q(e.name,ua.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(_n.assertNode(e,EN),e.initializer)return rU(e.initializer,ua.A_type_literal_property_cannot_have_an_initializer)}33554432&e.flags&&Gq(e);if(PN(e)&&e.exclamationToken&&(!d_(e.parent)||!e.type||e.initializer||33554432&e.flags||Ev(e)||Iv(e))){const t=e.initializer?ua.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?ua.A_definite_assignment_assertion_is_not_permitted_in_this_context:ua.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return rU(e.exclamationToken,t)}}(e)||Jq(e.name),TB(e),_M(e),Fv(e,64)&&173===e.kind&&e.initializer&&$o(e,ua.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Ap(e.name))}function _M(e){if(uN(e.name)&&(qFv(e,31)))))if(function(e,t){const n=ih(e.parent);return QF(n)&&n.parent===t}(i,e.body)){let t;for(const n of e.body.statements){if(QF(n)&&lf(PA(n.expression))){t=n;break}if(dM(n))break}void 0===t&&$o(e,ua.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}else $o(i,ua.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers)}else n||$o(e,ua.Constructors_for_derived_classes_must_contain_a_super_call)}}))}function dM(e){return 108===e.kind||110===e.kind||!tm(e)&&!!rO(e,dM)}function pM(e){_N(e.name)&&"constructor"===hc(e.name)&&d_(e.parent)&&$o(e.name,ua.Class_constructor_may_not_be_an_accessor),c((function(){jq(e)||function(e){if(!(33554432&e.flags)&&188!==e.parent.kind&&265!==e.parent.kind){if(q<2&&uN(e.name))return rU(e.name,ua.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(void 0===e.body&&!Fv(e,64))return nU(e,e.end-1,1,ua._0_expected,"{")}if(e.body){if(Fv(e,64))return rU(e,ua.An_abstract_accessor_cannot_have_an_implementation);if(188===e.parent.kind||265===e.parent.kind)return rU(e.body,ua.An_implementation_cannot_be_declared_in_ambient_contexts)}if(e.typeParameters)return rU(e.name,ua.An_accessor_cannot_have_type_parameters);if(!function(e){return Wq(e)||e.parameters.length===(178===e.kind?0:1)}(e))return rU(e.name,178===e.kind?ua.A_get_accessor_cannot_have_parameters:ua.A_set_accessor_must_have_exactly_one_parameter);if(179===e.kind){if(e.type)return rU(e.name,ua.A_set_accessor_cannot_have_a_return_type_annotation);const t=_n.checkDefined(av(e),"Return value does not match parameter count assertion.");if(t.dotDotDotToken)return rU(t.dotDotDotToken,ua.A_set_accessor_cannot_have_rest_parameter);if(t.questionToken)return rU(t.questionToken,ua.A_set_accessor_cannot_have_an_optional_parameter);if(t.initializer)return rU(e.name,ua.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(e)||Jq(e.name);KM(e),oM(e),178===e.kind&&!(33554432&e.flags)&&Fd(e.body)&&512&e.flags&&(1024&e.flags||$o(e.name,ua.A_get_accessor_must_return_a_value));168===e.name.kind&&TI(e.name);if(Ad(e)){const t=Fs(e),n=Ku(t,178),r=Ku(t,179);if(n&&r&&!(1&cq(n))){ha(n).flags|=1;const e=zv(n),t=zv(r);(64&e)!=(64&t)&&($o(n.name,ua.Accessors_must_both_be_abstract_or_non_abstract),$o(r.name,ua.Accessors_must_both_be_abstract_or_non_abstract)),(4&e&&!(6&t)||2&e&&!(2&t))&&($o(n.name,ua.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),$o(r.name,ua.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const t=A_(Fs(e));178===e.kind&&iR(e,t)})),vz(e.body),_M(e)}function fM(e,t,n){return e.typeArguments&&n{var n;const r=null==(n=e.typeParameters)?void 0:n[t];if(void 0===r)return[];const i=bf(r);return void 0===i?[]:[i]})))}function bM(e){if(Rq(e,e.typeArguments),184===e.kind&&!Em(e)&&!Im(e)&&e.typeArguments&&e.typeName.end!==e.typeArguments.pos){const t=bd(e);25===Xp(t,e.typeName.end)&&nU(e,Ya(t.text,e.typeName.end),1,ua.JSDoc_types_can_only_be_used_inside_documentation_comments)}_(e.typeArguments,vz),xM(e)}function xM(e){if(!kl(aS(e))){e.typeArguments&&c((()=>{const t=hM(e);t&&gM(e,t)}));const t=ha(e).resolvedSymbol;t&&V(t.declarations,(e=>$T(e)&&!!(536870912&e.flags)))&&ta(QL(e),t.declarations,t.escapedName)}}function kM(e,t){if(!(33554432&e.flags))return e;const n=e.objectType,r=e.indexType,i=!!Ag(n,an);if(oE(r,(e=>QS(e,Dx(n,0))||i&&Cg(e,an))))return 213===t.kind&&Yg(t)&&32&yx(n)&&1&af(n)&&$o(t,ua.Index_signature_in_type_0_only_permits_reading,Oc(n)),e;if(Wx(n)){const e=jx(r,t);if(e){const r=eE(ym(n),(t=>lg(t,e)));if(r&&6&ax(r))return $o(t,ua.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,gc(e)),Rt}}return $o(t,ua.Type_0_cannot_be_used_to_index_type_1,Oc(r),Oc(n)),Rt}function SM(e){!function(e){var t;if(null==(t=e.members)?void 0:t.length)rU(e.members[0],ua.A_mapped_type_may_not_declare_properties_or_methods)}(e),vz(e.typeParameter),vz(e.nameType),vz(e.type),e.type||dD(e,At);const t=lk(e),n=Up(t);if(n)nT(n,Sn,e.nameType);else{nT(Jp(t),Sn,dl(e.typeParameter))}}function TM(e){!function(e){if(158===e.operator){if(155!==e.type.kind)return rU(e.type,ua._0_expected,Ea(155));let t=rh(e.parent);if(Em(t)&&pP(t)){const e=Wg(t);e&&(t=Ig(e)||e)}switch(t.kind){case 261:const n=t;if(80!==n.name.kind)return rU(e,ua.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!If(n))return rU(e,ua.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&n.parent.flags))return rU(t.name,ua.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 173:if(!Ev(t)||!jv(t))return rU(t.name,ua.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 172:if(!Fv(t,8))return rU(t.name,ua.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:rU(e,ua.unique_symbol_types_are_not_allowed_here)}}else if(148===e.operator&&189!==e.type.kind&&190!==e.type.kind)tU(e,ua.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Ea(155))}(e),vz(e.type)}function CM(e){return(Nv(e,2)||Gl(e))&&!!(33554432&e.flags)}function wM(e,t){let n=_U(e);if(265!==e.parent.kind&&264!==e.parent.kind&&232!==e.parent.kind&&33554432&e.flags){const t=Fp(e);!(t&&128&t.flags)||128&n||xE(e.parent)&&bE(e.parent.parent)&&pp(e.parent.parent)||(n|=32),n|=128}return n&t}function DM(e){c((()=>function(e){function t(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}function n(e,n,r,i,o){if(0!==(i^o)){const i=wM(t(e,n),r);Be(e,(e=>bd(e).fileName)).forEach((e=>{const o=wM(t(e,n),r);for(const t of e){const e=wM(t,r)^i,n=wM(t,r)^o;32&n?$o(wc(t),ua.Overload_signatures_must_all_be_exported_or_non_exported):128&n?$o(wc(t),ua.Overload_signatures_must_all_be_ambient_or_non_ambient):6&e?$o(wc(t)||t,ua.Overload_signatures_must_all_be_public_private_or_protected):64&e&&$o(wc(t),ua.Overload_signatures_must_all_be_abstract_or_non_abstract)}}))}}function r(e,n,r,i){if(r!==i){const r=Dg(t(e,n));_(e,(e=>{Dg(e)!==r&&$o(wc(e),ua.Overload_signatures_must_all_be_optional_or_required)}))}}const i=230;let o,a,s,c=0,u=i,d=!1,p=!0,f=!1;const m=e.declarations,g=!!(16384&e.flags);function h(e){if(e.name&&Nd(e.name))return;let t=!1;const n=rO(e.parent,(n=>{if(t)return n;t=n===e}));if(n&&n.pos===e.end&&n.kind===e.kind){const t=n.name||n,r=n.name;if(e.name&&r&&(uN(e.name)&&uN(r)&&e.name.escapedText===r.escapedText||wN(e.name)&&wN(r)&&VS(TI(e.name),TI(r))||qh(e.name)&&qh(r)&&Vh(e.name)===Vh(r))){if((175===e.kind||174===e.kind)&&Ev(e)!==Ev(n)){$o(t,Ev(e)?ua.Function_overload_must_be_static:ua.Function_overload_must_not_be_static)}return}if(Fd(n.body))return void $o(t,ua.Function_implementation_name_must_be_0,Ap(e.name))}const r=e.name||e;g?$o(r,ua.Constructor_implementation_is_missing):Fv(e,64)?$o(r,ua.All_declarations_of_an_abstract_method_must_be_consecutive):$o(r,ua.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let y=!1,v=!1,b=!1;const x=[];if(m)for(const e of m){const t=e,n=33554432&t.flags,r=t.parent&&(265===t.parent.kind||188===t.parent.kind)||n;if(r&&(s=void 0),264!==t.kind&&232!==t.kind||n||(b=!0),263===t.kind||175===t.kind||174===t.kind||177===t.kind){x.push(t);const e=wM(t,i);c|=e,u&=e,d=d||Dg(t),p=p&&Dg(t);const n=Fd(t.body);n&&o?g?v=!0:y=!0:(null==s?void 0:s.parent)===t.parent&&s.end!==t.pos&&h(s),n?o||(o=t):f=!0,s=t,r||(a=t)}Em(e)&&i_(e)&&e.jsDoc&&(f=l(qg(e))>0)}v&&_(x,(e=>{$o(e,ua.Multiple_constructor_implementations_are_not_allowed)}));y&&_(x,(e=>{$o(wc(e)||e,ua.Duplicate_function_implementation)}));if(b&&!g&&16&e.flags&&m){const t=C(m,(e=>264===e.kind)).map((e=>Mp(e,ua.Consider_adding_a_declare_modifier_to_this_class)));_(m,(n=>{const r=264===n.kind?ua.Class_declaration_cannot_implement_overload_list_for_0:263===n.kind?ua.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;r&&cT($o(wc(n)||n,r,vc(e)),...t)}))}!a||a.body||Fv(a,64)||a.questionToken||h(a);if(f&&(m&&(n(m,o,i,c,u),r(m,o,d,p)),o)){const t=Fh(e),n=wh(o);for(const e of t)if(!IT(n,e)){cT($o(e.declaration&&FP(e.declaration)?e.declaration.parent.tagName:e.declaration,ua.This_overload_signature_is_not_compatible_with_its_implementation_signature),Mp(o,ua.The_implementation_signature_is_declared_here));break}}}(e)))}function NM(e){c((()=>function(e){let t=e.localSymbol;if(!t&&(t=Fs(e),!t.exportSymbol))return;if(Ku(t,e.kind)!==e)return;let n=0,r=0,i=0;for(const e of t.declarations){const t=s(e),o=wM(e,2080);32&o?2048&o?i|=t:n|=t:r|=t}const o=n&r,a=i&(n|r);if(o||a)for(const e of t.declarations){const t=s(e),n=wc(e);t&a?$o(n,ua.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Ap(n)):t&o&&$o(n,ua.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Ap(n))}function s(e){let t=e;switch(t.kind){case 265:case 266:case 347:case 339:case 341:return 2;case 268:return cp(t)||0!==ZM(t)?5:4;case 264:case 267:case 307:return 3;case 308:return 7;case 278:case 227:const e=t,n=jE(e)?e.expression:e.right;if(!cb(n))return 1;t=n;case 272:case 275:case 274:let r=0;return _(es(Fs(t)).declarations,(e=>{r|=s(e)})),r;case 261:case 209:case 263:case 277:case 80:return 1;case 174:case 172:return 2;default:return _n.failBadSyntaxKind(t)}}}(e)))}function FM(e,t,n,...r){const i=EM(e,t);return i&&RM(i,t,n,...r)}function EM(e,t,n){if(gl(e))return;const r=e;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(ru(e,Uv(!1)))return r.promisedTypeOfPromise=Ay(e)[0];if(hR(Bf(e),12976124))return;const i=pl(e,"then");if(gl(i))return;const o=i?mg(i,0):s;if(0===o.length)return void(t&&$o(t,ua.A_promise_must_have_a_then_method));let a,c;for(const t of o){const n=Ah(t);n&&n!==gn&&!pC(e,n,Eo)?a=n:c=re(c,t)}if(!c)return _n.assertIsDefined(a),n&&(n.value=a),void(t&&$o(t,ua.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Oc(e),Oc(a)));const l=ZN(Xb(N(c,Pj)),2097152);if(gl(l))return;const _=mg(l,0);if(0!==_.length)return r.promisedTypeOfPromise=Xb(N(_,Pj),2);t&&$o(t,ua.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}function PM(e,t,n,r,...i){return(t?RM(e,n,r,...i):MM(e,n,r,...i))||Rt}function AM(e){if(hR(Bf(e),12976124))return!1;const t=pl(e,"then");return!!t&&mg(ZN(t,2097152),0).length>0}function IM(e){var t;if(67108864&e.flags){const n=vb(!1);return!!n&&e.aliasSymbol===n&&1===(null==(t=e.aliasTypeArguments)?void 0:t.length)}return!1}function OM(e){return 134217728&e.flags?lE(e,OM):IM(e)?e.aliasTypeArguments[0]:e}function LM(e){if(gl(e)||IM(e))return!1;if(Wx(e)){const t=Mf(e);if(t?3&t.flags||jT(t)||iE(t,AM):mR(e,34078720))return!0}return!1}function jM(e){return LM(e)?function(e){const t=vb(!0);if(t)return Ry(t,[OM(e)])}(e)??e:(_n.assert(IM(e)||void 0===EM(e),"type provided should not be a non-generic 'promise'-like."),e)}function RM(e,t,n,...r){const i=MM(e,t,n,...r);return i&&jM(i)}function MM(e,t,n,...r){if(gl(e))return e;if(IM(e))return e;const i=e;if(i.awaitedTypeOfType)return i.awaitedTypeOfType;if(134217728&e.flags){if(yo.lastIndexOf(e.id)>=0)return void(t&&$o(t,ua.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));const o=t?e=>MM(e,t,n,...r):MM;yo.push(e.id);const a=lE(e,o);return yo.pop(),i.awaitedTypeOfType=a}if(LM(e))return i.awaitedTypeOfType=e;const o={value:void 0},a=EM(e,void 0,o);if(a){if(e.id===a.id||yo.lastIndexOf(a.id)>=0)return void(t&&$o(t,ua.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));yo.push(e.id);const o=MM(a,t,n,...r);if(yo.pop(),!o)return;return i.awaitedTypeOfType=o}if(!AM(e))return i.awaitedTypeOfType=e;if(t){let i;_n.assertIsDefined(n),o.value&&(i=tk(i,ua.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Oc(e),Oc(o.value))),i=tk(i,n,...r),wo.add(zp(bd(t),t,i))}}function BM(e){!function(e){if(!eU(bd(e))){let t=e.expression;if(kF(t))return!1;let n,r=!0;for(;;)if(MF(t)||zF(t))t=t.expression;else if(yF(t))r||(n=t),t.questionDotToken&&(n=t.questionDotToken),t=t.expression,r=!1;else{if(!gF(t)){_N(t)||(n=t);break}t.questionDotToken&&(n=t.questionDotToken),t=t.expression,r=!1}if(n)return cT($o(e.expression,ua.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator),Mp(n,ua.Invalid_syntax_in_decorator)),!0}}(e);const t=$L(e);XL(t,e);const n=jh(t);if(1&n.flags)return;const r=Hj(e);if(!(null==r?void 0:r.resolvedReturnType))return;let i;const o=r.resolvedReturnType;switch(e.parent.kind){case 264:case 232:i=ua.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 173:if(!W){i=ua.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 170:i=ua.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 175:case 178:case 179:i=ua.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return _n.failBadSyntaxKind(e.parent)}nT(n,o,e.expression,i)}function JM(e,t,n,r,i,o=n.length,a=0){return zd(vw.createFunctionTypeNode(void 0,s,vw.createKeywordTypeNode(133)),e,t,n,r,i,o,a)}function zM(e,t,n,r,i,o,a){return ly(JM(e,t,n,r,i,o,a))}function qM(e){return zM(void 0,void 0,s,e)}function UM(e){return zM(void 0,void 0,[ra("value",e)],gn)}function VM(e){if(e)switch(e.kind){case 194:case 193:return WM(e.types);case 195:return WM([e.trueType,e.falseType]);case 197:case 203:return VM(e.type);case 184:return e.typeName}}function WM(e){let t;for(let n of e){for(;197===n.kind||203===n.kind;)n=n.type;if(146===n.kind)continue;if(!Y&&(202===n.kind&&106===n.literal.kind||157===n.kind))continue;const e=VM(n);if(!e)return;if(t){if(!_N(t)||!_N(e)||t.escapedText!==e.escapedText)return}else t=e}return t}function $M(e){const t=mv(e);return Ju(e)?Ef(t):t}function KM(e){if(!(EI(e)&&Rv(e)&&e.modifiers&&dm(W,e,e.parent,e.parent.parent)))return;const t=y(e.modifiers,FN);if(t){if(W)Fq(t,8),170===e.kind&&Fq(t,32);else if(qt.kind===e.kind&&!(524288&t.flags)));e===i&&DM(r),n.parent&&DM(n)}const r=174===e.kind?void 0:e.body;if(vz(r),iR(e,Mh(e)),c((function(){hv(e)||(Nd(r)&&!CM(e)&&dD(e,At),1&n&&Fd(r)&&jh(wh(e)))})),Em(e)){const t=nl(e);t&&t.typeExpression&&!gI(aS(t.typeExpression),e)&&$o(t.typeExpression.type,ua.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function QM(e){c((function(){const t=bd(e);let n=Ni.get(t.path);n||(n=[],Ni.set(t.path,n));n.push(e)}))}function YM(e,t){for(const n of e)switch(n.kind){case 264:case 232:nB(n,t),aB(n,t);break;case 308:case 268:case 242:case 270:case 249:case 250:case 251:dB(n,t);break;case 177:case 219:case 263:case 220:case 175:case 178:case 179:n.body&&dB(n,t),aB(n,t);break;case 174:case 180:case 181:case 185:case 186:case 266:case 265:aB(n,t);break;case 196:iB(n,t);break;default:_n.assertNever(n,"Node should not have been registered for unused identifiers check")}}function eB(e,t,n){n(e,0,Mp(wc(e)||e,$T(e)?ua._0_is_declared_but_never_used:ua._0_is_declared_but_its_value_is_never_read,t))}function tB(e){return _N(e)&&95===hc(e).charCodeAt(0)}function nB(e,t){for(const n of e.members)switch(n.kind){case 175:case 173:case 178:case 179:if(179===n.kind&&32768&n.symbol.flags)break;const e=Fs(n);e.isReferenced||!(Nv(n,2)||Tc(n)&&uN(n.name))||33554432&n.flags||t(n,0,Mp(n.name,ua._0_is_declared_but_its_value_is_never_read,Ac(e)));break;case 177:for(const e of n.parameters)!e.symbol.isReferenced&&Fv(e,2)&&t(e,0,Mp(e.name,ua.Property_0_is_declared_but_its_value_is_never_read,vc(e.symbol)));break;case 182:case 241:case 176:break;default:_n.fail("Unexpected class member")}}function iB(e,t){const{typeParameter:n}=e;sB(n)&&t(e,1,Mp(e,ua._0_is_declared_but_its_value_is_never_read,hc(n.name)))}function aB(e,t){const n=Fs(e).declarations;if(!n||ye(n)!==e)return;const r=ul(e),i=new Set;for(const e of r){if(!sB(e))continue;const n=hc(e.name),{parent:r}=e;if(196!==r.kind&&r.typeParameters.every(sB)){if(J(i,r)){const i=bd(r),o=HP(r)?_T(r):uT(i,r.typeParameters),a=1===r.typeParameters.length?[ua._0_is_declared_but_its_value_is_never_read,n]:[ua.All_type_parameters_are_unused];t(e,1,Qx(i,o.pos,o.end-o.pos,...a))}}else t(e,1,Mp(e,ua._0_is_declared_but_its_value_is_never_read,n))}}function sB(e){return!(262144&Ns(e.symbol).isReferenced||tB(e.name))}function cB(e,t,n,r){const i=String(r(t)),o=e.get(i);o?o[1].push(n):e.set(i,[t,[n]])}function lB(e){return et(Zh(e),NN)}function uB(e){return pF(e)?uF(e.parent)?!(!e.propertyName||!tB(e.name)):tB(e.name):cp(e)||(pE(e)&&Y_(e.parent.parent)||fB(e))&&tB(e.name)}function dB(e,t){const n=new Map,r=new Map,i=new Map;e.locals.forEach((e=>{var o;if(!(262144&e.flags?!(3&e.flags)||3&e.isReferenced:e.isReferenced||e.exportSymbol)&&e.declarations)for(const a of e.declarations)if(!uB(a))if(fB(a))cB(n,274===(o=a).kind?o:275===o.kind?o.parent:o.parent.parent,a,cJ);else if(pF(a)&&uF(a.parent)){a!==ye(a.parent.elements)&&ye(a.parent.elements).dotDotDotToken||cB(r,a.parent,a,cJ)}else if(pE(a)){const e=7&uU(a),t=wc(a);(4===e||6===e)&&t&&tB(t)||cB(i,a.parent,a,cJ)}else{const n=e.valueDeclaration&&lB(e.valueDeclaration),i=e.valueDeclaration&&wc(e.valueDeclaration);n&&i?ec(n,n.parent)||lv(n)||tB(i)||(pF(a)&&dF(a.parent)?cB(r,a.parent,a,cJ):t(n,1,Mp(i,ua._0_is_declared_but_its_value_is_never_read,vc(e)))):eB(a,vc(e),t)}})),n.forEach((([e,n])=>{const r=e.parent;if((e.name?1:0)+(e.namedBindings?275===e.namedBindings.kind?1:e.namedBindings.elements.length:0)===n.length)t(r,0,1===n.length?Mp(r,ua._0_is_declared_but_its_value_is_never_read,hc(me(n).name)):Mp(r,ua.All_imports_in_import_declaration_are_unused));else for(const e of n)eB(e,hc(e.name),t)})),r.forEach((([e,n])=>{const r=lB(e.parent)?1:0;if(e.elements.length===n.length)1===n.length&&261===e.parent.kind&&262===e.parent.parent.kind?cB(i,e.parent.parent,e.parent,cJ):t(e,r,1===n.length?Mp(e,ua._0_is_declared_but_its_value_is_never_read,pB(me(n).name)):Mp(e,ua.All_destructured_elements_are_unused));else for(const e of n)t(e,r,Mp(e,ua._0_is_declared_but_its_value_is_never_read,pB(e.name)))})),i.forEach((([e,n])=>{if(e.declarations.length===n.length)t(e,0,1===n.length?Mp(me(n).name,ua._0_is_declared_but_its_value_is_never_read,pB(me(n).name)):Mp(244===e.parent.kind?e.parent:e,ua.All_variables_are_unused));else for(const e of n)t(e,0,Mp(e,ua._0_is_declared_but_its_value_is_never_read,pB(e.name)))}))}function pB(e){switch(e.kind){case 80:return hc(e);case 208:case 207:return pB(tt(me(e.elements),pF).name);default:return _n.assertNever(e)}}function fB(e){return 274===e.kind||277===e.kind||275===e.kind}function mB(e){if(242===e.kind&&oU(e),__(e)){const t=Ai;_(e.statements,vz),Ai=t}else _(e.statements,vz);e.locals&&QM(e)}function gB(e,t,n){if((null==t?void 0:t.escapedText)!==n)return!1;if(173===e.kind||172===e.kind||175===e.kind||174===e.kind||178===e.kind||179===e.kind||304===e.kind)return!1;if(33554432&e.flags)return!1;if((wE(e)||TE(e)||LE(e))&&ql(e))return!1;const r=Zh(e);return!NN(r)||!Nd(r.parent.body)}function hB(e){dc(e,(t=>{if(4&cq(t)){return 80!==e.kind?$o(wc(e),ua.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):$o(e,ua.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0}return!1}))}function yB(e){dc(e,(t=>{if(8&cq(t)){return 80!==e.kind?$o(wc(e),ua.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):$o(e,ua.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0}return!1}))}function vB(e){1048576&cq(Ep(e))&&(_n.assert(Tc(e)&&_N(e.name)&&"string"==typeof e.name.escapedText,"The target of a WeakMap/WeakSet collision check should be an identifier"),Vo("noEmit",e,ua.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,e.name.escapedText))}function bB(e){let t=!1;if(jF(e)){for(const n of e.members)if(2097152&cq(n)){t=!0;break}}else if(SF(e))2097152&cq(e)&&(t=!0);else{const n=Ep(e);n&&2097152&cq(n)&&(t=!0)}t&&(_n.assert(Tc(e)&&_N(e.name),"The target of a Reflect collision check should be an identifier"),Vo("noEmit",e,ua.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Ap(e.name),"Reflect"))}function kB(t,n){n&&(function(t,n){if(e.getEmitModuleFormatOfFile(bd(t))>=5)return;if(!n||!gB(t,n,"require")&&!gB(t,n,"exports"))return;if(bE(t)&&1!==ZM(t))return;const r=ll(t);308===r.kind&&Zp(r)&&Vo("noEmit",n,ua.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Ap(n),Ap(n))}(t,n),function(e,t){if(!t||q>=4||!gB(e,t,"Promise"))return;if(bE(e)&&1!==ZM(e))return;const n=ll(e);308===n.kind&&Zp(n)&&4096&n.flags&&Vo("noEmit",t,ua.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Ap(t),Ap(t))}(t,n),function(e,t){q<=8&&(gB(e,t,"WeakMap")||gB(e,t,"WeakSet"))&&mo.push(e)}(t,n),function(e,t){t&&q>=2&&q<=8&&gB(e,t,"Reflect")&&go.push(e)}(t,n),d_(t)?(MJ(n,ua.Class_name_cannot_be_0),33554432&t.flags||function(t){"Object"===t.escapedText&&e.getEmitModuleFormatOfFile(bd(t))<5&&$o(t,ua.Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0,pi[U])}(n)):vE(t)&&MJ(n,ua.Enum_name_cannot_be_0))}function SB(e){return e===It?At:e===mr?fr:e}function TB(e){var t;if(KM(e),pF(e)||vz(e.type),!e.name)return;if(168===e.name.kind&&(TI(e.name),Au(e)&&e.initializer&&IR(e.initializer)),pF(e)){if(e.propertyName&&_N(e.name)&&Yh(e)&&Nd(Kf(e).body))return void ho.push(e);uF(e.parent)&&e.dotDotDotToken&&q1&&V(n.declarations,(t=>t!==e&&Af(t)&&!wB(t,e)))&&$o(e.name,ua.All_declarations_of_0_must_have_identical_modifiers,Ap(e.name))}else{const t=SB(v_(e));kl(r)||kl(t)||VS(r,t)||67108864&n.flags||CB(n.valueDeclaration,r,e,t),Au(e)&&e.initializer&&oT(IR(e.initializer),t,e,e.initializer,void 0),n.valueDeclaration&&!wB(e,n.valueDeclaration)&&$o(e.name,ua.All_declarations_of_0_must_have_identical_modifiers,Ap(e.name))}var i;173!==e.kind&&172!==e.kind&&(NM(e),261!==e.kind&&209!==e.kind||function(e){if(7&uU(e)||Yh(e))return;const t=Fs(e);if(1&t.flags){if(!_N(e.name))return _n.fail();const n=Ge(e,e.name.escapedText,3,void 0,!1);if(n&&n!==t&&2&n.flags&&7&lO(n)){const t=Ch(n.valueDeclaration,262),r=244===t.parent.kind&&t.parent.parent?t.parent.parent:void 0;if(!r||!(242===r.kind&&i_(r.parent)||269===r.kind||268===r.kind||308===r.kind)){const t=Ac(n);$o(e,ua.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,t,t)}}}}(e),kB(e,e.name))}function CB(e,t,n,r){const i=wc(n),o=173===n.kind||172===n.kind?ua.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:ua.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,a=Ap(i),s=$o(i,o,a,Oc(t),Oc(r));e&&cT(s,Mp(e,ua._0_was_also_declared_here,a))}function wB(e,t){if(170===e.kind&&261===t.kind||261===e.kind&&170===t.kind)return!0;if(Dg(e)!==Dg(t))return!1;return Mv(e,1358)===Mv(t,1358)}function NB(t){var n,r;null==(n=$n)||n.push($n.Phase.Check,"checkVariableDeclaration",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath}),function(t){const n=uU(t),r=7&n;if(S_(t.name))switch(r){case 6:return rU(t,ua._0_declarations_may_not_have_binding_patterns,"await using");case 4:return rU(t,ua._0_declarations_may_not_have_binding_patterns,"using")}if(250!==t.parent.parent.kind&&251!==t.parent.parent.kind)if(33554432&n)Gq(t);else if(!t.initializer){if(S_(t.name)&&!S_(t.parent))return rU(t,ua.A_destructuring_declaration_must_have_an_initializer);switch(r){case 6:return rU(t,ua._0_declarations_must_be_initialized,"await using");case 4:return rU(t,ua._0_declarations_must_be_initialized,"using");case 2:return rU(t,ua._0_declarations_must_be_initialized,"const")}}if(t.exclamationToken&&(244!==t.parent.parent.kind||!t.type||t.initializer||33554432&n)){const e=t.initializer?ua.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?ua.A_definite_assignment_assertion_is_not_permitted_in_this_context:ua.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return rU(t.exclamationToken,e)}e.getEmitModuleFormatOfFile(bd(t))<4&&!(33554432&t.parent.parent.flags)&&Fv(t.parent.parent,32)&&Xq(t.name);!!r&&Qq(t.name)}(t),TB(t),null==(r=$n)||r.pop()}function FB(e){return function(e){if(e.dotDotDotToken){const t=e.parent.elements;if(e!==ye(t))return rU(e,ua.A_rest_element_must_be_last_in_a_destructuring_pattern);if(Iq(t,ua.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e.propertyName)return rU(e.name,ua.A_rest_element_cannot_have_a_property_name)}if(e.dotDotDotToken&&e.initializer)nU(e,e.initializer.pos-1,1,ua.A_rest_element_cannot_have_an_initializer)}(e),TB(e)}function EB(e){const t=7&sc(e);(4===t||6===t)&&q=2&&a,c=!s&&z.downlevelIteration,l=z.noUncheckedIndexedAccess&&!!(128&e);if(s||c||o){const o=$B(t,e,s?r:void 0);if(i&&o){const t=8&e?ua.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&e?ua.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&e?ua.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&e?ua.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;t&&nT(n,o.nextType,r,t)}if(o||s)return l?CF(o&&o.yieldType):o&&o.yieldType}let _=t,u=!1;if(4&e){if(134217728&_.flags){const e=t.types,n=C(e,(e=>!(12583968&e.flags)));n!==e&&(_=Xb(n,2))}else 12583968&_.flags&&(_=hn);if(u=_!==t,u&&262144&_.flags)return l?CF(rn):rn}if(!lw(_)){if(r){const n=!!(4&e)&&!u,[i,o]=function(n,r){var i;if(r)return n?[ua.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[ua.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0];if(JB(e,0,t,void 0))return[ua.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1];if(function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null==(i=t.symbol)?void 0:i.escapedName))return[ua.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0];return n?[ua.Type_0_is_not_an_array_type_or_a_string_type,!0]:[ua.Type_0_is_not_an_array_type,!0]}(n,c);Xo(r,o&&!!FM(_),i,Oc(_))}return u?l?CF(rn):rn:void 0}const d=Og(_,an);return u&&d?12583968&d.flags&&!z.noUncheckedIndexedAccess?rn:Xb(l?[d,rn,Ut]:[d,rn],2):128&e?CF(d):d}function JB(e,t,n,r){if(gl(n))return;const i=$B(n,e,r);return i&&i[fJ(t)]}function zB(e=hn,t=hn,n=qt){if(402431&e.flags&&262167&t.flags&&262167&n.flags){const r=Sy([e,t,n]);let i=bi.get(r);return i||(i={yieldType:e,returnType:t,nextType:n},bi.set(r,i)),i}return{yieldType:e,returnType:t,nextType:n}}function qB(e){let t,n,r;for(const i of e)if(void 0!==i&&i!==xi){if(i===ki)return ki;t=re(t,i.yieldType),n=re(n,i.returnType),r=re(r,i.nextType)}return t||n||r?zB(t&&Xb(t),n&&Xb(n),r&&ix(r)):xi}function UB(e,t){return e[t]}function VB(e,t,n){return e[t]=n}function $B(e,t,n){var r,i;if(gl(e=zm(e)))return ki;if(!(134217728&e.flags)){const i=n?{errors:void 0,skipLogging:!0}:void 0,o=QB(e,t,n,i);if(o===xi){if(n){const r=bJ(n,e,!!(2&t));(null==i?void 0:i.errors)&&cT(r,...i.errors)}return}if(null==(r=null==i?void 0:i.errors)?void 0:r.length)for(const e of i.errors)wo.add(e);return o}const o=2&t?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",a=UB(e,o);if(a)return a===xi?void 0:a;let s;for(const r of e.types){const a=n?{errors:void 0}:void 0,c=QB(r,t,n,a);if(c===xi){if(n){const r=bJ(n,e,!!(2&t));(null==a?void 0:a.errors)&&cT(r,...a.errors)}return void VB(e,o,xi)}if(null==(i=null==a?void 0:a.errors)?void 0:i.length)for(const e of a.errors)wo.add(e);s=re(s,c)}const c=s?qB(s):xi;return VB(e,o,c),c===xi?void 0:c}function XB(e,t){if(e===xi)return xi;if(e===ki)return ki;const{yieldType:n,returnType:r,nextType:i}=e;return t&&vb(!0),zB(RM(n,t)||At,RM(r,t)||At,i)}function QB(e,t,n,r){if(gl(e))return ki;let i=!1;if(2&t){let o=eJ(e,Si)||nJ(e,Si);if(o){if(o!==xi||!n)return 8&t?XB(o,n):o;i=!0}if(o=uJ(e,Si,n,r,i),o!==xi)return o}if(1&t){let o=eJ(e,Ti)||nJ(e,Ti);if(o)if(o===xi&&n)i=!0;else{if(!(2&t))return o;if(o!==xi)return o=XB(o,n),i?o:VB(e,"iterationTypesOfAsyncIterable",o)}if(o=uJ(e,Ti,n,r,i),o!==xi)return 2&t?(o=XB(o,n),i?o:VB(e,"iterationTypesOfAsyncIterable",o)):o}return xi}function eJ(e,t){return UB(e,t.iterableCacheKey)}function nJ(e,t){if(ru(e,t.getGlobalIterableType(!1))||ru(e,t.getGlobalIteratorObjectType(!1))||ru(e,t.getGlobalIterableIteratorType(!1))||ru(e,t.getGlobalGeneratorType(!1))){const[n,r,i]=Ay(e);return VB(e,t.iterableCacheKey,zB(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(r,void 0)||r,i))}if(nu(e,t.getGlobalBuiltinIteratorTypes())){const[n]=Ay(e),r=Zv(),i=qt;return VB(e,t.iterableCacheKey,zB(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(r,void 0)||r,i))}}function rJ(e){const t=Jv(!1),n=t&&pl(eu(t),mc(e));return n&&lC(n)?_C(n):`__@${e}`}function uJ(e,t,n,r,i){const o=lg(e,rJ(t.iteratorSymbolName)),a=!o||16777216&o.flags?void 0:eu(o);if(gl(a))return i?ki:VB(e,t.iterableCacheKey,ki);const s=a?mg(a,0):void 0,c=C(s,(e=>0===Dj(e)));if(!V(c))return n&&V(s)&&nT(e,t.getGlobalIterableType(!0),n,void 0,void 0,r),i?xi:VB(e,t.iterableCacheKey,xi);const l=xJ(ix(N(c,jh)),t,n,r,i)??xi;return i?l:VB(e,t.iterableCacheKey,l)}function bJ(e,t,n){const r=n?ua.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:ua.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;return Xo(e,!!FM(t)||!n&&rE(e.parent)&&e.parent.expression===e&&$v(!1)!==Jn&&QS(t,bb($v(!1),[At,At,At])),r,Oc(t))}function xJ(e,t,n,r,i){if(gl(e))return ki;let o=function(e,t){return UB(e,t.iteratorCacheKey)}(e,t)||function(e,t){if(ru(e,t.getGlobalIterableIteratorType(!1))||ru(e,t.getGlobalIteratorType(!1))||ru(e,t.getGlobalIteratorObjectType(!1))||ru(e,t.getGlobalGeneratorType(!1))){const[n,r,i]=Ay(e);return VB(e,t.iteratorCacheKey,zB(n,r,i))}if(nu(e,t.getGlobalBuiltinIteratorTypes())){const[n]=Ay(e),r=Zv(),i=qt;return VB(e,t.iteratorCacheKey,zB(n,r,i))}}(e,t);return o===xi&&n&&(o=void 0,i=!0),o??(o=function(e,t,n,r,i){const o=qB([wJ(e,t,"next",n,r),wJ(e,t,"return",n,r),wJ(e,t,"throw",n,r)]);return i?o:VB(e,t.iteratorCacheKey,o)}(e,t,n,r,i)),o===xi?void 0:o}function kJ(e,t){const n=pl(e,"done")||cn;return QS(0===t?cn:un,n)}function SJ(e){return kJ(e,0)}function TJ(e){return kJ(e,1)}function CJ(e){if(gl(e))return ki;const t=UB(e,"iterationTypesOfIteratorResult");if(t)return t;if(ru(e,(n=!1,Pr||(Pr=xv("IteratorYieldResult",1,n))||Jn))){return VB(e,"iterationTypesOfIteratorResult",zB(Ay(e)[0],void 0,void 0))}var n;if(ru(e,function(e){return Ar||(Ar=xv("IteratorReturnResult",1,e))||Jn}(!1))){return VB(e,"iterationTypesOfIteratorResult",zB(void 0,Ay(e)[0],void 0))}const r=aE(e,SJ),i=r!==hn?pl(r,"value"):void 0,o=aE(e,TJ),a=o!==hn?pl(o,"value"):void 0;return VB(e,"iterationTypesOfIteratorResult",i||a?zB(i,a||gn,void 0):xi)}function wJ(e,t,n,r,i){var o,a,c,l;const _=lg(e,n);if(!_&&"next"!==n)return;const u=!_||"next"===n&&16777216&_.flags?void 0:"next"===n?eu(_):ZN(eu(_),2097152);if(gl(u))return ki;const d=u?mg(u,0):s;if(0===d.length){if(r){const e="next"===n?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic;i?(i.errors??(i.errors=[]),i.errors.push(Mp(r,e,n))):$o(r,e,n)}return"next"===n?xi:void 0}if((null==u?void 0:u.symbol)&&1===d.length){const e=t.getGlobalGeneratorType(!1),r=t.getGlobalIteratorType(!1),i=(null==(a=null==(o=e.symbol)?void 0:o.members)?void 0:a.get(n))===u.symbol,s=!i&&(null==(l=null==(c=r.symbol)?void 0:c.members)?void 0:l.get(n))===u.symbol;if(i||s){const t=i?e:r,{mapper:o}=u;return zB(pS(t.typeParameters[0],o),pS(t.typeParameters[1],o),"next"===n?pS(t.typeParameters[2],o):void 0)}}let p,f,m,g,h;for(const e of d)"throw"!==n&&V(e.parameters)&&(p=re(p,kj(e,0))),f=re(f,jh(e));if("throw"!==n){const e=p?Xb(p):qt;if("next"===n)g=e;else if("return"===n){m=re(m,t.resolveIterationType(e,r)||At)}}const y=f?ix(f):hn,v=CJ(t.resolveIterationType(y,r)||At);return v===xi?(r&&(i?(i.errors??(i.errors=[]),i.errors.push(Mp(r,t.mustHaveAValueDiagnostic,n))):$o(r,t.mustHaveAValueDiagnostic,n)),h=At,m=re(m,At)):(h=v.yieldType,m=re(m,v.returnType)),zB(h,Xb(m),g)}function DJ(e,t,n){if(gl(t))return;const r=FJ(t,n);return r&&r[fJ(e)]}function FJ(e,t){if(gl(e))return ki;const n=t?Si:Ti;return $B(e,t?2:1,void 0)||function(e,t,n,r){return xJ(e,t,n,r,!1)}(e,n,void 0,void 0)}function EJ(e){oU(e)||function(e){let t=e;for(;t;){if(o_(t))return rU(e,ua.Jump_target_cannot_cross_function_boundary);switch(t.kind){case 257:if(e.label&&t.label.escapedText===e.label.escapedText){return!!(252===e.kind&&!H_(t.statement,!0))&&rU(e,ua.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}break;case 256:if(253===e.kind&&!e.label)return!1;break;default:if(H_(t,!1)&&!e.label)return!1}t=t.parent}if(e.label){return rU(e,253===e.kind?ua.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:ua.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}rU(e,253===e.kind?ua.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:ua.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement)}(e)}function PJ(e,t){const n=!!(2&t);if(!!(1&t)){const t=DJ(1,e,n);return t?n?MM(OM(t)):t:Rt}return n?MM(e)||Rt:e}function AJ(e,t){const n=PJ(t,Lh(e));return!(!n||!(mR(n,16)||5&n.flags))}function IJ(e,t,n,r,i,o=!1){const a=Em(n),s=Lh(e);if(r){const i=sh(r,a);if(AF(i))return IJ(e,t,n,i.whenTrue,tM(i.whenTrue),!0),void IJ(e,t,n,i.whenFalse,tM(i.whenFalse),!0)}const c=254===n.kind,l=2&s?PM(i,!1,n,ua.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,_=r&&bL(r);oT(l,t,c&&!o?n:_,_)}function OJ(e){oU(e)||_N(e.expression)&&!e.expression.escapedText&&function(e,t,...n){const r=bd(e);if(!eU(r)){const i=Gp(r,e.pos);return wo.add(Qx(r,Es(i),0,t,...n)),!0}}(e,ua.Line_break_not_permitted_here),e.expression&&tM(e.expression)}function LJ(e,t,n){const r=Pg(e);if(0===r.length)return;for(const t of mf(e))n&&4194304&t.flags||jJ(e,t,xx(t,19456,!0),tu(t));const i=t.valueDeclaration;if(i&&d_(i))for(const t of i.members)if((!n&&!Ev(t)||n&&Ev(t))&&!Ad(t)){const n=Fs(t);jJ(e,n,YR(t.name.expression),tu(n))}if(r.length>1)for(const t of r)RJ(e,t)}function jJ(e,t,n,r){const i=t.valueDeclaration,o=wc(i);if(o&&uN(o))return;const a=Rg(e,n),s=2&yx(e)?Ku(e.symbol,265):void 0,c=i&&227===i.kind||o&&168===o.kind?i:void 0,l=Os(t)===e.symbol?i:void 0;for(const n of a){const i=n.declaration&&Os(Fs(n.declaration))===e.symbol?n.declaration:void 0,o=l||i||(s&&!V(Iu(e),(e=>!!gf(e,t.escapedName)&&!!Og(e,n.keyType)))?s:void 0);if(o&&!QS(r,n.type)){const e=Wo(o,ua.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Ac(t),Oc(r),Oc(n.keyType),Oc(n.type));c&&o!==c&&cT(e,Mp(c,ua._0_is_declared_here,Ac(t))),wo.add(e)}}}function RJ(e,t){const n=t.declaration,r=Rg(e,t.keyType),i=2&yx(e)?Ku(e.symbol,265):void 0,o=n&&Os(Fs(n))===e.symbol?n:void 0;for(const n of r){if(n===t)continue;const r=n.declaration&&Os(Fs(n.declaration))===e.symbol?n.declaration:void 0,a=o||r||(i&&!V(Iu(e),(e=>!!Ag(e,t.keyType)&&!!Og(e,n.keyType)))?i:void 0);a&&!QS(t.type,n.type)&&$o(a,ua._0_index_type_1_is_not_assignable_to_2_index_type_3,Oc(t.keyType),Oc(t.type),Oc(n.keyType),Oc(n.type))}}function MJ(e,t){switch(e.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":case"undefined":$o(e,t,e.escapedText)}}function BJ(e){let t=!1;if(e)for(let t=0;t{n.default?(t=!0,function(e,t,n){function r(e){if(184===e.kind){const r=nv(e);if(524288&r.flags)for(let i=n;i264===e.kind||265===e.kind))}(e);if(!n||n.length<=1)return;if(!zJ(n,rd(e).localTypeParameters,ul)){const t=Ac(e);for(const e of n)$o(e.name,ua.All_declarations_of_0_must_have_identical_type_parameters,t)}}}function zJ(e,t,n){const r=l(t),i=kh(t);for(const o of e){const e=n(o),a=e.length;if(ar)return!1;for(let n=0;n1)return tU(r.types[1],ua.Classes_can_only_extend_a_single_class);t=!0}else{if(_n.assert(119===r.token),n)return tU(r,ua.implements_clause_already_seen);n=!0}Mq(r)}})(e)||Oq(e.typeParameters,t)}(e),KM(e),kB(e,e.name),BJ(ul(e)),NM(e);const t=Fs(e),n=rd(t),r=Bd(n),i=eu(t);JJ(t),DM(t),function(e){const t=new Map,n=new Map,r=new Map;for(const o of e.members)if(177===o.kind)for(const e of o.parameters)ec(e,o)&&!S_(e.name)&&i(t,e.name,e.name.escapedText,3);else{const e=Ev(o),a=o.name;if(!a)continue;const s=uN(a),c=s&&e?16:0,l=s?r:e?n:t,_=a&&lU(a);if(_)switch(o.kind){case 178:i(l,a,_,1|c);break;case 179:i(l,a,_,2|c);break;case 173:i(l,a,_,3|c);break;case 175:i(l,a,_,8|c)}}function i(e,t,n,r){const i=e.get(n);if(i)if((16&i)!=(16&r))$o(t,ua.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Xd(t));else{const o=!!(8&i),a=!!(8&r);o||a?o!==a&&$o(t,ua.Duplicate_identifier_0,Xd(t)):i&r&-17?$o(t,ua.Duplicate_identifier_0,Xd(t)):e.set(n,i|r)}else e.set(n,r)}}(e);!!(33554432&e.flags)||function(e){for(const t of e.members){const n=t.name;if(Ev(t)&&n){const t=lU(n);switch(t){case"name":case"length":case"caller":case"arguments":if(H)break;case"prototype":$o(n,ua.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,t,Xc(Fs(e)))}}}}(e);const o=vh(e);if(o){_(o.typeArguments,vz),q{const t=a[0],s=Cu(n),c=ym(s);if(function(e,t){const n=mg(e,1);if(n.length){const r=n[0].declaration;if(r&&Nv(r,2)){Oz(t,hx(e.symbol))||$o(t,ua.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,as(e.symbol))}}}(c,o),vz(o.expression),V(o.typeArguments)){_(o.typeArguments,vz);for(const e of yu(c,o.typeArguments,o))if(!gM(o,e.typeParameters))break}const u=Bd(t,n.thisType);if(nT(r,u,void 0)?nT(i,US(c),e.name||e,ua.Class_static_side_0_incorrectly_extends_base_class_static_side_1):$J(e,r,u,ua.Class_0_incorrectly_extends_base_class_1),34078720&s.flags)if(mu(i)){mg(s,1).some((e=>4&e.flags))&&!Fv(e,64)&&$o(e.name||e,ua.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract)}else $o(e.name||e,ua.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any);if(!(c.symbol&&32&c.symbol.flags||34078720&s.flags)){_(bu(c,o.typeArguments,o),(e=>!HL(e.declaration)&&!VS(jh(e),t)))&&$o(o.expression,ua.Base_constructors_must_all_have_the_same_return_type)}!function(e,t){var n,r,i,o,a;const s=yf(t),c=new Map;e:for(const l of s){const s=HJ(l);if(4194304&s.flags)continue;const _=gf(e,s.escapedName);if(!_)continue;const u=HJ(_),d=ax(s);if(_n.assert(!!u,"derived should point to something, even if it is the base class' declaration."),u===s){const r=hx(e.symbol);if(64&d&&(!r||!Fv(r,64))){for(const n of Iu(e)){if(n===t)continue;const e=gf(n,s.escapedName),r=e&&HJ(e);if(r&&r!==s)continue e}const i=Oc(t),o=Oc(e),a=Ac(l),_=re(null==(n=c.get(r))?void 0:n.missedProperties,a);c.set(r,{baseTypeName:i,typeName:o,missedProperties:_})}}else{const n=ax(u);if(2&d||2&n)continue;let c;const l=98308&s.flags,_=98308&u.flags;if(l&&_){if((6&ox(s)?null==(r=s.declarations)?void 0:r.some((e=>KJ(e,d))):null==(i=s.declarations)?void 0:i.every((e=>KJ(e,d))))||262144&ox(s)||u.valueDeclaration&&PF(u.valueDeclaration))continue;const c=4!==l&&4===_;if(c||4===l&&4!==_){const n=c?ua._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:ua._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;$o(wc(u.valueDeclaration)||u.valueDeclaration,n,Ac(s),Oc(t),Oc(e))}else if(H){const r=null==(o=u.declarations)?void 0:o.find((e=>173===e.kind&&!e.initializer));if(r&&!(33554432&u.flags)&&!(64&d)&&!(64&n)&&!(null==(a=u.declarations)?void 0:a.some((e=>!!(33554432&e.flags))))){const n=bC(hx(e.symbol)),i=r.name;if(r.exclamationToken||!n||!_N(i)||!Y||!XJ(i,e,n)){const e=ua.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;$o(wc(u.valueDeclaration)||u.valueDeclaration,e,Ac(s),Oc(t))}}}continue}if(uO(s)){if(uO(u)||4&u.flags)continue;_n.assert(!!(98304&u.flags)),c=ua.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else c=98304&s.flags?ua.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:ua.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;$o(wc(u.valueDeclaration)||u.valueDeclaration,c,Oc(t),Ac(s),Oc(e))}}for(const[e,t]of c)if(1===l(t.missedProperties))jF(e)?$o(e,ua.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,me(t.missedProperties),t.baseTypeName):$o(e,ua.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,t.typeName,me(t.missedProperties),t.baseTypeName);else if(l(t.missedProperties)>5){const n=N(t.missedProperties.slice(0,4),(e=>`'${e}'`)).join(", "),r=l(t.missedProperties)-4;jF(e)?$o(e,ua.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,t.baseTypeName,n,r):$o(e,ua.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more,t.typeName,t.baseTypeName,n,r)}else{const n=N(t.missedProperties,(e=>`'${e}'`)).join(", ");jF(e)?$o(e,ua.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,t.baseTypeName,n):$o(e,ua.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2,t.typeName,t.baseTypeName,n)}}(n,t)}))}!function(e,t,n,r){const i=vh(e),o=i&&Iu(t),a=(null==o?void 0:o.length)?Bd(me(o),t.thisType):void 0,s=Cu(t);for(const i of e.members)Ov(i)||(LN(i)&&_(i.parameters,(o=>{ec(o,i)&&VJ(e,r,s,a,t,n,o,!0)})),VJ(e,r,s,a,t,n,i,!1))}(e,n,r,i);const a=xh(e);if(a)for(const e of a)cb(e.expression)&&!yl(e.expression)||$o(e.expression,ua.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),bM(e),c(s(e));function s(t){return()=>{const i=zm(aS(t));if(!kl(i))if(ju(i)){const t=i.symbol&&32&i.symbol.flags?ua.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:ua.Class_0_incorrectly_implements_interface_1,o=Bd(i,n.thisType);nT(r,o,void 0)||$J(e,r,o,t)}else $o(t,ua.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}c((()=>{LJ(n,t),LJ(i,t,!0),cM(e),function(e){if(!Y||!ie||33554432&e.flags)return;const t=bC(e);for(const n of e.members)if(!(128&zv(n))&&!Ev(n)&&GJ(n)){const e=n.name;if(_N(e)||uN(e)||wN(e)){const r=eu(Fs(n));3&r.flags||WT(r)||t&&XJ(e,r,t)||$o(n.name,ua.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Ap(e))}}}(e)}))}function VJ(e,t,n,r,i,o,a,s,c=!0){const l=a.name&&Bz(a.name)||Bz(a);return l?WJ(e,t,n,r,i,o,Av(a),Iv(a),Ev(a),s,l,c?a:void 0):0}function WJ(e,t,n,r,i,o,a,s,c,l,_,u){const d=Em(e),p=!!(33554432&e.flags);if(a&&(null==_?void 0:_.valueDeclaration)&&u_(_.valueDeclaration)&&_.valueDeclaration.name&&Id(_.valueDeclaration.name))return $o(u,d?ua.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:ua.This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic),2;if(r&&(a||z.noImplicitOverride)){const e=c?n:r,i=lg(c?t:o,_.escapedName),f=lg(e,_.escapedName),m=Oc(r);if(i&&!f&&a){if(u){const t=BO(vc(_),e);t?$o(u,d?ua.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:ua.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,m,Ac(t)):$o(u,d?ua.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:ua.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,m)}return 2}if(i&&(null==f?void 0:f.declarations)&&z.noImplicitOverride&&!p){const e=V(f.declarations,Iv);if(a)return 0;if(!e){if(u){$o(u,l?d?ua.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:ua.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:d?ua.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:ua.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0,m)}return 1}if(s&&e)return u&&$o(u,ua.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,m),1}}else if(a){if(u){const e=Oc(i);$o(u,d?ua.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:ua.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,e)}return 2}return 0}function $J(e,t,n,r){let i=!1;for(const r of e.members){if(Ev(r))continue;const e=r.name&&Bz(r.name)||Bz(r);if(e){const o=lg(t,e.escapedName),a=lg(n,e.escapedName);if(o&&a){const s=()=>tk(void 0,ua.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Ac(e),Oc(t),Oc(n));nT(eu(o),eu(a),r.name||r,void 0,s)||(i=!0)}}}i||nT(t,n,e.name||e,r)}function HJ(e){return 1&ox(e)?e.links.target:e}function KJ(e,t){return 64&t&&(!PN(e)||!e.initializer)||hE(e.parent)}function GJ(e){return 173===e.kind&&!Iv(e)&&!e.exclamationToken&&!e.initializer}function XJ(e,t,n){const r=wN(e)?vw.createElementAccessExpression(vw.createThis(),e.expression):vw.createPropertyAccessExpression(vw.createThis(),e);ET(r.expression,r),ET(r,n),r.flowNode=n.returnFlowNode;return!WT(hP(r,t,Uw(t)))}function QJ(e){Pq(e)||function(e){let t=!1;if(e.heritageClauses)for(const n of e.heritageClauses){if(96!==n.token)return _n.assert(119===n.token),tU(n,ua.Interface_declaration_cannot_have_implements_clause);if(t)return tU(n,ua.extends_clause_already_seen);t=!0,Mq(n)}}(e),Zq(e.parent)||rU(e,ua._0_declarations_can_only_be_declared_inside_a_block,"interface"),BJ(e.typeParameters),c((()=>{MJ(e.name,ua.Interface_name_cannot_be_0),NM(e);const t=Fs(e);JJ(t);const n=Ku(t,265);if(e===n){const n=rd(t),r=Bd(n);if(function(e,t){const n=Iu(e);if(n.length<2)return!0;const r=new Map;_(yd(e).declaredProperties,(t=>{r.set(t.escapedName,{prop:t,containingType:e})}));let i=!0;for(const o of n){const n=yf(Bd(o,e.thisType));for(const a of n){const n=r.get(a.escapedName);if(n){if(n.containingType!==e&&0===ew(n.prop,a,WS)){i=!1;const r=Oc(n.containingType),s=Oc(o);let c=tk(void 0,ua.Named_property_0_of_types_1_and_2_are_not_identical,Ac(a),r,s);c=tk(c,ua.Interface_0_cannot_simultaneously_extend_types_1_and_2,Oc(e),r,s),wo.add(zp(bd(t),t,c))}}else r.set(a.escapedName,{prop:a,containingType:o})}}return i}(n,e.name)){for(const t of Iu(n))nT(r,Bd(t,n.thisType),e.name,ua.Interface_0_incorrectly_extends_interface_1);LJ(n,t)}}sM(e)})),_(Sh(e),(e=>{cb(e.expression)&&!yl(e.expression)||$o(e.expression,ua.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),bM(e)})),_(e.members,vz),c((()=>{cM(e),QM(e)}))}function YJ(e){const t=ha(e);if(!(1024&t.flags)){t.flags|=1024;let n,r=0;for(const t of e.members){const e=ZJ(t,r,n);ha(t).enumMemberValue=e,r="number"==typeof e.value?e.value+1:void 0,n=t}}}function ZJ(e,t,n){if(Op(e.name))$o(e.name,ua.Computed_property_names_are_not_allowed_in_enums);else if($D(e.name))$o(e.name,ua.An_enum_member_cannot_have_a_numeric_name);else{const t=jp(e.name);qT(t)&&!MT(t)&&$o(e.name,ua.An_enum_member_cannot_have_a_numeric_name)}if(e.initializer)return function(e){const t=tf(e.parent),n=e.initializer,r=Ee(n,e);void 0!==r.value?t&&"number"==typeof r.value&&!isFinite(r.value)?$o(n,isNaN(r.value)?ua.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:ua.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):Ck(z)&&"string"==typeof r.value&&!r.isSyntacticallyString&&$o(n,ua._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,`${hc(e.parent.name)}.${jp(e.name)}`):t?$o(n,ua.const_enum_member_initializers_must_be_constant_expressions):33554432&e.parent.flags?$o(n,ua.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):nT(tM(n),an,n,ua.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values);return r}(e);if(33554432&e.parent.flags&&!tf(e.parent))return hC(void 0);if(void 0===t)return $o(e.name,ua.Enum_member_must_have_initializer),hC(void 0);if(Ck(z)&&(null==n?void 0:n.initializer)){const t=_q(n);("number"!=typeof t.value||t.resolvedOtherFiles)&&$o(e.name,ua.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled)}return hC(t)}function ez(e,t){const n=ss(e,111551,!0);if(!n)return hC(void 0);if(80===e.kind){const t=e;if(MT(t.escapedText)&&n===bv(t.escapedText,111551,void 0))return hC(+t.escapedText,!1)}if(8&n.flags)return t?tz(e,n,t):_q(n.valueDeclaration);if(AP(n)){const e=n.valueDeclaration;if(e&&pE(e)&&!e.type&&e.initializer&&(!t||e!==t&&va(e,t))){const n=Ee(e.initializer,e);return t&&bd(t)!==bd(e)?hC(n.value,!1,!0,!0):hC(n.value,n.isSyntacticallyString,n.resolvedOtherFiles,!0)}}return hC(void 0)}function tz(e,t,n){const r=t.valueDeclaration;if(!r||r===n)return $o(e,ua.Property_0_is_used_before_being_assigned,Ac(t)),hC(void 0);if(!va(r,n))return $o(e,ua.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),hC(0);const i=_q(r);return n.parent!==r.parent?hC(i.value,i.isSyntacticallyString,i.resolvedOtherFiles,!0):i}function nz(e){c((()=>function(e){Pq(e),kB(e,e.name),NM(e),e.members.forEach(vz),!z.erasableSyntaxOnly||33554432&e.flags||$o(e,ua.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);YJ(e);const t=Fs(e),n=Ku(t,e.kind);if(e===n){if(t.declarations&&t.declarations.length>1){const n=tf(e);_(t.declarations,(e=>{vE(e)&&tf(e)!==n&&$o(wc(e),ua.Enum_declarations_must_all_be_const_or_non_const)}))}let n=!1;_(t.declarations,(e=>{if(267!==e.kind)return!1;const t=e;if(!t.members.length)return!1;const r=t.members[0];r.initializer||(n?$o(r.name,ua.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):n=!0)}))}}(e)))}function rz(t){t.body&&(vz(t.body),pp(t)||QM(t)),c((function(){var n,r;const i=pp(t),o=33554432&t.flags;i&&!o&&$o(t.name,ua.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const a=cp(t),s=a?ua.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:ua.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(fz(t,s))return;Pq(t)||o||11!==t.name.kind||rU(t.name,ua.Only_ambient_modules_can_use_quoted_names);_N(t.name)&&(kB(t,t.name),2080&t.flags||$o(t.name,ua.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead));NM(t);const c=Fs(t);if(512&c.flags&&!o&&_J(t,Ak(z))){if(z.erasableSyntaxOnly&&$o(t.name,ua.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),Ck(z)&&!bd(t).externalModuleIndicator&&$o(t.name,ua.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,Ue),(null==(n=c.declarations)?void 0:n.length)>1){const e=function(e){const t=e.declarations;if(t)for(const e of t)if((264===e.kind||263===e.kind&&Fd(e.body))&&!(33554432&e.flags))return e}(c);e&&(bd(t)!==bd(e)?$o(t.name,ua.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos95===e.kind));e&&$o(e,ua.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(a)if(fp(t)){if((i||33554432&Fs(t).flags)&&t.body)for(const e of t.body.statements)iz(e,i)}else Yp(t.parent)?i?$o(t.name,ua.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):ws(Uh(t.name))&&$o(t.name,ua.Ambient_module_declaration_cannot_specify_relative_module_name):$o(t.name,i?ua.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:ua.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}))}function iz(e,t){switch(e.kind){case 244:for(const n of e.declarationList.declarations)iz(n,t);break;case 278:case 279:tU(e,ua.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 272:if(Dm(e))break;case 273:tU(e,ua.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 209:case 261:const n=e.name;if(S_(n)){for(const e of n.elements)iz(e,t);break}case 264:case 267:case 263:case 265:case 268:case 266:if(t)return}}function oz(e){const t=Sg(e);if(!t||Nd(t))return!1;if(!HD(t))return $o(t,ua.String_literal_expected),!1;const n=269===e.parent.kind&&cp(e.parent.parent);if(308!==e.parent.kind&&!n)return $o(t,279===e.kind?ua.Export_declarations_are_not_permitted_in_a_namespace:ua.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(n&&ws(t.text)&&!$c(e))return $o(e,ua.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!TE(e)&&e.attributes){const t=118===e.attributes.token?ua.Import_attribute_values_must_be_string_literal_expressions:ua.Import_assertion_values_must_be_string_literal_expressions;let n=!1;for(const r of e.attributes.elements)HD(r.value)||(n=!0,$o(r.value,t));return!n}return!0}function az(e,t=!0){void 0!==e&&11===e.kind&&(t?5!==U&&6!==U||rU(e,ua.String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020):rU(e,ua.Identifier_expected))}function sz(t){var n,r,i,o,a;let s=Fs(t);const c=es(s);if(c!==Dt){if(s=Ns(s.exportSymbol||s),Em(t)&&!(111551&c.flags)&&!ql(t)){const e=Bl(t)?t.propertyName||t.name:Tc(t)?t.name:t;if(_n.assert(281!==t.kind),282===t.kind){const o=$o(e,ua.Types_cannot_appear_in_export_declarations_in_JavaScript_files),a=null==(r=null==(n=bd(t).symbol)?void 0:n.exports)?void 0:r.get(Hd(t.propertyName||t.name));if(a===c){const e=null==(i=a.declarations)?void 0:i.find(Tu);e&&cT(o,Mp(e,ua._0_is_automatically_exported_here,gc(a.escapedName)))}}else{_n.assert(261!==t.kind);const n=dc(t,Zt(CE,TE)),r=(n&&(null==(o=vg(n))?void 0:o.text))??"...",i=gc(_N(e)?e.escapedText:s.escapedName);$o(e,ua._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,i,`import("${r}").${i}`)}return}const l=ts(c);if(l&((1160127&s.flags?111551:0)|(788968&s.flags?788968:0)|(1920&s.flags?1920:0))){$o(t,282===t.kind?ua.Export_declaration_conflicts_with_exported_declaration_of_0:ua.Import_declaration_conflicts_with_local_declaration_of_0,Ac(s))}else if(282!==t.kind){z.isolatedModules&&!dc(t,ql)&&1160127&s.flags&&$o(t,ua.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Ac(s),Ue)}if(Ck(z)&&!ql(t)&&!(33554432&t.flags)){const n=is(s),r=!(111551&l);if(r||n)switch(t.kind){case 274:case 277:case 272:if(z.verbatimModuleSyntax){_n.assertIsDefined(t.name,"An ImportClause with a symbol should have a name");const e=z.verbatimModuleSyntax&&Dm(t)?ua.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:r?ua._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:ua._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled,i=$d(277===t.kind&&t.propertyName||t.name);ka($o(t,e,i),r?void 0:n,i)}r&&272===t.kind&&Nv(t,32)&&$o(t,ua.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Ue);break;case 282:if(z.verbatimModuleSyntax||bd(n)!==bd(t)){const e=$d(t.propertyName||t.name);ka(r?$o(t,ua.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Ue):$o(t,ua._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,e,Ue),r?void 0:n,e);break}}if(z.verbatimModuleSyntax&&272!==t.kind&&!Em(t)&&1===e.getEmitModuleFormatOfFile(bd(t))?$o(t,Ho(t)):200===U&&272!==t.kind&&261!==t.kind&&1===e.getEmitModuleFormatOfFile(bd(t))&&$o(t,ua.ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve),z.verbatimModuleSyntax&&!ql(t)&&!(33554432&t.flags)&&128&l){const n=c.valueDeclaration,r=null==(a=e.getRedirectFromOutput(bd(n).resolvedPath))?void 0:a.resolvedRef;!(33554432&n.flags)||r&&Ak(r.commandLine.options)||$o(t,ua.Cannot_access_ambient_const_enums_when_0_is_enabled,Ue)}}if(LE(t)){const e=cz(s,t);Yo(e)&&e.declarations&&ta(t,e.declarations,e.escapedName)}}}function cz(e,t){if(!(2097152&e.flags)||Yo(e)||!Pa(e))return e;const n=es(e);if(n===Dt)return n;for(;2097152&e.flags;){const r=II(e);if(!r)break;if(r===n)break;if(r.declarations&&l(r.declarations)){if(Yo(r)){ta(t,r.declarations,r.escapedName);break}if(e===n)break;e=r}}return n}function lz(t){kB(t,t.name),sz(t),277===t.kind&&(az(t.propertyName),Kd(t.propertyName||t.name)&&wk(z)&&e.getEmitModuleFormatOfFile(bd(t))<4&&Fq(t,131072))}function uz(e){var t;const n=e.attributes;if(n){const r=Bv(!0);r!==In&&nT(k_(n),zw(r,4),n);const i=vV(e),o=SV(n,i?rU:void 0),a=118===e.attributes.token;if(i&&o)return;if(!zk(U))return rU(n,a?ua.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:ua.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve);if(102<=U&&U<=199&&!a)return tU(n,ua.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);if(a||"6.0"===z.ignoreDeprecations||tU(n,ua.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert),e.moduleSpecifier&&1===Ra(e.moduleSpecifier))return rU(n,a?ua.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:ua.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls);if(eA(e)||(CE(e)?null==(t=e.importClause)?void 0:t.isTypeOnly:e.isTypeOnly))return rU(n,a?ua.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:ua.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(o)return rU(n,ua.resolution_mode_can_only_be_set_for_type_only_imports)}}function dz(t){if(!fz(t,Em(t)?ua.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:ua.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Pq(t)&&t.modifiers&&tU(t,ua.An_import_declaration_cannot_have_modifiers),oz(t)){let n;const r=t.importClause;r&&!function(e){var t,n;if(156===e.phaseModifier){if(e.name&&e.namedBindings)return rU(e,ua.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);if(276===(null==(t=e.namedBindings)?void 0:t.kind))return sU(e.namedBindings)}else if(166===e.phaseModifier){if(e.name)return rU(e,ua.Default_imports_are_not_allowed_in_a_deferred_import);if(276===(null==(n=e.namedBindings)?void 0:n.kind))return rU(e,ua.Named_imports_are_not_allowed_in_a_deferred_import);if(99!==U&&200!==U)return rU(e,ua.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve)}return!1}(r)?(r.name&&lz(r),r.namedBindings&&(275===r.namedBindings.kind?(lz(r.namedBindings),e.getEmitModuleFormatOfFile(bd(t))<4&&wk(z)&&Fq(t,65536)):(n=ls(t,t.moduleSpecifier),n&&_(r.namedBindings.elements,lz))),!r.isTypeOnly&&101<=U&&U<=199&&Ma(t.moduleSpecifier,n)&&!function(e){return!!e.attributes&&e.attributes.elements.some((e=>{var t;return"type"===Uh(e.name)&&"json"===(null==(t=et(e.value,Ru))?void 0:t.text)}))}(t)&&$o(t.moduleSpecifier,ua.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0,pi[U])):be&&!r&&ls(t,t.moduleSpecifier,void 0,ua.Cannot_find_module_or_type_declarations_for_side_effect_import_of_0)}uz(t)}}function pz(t){if(!fz(t,Em(t)?ua.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:ua.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Pq(t)&&Dv(t)&&tU(t,ua.An_export_declaration_cannot_have_modifiers),function(e){var t;if(e.isTypeOnly&&280===(null==(t=e.exportClause)?void 0:t.kind))return sU(e.exportClause)}(t),!t.moduleSpecifier||oz(t))if(t.exportClause&&!IE(t.exportClause)){_(t.exportClause.elements,mz);const e=269===t.parent.kind&&cp(t.parent.parent),n=!e&&269===t.parent.kind&&!t.moduleSpecifier&&33554432&t.flags;308===t.parent.kind||e||n||$o(t,ua.Export_declarations_are_not_permitted_in_a_namespace)}else{const n=ls(t,t.moduleSpecifier);n&&vs(n)?$o(t.moduleSpecifier,ua.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Ac(n)):t.exportClause&&(sz(t.exportClause),az(t.exportClause.name)),e.getEmitModuleFormatOfFile(bd(t))<4&&(t.exportClause?wk(z)&&Fq(t,65536):Fq(t,32768))}uz(t)}}function fz(e,t){const n=308===e.parent.kind||269===e.parent.kind||268===e.parent.kind;return n||tU(e,t),!n}function mz(t){sz(t);const n=void 0!==t.parent.parent.moduleSpecifier;if(az(t.propertyName,n),az(t.name),Pk(z)&&el(t.propertyName||t.name,!0),n)wk(z)&&e.getEmitModuleFormatOfFile(bd(t))<4&&Kd(t.propertyName||t.name)&&Fq(t,131072);else{const e=t.propertyName||t.name;if(11===e.kind)return;const n=Ge(e,e.escapedText,2998271,void 0,!0);n&&(n===Oe||n===Le||n.declarations&&Yp(ll(n.declarations[0])))?$o(e,ua.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,hc(e)):qP(t,7)}}function gz(e){const t=Fs(e),n=ga(t);if(!n.exportsChecked){const e=t.exports.get("export=");if(e&&function(e){return id(e.exports,((e,t)=>"export="!==t))}(t)){const t=Pa(e)||e.valueDeclaration;!t||$c(t)||Em(t)||$o(t,ua.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const r=Ts(t);r&&r.forEach((({declarations:e,flags:t},n)=>{if("__export"===n)return;if(1920&t)return;const r=T(e,Yt(iJ,en(hE)));if(!(524288&t&&r<=2)&&r>1&&!hz(e))for(const t of e)dJ(t)&&wo.add(Mp(t,ua.Cannot_redeclare_exported_variable_0,gc(n)))})),n.exportsChecked=!0}}function hz(e){return e&&e.length>1&&e.every((e=>Em(e)&&Cx(e)&&(Zm(e.expression)||tg(e.expression))))}function vz(n){if(n){const i=r,a=L;r=n,w=0,function(n){if(8388608&cq(n))return;jg(n)&&_(n.jsDoc,(({comment:e,tags:t})=>{xz(e),_(t,(e=>{xz(e.comment),Em(n)&&vz(e)}))}));const r=n.kind;if(t)switch(r){case 268:case 264:case 265:case 263:t.throwIfCancellationRequested()}!0===z.allowUnreachableCode||L||function(e){if(!QC(e))return!1;if(null==o?void 0:o.has(e))return!0;if(!bz(e))return!1;(o??(o=new Set)).add(e);const t=bd(e);let n=e,r=e;const i=e.parent;if(XC(i)){const t=i.statements,a=t.indexOf(e);if(a>=0){let e=a;for(let n=a-1;n>=0;n--){const r=t[n];if(!QC(r)||o.has(r)||!bz(r))break;e=n,o.add(r)}let i=a;for(let e=a+1;e=0){if(mJ(n)&&r.parameterIndex===n.parameters.length-1)$o(i,ua.A_type_predicate_cannot_reference_a_rest_parameter);else if(r.type){const t=()=>tk(void 0,ua.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);nT(r.type,eu(n.parameters[r.parameterIndex]),e.type,void 0,t)}}else if(i){let n=!1;for(const{name:e}of t.parameters)if(S_(e)&&iM(e,i,r.parameterName)){n=!0;break}n||$o(e.parameterName,ua.Cannot_find_parameter_0,r.parameterName)}}(n);case 187:return function(e){iv(e)}(n);case 188:return function(e){_(e.members,vz),c((function(){const t=Tk(e);LJ(t,t.symbol),cM(e),sM(e)}))}(n);case 189:return function(e){vz(e.elementType)}(n);case 190:return function(e){let t=!1,n=!1;for(const r of e.elements){let e=Cb(r);if(8&e){const t=aS(r.type);if(!lw(t)){$o(r,ua.A_rest_element_type_must_be_an_array_type);break}(iw(t)||Fw(t)&&4&t.target.combinedFlags)&&(e|=4)}if(4&e){if(n){rU(r,ua.A_rest_element_cannot_follow_another_rest_element);break}n=!0}else if(2&e){if(n){rU(r,ua.An_optional_element_cannot_follow_a_rest_element);break}t=!0}else if(1&e&&t){rU(r,ua.A_required_element_cannot_follow_an_optional_element);break}}_(e.elements,vz),aS(e)}(n);case 193:case 194:return function(e){_(e.types,vz),aS(e)}(n);case 197:case 191:case 192:return vz(n.type);case 198:return function(e){rS(e)}(n);case 199:return TM(n);case 195:return function(e){rO(e,vz)}(n);case 196:return function(e){dc(e,(e=>e.parent&&195===e.parent.kind&&e.parent.extendsType===e))||rU(e,ua.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),vz(e.typeParameter);const t=Fs(e.typeParameter);if(t.declarations&&t.declarations.length>1){const e=ga(t);if(!e.typeParametersChecked){e.typeParametersChecked=!0;const n=nd(t),r=Gu(t,169);if(!zJ(r,[n],(e=>[e]))){const e=Ac(t);for(const t of r)$o(t.name,ua.All_declarations_of_0_must_have_identical_constraints,e)}}}QM(e)}(n);case 204:return function(e){for(const t of e.templateSpans)vz(t.type),nT(aS(t.type),Cn,t.type);aS(e)}(n);case 206:return function(e){vz(e.argument),e.attributes&&(118!==e.attributes.token&&"6.0"!==z.ignoreDeprecations&&tU(e.attributes,ua.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert),SV(e.attributes,rU)),xM(e)}(n);case 203:return function(e){e.dotDotDotToken&&e.questionToken&&rU(e,ua.A_tuple_member_cannot_be_both_optional_and_rest),191===e.type.kind&&rU(e.type,ua.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),192===e.type.kind&&rU(e.type,ua.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),vz(e.type),aS(e)}(n);case 329:return function(e){const t=Vg(e);if(!t||!gE(t)&&!jF(t))return void $o(t,ua.JSDoc_0_is_not_attached_to_a_class,hc(e.tagName));const n=al(t).filter(EP);_n.assert(n.length>0),n.length>1&&$o(n[1],ua.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const r=GM(e.class.expression),i=bh(t);if(i){const t=GM(i.expression);t&&r.escapedText!==t.escapedText&&$o(r,ua.JSDoc_0_1_does_not_match_the_extends_2_clause,hc(e.tagName),hc(r),hc(t))}}(n);case 330:return function(e){const t=Vg(e);t&&(gE(t)||jF(t))||$o(t,ua.JSDoc_0_is_not_attached_to_a_class,hc(e.tagName))}(n);case 347:case 339:case 341:return function(e){e.typeExpression||$o(e.name,ua.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),e.name&&MJ(e.name,ua.Type_alias_name_cannot_be_0),vz(e.typeExpression),BJ(ul(e))}(n);case 346:return function(e){vz(e.constraint);for(const t of e.typeParameters)vz(t)}(n);case 345:return function(e){vz(e.typeExpression)}(n);case 325:case 326:case 327:return function(e){e.name&&Mz(e.name,!0)}(n);case 342:case 349:return function(e){vz(e.typeExpression)}(n);case 318:!function(e){c((function(){e.type||Ng(e)||dD(e,At)})),oM(e)}(n);case 316:case 315:case 313:case 314:case 323:return kz(n),void rO(n,vz);case 319:return void function(e){kz(e),vz(e.type);const{parent:t}=e;if(NN(t)&&TP(t.parent))return void(ye(t.parent.parameters)!==t&&$o(e,ua.A_rest_parameter_must_be_last_in_a_parameter_list));pP(t)||$o(e,ua.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const n=e.parent.parent;if(!UP(n))return void $o(e,ua.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const r=Jg(n);if(!r)return;const i=Ug(n);i&&ye(i.parameters).symbol===r||$o(e,ua.A_rest_parameter_must_be_last_in_a_parameter_list)}(n);case 310:return vz(n.type);case 334:case 336:case 335:return function(e){const t=Wg(e);t&&Gl(t)&&$o(e,ua.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}(n);case 351:return function(e){vz(e.typeExpression);const t=Vg(e);if(t){const e=cl(t,YP);if(l(e)>1)for(let t=1;t{var i;298!==e.kind||n||(void 0===t?t=e:(rU(e,ua.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0)),297===e.kind&&c((i=e,()=>{const e=tM(i.expression);wR(r,e)||NT(e,r,i.expression,void 0)})),_(e.statements,vz),z.noFallthroughCasesInSwitch&&e.fallthroughFlowNode&&tP(e.fallthroughFlowNode)&&$o(e,ua.Fallthrough_case_in_switch)})),e.caseBlock.locals&&QM(e.caseBlock)}(n);case 257:return function(e){oU(e)||dc(e.parent,(t=>i_(t)?"quit":257===t.kind&&t.label.escapedText===e.label.escapedText&&(rU(e.label,ua.Duplicate_label_0,Xd(e.label)),!0))),1073741824&e.label.flags&&!0!==z.allowUnusedLabels&&Go(!1===z.allowUnusedLabels,e.label,ua.Unused_label),vz(e.statement)}(n);case 258:return OJ(n);case 259:return function(e){oU(e),mB(e.tryBlock);const t=e.catchClause;if(t){if(t.variableDeclaration){const e=t.variableDeclaration;TB(e);const n=mv(e);if(n){const e=aS(n);!e||3&e.flags||tU(n,ua.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(e.initializer)tU(e.initializer,ua.Catch_clause_variable_cannot_have_an_initializer);else{const e=t.block.locals;e&&od(t.locals,(t=>{const n=e.get(t);(null==n?void 0:n.valueDeclaration)&&2&n.flags&&rU(n.valueDeclaration,ua.Cannot_redeclare_identifier_0_in_catch_clause,gc(t))}))}}mB(t.block)}e.finallyBlock&&mB(e.finallyBlock)}(n);case 261:return NB(n);case 209:return FB(n);case 264:return function(e){const t=y(e.modifiers,FN);W&&t&&V(e.members,(e=>Pv(e)&&Gl(e)))&&rU(t,ua.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),e.name||Fv(e,2048)||tU(e,ua.A_class_declaration_without_the_default_modifier_must_have_a_name),UJ(e),_(e.members,vz),QM(e)}(n);case 265:return QJ(n);case 266:return function(e){if(Pq(e),MJ(e.name,ua.Type_alias_name_cannot_be_0),Zq(e.parent)||rU(e,ua._0_declarations_can_only_be_declared_inside_a_block,"type"),NM(e),BJ(e.typeParameters),141===e.type.kind){const t=l(e.typeParameters);(0===t?"BuiltinIteratorReturn"===e.name.escapedText:1===t&&oJ.has(e.name.escapedText))||$o(e.type,ua.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types)}else vz(e.type),QM(e)}(n);case 267:return nz(n);case 307:return function(e){uN(e.name)&&$o(e,ua.An_enum_member_cannot_be_named_with_a_private_identifier),e.initializer&&tM(e.initializer)}(n);case 268:return rz(n);case 273:return dz(n);case 272:return function(e){if(!fz(e,Em(e)?ua.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:ua.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(Pq(e),!z.erasableSyntaxOnly||33554432&e.flags||$o(e,ua.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),Dm(e)||oz(e)))if(lz(e),qP(e,6),284!==e.moduleReference.kind){const t=es(Fs(e));if(t!==Dt){const n=ts(t);if(111551&n){const t=lb(e.moduleReference);1920&ss(t,112575).flags||$o(t,ua.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Ap(t))}788968&n&&MJ(e.name,ua.Import_name_cannot_be_0)}e.isTypeOnly&&rU(e,ua.An_import_alias_cannot_use_import_type)}else!(5<=U&&U<=99)||e.isTypeOnly||33554432&e.flags||rU(e,ua.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(n);case 279:return pz(n);case 278:return function(t){if(fz(t,t.isExportEquals?ua.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:ua.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration))return;!z.erasableSyntaxOnly||!t.isExportEquals||33554432&t.flags||$o(t,ua.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);const n=308===t.parent.kind?t.parent:t.parent.parent;if(268===n.kind&&!cp(n))return void(t.isExportEquals?$o(t,ua.An_export_assignment_cannot_be_used_in_a_namespace):$o(t,ua.A_default_export_can_only_be_used_in_an_ECMAScript_style_module));!Pq(t)&&wv(t)&&tU(t,ua.An_export_assignment_cannot_have_modifiers);const r=mv(t);r&&nT(IR(t.expression),aS(r),t.expression);const i=!t.isExportEquals&&!(33554432&t.flags)&&z.verbatimModuleSyntax&&1===e.getEmitModuleFormatOfFile(bd(t));if(80===t.expression.kind){const e=t.expression,n=Js(ss(e,-1,!0,!0,t));if(n){qP(t,3);const r=is(n,111551);if(111551&ts(n)?(IR(e),i||33554432&t.flags||!z.verbatimModuleSyntax||!r||$o(e,t.isExportEquals?ua.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:ua.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,hc(e))):i||33554432&t.flags||!z.verbatimModuleSyntax||$o(e,t.isExportEquals?ua.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:ua.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,hc(e)),!i&&!(33554432&t.flags)&&Ck(z)&&!(111551&n.flags)){const i=ts(n,!1,!0);!(2097152&n.flags&&788968&i)||111551&i||r&&bd(r)===bd(t)?r&&bd(r)!==bd(t)&&ka($o(e,t.isExportEquals?ua._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:ua._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,hc(e),Ue),r,hc(e)):$o(e,t.isExportEquals?ua._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:ua._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,hc(e),Ue)}}else IR(e);Pk(z)&&el(e,!0)}else IR(t.expression);i&&$o(t,Ho(t)),gz(n),33554432&t.flags&&!cb(t.expression)&&rU(t.expression,ua.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),t.isExportEquals&&(U>=5&&200!==U&&(33554432&t.flags&&99===e.getImpliedNodeFormatForEmit(bd(t))||!(33554432&t.flags)&&1!==e.getImpliedNodeFormatForEmit(bd(t)))?rU(t,ua.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):4!==U||33554432&t.flags||rU(t,ua.Export_assignment_is_not_supported_when_module_flag_is_system))}(n);case 243:case 260:return void oU(n);case 283:(function(e){KM(e)})(n)}}(n),r=i,L=a}}function bz(e){if(1073741824&e.flags)switch(e.kind){case 267:return!tf(e)||Ak(z);case 268:return _J(e,Ak(z));default:return!0}else if(Lg(e)&&e.flowNode)return!tP(e.flowNode);return!1}function xz(e){Xe(e)&&_(e,(e=>{Mu(e)&&vz(e)}))}function kz(e){if(!Em(e))if(kP(e)||xP(e)){const t=Ea(kP(e)?54:58),n=e.postfix?ua._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:ua._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,r=aS(e.type);rU(e,n,t,Oc(xP(e)&&r!==hn&&r!==gn?Xb(re([r,Ut],e.postfix?void 0:Qt)):r))}else rU(e,ua.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Sz(e){const t=ha(bd(e));1&t.flags?_n.assert(!t.deferredNodes,"A type-checked file should have no deferred nodes."):(t.deferredNodes||(t.deferredNodes=new Set),t.deferredNodes.add(e))}function Tz(e){const t=ha(e);t.deferredNodes&&t.deferredNodes.forEach(Cz),t.deferredNodes=void 0}function Cz(e){var t,n;null==(t=$n)||t.push($n.Phase.Check,"checkDeferredNode",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});const o=r;switch(r=e,w=0,e.kind){case 214:case 215:case 216:case 171:case 287:tL(e);break;case 219:case 220:case 175:case 174:!function(e){_n.assert(175!==e.kind||Jf(e));const t=Lh(e),n=Mh(e);if(iR(e,n),e.body)if(hv(e)||jh(wh(e)),242===e.body.kind)vz(e.body);else{const r=tM(e.body),i=n&&PJ(n,t);i&&IJ(e,i,e.body,e.body,r)}}(e);break;case 178:case 179:pM(e);break;case 232:!function(e){_(e.members,vz),QM(e)}(e);break;case 169:!function(e){var t,n;if(hE(e.parent)||d_(e.parent)||yE(e.parent)){const r=nd(Fs(e)),o=24576&BC(r);if(o){const a=Fs(e.parent);if(!yE(e.parent)||48&yx(rd(a))){if(8192===o||16384===o){null==(t=$n)||t.push($n.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:zb(rd(a)),id:zb(r)});const s=RC(a,r,16384===o?Xn:Gn),c=RC(a,r,16384===o?Gn:Xn),l=r;i=r,nT(s,c,e,ua.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),i=l,null==(n=$n)||n.pop()}}else $o(e,ua.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types)}}}(e);break;case 286:!function(e){nO(e)}(e);break;case 285:!function(e){nO(e.openingElement),RI(e.closingElement.tagName)?UI(e.closingElement):tM(e.closingElement.tagName),JI(e)}(e);break;case 217:case 235:case 218:!function(e){const{type:t}=sj(e),n=kF(e)?t:e,r=ha(e);_n.assertIsDefined(r.assertionExpressionType);const i=eD(kw(r.assertionExpressionType)),o=aS(t);kl(o)||c((()=>{const e=lD(i);ZS(o,e)||NT(i,o,n,ua.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)}))}(e);break;case 223:tM(e.expression);break;case 227:hb(e)&&tL(e)}r=o,null==(n=$n)||n.pop()}function wz(t,n){var r,i;null==(r=$n)||r.push($n.Phase.Check,n?"checkSourceFileNodes":"checkSourceFile",{path:t.path},!0);const a=n?"beforeCheckNodes":"beforeCheck",s=n?"afterCheckNodes":"afterCheck";er(a),n?function(t,n){const r=ha(t);if(!(1&r.flags)){if(dT(t,z,e))return;iU(t),D(po),D(fo),D(mo),D(go),D(ho),_(n,vz),Tz(t),(r.potentialThisCollisions||(r.potentialThisCollisions=[])).push(...po),(r.potentialNewTargetCollisions||(r.potentialNewTargetCollisions=[])).push(...fo),(r.potentialWeakMapSetCollisions||(r.potentialWeakMapSetCollisions=[])).push(...mo),(r.potentialReflectCollisions||(r.potentialReflectCollisions=[])).push(...go),(r.potentialUnusedRenamedBindingElementsInTypes||(r.potentialUnusedRenamedBindingElementsInTypes=[])).push(...ho),r.flags|=8388608;for(const e of n){ha(e).flags|=8388608}}}(t,n):function(t){const n=ha(t);if(!(1&n.flags)){if(dT(t,z,e))return;iU(t),D(po),D(fo),D(mo),D(go),D(ho),8388608&n.flags&&(po=n.potentialThisCollisions,fo=n.potentialNewTargetCollisions,mo=n.potentialWeakMapSetCollisions,go=n.potentialReflectCollisions,ho=n.potentialUnusedRenamedBindingElementsInTypes),_(t.statements,vz),vz(t.endOfFileToken),Tz(t),Zp(t)&&QM(t),c((()=>{t.isDeclarationFile||!z.noUnusedLocals&&!z.noUnusedParameters||YM(Nz(t),((e,t,n)=>{!vd(e)&&Dz(t,!!(33554432&e.flags))&&wo.add(n)})),t.isDeclarationFile||function(){var e;for(const t of ho)if(!(null==(e=Fs(t))?void 0:e.isReferenced)){const e=rc(t);_n.assert(Yh(e),"Only parameter declaration should be checked here");const n=Mp(t.name,ua._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Ap(t.name),Ap(t.propertyName));e.type||cT(n,Qx(bd(e),e.end,0,ua.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Ap(t.propertyName))),wo.add(n)}}()})),Zp(t)&&gz(t),po.length&&(_(po,hB),D(po)),fo.length&&(_(fo,yB),D(fo)),mo.length&&(_(mo,vB),D(mo)),go.length&&(_(go,bB),D(go)),n.flags|=1}}(t),er(s),tr("Check",a,s),null==(i=$n)||i.pop(),o=void 0}function Dz(e,t){if(t)return!1;switch(e){case 0:return!!z.noUnusedLocals;case 1:return!!z.noUnusedParameters;default:return _n.assertNever(e)}}function Nz(e){return Ni.get(e.path)||s}function Fz(n,r,i){try{return t=r,function(t,n){if(t){Ez();const e=wo.getGlobalDiagnostics(),r=e.length;Pz(t,n);const i=wo.getDiagnostics(t.fileName);if(n)return i;const o=wo.getGlobalDiagnostics();if(o!==e){return $(ne(e,o,ik),i)}return 0===r&&o.length>0?$(o,i):i}return _(e.getSourceFiles(),(e=>Pz(e))),wo.getDiagnostics()}(n,i)}finally{t=void 0}}function Ez(){for(const e of a)e();a=[]}function Pz(e,t){Ez();const n=c;c=e=>e(),wz(e,t),c=n}function Az(e){for(;167===e.parent.kind;)e=e.parent;return 184===e.parent.kind}function Iz(e,t){let n,r=Xf(e);for(;r&&!(n=t(r));)r=Xf(r);return n}function Oz(e,t){return!!Iz(e,(e=>e===t))}function Lz(e){return void 0!==function(e){for(;167===e.parent.kind;)e=e.parent;return 272===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:278===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function jz(e){if(_h(e))return Ps(e.parent);if(Em(e)&&212===e.parent.kind&&e.parent===e.parent.parent.left&&!uN(e)&&!mP(e)&&!function(e){if(110===e.expression.kind){const t=em(e,!1,!1);if(i_(t)){const e=xA(t);if(e){const t=CA(e,rI(e,void 0));return t&&!gl(t)}}}}(e.parent)){const t=function(e){switch(ng(e.parent.parent)){case 1:case 3:return Ps(e.parent);case 5:if(gF(e.parent)&&Nx(e.parent)===e)return;case 4:case 2:return Fs(e.parent.parent)}}(e);if(t)return t}if(278===e.parent.kind&&cb(e)){const t=ss(e,2998271,!0);if(t&&t!==Dt)return t}else if(t_(e)&&Lz(e)){const t=Ch(e,272);return _n.assert(void 0!==t),os(e,!0)}if(t_(e)){const t=function(e){let t=e.parent;for(;CN(t);)e=t,t=t.parent;if(t&&206===t.kind&&t.qualifier===e)return t}(e);if(t){aS(t);const n=ha(e).resolvedSymbol;return n===Dt?void 0:n}}for(;gb(e);)e=e.parent;if(function(e){for(;212===e.parent.kind;)e=e.parent;return 234===e.parent.kind}(e)){let t=0;234===e.parent.kind?(t=wf(e)?788968:111551,sb(e.parent)&&(t|=111551)):t=1920,t|=2097152;const n=cb(e)?ss(e,t,!0):void 0;if(n)return n}if(342===e.parent.kind)return Jg(e.parent);if(169===e.parent.kind&&346===e.parent.parent.kind){_n.assert(!Em(e));const t=Hg(e.parent);return t&&t.symbol}if(bm(e)){if(Nd(e))return;const t=dc(e,Zt(Mu,fP,mP)),n=t?901119:111551;if(80===e.kind){if(vm(e)&&RI(e)){const t=UI(e.parent);return t===Dt?void 0:t}const r=ss(e,n,!0,!0,Ug(e));if(!r&&t){const t=dc(e,Zt(d_,hE));if(t)return Mz(e,!0,Fs(t))}if(r&&t){const t=Wg(e);if(t&&_P(t)&&t===r.valueDeclaration)return ss(e,n,!0,!0,bd(t))||r}return r}if(uN(e))return EO(e);if(212===e.kind||167===e.kind){const n=ha(e);return n.resolvedSymbol?n.resolvedSymbol:(212===e.kind?(CO(e,0),n.resolvedSymbol||(n.resolvedSymbol=Rz(IR(e.expression),bx(e.name)))):wO(e,0),!n.resolvedSymbol&&t&&CN(e)?Mz(e):n.resolvedSymbol)}if(mP(e))return Mz(e)}else if(t_(e)&&Az(e)){const t=ss(e,184===e.parent.kind?788968:1920,!0,!0);return t&&t!==Dt?t:zy(e)}return 183===e.parent.kind?ss(e,1,!0):void 0}function Rz(e,t){const n=Rg(e,t);if(n.length&&e.members){const t=py(ff(e).members);if(n===Pg(e))return t;if(t){const r=ga(t),i=N(R(n,(e=>e.declaration)),cJ).join(",");if(r.filteredIndexSymbolCache||(r.filteredIndexSymbolCache=new Map),r.filteredIndexSymbolCache.has(i))return r.filteredIndexSymbolCache.get(i);{const t=na(131072,"__index");return t.declarations=R(n,(e=>e.declaration)),t.parent=e.aliasSymbol?e.aliasSymbol:e.symbol?e.symbol:Bz(t.declarations[0].parent),r.filteredIndexSymbolCache.set(i,t),t}}}}function Mz(e,t,n){if(t_(e)){const r=901119;let i=ss(e,r,t,!0,Ug(e));if(!i&&_N(e)&&n&&(i=Ns(ya(Ss(n),e.escapedText,r))),i)return i}const r=_N(e)?n:Mz(e.left,t,n),i=_N(e)?e.escapedText:e.right.escapedText;if(r){const e=111551&r.flags&&lg(eu(r),"prototype");return lg(e?eu(e):rd(r),i)}}function Bz(e,t){if(uP(e))return _O(e)?Ns(e.symbol):void 0;const{parent:n}=e,r=n.parent;if(!(67108864&e.flags)){if(pJ(e)){const t=Fs(n);return Bl(e.parent)&&e.parent.propertyName===e?II(t):t}if(dh(e))return Fs(n.parent);if(80===e.kind){if(Lz(e))return jz(e);if(209===n.kind&&207===r.kind&&e===n.propertyName){const t=lg(Jz(r),e.escapedText);if(t)return t}else if(qF(n)&&n.name===e)return 105===n.keywordToken&&"target"===hc(e)?fj(n).symbol:102===n.keywordToken&&"meta"===hc(e)?Tv().members.get("meta"):void 0}switch(e.kind){case 80:case 81:case 212:case 167:if(!dv(e))return jz(e);case 110:const i=em(e,!1,!1);if(i_(i)){const e=wh(i);if(e.thisParameter)return e.thisParameter}if(xm(e))return tM(e).symbol;case 198:return rS(e).symbol;case 108:return tM(e).symbol;case 137:const o=e.parent;return o&&177===o.kind?o.parent.symbol:void 0;case 11:case 15:if(Tm(e.parent.parent)&&Cm(e.parent.parent)===e||(273===e.parent.kind||279===e.parent.kind)&&e.parent.moduleSpecifier===e||Em(e)&&eA(e.parent)&&e.parent.moduleSpecifier===e||Em(e)&&Lm(e.parent,!1)||_f(e.parent)||sF(e.parent)&&df(e.parent.parent)&&e.parent.parent.argument===e.parent)return ls(e,e,t);if(yF(n)&&rg(n)&&n.arguments[1]===e)return Fs(n);case 9:const a=hF(n)?n.argumentExpression===e?YR(n.expression):void 0:sF(n)&&oF(r)?aS(r.objectType):void 0;return a&&lg(a,mc(e.text));case 90:case 100:case 39:case 86:return Ps(e.parent);case 206:return df(e)?Bz(e.argument.literal,t):void 0;case 95:return jE(e.parent)?_n.checkDefined(e.parent.symbol):void 0;case 102:if(qF(e.parent)&&"defer"===e.parent.name.escapedText)return;case 105:return qF(e.parent)?pj(e.parent).symbol:void 0;case 104:if(PF(e.parent)){const t=YR(e.parent.right),n=bR(t);return(null==n?void 0:n.symbol)??t.symbol}return;case 237:return tM(e).symbol;case 296:if(vm(e)&&RI(e)){const t=UI(e.parent);return t===Dt?void 0:t}default:return}}}function Jz(e){if(uP(e)&&!_O(e))return Rt;if(67108864&e.flags)return Rt;const t=ib(e),n=t&&zu(Fs(t.class));if(wf(e)){const t=aS(e);return n?Bd(t,n.thisType):t}if(bm(e))return qz(e);if(n&&!t.isImplements){const e=pe(Iu(n));return e?Bd(e,n.thisType):Rt}if($T(e)){return rd(Fs(e))}if(80===(r=e).kind&&$T(r.parent)&&wc(r.parent)===r){const t=Bz(e);return t?rd(t):Rt}var r;if(pF(e))return Vl(e,!0,0)||Rt;if(uu(e)){const t=Fs(e);return t?eu(t):Rt}if(pJ(e)){const t=Bz(e);return t?eu(t):Rt}if(S_(e))return Vl(e.parent,!0,0)||Rt;if(Lz(e)){const t=Bz(e);if(t){const e=rd(t);return kl(e)?eu(t):e}}return qF(e.parent)&&e.parent.keywordToken===e.kind?pj(e.parent):EE(e)?Bv(!1):Rt}function zz(e){if(_n.assert(211===e.kind||210===e.kind),251===e.parent.kind){return TR(e,RB(e.parent)||Rt)}if(227===e.parent.kind){return TR(e,YR(e.parent.right)||Rt)}if(304===e.parent.kind){const t=tt(e.parent.parent,mF);return kR(t,zz(t)||Rt,Yd(t.properties,e.parent))}const t=tt(e.parent,fF),n=zz(t)||Rt,r=MB(65,n,Ut,e.parent)||Rt;return SR(t,n,t.elements.indexOf(e),r)}function qz(e){return fb(e)&&(e=e.parent),Hk(YR(e))}function Uz(e){const t=Ps(e.parent);return Ev(e)?eu(t):rd(t)}function Vz(e){const t=e.name;switch(t.kind){case 80:return Yk(hc(t));case 9:case 11:return Yk(t.text);case 168:const e=TI(t);return gR(e,16896)?e:rn;default:return _n.fail("Unsupported property name.")}}function Wz(e){const t=Xu(yf(e=ym(e))),n=mg(e,0).length?or:mg(e,1).length?ar:void 0;return n&&_(yf(n),(e=>{t.has(e.escapedName)||t.set(e.escapedName,e)})),Gs(t,void 0)}function $z(e){return 0!==mg(e,0).length||0!==mg(e,1).length}function Hz(e){if($l(e))return!1;const t=fc(e,_N);if(!t)return!1;const n=t.parent;if(!n)return!1;return!((gF(n)||sP(n))&&n.name===t)&&bq(t)===ze}function Kz(e,t){var n;const r=fc(e,_N);if(r){let e=bq(r,function(e){return au(e.parent)&&e===e.parent.name}(r));if(e){if(1048576&e.flags){const n=Ns(e.exportSymbol);if(!t&&944&n.flags&&!(3&n.flags))return;e=n}const i=Os(e);if(i){if(512&i.flags&&308===(null==(n=i.valueDeclaration)?void 0:n.kind)){const e=i.valueDeclaration;return e!==bd(r)?void 0:e}return dc(r.parent,(e=>au(e)&&Fs(e)===i))}}}}function Gz(e){const t=sD(e);if(t)return t;const n=fc(e,_N);if(n){const e=function(e){const t=ha(e).resolvedSymbol;if(t&&t!==Dt)return t;return Ge(e,e.escapedText,3257279,void 0,!0,void 0)}(n);if(Qa(e,111551)&&!is(e,111551))return Pa(e)}}function Xz(e){if(418&e.flags&&e.valueDeclaration&&!uP(e.valueDeclaration)){const t=ga(e);if(void 0===t.isDeclarationWithCollidingName){const n=Ep(e.valueDeclaration);if(Sd(n)||function(e){return e.valueDeclaration&&pF(e.valueDeclaration)&&300===rc(e.valueDeclaration).parent.kind}(e))if(Ge(n.parent,e.escapedName,111551,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(lq(e.valueDeclaration,16384)){const r=lq(e.valueDeclaration,32768),i=H_(n,!1),o=242===n.kind&&H_(n.parent,!1);t.isDeclarationWithCollidingName=!(dp(n)||r&&(i||o))}else t.isDeclarationWithCollidingName=!1}return t.isDeclarationWithCollidingName}return!1}function Qz(e){if(!$l(e)){const t=fc(e,_N);if(t){const e=bq(t);if(e&&Xz(e))return e.valueDeclaration}}}function Yz(e){const t=fc(e,uu);if(t){const e=Fs(t);if(e)return Xz(e)}return!1}function Zz(e){switch(_n.assert($e),e.kind){case 272:return tq(Fs(e));case 274:case 275:case 277:case 282:const t=Fs(e);return!!t&&tq(t,!0);case 279:const n=e.exportClause;return!!n&&(IE(n)||V(n.elements,Zz));case 278:return!e.expression||80!==e.expression.kind||tq(Fs(e),!0)}return!1}function eq(e){const t=fc(e,TE);if(void 0===t||308!==t.parent.kind||!Dm(t))return!1;return tq(Fs(t))&&t.moduleReference&&!Nd(t.moduleReference)}function tq(e,t){if(!e)return!1;const n=bd(e.valueDeclaration);ps(n&&Fs(n));const r=Js(es(e));return r===Dt?!t||!is(e):!!(111551&ts(e,t,!0))&&(Ak(z)||!nq(r))}function nq(e){return vR(e)||!!e.constEnumOnlyModule}function rq(e,t){if(_n.assert($e),Aa(e)){const t=Fs(e),n=t&&ga(t);if(null==n?void 0:n.referenced)return!0;const r=ga(t).aliasTarget;if(r&&32&zv(e)&&111551&ts(r)&&(Ak(z)||!nq(r)))return!0}return!!t&&!!rO(e,(e=>rq(e,t)))}function iq(e){if(Fd(e.body)){if(Nu(e)||Du(e))return!1;const t=Fh(Fs(e));return t.length>1||1===t.length&&t[0].declaration!==e}return!1}function oq(e,t){return(function(e,t){if(!Y||uh(e)||UP(e)||!e.initializer)return!1;if(Fv(e,31))return!!t&&a_(t);return!0}(e,t)||function(e){return Y&&uh(e)&&(UP(e)||!e.initializer)&&Fv(e,31)}(e))&&!function(e){const t=Dq(e);if(!t)return!1;const n=aS(t);return kl(n)||WT(n)}(e)}function aq(e){const t=fc(e,(e=>mE(e)||pE(e)));if(!t)return!1;let n;if(pE(t)){if(t.type||!Em(t)&&!dU(t))return!1;const e=$m(t);if(!e||!su(e))return!1;n=Fs(e)}else n=Fs(t);return!!(n&&16&n.flags|3)&&!!id(Ss(n),(e=>111551&e.flags&&uC(e.valueDeclaration)))}function sq(e){const t=fc(e,mE);if(!t)return s;const n=Fs(t);return n&&yf(eu(n))||s}function cq(e){var t;const n=e.id||0;return n<0||n>=ro.length?0:(null==(t=ro[n])?void 0:t.flags)||0}function lq(e,t){return function(e,t){if(!z.noCheck&&mT(bd(e),z))return;const n=ha(e);if(n.calculatedFlags&t)return;switch(t){case 16:case 32:return a(e);case 128:case 256:case 2097152:return o(e);case 512:case 8192:case 65536:case 262144:return c(e);case 536870912:return _(e);case 4096:case 32768:case 16384:return d(e);default:return _n.assertNever(t,`Unhandled node check flag calculation: ${_n.formatNodeCheckFlags(t)}`)}function r(e,t){const n=t(e,e.parent);if("skip"!==n)return n||iO(e,t)}function i(e){const n=ha(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=2097536,a(e)}function o(e){r(e,i)}function a(e){ha(e).calculatedFlags|=48,108===e.kind&&bA(e)}function s(e){const n=ha(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=336384,_(e)}function c(e){r(e,s)}function l(e){return bm(e)||cP(e.parent)&&(e.parent.objectAssignmentInitializer??e.parent.name)===e}function _(e){const t=ha(e);if(t.calculatedFlags|=536870912,_N(e)&&(t.calculatedFlags|=49152,l(e)&&(!gF(e.parent)||e.parent.name!==e))){const t=nN(e);t&&t!==Dt&&_A(e,t)}}function u(e){const n=ha(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=53248,p(e)}function d(e){r(Ep(_h(e)?e.parent:e),u)}function p(e){_(e),wN(e)&&TI(e),uN(e)&&u_(e.parent)&&_M(e.parent)}}(e,t),!!(cq(e)&t)}function _q(e){return YJ(e.parent),ha(e).enumMemberValue??hC(void 0)}function uq(e){switch(e.kind){case 307:case 212:case 213:return!0}return!1}function dq(e){if(307===e.kind)return _q(e).value;ha(e).resolvedSymbol||IR(e);const t=ha(e).resolvedSymbol||(cb(e)?ss(e,111551,!0):void 0);if(t&&8&t.flags){const e=t.valueDeclaration;if(tf(e.parent))return _q(e).value}}function pq(e){return!!(1048576&e.flags)&&mg(e,0).length>0}function fq(e,t){var n;const r=fc(e,t_);if(!r)return 0;if(t&&!(t=fc(t)))return 0;let i=!1;if(CN(r)){const e=ss(lb(r),111551,!0,!0,t);i=!!(null==(n=null==e?void 0:e.declarations)?void 0:n.every(ql))}const o=ss(r,111551,!0,!0,t),a=o&&2097152&o.flags?es(o):o;i||(i=!(!o||!is(o,111551)));const s=ss(r,788968,!0,!0,t),c=s&&2097152&s.flags?es(s):s;if(o||i||(i=!(!s||!is(s,788968))),a&&a===c){const e=Wv(!1);if(e&&a===e)return 9;const t=eu(a);if(t&&gu(t))return i?10:1}if(!c)return i?11:0;const l=rd(c);return kl(l)?i?11:0:3&l.flags?11:gR(l,262172)?2:gR(l,8448)?6:gR(l,67648)?3:gR(l,4224)?4:gR(l,12583968)?5:Fw(l)?7:gR(l,16896)?8:pq(l)?10:iw(l)?7:11}function mq(e,t,n,r,i){const o=fc(e,TC);if(!o)return vw.createToken(133);const a=Fs(o);return Ne.serializeTypeForDeclaration(o,a,t,1024|n,r,i)}function gq(e){const t=179===(e=fc(e,fl)).kind?178:179,n=Ku(Fs(e),t);return{firstAccessor:n&&n.pos{switch(e.kind){case 261:case 170:case 209:case 173:case 304:case 305:case 307:case 211:case 263:case 219:case 220:case 264:case 232:case 267:case 175:case 178:case 179:case 268:return!0}return!1}))}}}function Sq(e){return!!(nf(e)||pE(e)&&dU(e))&&Kk(eu(Fs(e)))}function Tq(e,t){return function(e,t,n){const r=98304&e.flags?Ne.symbolToExpression(e.symbol,111551,t,void 0,void 0,n):e===un?vw.createTrue():e===cn&&vw.createFalse();if(r)return r;const i=e.value;return"object"==typeof i?vw.createBigIntLiteral(i):"string"==typeof i?vw.createStringLiteral(i):i<0?vw.createPrefixUnaryExpression(41,vw.createNumericLiteral(-i)):vw.createNumericLiteral(i)}(eu(Fs(e)),e,t)}function Cq(e){return e?(qo(e),bd(e).localJsxFactory||ui):ui}function wq(e){if(e){const t=bd(e);if(t){if(t.localJsxFragmentFactory)return t.localJsxFragmentFactory;const e=t.pragmas.get("jsxfrag"),n=Xe(e)?e[0]:e;if(n)return t.localJsxFragmentFactory=cO(n.arguments.factory,q),t.localJsxFragmentFactory}}if(z.jsxFragmentFactory)return cO(z.jsxFragmentFactory,q)}function Dq(e){const t=mv(e);if(t)return t;if(170===e.kind&&179===e.parent.kind){const t=gq(e.parent).getAccessor;if(t)return hv(t)}}function Nq(e){const t=268===e.kind?et(e.name,HD):Sg(e),n=_s(t,t,void 0);if(n)return Ku(n,308)}function Fq(e,t){if(z.importHelpers){const n=bd(e);if(hp(n,z)&&!(33554432&e.flags)){const r=function(e,t){const n=ha(e);n.externalHelpersModule||(n.externalHelpersModule=us(function(e){_n.assert(z.importHelpers,"Expected importHelpers to be enabled");const t=e.imports[0];return _n.assert(t&&ty(t)&&"tslib"===t.text,"Expected sourceFile.imports[0] to be the synthesized tslib import"),t}(e),Vu,ua.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||Dt);return n.externalHelpersModule}(n,e);if(r!==Dt){const n=ga(r);if(n.requestedExternalEmitHelpers??(n.requestedExternalEmitHelpers=0),(n.requestedExternalEmitHelpers&t)!==t){const i=t&~n.requestedExternalEmitHelpers;for(let t=1;t<=16777216;t<<=1)if(i&t)for(const n of Eq(t)){const i=Za(ya(Ts(r),mc(n),111551));i?524288&t?V(Fh(i),(e=>wj(e)>3))||$o(e,ua.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Vu,n,4):1048576&t?V(Fh(i),(e=>wj(e)>4))||$o(e,ua.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Vu,n,5):1024&t&&(V(Fh(i),(e=>wj(e)>2))||$o(e,ua.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Vu,n,3)):$o(e,ua.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,Vu,n)}}n.requestedExternalEmitHelpers|=t}}}}function Eq(e){switch(e){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return W?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__setFunctionName"];case 8388608:return["__propKey"];case 16777216:return["__addDisposableResource","__disposeResources"];case 33554432:return["__rewriteRelativeImportExtension"];default:return _n.fail("Unrecognized helper")}}function Pq(t){var n;const r=function(e){const t=function(e){return XA(e)?y(e.modifiers,FN):void 0}(e);return t&&tU(t,ua.Decorators_are_not_valid_here)}(t)||function(e){if(!e.modifiers)return!1;const t=function(e){switch(e.kind){case 178:case 179:case 177:case 173:case 172:case 175:case 174:case 182:case 268:case 273:case 272:case 279:case 278:case 219:case 220:case 170:case 169:return;case 176:case 304:case 305:case 271:case 283:return y(e.modifiers,e_);default:if(269===e.parent.kind||308===e.parent.kind)return;switch(e.kind){case 263:return Aq(e,134);case 264:case 186:return Aq(e,128);case 232:case 265:case 266:return y(e.modifiers,e_);case 244:return 4&e.declarationList.flags?Aq(e,135):y(e.modifiers,e_);case 267:return Aq(e,87);default:_n.assertNever(e)}}}(e);return t&&tU(t,ua.Modifiers_cannot_appear_here)}(t);if(void 0!==r)return r;if(NN(t)&&lv(t))return tU(t,ua.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const i=GF(t)?7&t.declarationList.flags:0;let o,a,s,c,l,_=0,u=!1,d=!1;for(const r of t.modifiers)if(FN(r)){if(!dm(W,t,t.parent,t.parent.parent))return 175!==t.kind||Fd(t.body)?tU(t,ua.Decorators_are_not_valid_here):tU(t,ua.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(W&&(178===t.kind||179===t.kind)){const e=gq(t);if(Rv(e.firstAccessor)&&t===e.secondAccessor)return tU(t,ua.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}if(-34849&_)return rU(r,ua.Decorators_are_not_valid_here);if(d&&98303&_){_n.assertIsDefined(l);return!eU(bd(r))&&(cT($o(r,ua.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Mp(l,ua.Decorator_used_before_export_here)),!0)}_|=32768,98303&_?32&_&&(u=!0):d=!0,l??(l=r)}else{if(148!==r.kind){if(172===t.kind||174===t.kind)return rU(r,ua._0_modifier_cannot_appear_on_a_type_member,Ea(r.kind));if(182===t.kind&&(126!==r.kind||!d_(t.parent)))return rU(r,ua._0_modifier_cannot_appear_on_an_index_signature,Ea(r.kind))}if(103!==r.kind&&147!==r.kind&&87!==r.kind&&169===t.kind)return rU(r,ua._0_modifier_cannot_appear_on_a_type_parameter,Ea(r.kind));switch(r.kind){case 87:{if(267!==t.kind&&169!==t.kind)return rU(t,ua.A_class_member_cannot_have_the_0_keyword,Ea(87));const e=HP(t.parent)&&Vg(t.parent)||t.parent;if(169===t.kind&&!(a_(e)||d_(e)||UN(e)||VN(e)||MN(e)||BN(e)||AN(e)))return rU(r,ua._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Ea(r.kind));break}case 164:if(16&_)return rU(r,ua._0_modifier_already_seen,"override");if(128&_)return rU(r,ua._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(8&_)return rU(r,ua._0_modifier_must_precede_1_modifier,"override","readonly");if(512&_)return rU(r,ua._0_modifier_must_precede_1_modifier,"override","accessor");if(1024&_)return rU(r,ua._0_modifier_must_precede_1_modifier,"override","async");_|=16,c=r;break;case 125:case 124:case 123:const d=Wc(Gv(r.kind));if(7&_)return rU(r,ua.Accessibility_modifier_already_seen);if(16&_)return rU(r,ua._0_modifier_must_precede_1_modifier,d,"override");if(256&_)return rU(r,ua._0_modifier_must_precede_1_modifier,d,"static");if(512&_)return rU(r,ua._0_modifier_must_precede_1_modifier,d,"accessor");if(8&_)return rU(r,ua._0_modifier_must_precede_1_modifier,d,"readonly");if(1024&_)return rU(r,ua._0_modifier_must_precede_1_modifier,d,"async");if(269===t.parent.kind||308===t.parent.kind)return rU(r,ua._0_modifier_cannot_appear_on_a_module_or_namespace_element,d);if(64&_)return 123===r.kind?rU(r,ua._0_modifier_cannot_be_used_with_1_modifier,d,"abstract"):rU(r,ua._0_modifier_must_precede_1_modifier,d,"abstract");if(Gl(t))return rU(r,ua.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);_|=Gv(r.kind);break;case 126:if(256&_)return rU(r,ua._0_modifier_already_seen,"static");if(8&_)return rU(r,ua._0_modifier_must_precede_1_modifier,"static","readonly");if(1024&_)return rU(r,ua._0_modifier_must_precede_1_modifier,"static","async");if(512&_)return rU(r,ua._0_modifier_must_precede_1_modifier,"static","accessor");if(269===t.parent.kind||308===t.parent.kind)return rU(r,ua._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(170===t.kind)return rU(r,ua._0_modifier_cannot_appear_on_a_parameter,"static");if(64&_)return rU(r,ua._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(16&_)return rU(r,ua._0_modifier_must_precede_1_modifier,"static","override");_|=256,o=r;break;case 129:if(512&_)return rU(r,ua._0_modifier_already_seen,"accessor");if(8&_)return rU(r,ua._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(128&_)return rU(r,ua._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(173!==t.kind)return rU(r,ua.accessor_modifier_can_only_appear_on_a_property_declaration);_|=512;break;case 148:if(8&_)return rU(r,ua._0_modifier_already_seen,"readonly");if(173!==t.kind&&172!==t.kind&&182!==t.kind&&170!==t.kind)return rU(r,ua.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(512&_)return rU(r,ua._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");_|=8;break;case 95:if(z.verbatimModuleSyntax&&!(33554432&t.flags)&&266!==t.kind&&265!==t.kind&&268!==t.kind&&308===t.parent.kind&&1===e.getEmitModuleFormatOfFile(bd(t)))return rU(r,ua.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(32&_)return rU(r,ua._0_modifier_already_seen,"export");if(128&_)return rU(r,ua._0_modifier_must_precede_1_modifier,"export","declare");if(64&_)return rU(r,ua._0_modifier_must_precede_1_modifier,"export","abstract");if(1024&_)return rU(r,ua._0_modifier_must_precede_1_modifier,"export","async");if(d_(t.parent))return rU(r,ua._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(170===t.kind)return rU(r,ua._0_modifier_cannot_appear_on_a_parameter,"export");if(4===i)return rU(r,ua._0_modifier_cannot_appear_on_a_using_declaration,"export");if(6===i)return rU(r,ua._0_modifier_cannot_appear_on_an_await_using_declaration,"export");_|=32;break;case 90:const p=308===t.parent.kind?t.parent:t.parent.parent;if(268===p.kind&&!cp(p))return rU(r,ua.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(4===i)return rU(r,ua._0_modifier_cannot_appear_on_a_using_declaration,"default");if(6===i)return rU(r,ua._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(!(32&_))return rU(r,ua._0_modifier_must_precede_1_modifier,"export","default");if(u)return rU(l,ua.Decorators_are_not_valid_here);_|=2048;break;case 138:if(128&_)return rU(r,ua._0_modifier_already_seen,"declare");if(1024&_)return rU(r,ua._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(16&_)return rU(r,ua._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(d_(t.parent)&&!PN(t))return rU(r,ua._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(170===t.kind)return rU(r,ua._0_modifier_cannot_appear_on_a_parameter,"declare");if(4===i)return rU(r,ua._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(6===i)return rU(r,ua._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(33554432&t.parent.flags&&269===t.parent.kind)return rU(r,ua.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(Gl(t))return rU(r,ua._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(512&_)return rU(r,ua._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");_|=128,a=r;break;case 128:if(64&_)return rU(r,ua._0_modifier_already_seen,"abstract");if(264!==t.kind&&186!==t.kind){if(175!==t.kind&&173!==t.kind&&178!==t.kind&&179!==t.kind)return rU(r,ua.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(264!==t.parent.kind||!Fv(t.parent,64)){return rU(r,173===t.kind?ua.Abstract_properties_can_only_appear_within_an_abstract_class:ua.Abstract_methods_can_only_appear_within_an_abstract_class)}if(256&_)return rU(r,ua._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(2&_)return rU(r,ua._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(1024&_&&s)return rU(s,ua._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(16&_)return rU(r,ua._0_modifier_must_precede_1_modifier,"abstract","override");if(512&_)return rU(r,ua._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(Tc(t)&&81===t.name.kind)return rU(r,ua._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");_|=64;break;case 134:if(1024&_)return rU(r,ua._0_modifier_already_seen,"async");if(128&_||33554432&t.parent.flags)return rU(r,ua._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(170===t.kind)return rU(r,ua._0_modifier_cannot_appear_on_a_parameter,"async");if(64&_)return rU(r,ua._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");_|=1024,s=r;break;case 103:case 147:{const e=103===r.kind?8192:16384,i=103===r.kind?"in":"out",o=HP(t.parent)&&(Vg(t.parent)||y(null==(n=$g(t.parent))?void 0:n.tags,KP))||t.parent;if(169!==t.kind||o&&!(hE(o)||d_(o)||yE(o)||KP(o)))return rU(r,ua._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,i);if(_&e)return rU(r,ua._0_modifier_already_seen,i);if(8192&e&&16384&_)return rU(r,ua._0_modifier_must_precede_1_modifier,"in","out");_|=e;break}}}return 177===t.kind?256&_?rU(o,ua._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):16&_?rU(c,ua._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):!!(1024&_)&&rU(s,ua._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):(273===t.kind||272===t.kind)&&128&_?rU(a,ua.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):170===t.kind&&31&_&&S_(t.name)?rU(t,ua.A_parameter_property_may_not_be_declared_using_a_binding_pattern):170===t.kind&&31&_&&t.dotDotDotToken?rU(t,ua.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(1024&_)&&function(e,t){switch(e.kind){case 175:case 263:case 219:case 220:return!1}return rU(t,ua._0_modifier_cannot_be_used_here,"async")}(t,s)}function Aq(e,t){const n=y(e.modifiers,e_);return n&&n.kind!==t?n:void 0}function Iq(e,t=ua.Trailing_comma_not_allowed){return!(!e||!e.hasTrailingComma)&&nU(e[0],e.end-1,1,t)}function Oq(e,t){if(e&&0===e.length){const n=e.pos-1;return nU(t,n,Ya(t.text,e.end)+1-n,ua.Type_parameter_list_cannot_be_empty)}return!1}function Lq(e){if(q>=3){const t=e.body&&KF(e.body)&&TA(e.body.statements);if(t){const n=C(e.parameters,(e=>!!e.initializer||S_(e.name)||Ju(e)));if(l(n)){_(n,(e=>{cT($o(e,ua.This_parameter_is_not_allowed_with_use_strict_directive),Mp(t,ua.use_strict_directive_used_here))}));const e=n.map(((e,t)=>Mp(e,0===t?ua.Non_simple_parameter_declared_here:ua.and_here)));return cT($o(t,ua.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...e),!0}}}return!1}function jq(e){const t=bd(e);return Pq(e)||Oq(e.typeParameters,t)||function(e){let t=!1;const n=e.length;for(let r=0;r1||e.typeParameters.hasTrailingComma||e.typeParameters[0].constraint)&&t&&To(t.fileName,[".mts",".cts"])&&rU(e.typeParameters[0],ua.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:n}=e,r=qa(t,n.pos).line,i=qa(t,n.end).line;return r!==i&&rU(n,ua.Line_terminator_not_permitted_before_arrow)}(e,t)||a_(e)&&Lq(e)}function Rq(e,t){return Iq(t)||function(e,t){if(t&&0===t.length){const n=bd(e),r=t.pos-1;return nU(n,r,Ya(n.text,t.end)+1-r,ua.Type_argument_list_cannot_be_empty)}return!1}(e,t)}function Mq(e){const t=e.types;if(Iq(t))return!0;if(t&&0===t.length){const n=Ea(e.token);return nU(e,t.pos,0,ua._0_list_cannot_be_empty,n)}return V(t,Bq)}function Bq(e){return MF(e)&&SN(e.expression)&&e.typeArguments?rU(e,ua.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):Rq(e,e.typeArguments)}function Jq(e){if(168!==e.kind)return!1;const t=e;return 227===t.expression.kind&&28===t.expression.operatorToken.kind&&rU(t.expression,ua.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function zq(e){if(e.asteriskToken){if(_n.assert(263===e.kind||219===e.kind||175===e.kind),33554432&e.flags)return rU(e.asteriskToken,ua.Generators_are_not_allowed_in_an_ambient_context);if(!e.body)return rU(e.asteriskToken,ua.An_overload_signature_cannot_be_declared_as_a_generator)}}function qq(e,t){return!!e&&rU(e,t)}function Uq(e,t){return!!e&&rU(e,t)}function Vq(e){if(oU(e))return!0;if(251===e.kind&&e.awaitModifier&&!(65536&e.flags)){const t=bd(e);if(nm(e)){if(!eU(t))switch(hp(t,z)||wo.add(Mp(e.awaitModifier,ua.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),U){case 100:case 101:case 102:case 199:if(1===t.impliedNodeFormat){wo.add(Mp(e.awaitModifier,ua.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 200:case 4:if(q>=4)break;default:wo.add(Mp(e.awaitModifier,ua.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher))}}else if(!eU(t)){const t=Mp(e.awaitModifier,ua.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),n=Kf(e);if(n&&177!==n.kind){_n.assert(!(2&Lh(n)),"Enclosing function should never be an async function.");cT(t,Mp(n,ua.Did_you_mean_to_mark_this_function_as_async))}return wo.add(t),!0}}if(rE(e)&&!(65536&e.flags)&&_N(e.initializer)&&"async"===e.initializer.escapedText)return rU(e.initializer,ua.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(262===e.initializer.kind){const t=e.initializer;if(!Yq(t)){const n=t.declarations;if(!n.length)return!1;if(n.length>1){const n=250===e.kind?ua.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:ua.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return tU(t.declarations[1],n)}const r=n[0];if(r.initializer){const t=250===e.kind?ua.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:ua.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return rU(r.name,t)}if(r.type){return rU(r,250===e.kind?ua.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:ua.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}}return!1}function Wq(e){if(e.parameters.length===(178===e.kind?1:2))return cv(e)}function $q(e,t){if(Id(e)&&!cb(hF(e)?sh(e.argumentExpression):e.expression))return rU(e,t)}function Hq(e){if(jq(e))return!0;if(175===e.kind){if(211===e.parent.kind){if(e.modifiers&&(1!==e.modifiers.length||134!==me(e.modifiers).kind))return tU(e,ua.Modifiers_cannot_appear_here);if(qq(e.questionToken,ua.An_object_member_cannot_be_declared_optional))return!0;if(Uq(e.exclamationToken,ua.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===e.body)return nU(e,e.end-1,1,ua._0_expected,"{")}if(zq(e))return!0}if(d_(e.parent)){if(q<2&&uN(e.name))return rU(e.name,ua.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(33554432&e.flags)return $q(e.name,ua.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(175===e.kind&&!e.body)return $q(e.name,ua.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(265===e.parent.kind)return $q(e.name,ua.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(188===e.parent.kind)return $q(e.name,ua.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 Kq(e){return Rh(e)||225===e.kind&&41===e.operator&&9===e.operand.kind}function Gq(e){const t=e.initializer;if(t){const r=!(Kq(t)||function(e){if((gF(e)||hF(e)&&Kq(e.argumentExpression))&&cb(e.expression))return!!(98304&IR(e).flags)}(t)||112===t.kind||97===t.kind||(n=t,10===n.kind||225===n.kind&&41===n.operator&&10===n.operand.kind));if(!(nf(e)||pE(e)&&dU(e))||e.type)return rU(t,ua.Initializers_are_not_allowed_in_ambient_contexts);if(r)return rU(t,ua.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}var n}function Xq(e){if(80===e.kind){if("__esModule"===hc(e))return function(e,t,n,...r){if(!eU(bd(t)))return Vo(e,t,n,...r),!0;return!1}("noEmit",e,ua.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const t=e.elements;for(const e of t)if(!RF(e))return Xq(e.name)}return!1}function Qq(e){if(80===e.kind){if("let"===e.escapedText)return rU(e,ua.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const t=e.elements;for(const e of t)RF(e)||Qq(e.name)}return!1}function Yq(e){const t=e.declarations;if(Iq(e.declarations))return!0;if(!e.declarations.length)return nU(e,t.pos,t.end-t.pos,ua.Variable_declaration_list_cannot_be_empty);const n=7&e.flags;if(4===n||6===n){if(nE(e.parent))return rU(e,4===n?ua.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:ua.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration);if(GF(e.parent)&&Su(e.parent.parent))return rU(e,4===n?ua.using_declarations_are_not_allowed_in_case_or_default_clauses_unless_contained_within_a_block:ua.await_using_declarations_are_not_allowed_in_case_or_default_clauses_unless_contained_within_a_block);if(33554432&e.flags)return rU(e,4===n?ua.using_declarations_are_not_allowed_in_ambient_contexts:ua.await_using_declarations_are_not_allowed_in_ambient_contexts);if(6===n)return dR(e)}return!1}function Zq(e){switch(e.kind){case 246:case 247:case 248:case 255:case 249:case 250:case 251:return!1;case 257:return Zq(e.parent)}return!0}function eU(e){return e.parseDiagnostics.length>0}function tU(e,t,...n){const r=bd(e);if(!eU(r)){const i=Gp(r,e.pos);return wo.add(Qx(r,i.start,i.length,t,...n)),!0}return!1}function nU(e,t,n,r,...i){const o=bd(e);return!eU(o)&&(wo.add(Qx(o,t,n,r,...i)),!0)}function rU(e,t,...n){return!eU(bd(e))&&($o(e,t,...n),!0)}function iU(e){return!!(33554432&e.flags)&&function(e){for(const n of e.statements)if((uu(n)||244===n.kind)&&265!==(t=n).kind&&266!==t.kind&&273!==t.kind&&272!==t.kind&&279!==t.kind&&278!==t.kind&&271!==t.kind&&!Fv(t,2208)&&tU(t,ua.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier))return!0;var t;return!1}(e)}function oU(e){if(33554432&e.flags){if(!ha(e).hasReportedStatementInAmbientContext&&(i_(e.parent)||p_(e.parent)))return ha(e).hasReportedStatementInAmbientContext=tU(e,ua.An_implementation_cannot_be_declared_in_ambient_contexts);if(242===e.parent.kind||269===e.parent.kind||308===e.parent.kind){const t=ha(e.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=tU(e,ua.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function aU(e){const t=Xd(e).includes("."),n=16&e.numericLiteralFlags;if(t||n)return;+e.text<=2**53-1||Ko(!1,Mp(e,ua.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function sU(e){return!!_(e.elements,(e=>{if(e.isTypeOnly)return tU(e,277===e.kind?ua.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:ua.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)}))}function cU(e,t,n){if(134217728&t.flags&&269484032&e.flags){const r=gN(t,e);if(r)return r;const i=yf(e);if(i){const e=pN(i,t);if(e){const r=AC(t,N(e,(e=>[()=>eu(e),e.escapedName])),n);if(r!==t)return r}}}}function lU(e){const t=zh(e);return t||(wN(e)?sN(YR(e.expression)):void 0)}function _U(e){return Je===e?Ke:(Je=e,Ke=oc(e))}function uU(e){return Re===e?He:(Re=e,He=sc(e))}function dU(e){const t=7&uU(e);return 2===t||4===t||6===t}function pU(e){return xe&&e?e.sort(fU):e}function fU(e,t){if(e===t)return 0;if(void 0===e)return 1;if(void 0===t)return-1;if(0!==l(e.declarations)&&0!==l(t.declarations)){const n=mU(e.declarations[0],t.declarations[0]);if(0!==n)return n}else{if(0!==l(e.declarations))return-1;if(0!==l(t.declarations))return 1}const n=ht(e.escapedName,t.escapedName);return 0!==n?n:lJ(e)-lJ(t)}function mU(e,t){if(e===t)return 0;if(void 0===e)return 1;if(void 0===t)return-1;const n=bd(e),r=bd(t);if(n!==r){return Te.get(n)-Te.get(r)}return e.pos-t.pos}function gU(e,t){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;let n=yU(e)-yU(t);if(0!==n)return n;if(n=function(e,t){const n=vU(e),r=vU(t);if(n===r)return void 0!==e.aliasTypeArguments?xU(e.aliasTypeArguments,t.aliasTypeArguments):0;if(void 0===n)return 1;if(void 0===r)return-1;return ht(n.escapedName,r.escapedName)}(e,t),0!==n)return n;if(394239&e.flags);else if(1048576&e.flags){const n=fU(e.symbol,t.symbol);if(0!==n)return n;if(4&yx(e)&&4&yx(t)){const n=e,r=t;if(8&yx(n.target)&&8&yx(r.target)){const e=function(e,t){var n;if(e===t)return 0;if(e.readonly!==t.readonly)return e.readonly?1:-1;if(e.elementFlags.length!==t.elementFlags.length)return e.elementFlags.length-t.elementFlags.length;for(let n=0;nt.length)return 1;const r=ht(e[n],t[n]);if(0!==r)return r}if(e.lengtho-r)&&(i=o-r);let s=-1,c=-1;r>0||io-r)&&(i=o-r),xJ(e,t,n,r,i)}function xJ(e,t,n,r,i){let o;const a=e.length;(r>0||i=2&&(i=function(e,t){let n;for(let r=0;r{const o=rl,addSource:P,setSourceContent:A,addName:I,addMapping:O,appendSourceMap:function(e,t,n,r,i,o){_n.assert(e>=k,"generatedLine cannot backtrack"),_n.assert(t>=0,"generatedCharacter cannot be negative"),s();const a=[];let l;const _=BJ(n.mappings);for(const s of _){if(o&&(s.generatedLine>o.line||s.generatedLine===o.line&&s.generatedCharacter>o.character))break;if(i&&(s.generatedLineJSON.stringify(M())};function P(t){s();const n=sa(r,t,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let i=u.get(n);return void 0===i&&(i=_.length,_.push(n),l.push(t),u.set(n,i)),c(),i}function A(e,t){if(s(),null!==t){for(o||(o=[]);o.length=k,"generatedLine cannot backtrack"),_n.assert(t>=0,"generatedCharacter cannot be negative"),_n.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),_n.assert(void 0===r||r>=0,"sourceLine cannot be negative"),_n.assert(void 0===i||i>=0,"sourceCharacter cannot be negative"),s(),(function(e,t){return!N||k!==e||S!==t}(e,t)||function(e,t,n){return void 0!==e&&void 0!==t&&void 0!==n&&T===e&&(C>t||C===t&&w>n)}(n,r,i))&&(j(),k=e,S=t,F=!1,E=!1,N=!0),void 0!==n&&void 0!==r&&void 0!==i&&(T=n,C=r,w=i,F=!0,void 0!==o&&(D=o,E=!0)),c()}function L(e){p.push(e),p.length>=1024&&R()}function j(){if(N&&(!x||m!==k||g!==S||h!==T||y!==C||v!==w||b!==D)){if(s(),m0&&(f+=String.fromCharCode.apply(void 0,p),p.length=0)}function M(){return j(),R(),{version:3,file:t,sourceRoot:n,sources:_,names:d,mappings:f,sourcesContent:o}}function B(e){e<0?e=1+(-e<<1):e<<=1;do{let n=31&e;(e>>=5)>0&&(n|=32),L((t=n)>=0&&t<26?65+t:t>=26&&t<52?97+t-26:t>=52&&t<62?48+t-52:62===t?43:63===t?47:_n.fail(`${t}: not a base64 value`))}while(e>0);var t}}var AJ=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,IJ=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,OJ=/^\s*(\/\/[@#] .*)?$/;function LJ(e,t){return{getLineCount:()=>t.length,getLineText:n=>e.substring(t[n],t[n+1])}}function jJ(e){for(let t=e.getLineCount()-1;t>=0;t--){const n=e.getLineText(t),r=IJ.exec(n);if(r)return r[1].trimEnd();if(!n.match(OJ))break}}function RJ(e){return"string"==typeof e||null===e}function MJ(e){try{const n=JSON.parse(e);if(null!==(t=n)&&"object"==typeof t&&3===t.version&&"string"==typeof t.file&&"string"==typeof t.mappings&&Xe(t.sources)&&h(t.sources,Ye)&&(void 0===t.sourceRoot||null===t.sourceRoot||"string"==typeof t.sourceRoot)&&(void 0===t.sourcesContent||null===t.sourcesContent||Xe(t.sourcesContent)&&h(t.sourcesContent,RJ))&&(void 0===t.names||null===t.names||Xe(t.names)&&h(t.names,Ye)))return n}catch{}var t}function BJ(e){let t,n=!1,r=0,i=0,o=0,a=0,s=0,c=0,l=0;return{get pos(){return r},get error(){return t},get state(){return _(!0,!0)},next(){for(;!n&&r=e.length)return d("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const a=(o=e.charCodeAt(r))>=65&&o<=90?o-65:o>=97&&o<=122?o-97+26:o>=48&&o<=57?o-48+52:43===o?62:47===o?63:-1;if(-1===a)return d("Invalid character in VLQ"),-1;t=!!(32&a),i|=(31&a)<>=1,i=-i):i>>=1,i}}function JJ(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function zJ(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function qJ(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function UJ(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function VJ(e,t){return _n.assert(e.sourceIndex===t.sourceIndex),yt(e.sourcePosition,t.sourcePosition)}function WJ(e,t){return yt(e.generatedPosition,t.generatedPosition)}function $J(e){return e.sourcePosition}function HJ(e){return e.generatedPosition}function KJ(e,t,n){const r=Fo(n),i=t.sourceRoot?Jo(t.sourceRoot,r):r,o=Jo(t.file,r),a=e.getSourceFileLike(o),c=t.sources.map((e=>Jo(e,i))),l=new Map(c.map(((t,n)=>[e.getCanonicalFileName(t),n])));let _,u,d;return{getSourcePosition:function(e){const t=function(){if(void 0===u){const e=[];for(const t of f())e.push(t);u=Z(e,WJ,UJ)}return u}();if(!V(t))return e;let n=Te(t,e.pos,HJ,yt);n<0&&(n=~n);const r=t[n];if(void 0===r||!qJ(r))return e;return{fileName:c[r.sourceIndex],pos:r.sourcePosition}},getGeneratedPosition:function(t){const n=l.get(e.getCanonicalFileName(t.fileName));if(void 0===n)return t;const r=function(e){if(void 0===d){const e=[];for(const t of f()){if(!qJ(t))continue;let n=e[t.sourceIndex];n||(e[t.sourceIndex]=n=[]),n.push(t)}d=e.map((e=>Z(e,VJ,UJ)))}return d[e]}(n);if(!V(r))return t;let i=Te(r,t.pos,$J,yt);i<0&&(i=~i);const a=r[i];if(void 0===a||a.sourceIndex!==n)return t;return{fileName:o,pos:a.generatedPosition}}};function p(n){const r=void 0!==a?ja(a,n.generatedLine,n.generatedCharacter,!0):-1;let i,o;if(zJ(n)){const r=e.getSourceFileLike(c[n.sourceIndex]);i=t.sources[n.sourceIndex],o=void 0!==r?ja(r,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:r,source:i,sourceIndex:n.sourceIndex,sourcePosition:o,nameIndex:n.nameIndex}}function f(){if(void 0===_){const n=BJ(t.mappings),r=Ie(n,p);void 0!==n.error?(e.log&&e.log(`Encountered error while decoding sourcemap: ${n.error}`),_=s):_=r}return _}}var GJ={getSourcePosition:at,getGeneratedPosition:at};function XJ(e){return(e=uc(e))?cJ(e):0}function QJ(e){return!!e&&(!(!OE(e)&&!ME(e))&&V(e.elements,YJ))}function YJ(e){return Kd(e.propertyName||e.name)}function ZJ(e,t){return function(n){return 308===n.kind?t(n):function(n){return e.factory.createBundle(N(n.sourceFiles,t))}(n)}}function ez(e){return!!Tg(e)}function tz(e){if(Tg(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t)return!1;if(!OE(t))return!1;let n=0;for(const e of t.elements)YJ(e)&&n++;return n>0&&n!==t.elements.length||!!(t.elements.length-n)&&Cg(e)}function nz(e){return!tz(e)&&(Cg(e)||!!e.importClause&&OE(e.importClause.namedBindings)&&QJ(e.importClause.namedBindings))}function rz(e,t){const n=e.getEmitResolver(),r=e.getCompilerOptions(),i=[],o=new sz,a=[],s=new Map,c=new Set;let l,_,u=!1,d=!1,p=!1,f=!1;for(const n of t.statements)switch(n.kind){case 273:i.push(n),!p&&tz(n)&&(p=!0),!f&&nz(n)&&(f=!0);break;case 272:284===n.moduleReference.kind&&i.push(n);break;case 279:if(n.moduleSpecifier)if(n.exportClause)if(i.push(n),ME(n.exportClause))g(n),f||(f=QJ(n.exportClause));else{const e=n.exportClause.name,t=$d(e);s.get(t)||(oz(a,XJ(n),e),s.set(t,!0),l=re(l,e)),p=!0}else i.push(n),d=!0;else g(n);break;case 278:n.isExportEquals&&!_&&(_=n);break;case 244:if(Fv(n,32))for(const e of n.declarationList.declarations)l=iz(e,s,l,a);break;case 263:Fv(n,32)&&h(n,void 0,Fv(n,2048));break;case 264:if(Fv(n,32))if(Fv(n,2048))u||(oz(a,XJ(n),e.factory.getDeclarationName(n)),u=!0);else{const e=n.name;e&&!s.get(hc(e))&&(oz(a,XJ(n),e),s.set(hc(e),!0),l=re(l,e))}}const m=jA(e.factory,e.getEmitHelperFactory(),t,r,d,p,f);return m&&i.unshift(m),{externalImports:i,exportSpecifiers:o,exportEquals:_,hasExportStarsToExportValues:d,exportedBindings:a,exportedNames:l,exportedFunctions:c,externalHelpersImportDeclaration:m};function g(e){for(const t of tt(e.exportClause,ME).elements){const r=$d(t.name);if(!s.get(r)){const i=t.propertyName||t.name;if(11!==i.kind){e.moduleSpecifier||o.add(i,t);const r=n.getReferencedImportDeclaration(i)||n.getReferencedValueDeclaration(i);if(r){if(263===r.kind){h(r,t.name,Kd(t.name));continue}oz(a,XJ(r),t.name)}}s.set(r,!0),l=re(l,t.name)}}}function h(t,n,r){if(c.add(uc(t,mE)),r)u||(oz(a,XJ(t),n??e.factory.getDeclarationName(t)),u=!0);else{n??(n=t.name);const e=$d(n);s.get(e)||(oz(a,XJ(t),n),s.set(e,!0))}}}function iz(e,t,n,r){if(S_(e.name))for(const i of e.name.elements)RF(i)||(n=iz(i,t,n,r));else if(!$l(e.name)){const i=hc(e.name);t.get(i)||(t.set(i,!0),n=re(n,e.name),xA(e.name)&&oz(r,XJ(e),e.name))}return n}function oz(e,t,n){let r=e[t];return r?r.push(n):e[t]=r=[n],r}var az=class e{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(e.toKey(t))}get(t){return this._map.get(e.toKey(t))}set(t,n){return this._map.set(e.toKey(t),n),this}delete(t){var n;return(null==(n=this._map)?void 0:n.delete(e.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(Hl(t)||$l(t)){const n=t.emitNode.autoGenerate;if(4==(7&n.flags)){const r=hI(t),i=pl(r)&&r!==t?e.toKey(r):`(generated@${cJ(r)})`;return bI(!1,n.prefix,i,n.suffix,e.toKey)}{const t=`(auto@${n.id})`;return bI(!1,n.prefix,t,n.suffix,e.toKey)}}return uN(t)?hc(t).slice(1):hc(t)}},sz=class extends az{add(e,t){let n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}remove(e,t){const n=this.get(e);n&&(Ut(n,t),n.length||this.delete(e))}};function cz(e){return Ru(e)||9===e.kind||wh(e.kind)||_N(e)}function lz(e){return!_N(e)&&cz(e)}function _z(e){return e>=65&&e<=79}function uz(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function dz(e){if(!QF(e))return;const t=sh(e.expression);return lf(t)?t:void 0}function pz(e,t,n){for(let r=t;rfunction(e,t,n){return PN(e)&&(!!e.initializer||!t)&&Pv(e)===n}(e,t,n)))}function gz(e){return PN(t=e)&&Pv(t)||ON(e);var t}function hz(e){return C(e.members,gz)}function yz(e){return 173===e.kind&&void 0!==e.initializer}function vz(e){return!Ev(e)&&(g_(e)||f_(e))&&uN(e.name)}function bz(e){let t;if(e){const n=e.parameters,r=n.length>0&&lv(n[0]),i=r?1:0,o=r?n.length-1:n.length;for(let e=0;eCz(e.privateEnv,t)))}function Nz(e){return!e.initializer&&_N(e.name)}function Fz(e){return h(e,Nz)}function Ez(e,t){if(!e||!HD(e)||!kg(e.text,t))return e;const n=KS(e.text,aU(e.text,t));return n!==e.text?xw(NI(vw.createStringLiteral(n,e.singleQuote),e),e):e}var Pz=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(Pz||{});function Az(e,t,n,r,i,o){let a,s,c=e;if(ab(e))for(a=e.right;bb(e.left)||vb(e.left);){if(!ab(a))return _n.checkDefined(yJ(a,t,W_));c=e=a,a=e.right}const l={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:_,emitBindingOrAssignment:function(e,r,i,a){_n.assertNode(e,o?_N:W_);const s=o?o(e,r,i):NI(n.factory.createAssignment(_n.checkDefined(yJ(e,t,W_)),r),i);s.original=a,_(s)},createArrayBindingOrAssignmentPattern:e=>function(e,t){return _n.assertEachNode(t,A_),e.createArrayLiteralExpression(N(t,e.converters.convertToArrayAssignmentElement))}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return _n.assertEachNode(t,E_),e.createObjectLiteralExpression(N(t,e.converters.convertToObjectAssignmentElement))}(n.factory,e),createArrayBindingOrAssignmentElement:Jz,visitor:t};if(a&&(a=yJ(a,t,W_),_n.assert(a),_N(a)&&Iz(e,a.escapedText)||Oz(e)?a=Bz(l,a,!1,c):i?a=Bz(l,a,!0,c):ty(e)&&(c=a)),jz(l,e,a,c,ab(e)),a&&i){if(!V(s))return a;s.push(a)}return n.factory.inlineExpressions(s)||n.factory.createOmittedExpression();function _(e){s=re(s,e)}}function Iz(e,t){const n=zA(e);return N_(n)?function(e,t){const n=$A(e);for(const e of n)if(Iz(e,t))return!0;return!1}(n,t):!!_N(n)&&n.escapedText===t}function Oz(e){const t=VA(e);if(t&&wN(t)&&!Ol(t.expression))return!0;const n=zA(e);return!!n&&N_(n)&&!!_($A(n),Oz)}function Lz(e,t,n,r,i,o=!1,a){let s;const c=[],l=[],_={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:o,emitExpression:function(e){s=re(s,e)},emitBindingOrAssignment:u,createArrayBindingOrAssignmentPattern:e=>function(e,t){return _n.assertEachNode(t,C_),e.createArrayBindingPattern(t)}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return _n.assertEachNode(t,pF),e.createObjectBindingPattern(t)}(n.factory,e),createArrayBindingOrAssignmentElement:e=>function(e,t){return e.createBindingElement(void 0,void 0,t)}(n.factory,e),visitor:t};if(pE(e)){let t=JA(e);t&&(_N(t)&&Iz(e,t.escapedText)||Oz(e))&&(t=Bz(_,_n.checkDefined(yJ(t,_.visitor,W_)),!1,t),e=n.factory.updateVariableDeclaration(e,e.name,void 0,void 0,t))}if(jz(_,e,i,e,a),s){const e=n.factory.createTempVariable(void 0);if(o){const t=n.factory.inlineExpressions(s);s=void 0,u(e,t,void 0,void 0)}else{n.hoistVariableDeclaration(e);const t=ye(c);t.pendingExpressions=re(t.pendingExpressions,n.factory.createAssignment(e,t.value)),ae(t.pendingExpressions,s),t.value=e}}for(const{pendingExpressions:e,name:t,value:r,location:i,original:o}of c){const a=n.factory.createVariableDeclaration(t,void 0,void 0,e?n.factory.inlineExpressions(re(e,r)):r);a.original=o,NI(a,i),l.push(a)}return l;function u(e,t,r,i){_n.assertNode(e,r_),s&&(t=n.factory.inlineExpressions(re(s,t)),s=void 0),c.push({pendingExpressions:s,name:e,value:t,location:r,original:i})}}function jz(e,t,n,r,i){const o=zA(t);if(!i){const i=yJ(JA(t),e.visitor,W_);i?n?(n=function(e,t,n,r){return t=Bz(e,t,!0,r),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,n,void 0,t)}(e,n,i,r),!lz(i)&&N_(o)&&(n=Bz(e,n,!0,r))):n=i:n||(n=e.context.factory.createVoidZero())}F_(o)?function(e,t,n,r,i){const o=$A(n),a=o.length;if(1!==a){r=Bz(e,r,!w_(t)||0!==a,i)}let s,c;for(let t=0;t=1)||98304&l.transformFlags||98304&zA(l).transformFlags||wN(t)){s&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n),s=void 0);const o=Mz(e,r,t);wN(t)&&(c=re(c,o.argumentExpression)),jz(e,l,o,l)}else s=re(s,yJ(l,e.visitor,D_))}}s&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n)}(e,t,o,n,r):P_(o)?function(e,t,n,r,i){const o=$A(n),a=o.length;if(e.level<1&&e.downlevelIteration)r=Bz(e,NI(e.context.getEmitHelperFactory().createReadHelper(r,a>0&&qA(o[a-1])?void 0:a),i),!1,i);else if(1!==a&&(e.level<1||0===a)||h(o,RF)){r=Bz(e,r,!w_(t)||0!==a,i)}let s,c;for(let t=0;t=1)if(65536&n.transformFlags||e.hasTransformedPriorElement&&!Rz(n)){e.hasTransformedPriorElement=!0;const t=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(t),c=re(c,[t,n]),s=re(s,e.createArrayBindingOrAssignmentElement(t))}else s=re(s,n);else{if(RF(n))continue;if(qA(n)){if(t===a-1){const i=e.context.factory.createArraySliceCall(r,t);jz(e,n,i,n)}}else{const i=e.context.factory.createElementAccessExpression(r,t);jz(e,n,i,n)}}}s&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(s),r,i,n);if(c)for(const[t,n]of c)jz(e,n,t,n)}(e,t,o,n,r):e.emitBindingOrAssignment(o,n,r,t)}function Rz(e){const t=zA(e);if(!t||RF(t))return!0;const n=VA(e);if(n&&!qh(n))return!1;const r=JA(e);return!(r&&!lz(r))&&(N_(t)?h($A(t),Rz):_N(t))}function Mz(e,t,n){const{factory:r}=e.context;if(wN(n)){const r=Bz(e,_n.checkDefined(yJ(n.expression,e.visitor,W_)),!1,n);return e.context.factory.createElementAccessExpression(t,r)}if(Rh(n)||$D(n)){const i=r.cloneNode(n);return e.context.factory.createElementAccessExpression(t,i)}{const r=e.context.factory.createIdentifier(hc(n));return e.context.factory.createPropertyAccessExpression(t,r)}}function Bz(e,t,n,r){if(_N(t)&&n)return t;{const n=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(n),e.emitExpression(NI(e.context.factory.createAssignment(n,t),r))):e.emitBindingOrAssignment(n,t,r,void 0),n}}function Jz(e){return e}function zz(e){var t;if(!ON(e)||1!==e.body.statements.length)return!1;const n=e.body.statements[0];return QF(n)&&ob(n.expression,!0)&&_N(n.expression.left)&&(null==(t=e.emitNode)?void 0:t.classThis)===n.expression.left&&110===n.expression.right.kind}function qz(e){var t;return!!(null==(t=e.emitNode)?void 0:t.classThis)&&V(e.members,zz)}function Uz(e,t,n,r){if(qz(t))return t;const i=function(e,t,n=e.createThis()){const r=e.createAssignment(t,n),i=e.createExpressionStatement(r),o=e.createBlock([i],!1),a=e.createClassStaticBlockDeclaration(o);return kw(a).classThis=t,a}(e,n,r);t.name&&Ew(i.body.statements[0],t.name);const o=e.createNodeArray([i,...t.members]);NI(o,t.members);const a=gE(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o);return kw(a).classThis=n,a}function Vz(e,t,n){const r=uc(PA(n));return(gE(r)||mE(r))&&!r.name&&Fv(r,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function Wz(e,t,n){const{factory:r}=e;if(void 0!==n){return{assignedName:r.createStringLiteral(n),name:t}}if(qh(t)||uN(t)){return{assignedName:r.createStringLiteralFromNode(t),name:t}}if(qh(t.expression)&&!_N(t.expression)){return{assignedName:r.createStringLiteralFromNode(t.expression),name:t}}const i=r.getGeneratedNameForNode(t);e.hoistVariableDeclaration(i);const o=e.getEmitHelperFactory().createPropKeyHelper(t.expression),a=r.createAssignment(i,o);return{assignedName:i,name:r.updateComputedPropertyName(t,a)}}function $z(e){var t;if(!ON(e)||1!==e.body.statements.length)return!1;const n=e.body.statements[0];return QF(n)&&VD(n.expression,"___setFunctionName")&&n.expression.arguments.length>=2&&n.expression.arguments[1]===(null==(t=e.emitNode)?void 0:t.assignedName)}function Hz(e){var t;return!!(null==(t=e.emitNode)?void 0:t.assignedName)&&V(e.members,$z)}function Kz(e){return!!e.name||Hz(e)}function Gz(e,t,n,r){if(Hz(t))return t;const{factory:i}=e,o=function(e,t,n=e.factory.createThis()){const{factory:r}=e,i=e.getEmitHelperFactory().createSetFunctionNameHelper(n,t),o=r.createExpressionStatement(i),a=r.createBlock([o],!1),s=r.createClassStaticBlockDeclaration(a);return kw(s).assignedName=t,s}(e,n,r);t.name&&Ew(o.body.statements[0],t.name);const a=b(t.members,zz)+1,s=t.members.slice(0,a),c=t.members.slice(a),l=i.createNodeArray([...s,o,...c]);return NI(l,t.members),kw(t=gE(t)?i.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,l):i.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,l)).assignedName=n,t}function Xz(e,t,n,r){if(r&&HD(n)&&ym(n))return t;const{factory:i}=e,o=PA(t),a=jF(o)?tt(Gz(e,o,n),jF):e.getEmitHelperFactory().createSetFunctionNameHelper(o,n);return i.restoreOuterExpressions(t,a)}function Qz(e,t,n,r){switch(t.kind){case 304:return function(e,t,n,r){const{factory:i}=e,{assignedName:o,name:a}=Wz(e,t.name,r),s=Xz(e,t.initializer,o,n);return i.updatePropertyAssignment(t,a,s)}(e,t,n,r);case 305:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Vz(i,t.name,t.objectAssignmentInitializer),a=Xz(e,t.objectAssignmentInitializer,o,n);return i.updateShorthandPropertyAssignment(t,t.name,a)}(e,t,n,r);case 261:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Vz(i,t.name,t.initializer),a=Xz(e,t.initializer,o,n);return i.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,a)}(e,t,n,r);case 170:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Vz(i,t.name,t.initializer),a=Xz(e,t.initializer,o,n);return i.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,a)}(e,t,n,r);case 209:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Vz(i,t.name,t.initializer),a=Xz(e,t.initializer,o,n);return i.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,a)}(e,t,n,r);case 173:return function(e,t,n,r){const{factory:i}=e,{assignedName:o,name:a}=Wz(e,t.name,r),s=Xz(e,t.initializer,o,n);return i.updatePropertyDeclaration(t,t.modifiers,a,t.questionToken??t.exclamationToken,t.type,s)}(e,t,n,r);case 227:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Vz(i,t.left,t.right),a=Xz(e,t.right,o,n);return i.updateBinaryExpression(t,t.left,t.operatorToken,a)}(e,t,n,r);case 278:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):i.createStringLiteral(t.isExportEquals?"":"default"),a=Xz(e,t.expression,o,n);return i.updateExportAssignment(t,t.modifiers,a)}(e,t,n,r)}}var Yz=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(Yz||{});function Zz(e,t,n,r,i,o){const a=yJ(t.tag,n,W_);_n.assert(a);const s=[void 0],c=[],l=[],_=t.template;if(0===o&&!my(_))return NJ(t,n,e);const{factory:u}=e;if(XD(_))c.push(eq(u,_)),l.push(tq(u,_,r));else{c.push(eq(u,_.head)),l.push(tq(u,_.head,r));for(const e of _.templateSpans)c.push(eq(u,e.literal)),l.push(tq(u,e.literal,r)),s.push(_n.checkDefined(yJ(e.expression,n,W_)))}const d=e.getEmitHelperFactory().createTemplateObjectHelper(u.createArrayLiteralExpression(c),u.createArrayLiteralExpression(l));if(_O(r)){const e=u.createUniqueName("templateObject");i(e),s[0]=u.createLogicalOr(e,u.createAssignment(e,d))}else s[0]=d;return u.createCallExpression(a,void 0,s)}function eq(e,t){return 26656&t.templateFlags?e.createVoidZero():e.createStringLiteral(t.text)}function tq(e,t,n){let r=t.rawText;if(void 0===r){_n.assertIsDefined(n,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),r=Vd(n,t);const e=15===t.kind||18===t.kind;r=r.substring(1,r.length-(e?1:2))}return r=r.replace(/\r\n?/g,"\n"),NI(e.createStringLiteral(r),t)}var nq=!1;function rq(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:a}=e,s=e.getEmitResolver(),c=e.getCompilerOptions(),l=xk(c),_=kk(c),u=!!c.experimentalDecorators,d=c.emitDecoratorMetadata?aq(e):void 0,p=e.onEmitNode,f=e.onSubstituteNode;let m,g,h,y,v;e.onEmitNode=function(e,t,n){const r=b,i=m;uP(t)&&(m=t);2&x&&function(e){return 268===uc(e).kind}(t)&&(b|=2);8&x&&function(e){return 267===uc(e).kind}(t)&&(b|=8);p(e,t,n),b=r,m=i},e.onSubstituteNode=function(e,n){if(n=f(e,n),1===e)return function(e){switch(e.kind){case 80:return function(e){return we(e)||e}(e);case 212:case 213:return function(e){return De(e)}(e)}return e}(n);if(cP(n))return function(e){if(2&x){const n=e.name,r=we(n);if(r){if(e.objectAssignmentInitializer){const i=t.createAssignment(r,e.objectAssignmentInitializer);return NI(t.createPropertyAssignment(n,i),e)}return NI(t.createPropertyAssignment(n,r),e)}}return e}(n);return n},e.enableSubstitution(212),e.enableSubstitution(213);let b,x=0;return function(e){if(309===e.kind)return function(e){return t.createBundle(e.sourceFiles.map(k))}(e);return k(e)};function k(t){if(t.isDeclarationFile)return t;m=t;const n=S(t,B);return Hw(n,e.readEmitHelpers()),m=void 0,n}function S(e,t){const n=y,r=v;!function(e){switch(e.kind){case 308:case 270:case 269:case 242:y=e,v=void 0;break;case 264:case 263:if(Fv(e,128))break;e.name?ce(e):_n.assert(264===e.kind||Fv(e,2048))}}(e);const i=t(e);return y!==n&&(v=r),y=n,i}function T(e){return S(e,w)}function w(e){return 1&e.transformFlags?M(e):e}function D(e){return S(e,F)}function F(n){switch(n.kind){case 273:case 272:case 278:case 279:return function(n){if(function(e){const t=fc(e);if(t===e||jE(e))return!1;if(!t||t.kind!==e.kind)return!0;switch(e.kind){case 273:if(_n.assertNode(t,CE),e.importClause!==t.importClause)return!0;if(e.attributes!==t.attributes)return!0;break;case 272:if(_n.assertNode(t,TE),e.name!==t.name)return!0;if(e.isTypeOnly!==t.isTypeOnly)return!0;if(e.moduleReference!==t.moduleReference&&(t_(e.moduleReference)||t_(t.moduleReference)))return!0;break;case 279:if(_n.assertNode(t,RE),e.exportClause!==t.exportClause)return!0;if(e.attributes!==t.attributes)return!0}return!1}(n))return 1&n.transformFlags?NJ(n,T,e):n;switch(n.kind){case 273:return function(e){if(!e.importClause)return e;if(e.importClause.isTypeOnly)return;const n=yJ(e.importClause,pe,wE);return n?t.updateImportDeclaration(e,void 0,n,e.moduleSpecifier,e.attributes):void 0}(n);case 272:return he(n);case 278:return function(t){return c.verbatimModuleSyntax||s.isValueAliasDeclaration(t)?NJ(t,T,e):void 0}(n);case 279:return function(e){if(e.isTypeOnly)return;if(!e.exportClause||IE(e.exportClause))return t.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes);const n=!!c.verbatimModuleSyntax,r=yJ(e.exportClause,(e=>function(e,n){return IE(e)?function(e){return t.updateNamespaceExport(e,_n.checkDefined(yJ(e.name,T,_N)))}(e):function(e,n){const r=vJ(e.elements,ge,BE);return n||V(r)?t.updateNamedExports(e,r):void 0}(e,n)}(e,n)),Dl);return r?t.updateExportDeclaration(e,void 0,e.isTypeOnly,r,e.moduleSpecifier,e.attributes):void 0}(n);default:_n.fail("Unhandled ellided statement")}}(n);default:return w(n)}}function E(e){return S(e,P)}function P(e){if(279!==e.kind&&273!==e.kind&&274!==e.kind&&(272!==e.kind||284!==e.moduleReference.kind))return 1&e.transformFlags||Fv(e,32)?M(e):e}function A(n){return r=>S(r,(r=>function(n,r){switch(n.kind){case 177:return function(n){if(!Q(n))return;return t.updateConstructorDeclaration(n,void 0,SJ(n.parameters,T,e),function(n,r){const a=r&&C(r.parameters,(e=>ec(e,r)));if(!V(a))return CJ(n,T,e);let s=[];i();const c=t.copyPrologue(n.statements,s,!1,T),l=fz(n.statements,c),_=R(a,Z);l.length?Y(s,n.statements,c,l,0,_):(ae(s,_),ae(s,vJ(n.statements,T,fu,c)));s=t.mergeLexicalEnvironment(s,o());const u=t.createBlock(NI(t.createNodeArray(s),n.statements),!0);return NI(u,n),xw(u,n),u}(n.body,n))}(n);case 173:return function(e,n){const r=33554432&e.flags||Fv(e,64);if(r&&(!u||!Rv(e)))return;let i=d_(n)?vJ(e.modifiers,r?L:T,h_):vJ(e.modifiers,O,h_);if(i=U(i,e,n),r)return t.updatePropertyDeclaration(e,$(i,t.createModifiersFromModifierFlags(128)),_n.checkDefined(yJ(e.name,T,n_)),void 0,void 0,void 0);return t.updatePropertyDeclaration(e,i,X(e),void 0,void 0,yJ(e.initializer,T,W_))}(n,r);case 178:return ne(n,r);case 179:return ie(n,r);case 175:return ee(n,r);case 176:return NJ(n,T,e);case 241:return n;case 182:return;default:return _n.failBadSyntaxKind(n)}}(r,n)))}function I(e){return t=>S(t,(t=>function(e,t){switch(e.kind){case 304:case 305:case 306:return T(e);case 178:return ne(e,t);case 179:return ie(e,t);case 175:return ee(e,t);default:return _n.failBadSyntaxKind(e)}}(t,e)))}function O(e){return FN(e)?void 0:T(e)}function L(e){return e_(e)?void 0:T(e)}function j(e){if(!FN(e)&&!(28895&Gv(e.kind)||g&&95===e.kind))return e}function M(n){if(fu(n)&&Fv(n,128))return t.createNotEmittedStatement(n);switch(n.kind){case 95:case 90:return g?void 0:n;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 189:case 190:case 191:case 192:case 188:case 183:case 169:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 186:case 185:case 187:case 184:case 193:case 194:case 195:case 197:case 198:case 199:case 200:case 201:case 202:case 182:case 271:return;case 266:case 265:return t.createNotEmittedStatement(n);case 264:return function(n){const r=function(e){let t=0;V(mz(e,!0,!0))&&(t|=1);const n=vh(e);n&&106!==PA(n.expression).kind&&(t|=64);gm(u,e)&&(t|=2);mm(u,e)&&(t|=4);ye(e)?t|=8:!function(e){return ve(e)&&Fv(e,2048)}(e)?be(e)&&(t|=16):t|=32;return t}(n),i=l<2&&!!(7&r);if(!function(e){return Rv(e)||V(e.typeParameters)||V(e.heritageClauses,J)||V(e.members,J)}(n)&&!gm(u,n)&&!ye(n))return t.updateClassDeclaration(n,vJ(n.modifiers,j,e_),n.name,void 0,vJ(n.heritageClauses,T,oP),vJ(n.members,A(n),u_));i&&e.startLexicalEnvironment();const o=i||8&r;let a=vJ(n.modifiers,o?L:T,h_);2&r&&(a=q(a,n));const s=o&&!n.name||4&r||1&r,c=s?n.name??t.getGeneratedNameForNode(n):n.name,_=t.updateClassDeclaration(n,a,c,void 0,vJ(n.heritageClauses,T,oP),z(n));let d,p=Zd(n);1&r&&(p|=64);if(Cw(_,p),i){const r=[_],i=Bb(Ya(m.text,n.members.end),20),o=t.getInternalName(n),a=t.createPartiallyEmittedExpression(o);wT(a,i.end),Cw(a,3072);const s=t.createReturnStatement(a);CT(s,i.pos),Cw(s,3840),r.push(s),Ld(r,e.endLexicalEnvironment());const c=t.createImmediatelyInvokedArrowFunction(r);Dw(c,1);const l=t.createVariableDeclaration(t.getLocalName(n,!1,!1),void 0,void 0,c);xw(l,n);const u=t.createVariableStatement(void 0,t.createVariableDeclarationList([l],1));xw(u,n),jw(u,n),Ew(u,Rb(n)),IA(u),d=u}else d=_;if(o){if(8&r)return[d,xe(n)];if(32&r)return[d,t.createExportDefault(t.getLocalName(n,!1,!0))];if(16&r)return[d,t.createExternalModuleExport(t.getDeclarationName(n,!1,!0))]}return d}(n);case 232:return function(e){let n=vJ(e.modifiers,L,h_);gm(u,e)&&(n=q(n,e));return t.updateClassExpression(e,n,e.name,void 0,vJ(e.heritageClauses,T,oP),z(e))}(n);case 299:return function(t){if(119===t.token)return;return NJ(t,T,e)}(n);case 234:return function(e){return t.updateExpressionWithTypeArguments(e,_n.checkDefined(yJ(e.expression,T,B_)),void 0)}(n);case 211:return function(e){return t.updateObjectLiteralExpression(e,vJ(e.properties,I(e),b_))}(n);case 177:case 173:case 175:case 178:case 179:case 176:return _n.fail("Class and object literal elements must be visited with their respective visitors");case 263:return function(n){if(!Q(n))return t.createNotEmittedStatement(n);const r=t.updateFunctionDeclaration(n,vJ(n.modifiers,j,e_),n.asteriskToken,n.name,void 0,SJ(n.parameters,T,e),void 0,CJ(n.body,T,e)||t.createBlock([]));if(ye(n)){const e=[r];return function(e,t){e.push(xe(t))}(e,n),e}return r}(n);case 219:return function(n){if(!Q(n))return t.createOmittedExpression();const r=t.updateFunctionExpression(n,vJ(n.modifiers,j,e_),n.asteriskToken,n.name,void 0,SJ(n.parameters,T,e),void 0,CJ(n.body,T,e)||t.createBlock([]));return r}(n);case 220:return function(n){const r=t.updateArrowFunction(n,vJ(n.modifiers,j,e_),void 0,SJ(n.parameters,T,e),void 0,n.equalsGreaterThanToken,CJ(n.body,T,e));return r}(n);case 170:return function(e){if(lv(e))return;const n=t.updateParameterDeclaration(e,vJ(e.modifiers,(e=>FN(e)?T(e):void 0),h_),e.dotDotDotToken,_n.checkDefined(yJ(e.name,T,r_)),void 0,void 0,yJ(e.initializer,T,W_));n!==e&&(jw(n,e),NI(n,Mb(e)),Ew(n,Mb(e)),Cw(n.name,64));return n}(n);case 218:return function(n){const r=PA(n.expression,-55);if($_(r)||JF(r)){const e=yJ(n.expression,T,W_);return _n.assert(e),t.createPartiallyEmittedExpression(e,n)}return NJ(n,T,e)}(n);case 217:case 235:return function(e){const n=yJ(e.expression,T,W_);return _n.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 239:return function(e){const n=yJ(e.expression,T,W_);return _n.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 214:return function(e){return t.updateCallExpression(e,_n.checkDefined(yJ(e.expression,T,W_)),void 0,vJ(e.arguments,T,W_))}(n);case 215:return function(e){return t.updateNewExpression(e,_n.checkDefined(yJ(e.expression,T,W_)),void 0,vJ(e.arguments,T,W_))}(n);case 216:return function(e){return t.updateTaggedTemplateExpression(e,_n.checkDefined(yJ(e.tag,T,W_)),void 0,_n.checkDefined(yJ(e.template,T,M_)))}(n);case 236:return function(e){const n=yJ(e.expression,T,B_);return _n.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 267:return function(e){if(!function(e){return!tf(e)||Ak(c)}(e))return t.createNotEmittedStatement(e);const n=[];let i=4;const a=_e(n,e);a&&(4===_&&y===m||(i|=1024));const s=Te(e),l=Ce(e),u=ye(e)?t.getExternalModuleOrNamespaceExportName(h,e,!1,!0):t.getDeclarationName(e,!1,!0);let d=t.createLogicalOr(u,t.createAssignment(u,t.createObjectLiteralExpression()));if(ye(e)){const n=t.getLocalName(e,!1,!0);d=t.createAssignment(n,d)}const p=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,s)],void 0,function(e,n){const i=h;h=n;const a=[];r();const s=N(e.members,se);return Ld(a,o()),ae(a,s),h=i,t.createBlock(NI(t.createNodeArray(a),e.members),!0)}(e,l)),void 0,[d]));xw(p,e),a&&(Mw(p,void 0),zw(p,void 0));return NI(p,e),ww(p,i),n.push(p),n}(n);case 244:return function(n){if(ye(n)){const e=tx(n.declarationList);if(0===e.length)return;return NI(t.createExpressionStatement(t.inlineExpressions(N(e,oe))),n)}return NJ(n,T,e)}(n);case 261:return function(e){const n=t.updateVariableDeclaration(e,_n.checkDefined(yJ(e.name,T,r_)),void 0,void 0,yJ(e.initializer,T,W_));e.type&&eD(n.name,e.type);return n}(n);case 268:return ue(n);case 272:return he(n);case 286:return function(e){return t.updateJsxSelfClosingElement(e,_n.checkDefined(yJ(e.tagName,T,hu)),void 0,_n.checkDefined(yJ(e.attributes,T,ZE)))}(n);case 287:return function(e){return t.updateJsxOpeningElement(e,_n.checkDefined(yJ(e.tagName,T,hu)),void 0,_n.checkDefined(yJ(e.attributes,T,ZE)))}(n);default:return NJ(n,T,e)}}function B(n){const r=Rk(c)&&!(_O(n)&&_>=5)&&!ef(n);return t.updateSourceFile(n,kJ(n.statements,D,e,0,r))}function J(e){return!!(8192&e.transformFlags)}function z(e){const n=vJ(e.members,A(e),u_);let r;const i=ov(e),o=i&&C(i.parameters,(e=>ec(e,i)));if(o)for(const e of o){if(!_N(e.name))continue;const n=t.createPropertyDeclaration(void 0,e.name,void 0,void 0,void 0);xw(n,e),r=re(r,n)}return r?(r=ae(r,n),NI(t.createNodeArray(r),e.members)):n}function q(e,n){const r=W(n,n);if(V(r)){const n=[];ae(n,sn(e,mI)),ae(n,C(e,FN)),ae(n,r),ae(n,C(cn(e,mI),e_)),e=NI(t.createNodeArray(n),e)}return e}function U(e,n,r){if(d_(r)&&hm(u,n,r)){const i=W(n,r);if(V(i)){const n=[];ae(n,C(e,FN)),ae(n,i),ae(n,C(e,e_)),e=NI(t.createNodeArray(n),e)}}return e}function W(e,r){if(u)return nq?function(e,r){if(d){let i;if(H(e)){i=re(i,t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),d.serializeTypeOfNode({currentLexicalScope:y,currentNameScope:r},e,r))))}if(G(e)){i=re(i,t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),d.serializeParameterTypesOfNode({currentLexicalScope:y,currentNameScope:r},e,r))))}if(K(e)){i=re(i,t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),d.serializeReturnTypeOfNode({currentLexicalScope:y,currentNameScope:r},e))))}if(i){const e=n().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(i,!0));return[t.createDecorator(e)]}}}(e,r):function(e,r){if(d){let i;if(H(e)){const o=n().createMetadataHelper("design:type",d.serializeTypeOfNode({currentLexicalScope:y,currentNameScope:r},e,r));i=re(i,t.createDecorator(o))}if(G(e)){const o=n().createMetadataHelper("design:paramtypes",d.serializeParameterTypesOfNode({currentLexicalScope:y,currentNameScope:r},e,r));i=re(i,t.createDecorator(o))}if(K(e)){const o=n().createMetadataHelper("design:returntype",d.serializeReturnTypeOfNode({currentLexicalScope:y,currentNameScope:r},e));i=re(i,t.createDecorator(o))}return i}}(e,r)}function H(e){const t=e.kind;return 175===t||178===t||179===t||173===t}function K(e){return 175===e.kind}function G(e){switch(e.kind){case 264:case 232:return void 0!==ov(e);case 175:case 178:case 179:return!0}return!1}function X(e){const n=e.name;if(u&&wN(n)&&Rv(e)){const e=yJ(n.expression,T,W_);_n.assert(e);if(!lz(Tl(e))){const r=t.getGeneratedNameForNode(n);return a(r),t.updateComputedPropertyName(n,t.createAssignment(r,e))}}return _n.checkDefined(yJ(n,T,n_))}function Q(e){return!Nd(e.body)}function Y(e,n,r,i,o,a){const s=i[o],c=n[s];if(ae(e,vJ(n,T,fu,r,s-r)),uE(c)){const n=[];Y(n,c.tryBlock.statements,0,i,o+1,a);NI(t.createNodeArray(n),c.tryBlock.statements),e.push(t.updateTryStatement(c,t.updateBlock(c.tryBlock,n),yJ(c.catchClause,T,aP),yJ(c.finallyBlock,T,KF)))}else ae(e,vJ(n,T,fu,s,1)),ae(e,a);ae(e,vJ(n,T,fu,s+1))}function Z(e){const n=e.name;if(!_N(n))return;const r=ET(NI(t.cloneNode(n),n),n.parent);Cw(r,3168);const i=ET(NI(t.cloneNode(n),n),n.parent);return Cw(i,3072),IA(Tw(NI(xw(t.createExpressionStatement(t.createAssignment(NI(t.createPropertyAccessExpression(t.createThis(),r),e.name),i)),e),jb(e,-1))))}function ee(n,r){if(!(1&n.transformFlags))return n;if(!Q(n))return;let i=d_(r)?vJ(n.modifiers,T,h_):vJ(n.modifiers,O,h_);return i=U(i,n,r),t.updateMethodDeclaration(n,i,n.asteriskToken,X(n),void 0,void 0,SJ(n.parameters,T,e),void 0,CJ(n.body,T,e))}function te(e){return!(Nd(e.body)&&Fv(e,64))}function ne(n,r){if(!(1&n.transformFlags))return n;if(!te(n))return;let i=d_(r)?vJ(n.modifiers,T,h_):vJ(n.modifiers,O,h_);return i=U(i,n,r),t.updateGetAccessorDeclaration(n,i,X(n),SJ(n.parameters,T,e),void 0,CJ(n.body,T,e)||t.createBlock([]))}function ie(n,r){if(!(1&n.transformFlags))return n;if(!te(n))return;let i=d_(r)?vJ(n.modifiers,T,h_):vJ(n.modifiers,O,h_);return i=U(i,n,r),t.updateSetAccessorDeclaration(n,i,X(n),SJ(n.parameters,T,e),CJ(n.body,T,e)||t.createBlock([]))}function oe(n){const r=n.name;return S_(r)?Az(n,T,e,0,!1,ke):NI(t.createAssignment(Se(r),_n.checkDefined(yJ(n.initializer,T,W_))),n)}function se(n){const r=function(e,n){const r=e.name;return uN(r)?t.createIdentifier(""):wN(r)?n&&!lz(r.expression)?t.getGeneratedNameForNode(r):r.expression:_N(r)?t.createStringLiteral(hc(r)):t.cloneNode(r)}(n,!1),i=s.getEnumMemberValue(n),o=function(n,r){return void 0!==r?"string"==typeof r?t.createStringLiteral(r):r<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-r)):t.createNumericLiteral(r):(8&x||(x|=8,e.enableSubstitution(80)),n.initializer?_n.checkDefined(yJ(n.initializer,T,W_)):t.createVoidZero())}(n,null==i?void 0:i.value),a=t.createAssignment(t.createElementAccessExpression(h,r),o),c="string"==typeof(null==i?void 0:i.value)||(null==i?void 0:i.isSyntacticallyString)?a:t.createAssignment(t.createElementAccessExpression(h,a),r);return NI(t.createExpressionStatement(NI(c,n)),n)}function ce(e){v||(v=new Map);const t=le(e);v.has(t)||v.set(t,e)}function le(e){return _n.assertNode(e.name,_N),e.name.escapedText}function _e(e,n){const r=t.createVariableDeclaration(t.getLocalName(n,!1,!0)),i=308===y.kind?0:1,o=t.createVariableStatement(vJ(n.modifiers,j,e_),t.createVariableDeclarationList([r],i));return xw(r,n),Mw(r,void 0),zw(r,void 0),xw(o,n),ce(n),!!function(e){if(v){const t=le(e);return v.get(t)===e}return!0}(n)&&(267===n.kind?Ew(o.declarationList,n):Ew(o,n),jw(o,n),ww(o,2048),e.push(o),!0)}function ue(n){if(!function(e){const t=fc(e,bE);return!t||_J(t,Ak(c))}(n))return t.createNotEmittedStatement(n);_n.assertNode(n.name,_N,"A TypeScript namespace should have an Identifier name."),2&x||(x|=2,e.enableSubstitution(80),e.enableSubstitution(305),e.enableEmitNotification(268));const i=[];let a=4;const s=_e(i,n);s&&(4===_&&y===m||(a|=1024));const l=Te(n),u=Ce(n),d=ye(n)?t.getExternalModuleOrNamespaceExportName(h,n,!1,!0):t.getDeclarationName(n,!1,!0);let p=t.createLogicalOr(d,t.createAssignment(d,t.createObjectLiteralExpression()));if(ye(n)){const e=t.getLocalName(n,!1,!0);p=t.createAssignment(e,p)}const f=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,l)],void 0,function(e,n){const i=h,a=g,s=v;h=n,g=e,v=void 0;const c=[];let l,_;if(r(),e.body)if(269===e.body.kind)S(e.body,(e=>ae(c,vJ(e.statements,E,fu)))),l=e.body.statements,_=e.body;else{const t=ue(e.body);t&&(Xe(t)?ae(c,t):c.push(t));l=jb(de(e).body.statements,-1)}Ld(c,o()),h=i,g=a,v=s;const u=t.createBlock(NI(t.createNodeArray(c),l),!0);NI(u,_),e.body&&269===e.body.kind||Cw(u,3072|Zd(u));return u}(n,u)),void 0,[p]));return xw(f,n),s&&(Mw(f,void 0),zw(f,void 0)),NI(f,n),ww(f,a),i.push(f),i}function de(e){if(268===e.body.kind){return de(e.body)||e.body}}function pe(e){_n.assert(156!==e.phaseModifier);const n=Ne(e)?e.name:void 0,r=yJ(e.namedBindings,fe,ou);return n||r?t.updateImportClause(e,e.phaseModifier,n,r):void 0}function fe(e){if(275===e.kind)return Ne(e)?e:void 0;{const n=c.verbatimModuleSyntax,r=vJ(e.elements,me,LE);return n||V(r)?t.updateNamedImports(e,r):void 0}}function me(e){return!e.isTypeOnly&&Ne(e)?e:void 0}function ge(e){return e.isTypeOnly||!c.verbatimModuleSyntax&&!s.isValueAliasDeclaration(e)?void 0:e}function he(n){if(n.isTypeOnly)return;if(Tm(n)){if(!Ne(n))return;return NJ(n,T,e)}if(!function(e){return Ne(e)||!_O(m)&&s.isTopLevelValueImportEqualsWithEntityName(e)}(n))return;const r=gA(t,n.moduleReference);return Cw(r,7168),be(n)||!ye(n)?xw(NI(t.createVariableStatement(vJ(n.modifiers,j,e_),t.createVariableDeclarationList([xw(t.createVariableDeclaration(n.name,void 0,void 0,r),n)])),n),n):xw((i=n.name,o=r,a=n,NI(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(h,i,!1,!0),o)),a)),n);var i,o,a}function ye(e){return void 0!==g&&Fv(e,32)}function ve(e){return void 0===g&&Fv(e,32)}function be(e){return ve(e)&&!Fv(e,2048)}function xe(e){const n=t.createAssignment(t.getExternalModuleOrNamespaceExportName(h,e,!1,!0),t.getLocalName(e));Ew(n,Ob(e.name?e.name.pos:e.pos,e.end));const r=t.createExpressionStatement(n);return Ew(r,Ob(-1,e.end)),r}function ke(e,n,r){return NI(t.createAssignment(Se(e),n),r)}function Se(e){return t.getNamespaceMemberName(h,e,!1,!0)}function Te(e){const n=t.getGeneratedNameForNode(e);return Ew(n,e.name),n}function Ce(e){return t.getGeneratedNameForNode(e)}function we(e){if(x&b&&!$l(e)&&!xA(e)){const n=s.getReferencedExportContainer(e,!1);if(n&&308!==n.kind){if(2&b&&268===n.kind||8&b&&267===n.kind)return NI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(n),e),e)}}}function De(e){const n=function(e){if(Ck(c))return;return gF(e)||hF(e)?s.getConstantValue(e):void 0}(e);if(void 0!==n){Ww(e,n);const i="string"==typeof n?t.createStringLiteral(n):n<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-n)):t.createNumericLiteral(n);if(!c.removeComments){const t=uc(e,Cx);qw(i,3,` ${r=Xd(t),r.replace(/\*\//g,"*_/")} `)}return i}var r;return e}function Ne(e){return c.verbatimModuleSyntax||Em(e)||s.isReferencedAliasDeclaration(e)}}function iq(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:r,endLexicalEnvironment:i,startLexicalEnvironment:o,resumeLexicalEnvironment:a,addBlockScopedVariable:s}=e,c=e.getEmitResolver(),l=e.getCompilerOptions(),_=xk(l),u=jk(l),d=!!l.experimentalDecorators,p=!u,f=u&&_<9,m=p||f,g=_<9,h=_<99?-1:u?0:3,v=_<9,b=v&&_>=2,x=m||g||-1===h,k=e.onSubstituteNode;e.onSubstituteNode=function(e,n){if(n=k(e,n),1===e)return function(e){switch(e.kind){case 80:return function(e){return function(e){if(1&P&&c.hasNodeCheckFlag(e,536870912)){const n=c.getReferencedValueDeclaration(e);if(n){const r=T[n.id];if(r){const n=t.cloneNode(r);return Ew(n,e),jw(n,e),n}}}return}(e)||e}(e);case 110:return function(e){if(2&P&&(null==F?void 0:F.data)&&!I.has(e)){const{facts:n,classConstructor:r,classThis:i}=F.data,o=j?i??r:r;if(o)return NI(xw(t.cloneNode(o),e),e);if(1&n&&d)return t.createParenthesizedExpression(t.createVoidZero())}return e}(e)}return e}(n);return n};const S=e.onEmitNode;e.onEmitNode=function(e,t,n){const r=uc(t),i=A.get(r);if(i){const o=F,a=R;return F=i,R=j,j=!(ON(r)&&32&ep(r)),S(e,t,n),j=R,R=a,void(F=o)}switch(t.kind){case 219:if(TF(r)||524288&Zd(t))break;case 263:case 177:case 178:case 179:case 175:case 173:{const r=F,i=R;return F=void 0,R=j,j=!1,S(e,t,n),j=R,R=i,void(F=r)}case 168:{const r=F,i=j;return F=null==F?void 0:F.previous,j=R,S(e,t,n),j=i,void(F=r)}}S(e,t,n)};let T,w,D,F,E=!1,P=0;const A=new Map,I=new Set;let O,L,j=!1,R=!1;return ZJ(e,(function(t){if(t.isDeclarationFile)return t;if(F=void 0,E=!!(32&ep(t)),!x&&!E)return t;const n=NJ(t,B,e);return Hw(n,e.readEmitHelpers()),n}));function M(e){return 129===e.kind?ie()?void 0:e:et(e,e_)}function B(n){if(!(16777216&n.transformFlags||134234112&n.transformFlags))return n;switch(n.kind){case 264:return function(e){return ye(e,ve)}(n);case 232:return function(e){return ye(e,be)}(n);case 176:case 173:return _n.fail("Use `classElementVisitor` instead.");case 304:case 261:case 170:case 209:return function(t){Xh(t,pe)&&(t=Qz(e,t));return NJ(t,B,e)}(n);case 244:return function(t){const n=D;D=[];const r=NJ(t,B,e),i=V(D)?[r,...D]:r;return D=n,i}(n);case 278:return function(t){Xh(t,pe)&&(t=Qz(e,t,!0,t.isExportEquals?"":"default"));return NJ(t,B,e)}(n);case 81:return function(e){if(!g)return e;if(fu(e.parent))return e;return xw(t.createIdentifier(""),e)}(n);case 212:return function(n){if(uN(n.name)){const e=Me(n.name);if(e)return NI(xw(ce(e,n.expression),n),n)}if(b&&L&&am(n)&&_N(n.name)&&oq(L)&&(null==F?void 0:F.data)){const{classConstructor:e,superClassReference:r,facts:i}=F.data;if(1&i)return Fe(n);if(e&&r){const i=t.createReflectGetCall(r,t.createStringLiteralFromNode(n.name),e);return xw(i,n.expression),NI(i,n.expression),i}}return NJ(n,B,e)}(n);case 213:return function(n){if(b&&L&&am(n)&&oq(L)&&(null==F?void 0:F.data)){const{classConstructor:e,superClassReference:r,facts:i}=F.data;if(1&i)return Fe(n);if(e&&r){const i=t.createReflectGetCall(r,yJ(n.argumentExpression,B,W_),e);return xw(i,n.expression),NI(i,n.expression),i}}return NJ(n,B,e)}(n);case 225:case 226:return _e(n,!1);case 227:return fe(n,!1);case 218:return me(n,!1);case 214:return function(n){var i;if(Xl(n.expression)&&Me(n.expression.name)){const{thisArg:e,target:i}=t.createCallBinding(n.expression,r,_);return hl(n)?t.updateCallChain(n,t.createPropertyAccessChain(yJ(i,B,W_),n.questionDotToken,"call"),void 0,void 0,[yJ(e,B,W_),...vJ(n.arguments,B,W_)]):t.updateCallExpression(n,t.createPropertyAccessExpression(yJ(i,B,W_),"call"),void 0,[yJ(e,B,W_),...vJ(n.arguments,B,W_)])}if(b&&L&&am(n.expression)&&oq(L)&&(null==(i=null==F?void 0:F.data)?void 0:i.classConstructor)){const e=t.createFunctionCallCall(yJ(n.expression,B,W_),F.data.classConstructor,vJ(n.arguments,B,W_));return xw(e,n),NI(e,n),e}return NJ(n,B,e)}(n);case 245:return function(e){return t.updateExpressionStatement(e,yJ(e.expression,z,W_))}(n);case 216:return function(n){var i;if(Xl(n.tag)&&Me(n.tag.name)){const{thisArg:e,target:i}=t.createCallBinding(n.tag,r,_);return t.updateTaggedTemplateExpression(n,t.createCallExpression(t.createPropertyAccessExpression(yJ(i,B,W_),"bind"),void 0,[yJ(e,B,W_)]),void 0,yJ(n.template,B,M_))}if(b&&L&&am(n.tag)&&oq(L)&&(null==(i=null==F?void 0:F.data)?void 0:i.classConstructor)){const e=t.createFunctionBindCall(yJ(n.tag,B,W_),F.data.classConstructor,[]);return xw(e,n),NI(e,n),t.updateTaggedTemplateExpression(n,e,void 0,yJ(n.template,B,M_))}return NJ(n,B,e)}(n);case 249:return function(n){return t.updateForStatement(n,yJ(n.initializer,z,tu),yJ(n.condition,B,W_),yJ(n.incrementor,z,W_),wJ(n.statement,B,e))}(n);case 110:return function(e){if(v&&L&&ON(L)&&(null==F?void 0:F.data)){const{classThis:t,classConstructor:n}=F.data;return t??n??e}return e}(n);case 263:case 219:return Y(void 0,J,n);case 177:case 175:case 178:case 179:return Y(n,J,n);default:return J(n)}}function J(t){return NJ(t,B,e)}function z(e){switch(e.kind){case 225:case 226:return _e(e,!0);case 227:return fe(e,!0);case 357:return function(e,n){const r=n?DJ(e.elements,z):DJ(e.elements,B,z);return t.updateCommaListExpression(e,r)}(e,!0);case 218:return me(e,!0);default:return B(e)}}function q(n){switch(n.kind){case 299:return NJ(n,q,e);case 234:return function(n){var i;if(4&((null==(i=null==F?void 0:F.data)?void 0:i.facts)||0)){const e=t.createTempVariable(r,!0);return Ee().superClassReference=e,t.updateExpressionWithTypeArguments(n,t.createAssignment(e,yJ(n.expression,B,W_)),void 0)}return NJ(n,B,e)}(n);default:return B(n)}}function U(e){switch(e.kind){case 211:case 210:return Ue(e);default:return B(e)}}function W(e){switch(e.kind){case 177:return Y(e,G,e);case 178:case 179:case 175:return Y(e,Q,e);case 173:return Y(e,oe,e);case 176:return Y(e,xe,e);case 168:return K(e);case 241:return e;default:return h_(e)?M(e):B(e)}}function $(e){return 168===e.kind?K(e):B(e)}function H(e){switch(e.kind){case 173:return ne(e);case 178:case 179:return W(e);default:_n.assertMissingNode(e,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration")}}function K(e){const n=yJ(e.expression,B,W_);return t.updateComputedPropertyName(e,function(e){return V(w)&&(kF(e)?(w.push(e.expression),e=t.updateParenthesizedExpression(e,t.inlineExpressions(w))):(w.push(e),e=t.inlineExpressions(w)),w=void 0),e}(n))}function G(e){return O?Se(e,O):J(e)}function X(e){return!!g||!!(Pv(e)&&32&ep(e))}function Q(n){if(_n.assert(!Rv(n)),!Gl(n)||!X(n))return NJ(n,W,e);const r=Me(n.name);if(_n.assert(r,"Undeclared private name for property declaration."),!r.isValid)return n;const i=function(e){_n.assert(uN(e.name));const t=Me(e.name);if(_n.assert(t,"Undeclared private name for property declaration."),"m"===t.kind)return t.methodName;if("a"===t.kind){if(Nu(e))return t.getterName;if(Du(e))return t.setterName}}(n);i&&Ae().push(t.createAssignment(i,t.createFunctionExpression(C(n.modifiers,(e=>e_(e)&&!yN(e)&&!xN(e))),n.asteriskToken,i,void 0,SJ(n.parameters,B,e),void 0,CJ(n.body,B,e))))}function Y(e,t,n){if(e!==L){const r=L;L=e;const i=t(n);return L=r,i}return t(n)}function Z(e){const n=Lw(e),i=Fw(e),o=e.name;let a=o,s=o;if(wN(o)&&!lz(o.expression)){const e=TI(o);if(e)a=t.updateComputedPropertyName(o,yJ(o.expression,B,W_)),s=t.updateComputedPropertyName(o,e.left);else{const e=t.createTempVariable(r);Ew(e,o.expression);const n=yJ(o.expression,B,W_),i=t.createAssignment(e,n);Ew(i,o.expression),a=t.updateComputedPropertyName(o,i),s=t.updateComputedPropertyName(o,e)}}const c=vJ(e.modifiers,M,e_),l=xI(t,e,c,e.initializer);xw(l,e),Cw(l,3072),Ew(l,i);const _=Ev(e)?function(){const e=Ee();return e.classThis??e.classConstructor??(null==O?void 0:O.name)}()??t.createThis():t.createThis(),u=kI(t,e,c,a,_);xw(u,e),jw(u,n),Ew(u,i);const d=t.createModifiersFromModifierFlags(Kv(c)),p=SI(t,e,d,s,_);return xw(p,e),Cw(p,3072),Ew(p,i),bJ([l,u,p],H,u_)}function ee(e){if(!m||f_(e))return t.updatePropertyDeclaration(e,vJ(e.modifiers,M,e_),yJ(e.name,$,n_),void 0,void 0,yJ(e.initializer,B,W_));{const n=function(e,n){if(wN(e)){const i=TI(e),o=yJ(e.expression,B,W_),a=Tl(o),l=lz(a);if(!(!!i||ob(a)&&$l(a.left))&&!l&&n){const n=t.getGeneratedNameForNode(e);return c.hasNodeCheckFlag(e,32768)?s(n):r(n),t.createAssignment(n,o)}return l||_N(a)?void 0:o}}(e.name,!!e.initializer||u);if(n&&Ae().push(...wI(n)),Ev(e)&&!g){const n=we(e,t.createThis());if(n){const r=t.createClassStaticBlockDeclaration(t.createBlock([n]));return xw(r,e),jw(r,e),jw(n,{pos:-1,end:-1}),Mw(n,void 0),zw(n,void 0),r}}}}function ne(n){return _n.assert(!Rv(n),"Decorators should already have been transformed and elided."),Gl(n)?function(n){if(!X(n))return p&&!Ev(n)&&(null==F?void 0:F.data)&&16&F.data.facts?t.updatePropertyDeclaration(n,vJ(n.modifiers,B,h_),n.name,void 0,void 0,void 0):(Xh(n,pe)&&(n=Qz(e,n)),t.updatePropertyDeclaration(n,vJ(n.modifiers,M,e_),yJ(n.name,$,n_),void 0,void 0,yJ(n.initializer,B,W_)));{const e=Me(n.name);if(_n.assert(e,"Undeclared private name for property declaration."),!e.isValid)return n;if(e.isStatic&&!g){const e=we(n,t.createThis());if(e)return t.createClassStaticBlockDeclaration(t.createBlock([e],!0))}}}(n):ee(n)}function ie(){return-1===h||3===h&&!!(null==F?void 0:F.data)&&!!(16&F.data.facts)}function oe(e){return f_(e)&&(ie()||Pv(e)&&32&ep(e))?Z(e):ne(e)}function se(e){if(L&&Pv(L)&&p_(L)&&f_(uc(L))){const t=PA(e);110===t.kind&&I.add(t)}}function ce(e,t){return se(t=yJ(t,B,W_)),le(e,t)}function le(e,t){switch(jw(t,jb(t,-1)),e.kind){case"a":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.getterName);case"m":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.methodName);case"f":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return _n.fail("Access helpers should not be created for untransformed private elements");default:_n.assertNever(e,"Unknown private element type")}}function _e(n,i){if(46===n.operator||47===n.operator){const e=sh(n.operand);if(Xl(e)){let o;if(o=Me(e.name)){const a=yJ(e.expression,B,W_);se(a);const{readExpression:s,initializeExpression:c}=ue(a);let l=ce(o,s);const _=FF(n)||i?void 0:t.createTempVariable(r);return l=vA(t,n,l,r,_),l=ge(o,c||s,l,64),xw(l,n),NI(l,n),_&&(l=t.createComma(l,_),NI(l,n)),l}}else if(b&&L&&am(e)&&oq(L)&&(null==F?void 0:F.data)){const{classConstructor:o,superClassReference:a,facts:s}=F.data;if(1&s){const r=Fe(e);return FF(n)?t.updatePrefixUnaryExpression(n,r):t.updatePostfixUnaryExpression(n,r)}if(o&&a){let s,c;if(gF(e)?_N(e.name)&&(c=s=t.createStringLiteralFromNode(e.name)):lz(e.argumentExpression)?c=s=e.argumentExpression:(c=t.createTempVariable(r),s=t.createAssignment(c,yJ(e.argumentExpression,B,W_))),s&&c){let l=t.createReflectGetCall(a,c,o);NI(l,e);const _=i?void 0:t.createTempVariable(r);return l=vA(t,n,l,r,_),l=t.createReflectSetCall(a,s,l,o),xw(l,n),NI(l,n),_&&(l=t.createComma(l,_),NI(l,n)),l}}}}return NJ(n,B,e)}function ue(e){const n=ty(e)?e:t.cloneNode(e);if(110===e.kind&&I.has(e)&&I.add(n),lz(e))return{readExpression:n,initializeExpression:void 0};const i=t.createTempVariable(r);return{readExpression:i,initializeExpression:t.createAssignment(i,n)}}function de(e){if(F&&A.set(uc(e),F),g){if(zz(e)){const t=yJ(e.body.statements[0].expression,B,W_);if(ob(t,!0)&&t.left===t.right)return;return t}if($z(e))return yJ(e.body.statements[0].expression,B,W_);o();let n=Y(e,(e=>vJ(e,B,fu)),e.body.statements);n=t.mergeLexicalEnvironment(n,i());const r=t.createImmediatelyInvokedArrowFunction(n);return xw(sh(r.expression),e),ww(sh(r.expression),4),xw(r,e),NI(r,e),r}}function pe(e){if(jF(e)&&!e.name){const t=hz(e);if(V(t,$z))return!1;return(g||!!ep(e))&&V(t,(e=>ON(e)||Gl(e)||m&&yz(e)))}return!1}function fe(i,o){if(ab(i)){const e=w;w=void 0,i=t.updateBinaryExpression(i,yJ(i.left,U,W_),i.operatorToken,yJ(i.right,B,W_));const n=V(w)?t.inlineExpressions(te([...w,i])):i;return w=e,n}if(ob(i)){Xh(i,pe)&&(i=Qz(e,i),_n.assertNode(i,ob));const n=PA(i.left,9);if(Xl(n)){const e=Me(n.name);if(e)return NI(xw(ge(e,n.expression,i.right,i.operatorToken.kind),i),i)}else if(b&&L&&am(i.left)&&oq(L)&&(null==F?void 0:F.data)){const{classConstructor:e,superClassReference:n,facts:a}=F.data;if(1&a)return t.updateBinaryExpression(i,Fe(i.left),i.operatorToken,yJ(i.right,B,W_));if(e&&n){let a=hF(i.left)?yJ(i.left.argumentExpression,B,W_):_N(i.left.name)?t.createStringLiteralFromNode(i.left.name):void 0;if(a){let s=yJ(i.right,B,W_);if(_z(i.operatorToken.kind)){let o=a;lz(a)||(o=t.createTempVariable(r),a=t.createAssignment(o,a));const c=t.createReflectGetCall(n,o,e);xw(c,i.left),NI(c,i.left),s=t.createBinaryExpression(c,uz(i.operatorToken.kind),s),NI(s,i)}const c=o?void 0:t.createTempVariable(r);return c&&(s=t.createAssignment(c,s),NI(c,i)),s=t.createReflectSetCall(n,a,s,e),xw(s,i),NI(s,i),c&&(s=t.createComma(s,c),NI(s,i)),s}}}}return function(e){return uN(e.left)&&103===e.operatorToken.kind}(i)?function(t){const r=Me(t.left);if(r){const e=yJ(t.right,B,W_);return xw(n().createClassPrivateFieldInHelper(r.brandCheckIdentifier,e),t)}return NJ(t,B,e)}(i):NJ(i,B,e)}function me(e,n){const r=n?z:B,i=yJ(e.expression,r,W_);return t.updateParenthesizedExpression(e,i)}function ge(e,r,i,o){if(r=yJ(r,B,W_),i=yJ(i,B,W_),se(r),_z(o)){const{readExpression:n,initializeExpression:a}=ue(r);r=a||n,i=t.createBinaryExpression(le(e,n),uz(o),i)}switch(jw(r,jb(r,-1)),e.kind){case"a":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,e.setterName);case"m":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,void 0);case"f":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return _n.fail("Access helpers should not be created for untransformed private elements");default:_n.assertNever(e,"Unknown private element type")}}function he(e){return C(e.members,vz)}function ye(n,r){var i;const o=O,a=w,s=F;O=n,w=void 0,F={previous:F,data:void 0};const l=32&ep(n);if(g||l){const e=wc(n);if(e&&_N(e))Pe().data.className=e;else if((null==(i=n.emitNode)?void 0:i.assignedName)&&HD(n.emitNode.assignedName))if(n.emitNode.assignedName.textSourceNode&&_N(n.emitNode.assignedName.textSourceNode))Pe().data.className=n.emitNode.assignedName.textSourceNode;else if(gs(n.emitNode.assignedName.text,_)){const e=t.createIdentifier(n.emitNode.assignedName.text);Pe().data.className=e}}if(g){const e=he(n);V(e)&&(Pe().data.weakSetName=je("instances",e[0].name))}const u=function(e){var t;let n=0;const r=uc(e);d_(r)&&gm(d,r)&&(n|=1),g&&(qz(e)||Hz(e))&&(n|=2);let i=!1,o=!1,a=!1,s=!1;for(const r of e.members)Ev(r)?(r.name&&(uN(r.name)||f_(r))&&g?n|=2:!f_(r)||-1!==h||e.name||(null==(t=e.emitNode)?void 0:t.classThis)||(n|=2),(PN(r)||ON(r))&&(v&&16384&r.transformFlags&&(n|=8,1&n||(n|=2)),b&&134217728&r.transformFlags&&(1&n||(n|=6)))):Iv(uc(r))||(f_(r)?(s=!0,a||(a=Gl(r))):Gl(r)?(a=!0,c.hasNodeCheckFlag(r,262144)&&(n|=2)):PN(r)&&(i=!0,o||(o=!!r.initializer)));return(f&&i||p&&o||g&&a||g&&s&&-1===h)&&(n|=16),n}(n);u&&(Ee().facts=u),8&u&&(2&P||(P|=2,e.enableSubstitution(110),e.enableEmitNotification(263),e.enableEmitNotification(219),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(168)));const m=r(n,u);return F=null==F?void 0:F.previous,_n.assert(F===s),O=o,w=a,m}function ve(e,n){var i,o;let a;if(2&n)if(g&&(null==(i=e.emitNode)?void 0:i.classThis))Ee().classConstructor=e.emitNode.classThis,a=t.createAssignment(e.emitNode.classThis,t.getInternalName(e));else{const n=t.createTempVariable(r,!0);Ee().classConstructor=t.cloneNode(n),a=t.createAssignment(n,t.getInternalName(e))}(null==(o=e.emitNode)?void 0:o.classThis)&&(Ee().classThis=e.emitNode.classThis);const s=c.hasNodeCheckFlag(e,262144),l=Fv(e,32),_=Fv(e,2048);let u=vJ(e.modifiers,M,e_);const d=vJ(e.heritageClauses,q,oP),{members:f,prologue:m}=ke(e),h=[];if(a&&Ae().unshift(a),V(w)&&h.push(t.createExpressionStatement(t.inlineExpressions(w))),p||g||32&ep(e)){const n=hz(e);V(n)&&Ce(h,n,t.getInternalName(e))}h.length>0&&l&&_&&(u=vJ(u,(e=>mI(e)?void 0:e),e_),h.push(t.createExportAssignment(void 0,!1,t.getLocalName(e,!1,!0))));const y=Ee().classConstructor;s&&y&&(Ne(),T[XJ(e)]=y);const v=t.updateClassDeclaration(e,u,e.name,void 0,d,f);return h.unshift(v),m&&h.unshift(t.createExpressionStatement(m)),h}function be(e,n){var i,o,a;const l=!!(1&n),_=hz(e),u=c.hasNodeCheckFlag(e,262144),d=c.hasNodeCheckFlag(e,32768);let p;function f(){var n;if(g&&(null==(n=e.emitNode)?void 0:n.classThis))return Ee().classConstructor=e.emitNode.classThis;const i=t.createTempVariable(d?s:r,!0);return Ee().classConstructor=t.cloneNode(i),i}(null==(i=e.emitNode)?void 0:i.classThis)&&(Ee().classThis=e.emitNode.classThis),2&n&&(p??(p=f()));const h=vJ(e.modifiers,M,e_),y=vJ(e.heritageClauses,q,oP),{members:v,prologue:b}=ke(e),x=t.updateClassExpression(e,h,e.name,void 0,y,v),k=[];b&&k.push(b);if((g||32&ep(e))&&V(_,(e=>ON(e)||Gl(e)||m&&yz(e)))||V(w))if(l)_n.assertIsDefined(D,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),V(w)&&ae(D,N(w,t.createExpressionStatement)),V(_)&&Ce(D,_,(null==(o=e.emitNode)?void 0:o.classThis)??t.getInternalName(e)),p?k.push(t.createAssignment(p,x)):g&&(null==(a=e.emitNode)?void 0:a.classThis)?k.push(t.createAssignment(e.emitNode.classThis,x)):k.push(x);else{if(p??(p=f()),u){Ne();const n=t.cloneNode(p);n.emitNode.autoGenerate.flags&=-9,T[XJ(e)]=n}k.push(t.createAssignment(p,x)),ae(k,w),ae(k,function(e,t){const n=[];for(const r of e){const e=ON(r)?Y(r,de,r):Y(r,(()=>De(r,t)),void 0);e&&(IA(e),xw(e,r),ww(e,3072&Zd(r)),Ew(e,Mb(r)),jw(e,r),n.push(e))}return n}(_,p)),k.push(t.cloneNode(p))}else k.push(x);return k.length>1&&(ww(x,131072),k.forEach(IA)),t.inlineExpressions(k)}function xe(t){if(!g)return NJ(t,B,e)}function ke(e){const n=!!(32&ep(e));if(g||E){for(const t of e.members)if(Gl(t))if(X(t))Le(t,t.name,Ie);else{wz(Pe(),t.name,{kind:"untransformed"})}if(g&&V(he(e))&&function(){const{weakSetName:e}=Pe().data;_n.assert(e,"weakSetName should be set in private identifier environment"),Ae().push(t.createAssignment(e,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}(),ie())for(const r of e.members)if(f_(r)){const e=t.getGeneratedPrivateNameForNode(r.name,void 0,"_accessor_storage");if(g||n&&Pv(r))Le(r,e,Oe);else{wz(Pe(),e,{kind:"untransformed"})}}}let i,o,a,s=vJ(e.members,W,u_);if(V(s,LN)||(i=Se(void 0,e)),!g&&V(w)){let e=t.createExpressionStatement(t.inlineExpressions(w));if(134234112&e.transformFlags){const n=t.createTempVariable(r),i=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([e]));o=t.createAssignment(n,i),e=t.createExpressionStatement(t.createCallExpression(n,void 0,[]))}const n=t.createBlock([e]);a=t.createClassStaticBlockDeclaration(n),w=void 0}if(i||a){let n;const r=y(s,zz),o=y(s,$z);n=re(n,r),n=re(n,o),n=re(n,i),n=re(n,a);n=ae(n,r||o?C(s,(e=>e!==r&&e!==o)):s),s=NI(t.createNodeArray(n),e.members)}return{members:s,prologue:o}}function Se(n,r){if(n=yJ(n,B,LN),!((null==F?void 0:F.data)&&16&F.data.facts))return n;const o=vh(r),s=!(!o||106===PA(o.expression).kind),c=SJ(n?n.parameters:void 0,B,e),l=function(n,r,o){var s;const c=mz(n,!1,!1);let l=c;u||(l=C(l,(e=>!!e.initializer||uN(e.name)||Lv(e))));const _=he(n),d=V(l)||V(_);if(!r&&!d)return CJ(void 0,B,e);a();const p=!r&&o;let f=0,m=[];const h=[],y=t.createThis();if(function(e,n,r){if(!g||!V(n))return;const{weakSetName:i}=Pe().data;_n.assert(i,"weakSetName should be set in private identifier environment"),e.push(t.createExpressionStatement(function(e,t,n){return e.createCallExpression(e.createPropertyAccessExpression(n,"add"),void 0,[t])}(t,r,i)))}(h,_,y),r){const e=C(c,(e=>ec(uc(e),r))),t=C(l,(e=>!ec(uc(e),r)));Ce(h,e,y),Ce(h,t,y)}else Ce(h,l,y);if(null==r?void 0:r.body){f=t.copyPrologue(r.body.statements,m,!1,B);const e=fz(r.body.statements,f);if(e.length)Te(m,r.body.statements,f,e,0,h,r);else{for(;f=m.length?r.body.multiLine??m.length>0:m.length>0;return NI(t.createBlock(NI(t.createNodeArray(m),(null==(s=null==r?void 0:r.body)?void 0:s.statements)??n.members),v),null==r?void 0:r.body)}(r,n,s);return l?n?(_n.assert(c),t.updateConstructorDeclaration(n,void 0,c,l)):IA(xw(NI(t.createConstructorDeclaration(void 0,c??[],l),n||r),n)):n}function Te(e,n,r,i,o,a,s){const c=i[o],l=n[c];if(ae(e,vJ(n,B,fu,r,c-r)),r=c+1,uE(l)){const n=[];Te(n,l.tryBlock.statements,0,i,o+1,a,s);NI(t.createNodeArray(n),l.tryBlock.statements),e.push(t.updateTryStatement(l,t.updateBlock(l.tryBlock,n),yJ(l.catchClause,B,aP),yJ(l.finallyBlock,B,KF)))}else{for(ae(e,vJ(n,B,fu,c,1));rl(e,p,t),serializeTypeOfNode:(e,t,n)=>l(e,_,t,n),serializeParameterTypesOfNode:(e,t,n)=>l(e,u,t,n),serializeReturnTypeOfNode:(e,t)=>l(e,d,t)};function l(e,t,n,r){const i=s,o=c;s=e.currentLexicalScope,c=e.currentNameScope;const a=void 0===r?t(n):t(n,r);return s=i,c=o,a}function _(e,n){switch(e.kind){case 173:case 170:return p(e.type);case 179:case 178:return p(function(e,t){const n=fv(t.members,e);return n.setAccessor&&sv(n.setAccessor)||n.getAccessor&&hv(n.getAccessor)}(e,n));case 264:case 232:case 175:return t.createIdentifier("Function");default:return t.createVoidZero()}}function u(e,n){const r=d_(e)?ov(e):i_(e)&&Fd(e.body)?e:void 0,i=[];if(r){const e=function(e,t){if(t&&178===e.kind){const{setAccessor:n}=fv(t.members,e);if(n)return n.parameters}return e.parameters}(r,n),t=e.length;for(let r=0;re.parent&&eF(e.parent)&&(e.parent.trueType===e||e.parent.falseType===e))))return t.createIdentifier("Object");const r=y(e.typeName),o=t.createTempVariable(n);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(o,r),"function"),void 0,o,void 0,t.createIdentifier("Object"));case 1:return v(e.typeName);case 2:return t.createVoidZero();case 4:return b("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return b("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return _n.assertNever(i)}}(e);case 194:return m(e.types,!0);case 193:return m(e.types,!1);case 195:return m([e.trueType,e.falseType],!1);case 199:if(148===e.operator)return p(e.type);break;case 187:case 200:case 201:case 188:case 133:case 159:case 198:case 206:case 313:case 314:case 318:case 319:case 320:break;case 315:case 316:case 317:return p(e.type);default:return _n.failBadSyntaxKind(e)}return t.createIdentifier("Object")}function f(e){switch(e.kind){case 11:case 15:return t.createIdentifier("String");case 225:{const t=e.operand;switch(t.kind){case 9:case 10:return f(t);default:return _n.failBadSyntaxKind(t)}}case 9:return t.createIdentifier("Number");case 10:return b("BigInt",7);case 112:case 97:return t.createIdentifier("Boolean");case 106:return t.createVoidZero();default:return _n.failBadSyntaxKind(e)}}function m(e,n){let r;for(let i of e){if(i=ah(i),146===i.kind){if(n)return t.createVoidZero();continue}if(159===i.kind){if(!n)return t.createIdentifier("Object");continue}if(133===i.kind)return t.createIdentifier("Object");if(!a&&(sF(i)&&106===i.literal.kind||157===i.kind))continue;const e=p(i);if(_N(e)&&"Object"===e.escapedText)return e;if(r){if(!g(r,e))return t.createIdentifier("Object")}else r=e}return r??t.createVoidZero()}function g(e,t){return $l(e)?$l(t):_N(e)?_N(t)&&e.escapedText===t.escapedText:gF(e)?gF(t)&&g(e.expression,t.expression)&&g(e.name,t.name):DF(e)?DF(t)&&WD(e.expression)&&"0"===e.expression.text&&WD(t.expression)&&"0"===t.expression.text:HD(e)?HD(t)&&e.text===t.text:wF(e)?wF(t)&&g(e.expression,t.expression):kF(e)?kF(t)&&g(e.expression,t.expression):AF(e)?AF(t)&&g(e.condition,t.condition)&&g(e.whenTrue,t.whenTrue)&&g(e.whenFalse,t.whenFalse):!!PF(e)&&(PF(t)&&e.operatorToken.kind===t.operatorToken.kind&&g(e.left,t.left)&&g(e.right,t.right))}function h(e,n){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(e),t.createStringLiteral("undefined")),n)}function y(e){if(80===e.kind){const t=v(e);return h(t,t)}if(80===e.left.kind)return h(v(e.left),v(e));const r=y(e.left),i=t.createTempVariable(n);return t.createLogicalAnd(t.createLogicalAnd(r.left,t.createStrictInequality(t.createAssignment(i,r.right),t.createVoidZero())),t.createPropertyAccessExpression(i,e.right))}function v(e){switch(e.kind){case 80:const n=ET(NI(AI.cloneNode(e),e),e.parent);return n.original=void 0,ET(n,fc(s)),n;case 167:return function(e){return t.createPropertyAccessExpression(v(e.left),e.right)}(e)}}function b(e,n){return omI(e)||FN(e)?void 0:e),h_),f=Mb(o),m=function(n){if(i.hasNodeCheckFlag(n,262144)){c||(e.enableSubstitution(80),c=[]);const i=t.createUniqueName(n.name&&!$l(n.name)?hc(n.name):"default");return c[XJ(n)]=i,r(i),i}}(o),h=a<2?t.getInternalName(o,!1,!0):t.getLocalName(o,!1,!0),y=vJ(o.heritageClauses,_,oP);let v=vJ(o.members,_,u_),b=[];({members:v,decorationStatements:b}=p(o,v));const x=a>=9&&!!m&&V(v,(e=>PN(e)&&Fv(e,256)||ON(e)));x&&(v=NI(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(m,t.createThis()))])),...v]),v));const k=t.createClassExpression(d,s&&$l(s)?void 0:s,void 0,y,v);xw(k,o),NI(k,f);const S=m&&!x?t.createAssignment(m,k):k,T=t.createVariableDeclaration(h,void 0,void 0,S);xw(T,o);const C=t.createVariableDeclarationList([T],1),w=t.createVariableStatement(void 0,C);xw(w,o),NI(w,f),jw(w,o);const D=[w];if(ae(D,b),function(e,r){const i=function(e){const r=xz(e,!0),i=g(r);if(!i)return;const o=c&&c[XJ(e)],s=a<2?t.getInternalName(e,!1,!0):t.getDeclarationName(e,!1,!0),l=n().createDecorateHelper(i,s),_=t.createAssignment(s,o?t.createAssignment(o,l):l);return Cw(_,3072),Ew(_,Mb(e)),_}(r);i&&e.push(xw(t.createExpressionStatement(i),r))}(D,o),l)if(u){const e=t.createExportDefault(h);D.push(e)}else{const e=t.createExternalModuleExport(t.getDeclarationName(o));D.push(e)}return D}(o,o.name):function(e,n){const r=vJ(e.modifiers,l,e_),i=vJ(e.heritageClauses,_,oP);let o=vJ(e.members,_,u_),a=[];({members:o,decorationStatements:a}=p(e,o));const s=t.updateClassDeclaration(e,r,n,void 0,i,o);return ae([s],a)}(o,o.name);return xe(s)}(o);case 232:return function(e){return t.updateClassExpression(e,vJ(e.modifiers,l,e_),e.name,void 0,vJ(e.heritageClauses,_,oP),vJ(e.members,_,u_))}(o);case 177:return function(e){return t.updateConstructorDeclaration(e,vJ(e.modifiers,l,e_),vJ(e.parameters,_,NN),yJ(e.body,_,KF))}(o);case 175:return function(e){return f(t.updateMethodDeclaration(e,vJ(e.modifiers,l,e_),e.asteriskToken,_n.checkDefined(yJ(e.name,_,n_)),void 0,void 0,vJ(e.parameters,_,NN),void 0,yJ(e.body,_,KF)),e)}(o);case 179:return function(e){return f(t.updateSetAccessorDeclaration(e,vJ(e.modifiers,l,e_),_n.checkDefined(yJ(e.name,_,n_)),vJ(e.parameters,_,NN),yJ(e.body,_,KF)),e)}(o);case 178:return function(e){return f(t.updateGetAccessorDeclaration(e,vJ(e.modifiers,l,e_),_n.checkDefined(yJ(e.name,_,n_)),vJ(e.parameters,_,NN),void 0,yJ(e.body,_,KF)),e)}(o);case 173:return function(e){if(33554432&e.flags||Fv(e,128))return;return f(t.updatePropertyDeclaration(e,vJ(e.modifiers,l,e_),_n.checkDefined(yJ(e.name,_,n_)),void 0,void 0,yJ(e.initializer,_,W_)),e)}(o);case 170:return function(e){const n=t.updateParameterDeclaration(e,gI(t,e.modifiers),e.dotDotDotToken,_n.checkDefined(yJ(e.name,_,r_)),void 0,void 0,yJ(e.initializer,_,W_));n!==e&&(jw(n,e),NI(n,Mb(e)),Ew(n,Mb(e)),Cw(n.name,64));return n}(o);default:return NJ(o,_,e)}}function u(e){return!!(536870912&e.transformFlags)}function d(e){return V(e,u)}function p(e,n){let r=[];return h(r,e,!1),h(r,e,!0),function(e){for(const t of e.members){if(!EI(t))continue;const n=kz(t,e,!0);if(V(null==n?void 0:n.decorators,u))return!0;if(V(null==n?void 0:n.parameters,d))return!0}return!1}(e)&&(n=NI(t.createNodeArray([...n,t.createClassStaticBlockDeclaration(t.createBlock(r,!0))]),n),r=void 0),{decorationStatements:r,members:n}}function f(e,t){return e!==t&&(jw(e,t),Ew(e,Mb(t))),e}function m(e){return VD(e.expression,"___metadata")}function g(e){if(!e)return;const{false:t,true:n}=Je(e.decorators,m),r=[];return ae(r,N(t,v)),ae(r,A(e.parameters,b)),ae(r,N(n,v)),r}function h(e,n,r){ae(e,N(function(e,t){const n=function(e,t){return C(e.members,(n=>{return i=t,fm(!0,r=n,e)&&i===Ev(r);var r,i}))}(e,t);let r;for(const t of n)r=re(r,y(e,t));return r}(n,r),(e=>t.createExpressionStatement(e))))}function y(e,r){const i=g(kz(r,e,!0));if(!i)return;const o=function(e,n){return Ev(n)?t.getDeclarationName(e):function(e){return t.createPropertyAccessExpression(t.getDeclarationName(e),"prototype")}(e)}(e,r),a=function(e,n){const r=e.name;return uN(r)?t.createIdentifier(""):wN(r)?n&&!lz(r.expression)?t.getGeneratedNameForNode(r):r.expression:_N(r)?t.createStringLiteral(hc(r)):t.cloneNode(r)}(r,!Fv(r,128)),s=PN(r)&&!Lv(r)?t.createVoidZero():t.createNull(),c=n().createDecorateHelper(i,o,a,s);return Cw(c,3072),Ew(c,Mb(r)),c}function v(e){return _n.checkDefined(yJ(e.expression,_,W_))}function b(e,t){let r;if(e){r=[];for(const i of e){const e=n().createParamHelper(v(i),t);NI(e,i.expression),Cw(e,3072),r.push(e)}}return r}}function cq(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=xk(e.getCompilerOptions());let s,c,l,_,u,d;return ZJ(e,(function(t){s=void 0,d=!1;const n=NJ(t,b,e);Hw(n,e.readEmitHelpers()),d&&(Nw(n,32),d=!1);return n}));function p(){switch(c=void 0,l=void 0,_=void 0,null==s?void 0:s.kind){case"class":c=s.classInfo;break;case"class-element":c=s.next.classInfo,l=s.classThis,_=s.classSuper;break;case"name":const e=s.next.next.next;"class-element"===(null==e?void 0:e.kind)&&(c=e.next.classInfo,l=e.classThis,_=e.classSuper)}}function f(e){s={kind:"class",next:s,classInfo:e,savedPendingExpressions:u},u=void 0,p()}function m(){_n.assert("class"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class' but got '${null==s?void 0:s.kind}' instead.`)),u=s.savedPendingExpressions,s=s.next,p()}function g(e){var t,n;_n.assert("class"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class' but got '${null==s?void 0:s.kind}' instead.`)),s={kind:"class-element",next:s},(ON(e)||PN(e)&&Pv(e))&&(s.classThis=null==(t=s.next.classInfo)?void 0:t.classThis,s.classSuper=null==(n=s.next.classInfo)?void 0:n.classSuper),p()}function h(){var e;_n.assert("class-element"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class-element' but got '${null==s?void 0:s.kind}' instead.`)),_n.assert("class"===(null==(e=s.next)?void 0:e.kind),"Incorrect value for top.next.kind.",(()=>{var e;return`Expected top.next.kind to be 'class' but got '${null==(e=s.next)?void 0:e.kind}' instead.`})),s=s.next,p()}function y(){_n.assert("class-element"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class-element' but got '${null==s?void 0:s.kind}' instead.`)),s={kind:"name",next:s},p()}function v(){_n.assert("name"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'name' but got '${null==s?void 0:s.kind}' instead.`)),s=s.next,p()}function b(n){if(!function(e){return!!(33554432&e.transformFlags)||!!l&&!!(16384&e.transformFlags)||!!l&&!!_&&!!(134217728&e.transformFlags)}(n))return n;switch(n.kind){case 171:return _n.fail("Use `modifierVisitor` instead.");case 264:return function(n){if(F(n)){const r=[],i=uc(n,d_)??n,o=i.name?t.createStringLiteralFromNode(i.name):t.createStringLiteral("default"),a=Fv(n,32),s=Fv(n,2048);if(n.name||(n=Gz(e,n,o)),a&&s){const e=D(n);if(n.name){const i=t.createVariableDeclaration(t.getLocalName(n),void 0,void 0,e);xw(i,n);const o=t.createVariableDeclarationList([i],1),a=t.createVariableStatement(void 0,o);r.push(a);const s=t.createExportDefault(t.getDeclarationName(n));xw(s,n),jw(s,Lw(n)),Ew(s,Rb(n)),r.push(s)}else{const i=t.createExportDefault(e);xw(i,n),jw(i,Lw(n)),Ew(i,Rb(n)),r.push(i)}}else{_n.assertIsDefined(n.name,"A class declaration that is not a default export must have a name.");const e=D(n),i=a?e=>dN(e)?void 0:k(e):k,o=vJ(n.modifiers,i,e_),s=t.getLocalName(n,!1,!0),c=t.createVariableDeclaration(s,void 0,void 0,e);xw(c,n);const l=t.createVariableDeclarationList([c],1),_=t.createVariableStatement(o,l);if(xw(_,n),jw(_,Lw(n)),r.push(_),a){const e=t.createExternalModuleExport(s);xw(e,n),r.push(e)}}return xe(r)}{const e=vJ(n.modifiers,k,e_),r=vJ(n.heritageClauses,b,oP);f(void 0);const i=vJ(n.members,S,u_);return m(),t.updateClassDeclaration(n,e,n.name,void 0,r,i)}}(n);case 232:return function(e){if(F(e)){const t=D(e);return xw(t,e),t}{const n=vJ(e.modifiers,k,e_),r=vJ(e.heritageClauses,b,oP);f(void 0);const i=vJ(e.members,S,u_);return m(),t.updateClassExpression(e,n,e.name,void 0,r,i)}}(n);case 177:case 173:case 176:return _n.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 170:return function(n){Xh(n,O)&&(n=Qz(e,n,L(n.initializer)));const r=t.updateParameterDeclaration(n,void 0,n.dotDotDotToken,yJ(n.name,b,r_),void 0,void 0,yJ(n.initializer,b,W_));r!==n&&(jw(r,n),NI(r,Mb(n)),Ew(r,Mb(n)),Cw(r.name,64));return r}(n);case 227:return j(n,!1);case 304:case 261:case 209:return function(t){Xh(t,O)&&(t=Qz(e,t,L(t.initializer)));return NJ(t,b,e)}(n);case 278:return function(t){Xh(t,O)&&(t=Qz(e,t,L(t.expression)));return NJ(t,b,e)}(n);case 110:return function(e){return l??e}(n);case 249:return function(n){return t.updateForStatement(n,yJ(n.initializer,T,tu),yJ(n.condition,b,W_),yJ(n.incrementor,T,W_),wJ(n.statement,b,e))}(n);case 245:return function(t){return NJ(t,T,e)}(n);case 357:return M(n,!1);case 218:return H(n,!1);case 356:return function(e,n){const r=n?T:b,i=yJ(e.expression,r,W_);return t.updatePartiallyEmittedExpression(e,i)}(n,!1);case 214:return function(n){if(am(n.expression)&&l){const e=yJ(n.expression,b,W_),r=vJ(n.arguments,b,W_),i=t.createFunctionCallCall(e,l,r);return xw(i,n),NI(i,n),i}return NJ(n,b,e)}(n);case 216:return function(n){if(am(n.tag)&&l){const e=yJ(n.tag,b,W_),r=t.createFunctionBindCall(e,l,[]);xw(r,n),NI(r,n);const i=yJ(n.template,b,M_);return t.updateTaggedTemplateExpression(n,r,void 0,i)}return NJ(n,b,e)}(n);case 225:case 226:return R(n,!1);case 212:return function(n){if(am(n)&&_N(n.name)&&l&&_){const e=t.createStringLiteralFromNode(n.name),r=t.createReflectGetCall(_,e,l);return xw(r,n.expression),NI(r,n.expression),r}return NJ(n,b,e)}(n);case 213:return function(n){if(am(n)&&l&&_){const e=yJ(n.argumentExpression,b,W_),r=t.createReflectGetCall(_,e,l);return xw(r,n.expression),NI(r,n.expression),r}return NJ(n,b,e)}(n);case 168:return J(n);case 175:case 179:case 178:case 219:case 263:{"other"===(null==s?void 0:s.kind)?(_n.assert(!u),s.depth++):(s={kind:"other",next:s,depth:0,savedPendingExpressions:u},u=void 0,p());const t=NJ(n,x,e);return _n.assert("other"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'other' but got '${null==s?void 0:s.kind}' instead.`)),s.depth>0?(_n.assert(!u),s.depth--):(u=s.savedPendingExpressions,s=s.next,p()),t}default:return NJ(n,x,e)}}function x(e){if(171!==e.kind)return b(e)}function k(e){if(171!==e.kind)return e}function S(a){switch(a.kind){case 177:return function(e){g(e);const n=vJ(e.modifiers,k,e_),r=vJ(e.parameters,b,NN);let i;if(e.body&&c){const n=E(c.class,c);if(n){const r=[],o=t.copyPrologue(e.body.statements,r,!1,b),a=fz(e.body.statements,o);a.length>0?P(r,e.body.statements,o,a,0,n):(ae(r,n),ae(r,vJ(e.body.statements,b,fu))),i=t.createBlock(r,!0),xw(i,e.body),NI(i,e.body)}}return i??(i=yJ(e.body,b,KF)),h(),t.updateConstructorDeclaration(e,n,r,i)}(a);case 175:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=I(e,c,ee);if(i)return h(),A(function(e,n,r){return e=vJ(e,(e=>yN(e)?e:void 0),e_),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(r,t.createIdentifier("value")))]))}(n,r,i),e);{const i=vJ(e.parameters,b,NN),o=yJ(e.body,b,KF);return h(),A(t.updateMethodDeclaration(e,n,e.asteriskToken,r,void 0,void 0,i,void 0,o),e)}}(a);case 178:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=I(e,c,te);if(i)return h(),A(oe(n,r,i),e);{const i=vJ(e.parameters,b,NN),o=yJ(e.body,b,KF);return h(),A(t.updateGetAccessorDeclaration(e,n,r,i,void 0,o),e)}}(a);case 179:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=I(e,c,ne);if(i)return h(),A(se(n,r,i),e);{const i=vJ(e.parameters,b,NN),o=yJ(e.body,b,KF);return h(),A(t.updateSetAccessorDeclaration(e,n,r,i,o),e)}}(a);case 173:return function(a){Xh(a,O)&&(a=Qz(e,a,L(a.initializer)));g(a),_n.assert(!vp(a),"Not yet implemented.");const{modifiers:s,name:l,initializersName:_,extraInitializersName:u,descriptorName:d,thisArg:p}=I(a,c,Lv(a)?ie:void 0);r();let f=yJ(a.initializer,b,W_);_&&(f=n().createRunInitializersHelper(p??t.createThis(),_,f??t.createVoidZero()));Ev(a)&&c&&f&&(c.hasStaticInitializers=!0);const m=i();V(m)&&(f=t.createImmediatelyInvokedArrowFunction([...m,t.createReturnStatement(f)]));c&&(Ev(a)?(f=X(c,!0,f),u&&(c.pendingStaticInitializers??(c.pendingStaticInitializers=[]),c.pendingStaticInitializers.push(n().createRunInitializersHelper(c.classThis??t.createThis(),u)))):(f=X(c,!1,f),u&&(c.pendingInstanceInitializers??(c.pendingInstanceInitializers=[]),c.pendingInstanceInitializers.push(n().createRunInitializersHelper(t.createThis(),u)))));if(h(),Lv(a)&&d){const e=Lw(a),n=Fw(a),r=a.name;let i=r,c=r;if(wN(r)&&!lz(r.expression)){const e=TI(r);if(e)i=t.updateComputedPropertyName(r,yJ(r.expression,b,W_)),c=t.updateComputedPropertyName(r,e.left);else{const e=t.createTempVariable(o);Ew(e,r.expression);const n=yJ(r.expression,b,W_),a=t.createAssignment(e,n);Ew(a,r.expression),i=t.updateComputedPropertyName(r,a),c=t.updateComputedPropertyName(r,e)}}const l=vJ(s,(e=>129!==e.kind?e:void 0),e_),_=xI(t,a,l,f);xw(_,a),Cw(_,3072),Ew(_,n),Ew(_.name,a.name);const u=oe(l,i,d);xw(u,a),jw(u,e),Ew(u,n);const p=se(l,c,d);return xw(p,a),Cw(p,3072),Ew(p,n),[_,u,p]}return A(t.updatePropertyDeclaration(a,s,l,void 0,void 0,f),a)}(a);case 176:return function(n){let r;if(g(n),$z(n))r=NJ(n,b,e);else if(zz(n)){const t=l;l=void 0,r=NJ(n,b,e),l=t}else if(r=n=NJ(n,b,e),c&&(c.hasStaticInitializers=!0,V(c.pendingStaticInitializers))){const e=[];for(const n of c.pendingStaticInitializers){const r=t.createExpressionStatement(n);Ew(r,Fw(n)),e.push(r)}const n=t.createBlock(e,!0);r=[t.createClassStaticBlockDeclaration(n),r],c.pendingStaticInitializers=void 0}return h(),r}(a);default:return b(a)}}function T(e){switch(e.kind){case 225:case 226:return R(e,!0);case 227:return j(e,!0);case 357:return M(e,!0);case 218:return H(e,!0);default:return b(e)}}function C(e,n){return t.createUniqueName(`${function(e){let t=e.name&&_N(e.name)&&!$l(e.name)?hc(e.name):e.name&&uN(e.name)&&!$l(e.name)?hc(e.name).slice(1):e.name&&HD(e.name)&&gs(e.name.text,99)?e.name.text:d_(e)?"class":"member";return Nu(e)&&(t=`get_${t}`),Du(e)&&(t=`set_${t}`),e.name&&uN(e.name)&&(t=`private_${t}`),Ev(e)&&(t=`static_${t}`),"_"+t}(e)}_${n}`,24)}function w(e,n){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,n)],1))}function D(o){r(),!Kz(o)&&gm(!1,o)&&(o=Gz(e,o,t.createStringLiteral("")));const a=t.getLocalName(o,!1,!1,!0),s=function(e){const r=t.createUniqueName("_metadata",48);let i,o,a,s,c,l=!1,_=!1,u=!1;if(pm(!1,e)){const n=V(e.members,(e=>(Gl(e)||f_(e))&&Pv(e)));a=t.createUniqueName("_classThis",n?24:48)}for(const r of e.members){if(g_(r)&&fm(!1,r,e))if(Pv(r)){if(!o){o=t.createUniqueName("_staticExtraInitializers",48);const r=n().createRunInitializersHelper(a??t.createThis(),o);Ew(r,e.name??Rb(e)),s??(s=[]),s.push(r)}}else{if(!i){i=t.createUniqueName("_instanceExtraInitializers",48);const r=n().createRunInitializersHelper(t.createThis(),i);Ew(r,e.name??Rb(e)),c??(c=[]),c.push(r)}i??(i=t.createUniqueName("_instanceExtraInitializers",48))}if(ON(r)?$z(r)||(l=!0):PN(r)&&(Pv(r)?l||(l=!!r.initializer||Rv(r)):_||(_=!vp(r))),(Gl(r)||f_(r))&&Pv(r)&&(u=!0),o&&i&&l&&_&&u)break}return{class:e,classThis:a,metadataReference:r,instanceMethodExtraInitializersName:i,staticMethodExtraInitializersName:o,hasStaticInitializers:l,hasNonAmbientInstanceFields:_,hasStaticPrivateClassElements:u,pendingStaticInitializers:s,pendingInstanceInitializers:c}}(o),c=[];let l,_,p,g,h=!1;const y=Q(xz(o,!1));y&&(s.classDecoratorsName=t.createUniqueName("_classDecorators",48),s.classDescriptorName=t.createUniqueName("_classDescriptor",48),s.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),_n.assertIsDefined(s.classThis),c.push(w(s.classDecoratorsName,t.createArrayLiteralExpression(y)),w(s.classDescriptorName),w(s.classExtraInitializersName,t.createArrayLiteralExpression()),w(s.classThis)),s.hasStaticPrivateClassElements&&(h=!0,d=!0));const v=Th(o.heritageClauses,96),x=v&&pe(v.types),k=x&&yJ(x.expression,b,W_);if(k){s.classSuper=t.createUniqueName("_classSuper",48);const e=PA(k),n=jF(e)&&!e.name||SF(e)&&!e.name||TF(e)?t.createComma(t.createNumericLiteral(0),k):k;c.push(w(s.classSuper,n));const r=t.updateExpressionWithTypeArguments(x,s.classSuper,void 0),i=t.updateHeritageClause(v,[r]);g=t.createNodeArray([i])}const T=s.classThis??t.createThis();f(s),l=re(l,function(e,n){const r=t.createVariableDeclaration(e,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[n?ce(n):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([r],2))}(s.metadataReference,s.classSuper));let C=o.members;if(C=vJ(C,(e=>LN(e)?e:S(e)),u_),C=vJ(C,(e=>LN(e)?S(e):e),u_),u){let n;for(let r of u){r=yJ(r,(function r(i){return 16384&i.transformFlags?110===i.kind?(n||(n=t.createUniqueName("_outerThis",16),c.unshift(w(n,t.createThis()))),n):NJ(i,r,e):i}),W_);l=re(l,t.createExpressionStatement(r))}u=void 0}if(m(),V(s.pendingInstanceInitializers)&&!ov(o)){const e=E(o,s);if(e){const n=vh(o),r=[];if(!(!n||106===PA(n.expression).kind)){const e=t.createSpreadElement(t.createIdentifier("arguments")),n=t.createCallExpression(t.createSuper(),void 0,[e]);r.push(t.createExpressionStatement(n))}ae(r,e);const i=t.createBlock(r,!0);p=t.createConstructorDeclaration(void 0,[],i)}}if(s.staticMethodExtraInitializersName&&c.push(w(s.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),s.instanceMethodExtraInitializersName&&c.push(w(s.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),s.memberInfos&&id(s.memberInfos,((e,n)=>{Ev(n)&&(c.push(w(e.memberDecoratorsName)),e.memberInitializersName&&c.push(w(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberExtraInitializersName&&c.push(w(e.memberExtraInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&c.push(w(e.memberDescriptorName)))})),s.memberInfos&&id(s.memberInfos,((e,n)=>{Ev(n)||(c.push(w(e.memberDecoratorsName)),e.memberInitializersName&&c.push(w(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberExtraInitializersName&&c.push(w(e.memberExtraInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&c.push(w(e.memberDescriptorName)))})),l=ae(l,s.staticNonFieldDecorationStatements),l=ae(l,s.nonStaticNonFieldDecorationStatements),l=ae(l,s.staticFieldDecorationStatements),l=ae(l,s.nonStaticFieldDecorationStatements),s.classDescriptorName&&s.classDecoratorsName&&s.classExtraInitializersName&&s.classThis){l??(l=[]);const e=t.createPropertyAssignment("value",T),r=t.createObjectLiteralExpression([e]),i=t.createAssignment(s.classDescriptorName,r),c=t.createPropertyAccessExpression(T,"name"),_=n().createESDecorateHelper(t.createNull(),i,s.classDecoratorsName,{kind:"class",name:c,metadata:s.metadataReference},t.createNull(),s.classExtraInitializersName),u=t.createExpressionStatement(_);Ew(u,Rb(o)),l.push(u);const d=t.createPropertyAccessExpression(s.classDescriptorName,"value"),p=t.createAssignment(s.classThis,d),f=t.createAssignment(a,p);l.push(t.createExpressionStatement(f))}if(l.push(function(e,n){const r=t.createObjectDefinePropertyCall(e,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:n},!0));return Cw(t.createIfStatement(n,t.createExpressionStatement(r)),1)}(T,s.metadataReference)),V(s.pendingStaticInitializers)){for(const e of s.pendingStaticInitializers){const n=t.createExpressionStatement(e);Ew(n,Fw(e)),_=re(_,n)}s.pendingStaticInitializers=void 0}if(s.classExtraInitializersName){const e=n().createRunInitializersHelper(T,s.classExtraInitializersName),r=t.createExpressionStatement(e);Ew(r,o.name??Rb(o)),_=re(_,r)}l&&_&&!s.hasStaticInitializers&&(ae(l,_),_=void 0);const D=l&&t.createClassStaticBlockDeclaration(t.createBlock(l,!0));D&&h&&Dw(D,32);const N=_&&t.createClassStaticBlockDeclaration(t.createBlock(_,!0));if(D||p||N){const e=[],n=C.findIndex($z);D?(ae(e,C,0,n+1),e.push(D),ae(e,C,n+1)):ae(e,C),p&&e.push(p),N&&e.push(N),C=NI(t.createNodeArray(e),C)}const F=i();let P;if(y){P=t.createClassExpression(void 0,void 0,void 0,g,C),s.classThis&&(P=Uz(t,P,s.classThis));const e=t.createVariableDeclaration(a,void 0,void 0,P),n=t.createVariableDeclarationList([e]),r=s.classThis?t.createAssignment(a,s.classThis):a;c.push(t.createVariableStatement(void 0,n),t.createReturnStatement(r))}else P=t.createClassExpression(void 0,o.name,void 0,g,C),c.push(t.createReturnStatement(P));if(h){Nw(P,32);for(const e of P.members)(Gl(e)||f_(e))&&Pv(e)&&Nw(e,32)}return xw(P,o),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(c,F))}function F(e){return gm(!1,e)||mm(!1,e)}function E(e,n){if(V(n.pendingInstanceInitializers)){const e=[];return e.push(t.createExpressionStatement(t.inlineExpressions(n.pendingInstanceInitializers))),n.pendingInstanceInitializers=void 0,e}}function P(e,n,r,i,o,a){const s=i[o],c=n[s];if(ae(e,vJ(n,b,fu,r,s-r)),uE(c)){const n=[];P(n,c.tryBlock.statements,0,i,o+1,a);NI(t.createNodeArray(n),c.tryBlock.statements),e.push(t.updateTryStatement(c,t.updateBlock(c.tryBlock,n),yJ(c.catchClause,b,aP),yJ(c.finallyBlock,b,KF)))}else ae(e,vJ(n,b,fu,s,1)),ae(e,a);ae(e,vJ(n,b,fu,s+1))}function A(e,t){return e!==t&&(jw(e,t),Ew(e,Rb(t))),e}function I(e,r,i){let a,s,c,l,_,d;if(!r){const t=vJ(e.modifiers,k,e_);return y(),s=B(e.name),v(),{modifiers:t,referencedName:a,name:s,initializersName:c,descriptorName:d,thisArg:_}}const p=Q(kz(e,r.class,!1)),f=vJ(e.modifiers,k,e_);if(p){const m=C(e,"decorators"),g=t.createArrayLiteralExpression(p),h=t.createAssignment(m,g),x={memberDecoratorsName:m};r.memberInfos??(r.memberInfos=new Map),r.memberInfos.set(e,x),u??(u=[]),u.push(h);const k=g_(e)||f_(e)?Ev(e)?r.staticNonFieldDecorationStatements??(r.staticNonFieldDecorationStatements=[]):r.nonStaticNonFieldDecorationStatements??(r.nonStaticNonFieldDecorationStatements=[]):PN(e)&&!f_(e)?Ev(e)?r.staticFieldDecorationStatements??(r.staticFieldDecorationStatements=[]):r.nonStaticFieldDecorationStatements??(r.nonStaticFieldDecorationStatements=[]):_n.fail(),S=jN(e)?"getter":RN(e)?"setter":IN(e)?"method":f_(e)?"accessor":PN(e)?"field":_n.fail();let T;if(_N(e.name)||uN(e.name))T={computed:!1,name:e.name};else if(qh(e.name))T={computed:!0,name:t.createStringLiteralFromNode(e.name)};else{const r=e.name.expression;qh(r)&&!_N(r)?T={computed:!0,name:t.createStringLiteralFromNode(r)}:(y(),({referencedName:a,name:s}=function(e){if(qh(e)||uN(e)){return{referencedName:t.createStringLiteralFromNode(e),name:yJ(e,b,n_)}}if(qh(e.expression)&&!_N(e.expression)){return{referencedName:t.createStringLiteralFromNode(e.expression),name:yJ(e,b,n_)}}const r=t.getGeneratedNameForNode(e);o(r);const i=n().createPropKeyHelper(yJ(e.expression,b,W_)),a=t.createAssignment(r,i),s=t.updateComputedPropertyName(e,G(a));return{referencedName:r,name:s}}(e.name)),T={computed:!0,name:a},v())}const w={kind:S,name:T,static:Ev(e),private:uN(e.name),access:{get:PN(e)||jN(e)||IN(e),set:PN(e)||RN(e)},metadata:r.metadataReference};if(g_(e)){const o=Ev(e)?r.staticMethodExtraInitializersName:r.instanceMethodExtraInitializersName;let a;_n.assertIsDefined(o),Gl(e)&&i&&(a=i(e,vJ(f,(e=>et(e,fN)),e_)),x.memberDescriptorName=d=C(e,"descriptor"),a=t.createAssignment(d,a));const s=n().createESDecorateHelper(t.createThis(),a??t.createNull(),m,w,t.createNull(),o),c=t.createExpressionStatement(s);Ew(c,Rb(e)),k.push(c)}else if(PN(e)){let o;c=x.memberInitializersName??(x.memberInitializersName=C(e,"initializers")),l=x.memberExtraInitializersName??(x.memberExtraInitializersName=C(e,"extraInitializers")),Ev(e)&&(_=r.classThis),Gl(e)&&Lv(e)&&i&&(o=i(e,void 0),x.memberDescriptorName=d=C(e,"descriptor"),o=t.createAssignment(d,o));const a=n().createESDecorateHelper(f_(e)?t.createThis():t.createNull(),o??t.createNull(),m,w,c,l),s=t.createExpressionStatement(a);Ew(s,Rb(e)),k.push(s)}}return void 0===s&&(y(),s=B(e.name),v()),V(f)||!IN(e)&&!PN(e)||Cw(s,1024),{modifiers:f,referencedName:a,name:s,initializersName:c,extraInitializersName:l,descriptorName:d,thisArg:_}}function O(e){return jF(e)&&!e.name&&F(e)}function L(e){const t=PA(e);return jF(t)&&!t.name&&!gm(!1,t)}function j(n,r){if(ab(n)){const e=$(n.left),r=yJ(n.right,b,W_);return t.updateBinaryExpression(n,e,n.operatorToken,r)}if(ob(n)){if(Xh(n,O))return NJ(n=Qz(e,n,L(n.right)),b,e);if(am(n.left)&&l&&_){let e=hF(n.left)?yJ(n.left.argumentExpression,b,W_):_N(n.left.name)?t.createStringLiteralFromNode(n.left.name):void 0;if(e){let i=yJ(n.right,b,W_);if(_z(n.operatorToken.kind)){let r=e;lz(e)||(r=t.createTempVariable(o),e=t.createAssignment(r,e));const a=t.createReflectGetCall(_,r,l);xw(a,n.left),NI(a,n.left),i=t.createBinaryExpression(a,uz(n.operatorToken.kind),i),NI(i,n)}const a=r?void 0:t.createTempVariable(o);return a&&(i=t.createAssignment(a,i),NI(a,n)),i=t.createReflectSetCall(_,e,i,l),xw(i,n),NI(i,n),a&&(i=t.createComma(i,a),NI(i,n)),i}}}if(28===n.operatorToken.kind){const e=yJ(n.left,T,W_),i=yJ(n.right,r?T:b,W_);return t.updateBinaryExpression(n,e,n.operatorToken,i)}return NJ(n,b,e)}function R(n,r){if(46===n.operator||47===n.operator){const e=sh(n.operand);if(am(e)&&l&&_){let i=hF(e)?yJ(e.argumentExpression,b,W_):_N(e.name)?t.createStringLiteralFromNode(e.name):void 0;if(i){let e=i;lz(i)||(e=t.createTempVariable(o),i=t.createAssignment(e,i));let a=t.createReflectGetCall(_,e,l);xw(a,n),NI(a,n);const s=r?void 0:t.createTempVariable(o);return a=vA(t,n,a,o,s),a=t.createReflectSetCall(_,i,a,l),xw(a,n),NI(a,n),s&&(a=t.createComma(a,s),NI(a,n)),a}}}return NJ(n,b,e)}function M(e,n){const r=n?DJ(e.elements,T):DJ(e.elements,b,T);return t.updateCommaListExpression(e,r)}function B(e){return wN(e)?J(e):yJ(e,b,n_)}function J(e){let n=yJ(e.expression,b,W_);return lz(n)||(n=G(n)),t.updateComputedPropertyName(e,n)}function z(n){if(mF(n)||fF(n))return $(n);if(am(n)&&l&&_){const e=hF(n)?yJ(n.argumentExpression,b,W_):_N(n.name)?t.createStringLiteralFromNode(n.name):void 0;if(e){const r=t.createTempVariable(void 0),i=t.createAssignmentTargetWrapper(r,t.createReflectSetCall(_,e,r,l));return xw(i,n),NI(i,n),i}}return NJ(n,b,e)}function q(n){if(ob(n,!0)){Xh(n,O)&&(n=Qz(e,n,L(n.right)));const r=z(n.left),i=yJ(n.right,b,W_);return t.updateBinaryExpression(n,r,n.operatorToken,i)}return z(n)}function U(n){return _n.assertNode(n,A_),LF(n)?function(n){if(B_(n.expression)){const e=z(n.expression);return t.updateSpreadElement(n,e)}return NJ(n,b,e)}(n):RF(n)?NJ(n,b,e):q(n)}function W(n){return _n.assertNode(n,E_),lP(n)?function(n){if(B_(n.expression)){const e=z(n.expression);return t.updateSpreadAssignment(n,e)}return NJ(n,b,e)}(n):cP(n)?function(t){return Xh(t,O)&&(t=Qz(e,t,L(t.objectAssignmentInitializer))),NJ(t,b,e)}(n):sP(n)?function(n){const r=yJ(n.name,b,n_);if(ob(n.initializer,!0)){const e=q(n.initializer);return t.updatePropertyAssignment(n,r,e)}if(B_(n.initializer)){const e=z(n.initializer);return t.updatePropertyAssignment(n,r,e)}return NJ(n,b,e)}(n):NJ(n,b,e)}function $(e){if(fF(e)){const n=vJ(e.elements,U,W_);return t.updateArrayLiteralExpression(e,n)}{const n=vJ(e.properties,W,b_);return t.updateObjectLiteralExpression(e,n)}}function H(e,n){const r=n?T:b,i=yJ(e.expression,r,W_);return t.updateParenthesizedExpression(e,i)}function K(e,n){return V(e)&&(n?kF(n)?(e.push(n.expression),n=t.updateParenthesizedExpression(n,t.inlineExpressions(e))):(e.push(n),n=t.inlineExpressions(e)):n=t.inlineExpressions(e)),n}function G(e){const t=K(u,e);return _n.assertIsDefined(t),t!==e&&(u=void 0),t}function X(e,t,n){const r=K(t?e.pendingStaticInitializers:e.pendingInstanceInitializers,n);return r!==n&&(t?e.pendingStaticInitializers=void 0:e.pendingInstanceInitializers=void 0),r}function Q(e){if(!e)return;const t=[];return ae(t,N(e.decorators,Y)),t}function Y(e){const n=yJ(e.expression,b,W_);Cw(n,3072);if(Cx(PA(n))){const{target:e,thisArg:r}=t.createCallBinding(n,o,a,!0);return t.restoreOuterExpressions(n,t.createFunctionBindCall(e,r,[]))}return n}function Z(e,r,i,o,a,s,c){const l=t.createFunctionExpression(i,o,void 0,void 0,s,void 0,c??t.createBlock([]));xw(l,e),Ew(l,Rb(e)),Cw(l,3072);const _="get"===a||"set"===a?a:void 0,u=t.createStringLiteralFromNode(r,void 0),d=n().createSetFunctionNameHelper(l,u,_),p=t.createPropertyAssignment(t.createIdentifier(a),d);return xw(p,e),Ew(p,Rb(e)),Cw(p,3072),p}function ee(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,e.asteriskToken,"value",vJ(e.parameters,b,NN),yJ(e.body,b,KF))])}function te(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,void 0,"get",[],yJ(e.body,b,KF))])}function ne(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,void 0,"set",vJ(e.parameters,b,NN),yJ(e.body,b,KF))])}function ie(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(e.name)))])),Z(e,e.name,n,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(e.name)),t.createIdentifier("value")))]))])}function oe(e,n,r){return e=vJ(e,(e=>yN(e)?e:void 0),e_),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(r,t.createIdentifier("get")),t.createThis(),[]))]))}function se(e,n,r){return e=vJ(e,(e=>yN(e)?e:void 0),e_),t.createSetAccessorDeclaration(e,n,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(r,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function ce(e){return t.createBinaryExpression(t.createElementAccessExpression(e,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}function lq(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),c=xk(s);let l,u,d,p,f=0,m=0;const g=[];let h=0;const y=e.onEmitNode,v=e.onSubstituteNode;return e.onEmitNode=function(e,t,n){if(1&f&&function(e){const t=e.kind;return 264===t||177===t||175===t||178===t||179===t}(t)){const r=(a.hasNodeCheckFlag(t,128)?128:0)|(a.hasNodeCheckFlag(t,256)?256:0);if(r!==m){const i=m;return m=r,y(e,t,n),void(m=i)}}else if(f&&g[cJ(t)]){const r=m;return m=0,y(e,t,n),void(m=r)}y(e,t,n)},e.onSubstituteNode=function(e,n){if(n=v(e,n),1===e&&m)return function(e){switch(e.kind){case 212:return $(e);case 213:return H(e);case 214:return function(e){const n=e.expression;if(am(n)){const r=gF(n)?$(n):H(n);return t.createCallExpression(t.createPropertyAccessExpression(r,"call"),void 0,[t.createThis(),...e.arguments])}return e}(e)}return e}(n);return n},ZJ(e,(function(t){if(t.isDeclarationFile)return t;b(1,!1),b(2,!yp(t,s));const n=NJ(t,C,e);return Hw(n,e.readEmitHelpers()),n}));function b(e,t){h=t?h|e:h&~e}function x(e){return!!(h&e)}function k(e,t,n){const r=e&~h;if(r){b(r,!0);const e=t(n);return b(r,!1),e}return t(n)}function S(t){return NJ(t,C,e)}function T(t){switch(t.kind){case 219:case 263:case 175:case 178:case 179:case 177:return t;case 170:case 209:case 261:break;case 80:if(p&&a.isArgumentsLocalBinding(t))return p}return NJ(t,T,e)}function C(n){if(!(256&n.transformFlags))return p?T(n):n;switch(n.kind){case 134:return;case 224:return function(n){if(!x(1))return NJ(n,C,e);return xw(NI(t.createYieldExpression(void 0,yJ(n.expression,C,W_)),n),n)}(n);case 175:return k(3,F,n);case 263:return k(3,A,n);case 219:return k(3,I,n);case 220:return k(1,O,n);case 212:return u&&gF(n)&&108===n.expression.kind&&u.add(n.name.escapedText),NJ(n,C,e);case 213:return u&&108===n.expression.kind&&(d=!0),NJ(n,C,e);case 178:return k(3,E,n);case 179:return k(3,P,n);case 177:return k(3,D,n);case 264:case 232:return k(3,S,n);default:return NJ(n,C,e)}}function w(n){if(eh(n))switch(n.kind){case 244:return function(n){if(j(n.declarationList)){const e=R(n.declarationList,!1);return e?t.createExpressionStatement(e):void 0}return NJ(n,C,e)}(n);case 249:return function(n){const r=n.initializer;return t.updateForStatement(n,j(r)?R(r,!1):yJ(n.initializer,C,tu),yJ(n.condition,C,W_),yJ(n.incrementor,C,W_),wJ(n.statement,w,e))}(n);case 250:return function(n){return t.updateForInStatement(n,j(n.initializer)?R(n.initializer,!0):_n.checkDefined(yJ(n.initializer,C,tu)),_n.checkDefined(yJ(n.expression,C,W_)),wJ(n.statement,w,e))}(n);case 251:return function(n){return t.updateForOfStatement(n,yJ(n.awaitModifier,C,gN),j(n.initializer)?R(n.initializer,!0):_n.checkDefined(yJ(n.initializer,C,tu)),_n.checkDefined(yJ(n.expression,C,W_)),wJ(n.statement,w,e))}(n);case 300:return function(t){const n=new Set;let r;if(L(t.variableDeclaration,n),n.forEach(((e,t)=>{l.has(t)&&(r||(r=new Set(l)),r.delete(t))})),r){const n=l;l=r;const i=NJ(t,w,e);return l=n,i}return NJ(t,w,e)}(n);case 242:case 256:case 270:case 297:case 298:case 259:case 247:case 248:case 246:case 255:case 257:return NJ(n,w,e);default:return _n.assertNever(n,"Unhandled node.")}return C(n)}function D(n){const r=p;p=void 0;const i=t.updateConstructorDeclaration(n,vJ(n.modifiers,C,e_),SJ(n.parameters,C,e),z(n));return p=r,i}function F(n){let r;const i=Lh(n),o=p;p=void 0;const a=t.updateMethodDeclaration(n,vJ(n.modifiers,C,h_),n.asteriskToken,n.name,void 0,void 0,r=2&i?U(n):SJ(n.parameters,C,e),void 0,2&i?V(n,r):z(n));return p=o,a}function E(n){const r=p;p=void 0;const i=t.updateGetAccessorDeclaration(n,vJ(n.modifiers,C,h_),n.name,SJ(n.parameters,C,e),void 0,z(n));return p=r,i}function P(n){const r=p;p=void 0;const i=t.updateSetAccessorDeclaration(n,vJ(n.modifiers,C,h_),n.name,SJ(n.parameters,C,e),z(n));return p=r,i}function A(n){let r;const i=p;p=void 0;const o=Lh(n),a=t.updateFunctionDeclaration(n,vJ(n.modifiers,C,h_),n.asteriskToken,n.name,void 0,r=2&o?U(n):SJ(n.parameters,C,e),void 0,2&o?V(n,r):CJ(n.body,C,e));return p=i,a}function I(n){let r;const i=p;p=void 0;const o=Lh(n),a=t.updateFunctionExpression(n,vJ(n.modifiers,C,e_),n.asteriskToken,n.name,void 0,r=2&o?U(n):SJ(n.parameters,C,e),void 0,2&o?V(n,r):CJ(n.body,C,e));return p=i,a}function O(n){let r;const i=Lh(n);return t.updateArrowFunction(n,vJ(n.modifiers,C,e_),void 0,r=2&i?U(n):SJ(n.parameters,C,e),void 0,n.equalsGreaterThanToken,2&i?V(n,r):CJ(n.body,C,e))}function L({name:e},t){if(_N(e))t.add(e.escapedText);else for(const n of e.elements)RF(n)||L(n,t)}function j(e){return!!e&&fE(e)&&!(7&e.flags)&&e.declarations.some(J)}function R(e,n){!function(e){_(e.declarations,M)}(e);const r=tx(e);return 0===r.length?n?yJ(t.converters.convertToAssignmentElementTarget(e.declarations[0].name),C,W_):void 0:t.inlineExpressions(N(r,B))}function M({name:e}){if(_N(e))o(e);else for(const t of e.elements)RF(t)||M(t)}function B(e){const n=Ew(t.createAssignment(t.converters.convertToAssignmentElementTarget(e.name),e.initializer),e);return _n.checkDefined(yJ(n,C,W_))}function J({name:e}){if(_N(e))return l.has(e.escapedText);for(const t of e.elements)if(!RF(t)&&J(t))return!0;return!1}function z(n){_n.assertIsDefined(n.body);const r=u,i=d;u=new Set,d=!1;let o=CJ(n.body,C,e);const s=uc(n,a_);if(c>=2&&(a.hasNodeCheckFlag(n,256)||a.hasNodeCheckFlag(n,128))&&!!(3&~Lh(s))){if(W(),u.size){const e=_q(t,a,n,u);g[cJ(e)]=!0;const r=o.statements.slice();Ld(r,[e]),o=t.updateBlock(o,r)}d&&(a.hasNodeCheckFlag(n,256)?$w(o,UD):a.hasNodeCheckFlag(n,128)&&$w(o,qD))}return u=r,d=i,o}function q(){_n.assert(p);const e=t.createVariableDeclaration(p,void 0,void 0,t.createIdentifier("arguments")),n=t.createVariableStatement(void 0,[e]);return IA(n),ww(n,2097152),n}function U(n){if(Fz(n.parameters))return SJ(n.parameters,C,e);const r=[];for(const e of n.parameters){if(e.initializer||e.dotDotDotToken){if(220===n.kind){const e=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));r.push(e)}break}const i=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e.name,8));r.push(i)}const i=t.createNodeArray(r);return NI(i,n.parameters),i}function V(o,s){const _=Fz(o.parameters)?void 0:SJ(o.parameters,C,e);r();const f=uc(o,i_).type,m=c<2?function(e){const t=e&&_m(e);if(t&&t_(t)){const e=a.getTypeReferenceSerializationKind(t);if(1===e||0===e)return t}return}(f):void 0,h=220===o.kind,y=p,v=a.hasNodeCheckFlag(o,512)&&!p;let b;if(v&&(p=t.createUniqueName("arguments")),_)if(h){const e=[];_n.assert(s.length<=o.parameters.length);for(let n=0;n=2&&(a.hasNodeCheckFlag(o,256)||a.hasNodeCheckFlag(o,128));if(r&&(W(),u.size)){const n=_q(t,a,o,u);g[cJ(n)]=!0,Ld(e,[n])}v&&Ld(e,[q()]);const i=t.createBlock(e,!0);NI(i,o.body),r&&d&&(a.hasNodeCheckFlag(o,256)?$w(i,UD):a.hasNodeCheckFlag(o,128)&&$w(i,qD)),P=i}return l=k,h||(u=S,d=T,p=y),P}function W(){1&f||(f|=1,e.enableSubstitution(214),e.enableSubstitution(212),e.enableSubstitution(213),e.enableEmitNotification(264),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(177),e.enableEmitNotification(244))}function $(e){return 108===e.expression.kind?NI(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function H(e){return 108===e.expression.kind?(n=e.argumentExpression,r=e,NI(256&m?t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[n]),"value"):t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[n]),r)):e;var n,r}}function _q(e,t,n,r){const i=t.hasNodeCheckFlag(n,256),o=[];return r.forEach(((t,n)=>{const r=gc(n),a=[];a.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,Cw(e.createPropertyAccessExpression(Cw(e.createSuper(),8),r),8)))),i&&a.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(Cw(e.createPropertyAccessExpression(Cw(e.createSuper(),8),r),8),e.createIdentifier("v"))))),o.push(e.createPropertyAssignment(r,e.createObjectLiteralExpression(a)))})),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(o,!0)]))],2))}function uq(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),c=xk(s),l=e.onEmitNode;e.onEmitNode=function(e,t,n){if(1&y&&function(e){const t=e.kind;return 264===t||177===t||175===t||178===t||179===t}(t)){const r=(a.hasNodeCheckFlag(t,128)?128:0)|(a.hasNodeCheckFlag(t,256)?256:0);if(r!==v){const i=v;return v=r,l(e,t,n),void(v=i)}}else if(y&&x[cJ(t)]){const r=v;return v=0,l(e,t,n),void(v=r)}l(e,t,n)};const _=e.onSubstituteNode;e.onSubstituteNode=function(e,n){if(n=_(e,n),1===e&&v)return function(e){switch(e.kind){case 212:return Q(e);case 213:return Y(e);case 214:return function(e){const n=e.expression;if(am(n)){const r=gF(n)?Q(n):Y(n);return t.createCallExpression(t.createPropertyAccessExpression(r,"call"),void 0,[t.createThis(),...e.arguments])}return e}(e)}return e}(n);return n};let u,d,p,f,m,g,h=!1,y=0,v=0,b=0;const x=[];return ZJ(e,(function(n){if(n.isDeclarationFile)return n;p=n;const r=function(n){const r=k(2,yp(n,s)?0:1);h=!1;const i=NJ(n,C,e),o=$(i.statements,f&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(f))]),a=t.updateSourceFile(i,NI(t.createNodeArray(o),n.statements));return S(r),a}(n);return Hw(r,e.readEmitHelpers()),p=void 0,f=void 0,r}));function k(e,t){const n=b;return b=3&(b&~e|t),n}function S(e){b=e}function T(e){f=re(f,t.createVariableDeclaration(e))}function C(e){return E(e,!1)}function w(e){return E(e,!0)}function D(e){if(134!==e.kind)return e}function N(e,t,n,r){if(function(e,t){return b!==(b&~e|t)}(n,r)){const i=k(n,r),o=e(t);return S(i),o}return e(t)}function F(t){return NJ(t,C,e)}function E(r,i){if(!(128&r.transformFlags))return r;switch(r.kind){case 224:return function(r){if(2&u&&1&u)return xw(NI(t.createYieldExpression(void 0,n().createAwaitHelper(yJ(r.expression,C,W_))),r),r);return NJ(r,C,e)}(r);case 230:return function(r){if(2&u&&1&u){if(r.asteriskToken){const e=yJ(_n.checkDefined(r.expression),C,W_);return xw(NI(t.createYieldExpression(void 0,n().createAwaitHelper(t.updateYieldExpression(r,r.asteriskToken,NI(n().createAsyncDelegatorHelper(NI(n().createAsyncValuesHelper(e),e)),e)))),r),r)}return xw(NI(t.createYieldExpression(void 0,O(r.expression?yJ(r.expression,C,W_):t.createVoidZero())),r),r)}return NJ(r,C,e)}(r);case 254:return function(n){if(2&u&&1&u)return t.updateReturnStatement(n,O(n.expression?yJ(n.expression,C,W_):t.createVoidZero()));return NJ(n,C,e)}(r);case 257:return function(n){if(2&u){const e=Mf(n);return 251===e.kind&&e.awaitModifier?I(e,n):t.restoreEnclosingLabel(yJ(e,C,fu,t.liftToBlock),n)}return NJ(n,C,e)}(r);case 211:return function(r){if(65536&r.transformFlags){const e=function(e){let n;const r=[];for(const i of e)if(306===i.kind){n&&(r.push(t.createObjectLiteralExpression(n)),n=void 0);const e=i.expression;r.push(yJ(e,C,W_))}else n=re(n,304===i.kind?t.createPropertyAssignment(i.name,yJ(i.initializer,C,W_)):yJ(i,C,b_));n&&r.push(t.createObjectLiteralExpression(n));return r}(r.properties);e.length&&211!==e[0].kind&&e.unshift(t.createObjectLiteralExpression());let i=e[0];if(e.length>1){for(let t=1;t=2&&(a.hasNodeCheckFlag(o,256)||a.hasNodeCheckFlag(o,128));if(f){1&y||(y|=1,e.enableSubstitution(214),e.enableSubstitution(212),e.enableSubstitution(213),e.enableEmitNotification(264),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(177),e.enableEmitNotification(244));const n=_q(t,a,o,m);x[cJ(n)]=!0,Ld(u,[n])}u.push(p);const h=t.updateBlock(o.body,u);return f&&g&&(a.hasNodeCheckFlag(o,256)?$w(h,UD):a.hasNodeCheckFlag(o,128)&&$w(h,qD)),m=l,g=_,h}function G(e){r();let n=0;const o=[],a=yJ(e.body,C,Z_)??t.createBlock([]);KF(a)&&(n=t.copyPrologue(a.statements,o,!1,C)),ae(o,X(void 0,e));const s=i();if(n>0||V(o)||V(s)){const e=t.converters.convertToFunctionBlock(a,!0);return Ld(o,s),ae(o,e.statements.slice(n)),t.updateBlock(e,NI(t.createNodeArray(o),e.statements))}return a}function X(n,r){let i=!1;for(const o of r.parameters)if(i){if(S_(o.name)){if(o.name.elements.length>0){const r=Lz(o,C,e,0,t.getGeneratedNameForNode(o));if(V(r)){const e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);Cw(i,2097152),n=re(n,i)}}else if(o.initializer){const e=t.getGeneratedNameForNode(o),r=yJ(o.initializer,C,W_),i=t.createAssignment(e,r),a=t.createExpressionStatement(i);Cw(a,2097152),n=re(n,a)}}else if(o.initializer){const e=t.cloneNode(o.name);NI(e,o.name),Cw(e,96);const r=yJ(o.initializer,C,W_);ww(r,3168);const i=t.createAssignment(e,r);NI(i,o),Cw(i,3072);const a=t.createBlock([t.createExpressionStatement(i)]);NI(a,o),Cw(a,3905);const s=t.createTypeCheck(t.cloneNode(o.name),"undefined"),c=t.createIfStatement(s,a);IA(c),NI(c,o),Cw(c,2101056),n=re(n,c)}}else if(65536&o.transformFlags){i=!0;const r=Lz(o,C,e,1,t.getGeneratedNameForNode(o),!1,!0);if(V(r)){const e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);Cw(i,2097152),n=re(n,i)}}return n}function Q(e){return 108===e.expression.kind?NI(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function Y(e){return 108===e.expression.kind?(n=e.argumentExpression,r=e,NI(256&v?t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[n]),"value"):t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[n]),r)):e;var n,r}}function dq(e){const t=e.factory;return ZJ(e,(function(t){if(t.isDeclarationFile)return t;return NJ(t,n,e)}));function n(r){return 64&r.transformFlags?300===r.kind?function(r){if(!r.variableDeclaration)return t.updateCatchClause(r,t.createVariableDeclaration(t.createTempVariable(void 0)),yJ(r.block,n,KF));return NJ(r,n,e)}(r):NJ(r,n,e):r}}function pq(e){const{factory:t,hoistVariableDeclaration:n}=e;return ZJ(e,(function(t){if(t.isDeclarationFile)return t;return NJ(t,r,e)}));function r(i){if(!(32&i.transformFlags))return i;switch(i.kind){case 214:{const e=o(i,!1);return _n.assertNotNode(e,UE),e}case 212:case 213:if(yl(i)){const e=s(i,!1,!1);return _n.assertNotNode(e,UE),e}return NJ(i,r,e);case 227:return 61===i.operatorToken.kind?function(e){let i=yJ(e.left,r,W_),o=i;cz(i)||(o=t.createTempVariable(n),i=t.createAssignment(o,i));return NI(t.createConditionalExpression(c(i,o),void 0,o,void 0,yJ(e.right,r,W_)),e)}(i):NJ(i,r,e);case 221:return function(e){return yl(sh(e.expression))?xw(a(e.expression,!1,!0),e):t.updateDeleteExpression(e,yJ(e.expression,r,W_))}(i);default:return NJ(i,r,e)}}function i(e,n,r){const i=a(e.expression,n,r);return UE(i)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(e,i.expression),i.thisArg):t.updateParenthesizedExpression(e,i)}function o(n,o){if(yl(n))return s(n,o,!1);if(kF(n.expression)&&yl(sh(n.expression))){const e=i(n.expression,!0,!1),o=vJ(n.arguments,r,W_);return UE(e)?NI(t.createFunctionCallCall(e.expression,e.thisArg,o),n):t.updateCallExpression(n,e,void 0,o)}return NJ(n,r,e)}function a(e,a,c){switch(e.kind){case 218:return i(e,a,c);case 212:case 213:return function(e,i,o){if(yl(e))return s(e,i,o);let a,c=yJ(e.expression,r,W_);return _n.assertNotNode(c,UE),i&&(cz(c)?a=c:(a=t.createTempVariable(n),c=t.createAssignment(a,c))),c=212===e.kind?t.updatePropertyAccessExpression(e,c,yJ(e.name,r,_N)):t.updateElementAccessExpression(e,c,yJ(e.argumentExpression,r,W_)),a?t.createSyntheticReferenceExpression(c,a):c}(e,a,c);case 214:return o(e,a);default:return yJ(e,r,W_)}}function s(e,i,o){const{expression:s,chain:l}=function(e){_n.assertNotNode(e,Cl);const t=[e];for(;!e.questionDotToken&&!bF(e);)e=tt(Tl(e.expression),yl),_n.assertNotNode(e,Cl),t.unshift(e);return{expression:e.expression,chain:t}}(e),_=a(Tl(s),hl(l[0]),!1);let u=UE(_)?_.thisArg:void 0,d=UE(_)?_.expression:_,p=t.restoreOuterExpressions(s,d,8);cz(d)||(d=t.createTempVariable(n),p=t.createAssignment(d,p));let f,m=d;for(let e=0;ee&&ae(c,vJ(n.statements,_,fu,e,d-e));break}d++}_n.assert(dt&&(t=e)}return t}function xq(e){const{factory:t,getEmitHelperFactory:n}=e,r=e.getCompilerOptions();let i,o;return ZJ(e,(function(n){if(n.isDeclarationFile)return n;i=n,o={},o.importSpecifier=Xk(r,n);let a=NJ(n,u,e);Hw(a,e.readEmitHelpers());let s=a.statements;o.filenameDeclaration&&(s=Md(s.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([o.filenameDeclaration],2))));if(o.utilizedImplicitRuntimeImports)for(const[e,r]of Ie(o.utilizedImplicitRuntimeImports.entries()))if(_O(n)){const n=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamedImports(Ie(r.values()))),t.createStringLiteral(e),void 0);PT(n,!1),s=Md(s.slice(),n)}else if(Zp(n)){const n=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Ie(r.values(),(e=>t.createBindingElement(void 0,e.propertyName,e.name)))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(e)]))],2));PT(n,!1),s=Md(s.slice(),n)}s!==a.statements&&(a=t.updateSourceFile(a,s));return o=void 0,a}));function a(){if(o.filenameDeclaration)return o.filenameDeclaration.name;const e=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(i.fileName));return o.filenameDeclaration=e,o.filenameDeclaration.name}function c(e){const t=function(e){return 5===r.jsx?"jsxDEV":e?"jsxs":"jsx"}(e);return _(t)}function _(e){var n,i;const a="createElement"===e?o.importSpecifier:Qk(o.importSpecifier,r),s=null==(i=null==(n=o.utilizedImplicitRuntimeImports)?void 0:n.get(a))?void 0:i.get(e);if(s)return s.name;o.utilizedImplicitRuntimeImports||(o.utilizedImplicitRuntimeImports=new Map);let c=o.utilizedImplicitRuntimeImports.get(a);c||(c=new Map,o.utilizedImplicitRuntimeImports.set(a,c));const l=t.createUniqueName(`_${e}`,112),_=t.createImportSpecifier(!1,t.createIdentifier(e),l);return aD(l,_),c.set(e,_),l}function u(t){return 2&t.transformFlags?function(t){switch(t.kind){case 285:return m(t,!1);case 286:return g(t,!1);case 289:return h(t,!1);case 295:return L(t);default:return NJ(t,u,e)}}(t):t}function d(e){switch(e.kind){case 12:return function(e){const n=function(e){let t,n=0,r=-1;for(let i=0;isP(e)&&(_N(e.name)&&"__proto__"===hc(e.name)||HD(e.name)&&"__proto__"===e.name.text)))}function f(e){return void 0===o.importSpecifier||function(e){let t=!1;for(const n of e.attributes.properties)if(!eP(n)||mF(n.expression)&&!n.expression.properties.some(lP)){if(t&&YE(n)&&_N(n.name)&&"key"===n.name.escapedText)return!0}else t=!0;return!1}(e)}function m(e,t){return(f(e.openingElement)?k:b)(e.openingElement,e.children,t,Ob(Ya(i.text,e.pos),e.end))}function g(e,t){return(f(e)?k:b)(e,void 0,t,Ob(Ya(i.text,e.pos),e.end))}function h(e,t){return(void 0===o.importSpecifier?T:S)(e.openingFragment,e.children,t,Ob(Ya(i.text,e.pos),e.end))}function v(e){const n=_y(e);if(1===l(n)&&!n[0].dotDotDotToken){const e=d(n[0]);return e&&t.createPropertyAssignment("children",e)}const r=R(e,d);return l(r)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(r)):void 0}function b(e,n,r,i){const o=O(e),a=n&&n.length?v(n):void 0,c=y(e.attributes.properties,(e=>!!e.name&&_N(e.name)&&"key"===e.name.escapedText)),_=c?C(e.attributes.properties,(e=>e!==c)):e.attributes.properties;return x(o,l(_)?w(_,a):t.createObjectLiteralExpression(a?[a]:s),c,n||s,r,i)}function x(e,n,o,s,_,u){var d;const p=_y(s),f=l(p)>1||!!(null==(d=p[0])?void 0:d.dotDotDotToken),m=[e,n];if(o&&m.push(F(o.initializer)),5===r.jsx){const e=uc(i);if(e&&uP(e)){void 0===o&&m.push(t.createVoidZero()),m.push(f?t.createTrue():t.createFalse());const n=qa(e,u.pos);m.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",a()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(n.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(n.character+1))])),m.push(t.createThis())}}const g=NI(t.createCallExpression(c(f),void 0,m),u);return _&&IA(g),g}function k(n,a,s,c){const u=O(n),p=n.attributes.properties,f=l(p)?w(p):t.createNull(),m=void 0===o.importSpecifier?dA(t,e.getEmitResolver().getJsxFactoryEntity(i),r.reactNamespace,n):_("createElement"),g=pA(t,m,u,f,R(a,d),c);return s&&IA(g),g}function S(e,n,r,i){let o;if(n&&n.length){const e=function(e){const n=v(e);return n&&t.createObjectLiteralExpression([n])}(n);e&&(o=e)}return x(_("Fragment"),o||t.createObjectLiteralExpression([]),void 0,n,r,i)}function T(n,o,a,s){const c=fA(t,e.getEmitResolver().getJsxFactoryEntity(i),e.getEmitResolver().getJsxFragmentFactoryEntity(i),r.reactNamespace,R(o,d),n,s);return a&&IA(c),c}function w(e,i){const o=xk(r);return o&&o>=5?t.createObjectLiteralExpression(function(e,n){const r=P(q(e,eP,((e,n)=>P(N(e,(e=>{return n?mF((r=e).expression)&&!p(r.expression)?E(r.expression.properties,(e=>_n.checkDefined(yJ(e,u,b_)))):t.createSpreadAssignment(_n.checkDefined(yJ(r.expression,u,W_))):D(e);var r}))))));n&&r.push(n);return r}(e,i)):function(e,r){const i=[];let o=[];for(const t of e)if(eP(t)){if(mF(t.expression)&&!p(t.expression)){for(const e of t.expression.properties)lP(e)?(a(),i.push(_n.checkDefined(yJ(e.expression,u,W_)))):o.push(_n.checkDefined(yJ(e,u)));continue}a(),i.push(_n.checkDefined(yJ(t.expression,u,W_)))}else o.push(D(t));r&&o.push(r);a(),i.length&&!mF(i[0])&&i.unshift(t.createObjectLiteralExpression());return ve(i)||n().createAssignHelper(i);function a(){o.length&&(i.push(t.createObjectLiteralExpression(o)),o=[])}}(e,i)}function D(e){const n=function(e){const n=e.name;if(_N(n)){const e=hc(n);return/^[A-Z_]\w*$/i.test(e)?n:t.createStringLiteral(e)}return t.createStringLiteral(hc(n.namespace)+":"+hc(n.name))}(e),r=F(e.initializer);return t.createPropertyAssignment(n,r)}function F(e){if(void 0===e)return t.createTrue();if(11===e.kind){const n=void 0!==e.singleQuote?e.singleQuote:!Um(e,i);return NI(t.createStringLiteral(function(e){const t=I(e);return t===e?void 0:t}(e.text)||e.text,n),e)}return 295===e.kind?void 0===e.expression?t.createTrue():_n.checkDefined(yJ(e.expression,u,W_)):WE(e)?m(e,!1):$E(e)?g(e,!1):GE(e)?h(e,!1):_n.failBadSyntaxKind(e)}function A(e,t){const n=I(t);return void 0===e?n:e+" "+n}function I(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,((e,t,n,r,i,o,a)=>{if(i)return xs(parseInt(i,10));if(o)return xs(parseInt(o,16));{const t=kq.get(a);return t?xs(t):e}}))}function O(e){if(285===e.kind)return O(e.openingElement);{const n=e.tagName;return _N(n)&&Py(n.escapedText)?t.createStringLiteral(hc(n)):nP(n)?t.createStringLiteral(hc(n.namespace)+":"+hc(n.name)):gA(t,n)}}function L(e){const n=yJ(e.expression,u,W_);return e.dotDotDotToken?t.createSpreadElement(n):n}}var kq=new Map(Object.entries({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}));function Sq(e){const{factory:t,hoistVariableDeclaration:n}=e;return ZJ(e,(function(t){if(t.isDeclarationFile)return t;return NJ(t,r,e)}));function r(i){return 512&i.transformFlags?227===i.kind?function(i){switch(i.operatorToken.kind){case 68:return function(e){let i,o;const a=yJ(e.left,r,W_),s=yJ(e.right,r,W_);if(hF(a)){const e=t.createTempVariable(n),r=t.createTempVariable(n);i=NI(t.createElementAccessExpression(NI(t.createAssignment(e,a.expression),a.expression),NI(t.createAssignment(r,a.argumentExpression),a.argumentExpression)),a),o=NI(t.createElementAccessExpression(e,r),a)}else if(gF(a)){const e=t.createTempVariable(n);i=NI(t.createPropertyAccessExpression(NI(t.createAssignment(e,a.expression),a.expression),a.name),a),o=NI(t.createPropertyAccessExpression(e,a.name),a)}else i=a,o=a;return NI(t.createAssignment(i,NI(t.createGlobalMethodCall("Math","pow",[o,s]),e)),e)}(i);case 43:return function(e){const n=yJ(e.left,r,W_),i=yJ(e.right,r,W_);return NI(t.createGlobalMethodCall("Math","pow",[n,i]),e)}(i);default:return NJ(i,r,e)}}(i):NJ(i,r,e):i}}function Tq(e,t){return{kind:e,expression:t}}function Cq(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:a}=e,s=e.getCompilerOptions(),c=e.getEmitResolver(),l=e.onSubstituteNode,_=e.onEmitNode;let u,d,p,f,m;function g(e){f=re(f,t.createVariableDeclaration(e))}e.onEmitNode=function(e,t,n){if(1&y&&i_(t)){const r=v(32670,16&Zd(t)?81:65);return _(e,t,n),void b(r,0,0)}_(e,t,n)},e.onSubstituteNode=function(e,n){if(n=l(e,n),1===e)return function(e){switch(e.kind){case 80:return function(e){if(2&y&&!bA(e)){const n=c.getReferencedDeclarationWithCollidingName(e);if(n&&(!d_(n)||!function(e,t){let n=fc(t);if(!n||n===e||n.end<=e.pos||n.pos>=e.end)return!1;const r=Ep(e);for(;n;){if(n===r||n===e)return!1;if(u_(n)&&n.parent===e)return!0;n=n.parent}return!1}(n,e)))return NI(t.getGeneratedNameForNode(wc(n)),e)}return e}(e);case 110:return function(e){if(1&y&&16&p)return NI(A(),e);return e}(e)}return e}(n);if(_N(n))return function(e){if(2&y&&!bA(e)){const n=fc(e,_N);if(n&&function(e){switch(e.parent.kind){case 209:case 264:case 267:case 261:return e.parent.name===e&&c.isDeclarationWithCollidingName(e.parent)}return!1}(n))return NI(t.getGeneratedNameForNode(n),e)}return e}(n);return n};let y=0;return ZJ(e,(function(n){if(n.isDeclarationFile)return n;u=n,d=n.text;const i=function(e){const n=v(8064,64),i=[],a=[];r();const s=t.copyPrologue(e.statements,i,!1,S);ae(a,vJ(e.statements,S,fu,s)),f&&a.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(f)));return t.mergeLexicalEnvironment(i,o()),ce(i,e),b(n,0,0),t.updateSourceFile(e,NI(t.createNodeArray($(i,a)),e.statements))}(n);return Hw(i,e.readEmitHelpers()),u=void 0,d=void 0,f=void 0,p=0,i}));function v(e,t){const n=p;return p=32767&(p&~e|t),n}function b(e,t,n){p=-32768&(p&~t|n)|e}function x(e){return!!(8192&p)&&254===e.kind&&!e.expression}function k(e){return!!(1024&e.transformFlags)||void 0!==m||8192&p&&function(e){return 4194304&e.transformFlags&&(aE(e)||YF(e)||sE(e)||cE(e)||kE(e)||rP(e)||iP(e)||uE(e)||aP(e)||lE(e)||H_(e,!1)||KF(e))}(e)||H_(e,!1)&&qe(e)||!!(1&ep(e))}function S(e){return k(e)?F(e,!1):e}function T(e){return k(e)?F(e,!0):e}function w(e){if(k(e)){const t=uc(e);if(PN(t)&&Pv(t)){const t=v(32670,16449),n=F(e,!1);return b(t,229376,0),n}return F(e,!1)}return e}function D(e){return 108===e.kind?lt(e,!0):S(e)}function F(n,r){switch(n.kind){case 126:return;case 264:return function(e){const n=t.createVariableDeclaration(t.getLocalName(e,!0),void 0,void 0,O(e));xw(n,e);const r=[],i=t.createVariableStatement(void 0,t.createVariableDeclarationList([n]));if(xw(i,e),NI(i,e),IA(i),r.push(i),Fv(e,32)){const n=Fv(e,2048)?t.createExportDefault(t.getLocalName(e)):t.createExternalModuleExport(t.getLocalName(e));xw(n,i),r.push(n)}return xe(r)}(n);case 232:return function(e){return O(e)}(n);case 170:return function(e){return e.dotDotDotToken?void 0:S_(e.name)?xw(NI(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e),void 0,void 0,void 0),e),e):e.initializer?xw(NI(t.createParameterDeclaration(void 0,void 0,e.name,void 0,void 0,void 0),e),e):e}(n);case 263:return function(n){const r=m;m=void 0;const i=v(32670,65),o=SJ(n.parameters,S,e),a=Se(n),s=32768&p?t.getLocalName(n):n.name;return b(i,229376,0),m=r,t.updateFunctionDeclaration(n,vJ(n.modifiers,S,e_),n.asteriskToken,s,void 0,o,void 0,a)}(n);case 220:return function(n){16384&n.transformFlags&&!(16384&p)&&(p|=131072);const r=m;m=void 0;const i=v(15232,66),o=t.createFunctionExpression(void 0,void 0,void 0,void 0,SJ(n.parameters,S,e),void 0,Se(n));return NI(o,n),xw(o,n),Cw(o,16),b(i,0,0),m=r,o}(n);case 219:return function(n){const r=524288&Zd(n)?v(32662,69):v(32670,65),i=m;m=void 0;const o=SJ(n.parameters,S,e),a=Se(n),s=32768&p?t.getLocalName(n):n.name;return b(r,229376,0),m=i,t.updateFunctionExpression(n,void 0,n.asteriskToken,s,void 0,o,void 0,a)}(n);case 261:return we(n);case 80:return I(n);case 262:return function(n){if(7&n.flags||524288&n.transformFlags){7&n.flags&&_t();const e=vJ(n.declarations,1&n.flags?Ce:we,pE),r=t.createVariableDeclarationList(e);return xw(r,n),NI(r,n),jw(r,n),524288&n.transformFlags&&(S_(n.declarations[0].name)||S_(ye(n.declarations).name))&&Ew(r,function(e){let t=-1,n=-1;for(const r of e)t=-1===t?r.pos:-1===r.pos?t:Math.min(t,r.pos),n=Math.max(n,r.end);return Ob(t,n)}(e)),r}return NJ(n,S,e)}(n);case 256:return function(t){if(void 0!==m){const n=m.allowedNonLabeledJumps;m.allowedNonLabeledJumps|=2;const r=NJ(t,S,e);return m.allowedNonLabeledJumps=n,r}return NJ(t,S,e)}(n);case 270:return function(t){const n=v(7104,0),r=NJ(t,S,e);return b(n,0,0),r}(n);case 242:return function(t,n){if(n)return NJ(t,S,e);const r=256&p?v(7104,512):v(6976,128),i=NJ(t,S,e);return b(r,0,0),i}(n,!1);case 253:case 252:return function(n){if(m){const e=253===n.kind?2:4;if(!(n.label&&m.labels&&m.labels.get(hc(n.label))||!n.label&&m.allowedNonLabeledJumps&e)){let e;const r=n.label;r?253===n.kind?(e=`break-${r.escapedText}`,Ge(m,!0,hc(r),e)):(e=`continue-${r.escapedText}`,Ge(m,!1,hc(r),e)):253===n.kind?(m.nonLocalJumps|=2,e="break"):(m.nonLocalJumps|=4,e="continue");let i=t.createStringLiteral(e);if(m.loopOutParameters.length){const e=m.loopOutParameters;let n;for(let r=0;rGF(e)&&!!me(e.declarationList.declarations).initializer,i=m;m=void 0;const o=vJ(n.statements,w,fu);m=i;const a=C(o,r),s=C(o,(e=>!r(e))),c=tt(me(a),GF).declarationList.declarations[0],l=PA(c.initializer);let _=et(l,ob);!_&&PF(l)&&28===l.operatorToken.kind&&(_=et(l.left,ob));const u=tt(_?PA(_.right):l,yF),d=tt(PA(u.expression),SF),p=d.body.statements;let f=0,g=-1;const h=[];if(_){const e=et(p[f],QF);e&&(h.push(e),f++),h.push(p[f]),f++,h.push(t.createExpressionStatement(t.createAssignment(_.left,tt(c.name,_N))))}for(;!aE(de(p,g));)g--;ae(h,p,f,g),g<-1&&ae(h,p,g+1);const y=et(de(p,g),aE);for(const e of s)aE(e)&&(null==y?void 0:y.expression)&&!_N(y.expression)?h.push(y):h.push(e);return ae(h,a,1),t.restoreOuterExpressions(e.expression,t.restoreOuterExpressions(c.initializer,t.restoreOuterExpressions(_&&_.right,t.updateCallExpression(u,t.restoreOuterExpressions(u.expression,t.updateFunctionExpression(d,void 0,void 0,void 0,void 0,d.parameters,void 0,t.updateBlock(d.body,h))),void 0,u.arguments))))}(n);const r=PA(n.expression);if(108===r.kind||am(r)||V(n.arguments,LF))return function(n,r){if(32768&n.transformFlags||108===n.expression.kind||am(PA(n.expression))){const{target:e,thisArg:i}=t.createCallBinding(n.expression,a);let o;if(108===n.expression.kind&&Cw(i,8),o=32768&n.transformFlags?t.createFunctionApplyCall(_n.checkDefined(yJ(e,D,W_)),108===n.expression.kind?i:_n.checkDefined(yJ(i,S,W_)),rt(n.arguments,!0,!1,!1)):NI(t.createFunctionCallCall(_n.checkDefined(yJ(e,D,W_)),108===n.expression.kind?i:_n.checkDefined(yJ(i,S,W_)),vJ(n.arguments,S,W_)),n),108===n.expression.kind){const e=t.createLogicalOr(o,Z());o=r?t.createAssignment(A(),e):e}return xw(o,n)}lf(n)&&(p|=131072);return NJ(n,S,e)}(n,!0);return t.updateCallExpression(n,_n.checkDefined(yJ(n.expression,D,W_)),void 0,vJ(n.arguments,S,W_))}(n);case 215:return function(n){if(V(n.arguments,LF)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),a);return t.createNewExpression(t.createFunctionApplyCall(_n.checkDefined(yJ(e,S,W_)),r,rt(t.createNodeArray([t.createVoidZero(),...n.arguments]),!0,!1,!1)),void 0,[])}return NJ(n,S,e)}(n);case 218:return function(t,n){return NJ(t,n?T:S,e)}(n,r);case 227:return Te(n,r);case 357:return function(n,r){if(r)return NJ(n,T,e);let i;for(let e=0;e0&&e.push(t.createStringLiteral(r.literal.text)),n=t.createCallExpression(t.createPropertyAccessExpression(n,"concat"),void 0,e)}return NI(n,e)}(n);case 231:return function(e){return yJ(e.expression,S,W_)}(n);case 108:return lt(n,!1);case 110:return function(e){p|=65536,2&p&&!(16384&p)&&(p|=131072);if(m)return 2&p?(m.containsLexicalThis=!0,e):m.thisName||(m.thisName=t.createUniqueName("this"));return e}(n);case 237:return function(e){if(105===e.keywordToken&&"target"===e.name.escapedText)return p|=32768,t.createUniqueName("_newTarget",48);return e}(n);case 175:return function(e){_n.assert(!wN(e.name));const n=ke(e,jb(e,-1),void 0,void 0);return Cw(n,1024|Zd(n)),NI(t.createPropertyAssignment(e.name,n),e)}(n);case 178:case 179:return function(n){_n.assert(!wN(n.name));const r=m;m=void 0;const i=v(32670,65);let o;const a=SJ(n.parameters,S,e),s=Se(n);o=178===n.kind?t.updateGetAccessorDeclaration(n,n.modifiers,n.name,a,n.type,s):t.updateSetAccessorDeclaration(n,n.modifiers,n.name,a,s);return b(i,229376,0),m=r,o}(n);case 244:return function(n){const r=v(0,Fv(n,32)?32:0);let i;if(!m||7&n.declarationList.flags||function(e){return 1===e.declarationList.declarations.length&&!!e.declarationList.declarations[0].initializer&&!!(1&ep(e.declarationList.declarations[0].initializer))}(n))i=NJ(n,S,e);else{let r;for(const i of n.declarationList.declarations)if(Ve(m,i),i.initializer){let n;S_(i.name)?n=Az(i,S,e,0):(n=t.createBinaryExpression(i.name,64,_n.checkDefined(yJ(i.initializer,S,W_))),NI(n,i)),r=re(r,n)}i=r?NI(t.createExpressionStatement(t.inlineExpressions(r)),n):void 0}return b(r,0,0),i}(n);case 254:return function(n){if(m)return m.nonLocalJumps|=8,x(n)&&(n=E(n)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),n.expression?_n.checkDefined(yJ(n.expression,S,W_)):t.createVoidZero())]));if(x(n))return E(n);return NJ(n,S,e)}(n);default:return NJ(n,S,e)}}function E(e){return xw(t.createReturnStatement(A()),e)}function A(){return t.createUniqueName("_this",48)}function I(e){return m&&c.isArgumentsLocalBinding(e)?m.argumentsName||(m.argumentsName=t.createUniqueName("arguments")):256&e.flags?xw(NI(t.createIdentifier(gc(e.escapedText)),e),e):e}function O(a){a.name&&_t();const s=bh(a),c=t.createFunctionExpression(void 0,void 0,void 0,void 0,s?[t.createParameterDeclaration(void 0,void 0,ct())]:[],void 0,function(a,s){const c=[],l=t.getInternalName(a),_=Ah(l)?t.getGeneratedNameForNode(l):l;r(),function(e,r,i){i&&e.push(NI(t.createExpressionStatement(n().createExtendsHelper(t.getInternalName(r))),i))}(c,a,s),function(n,r,a,s){const c=m;m=void 0;const l=v(32662,73),_=ov(r),u=function(e,t){if(!e||!t)return!1;if(V(e.parameters))return!1;const n=pe(e.body.statements);if(!n||!ty(n)||245!==n.kind)return!1;const r=n.expression;if(!ty(r)||214!==r.kind)return!1;const i=r.expression;if(!ty(i)||108!==i.kind)return!1;const o=ve(r.arguments);if(!o||!ty(o)||231!==o.kind)return!1;const a=o.expression;return _N(a)&&"arguments"===a.escapedText}(_,void 0!==s),d=t.createFunctionDeclaration(void 0,void 0,a,void 0,function(t,n){return SJ(t&&!n?t.parameters:void 0,S,e)||[]}(_,u),void 0,function(e,n,r,a){const s=!!r&&106!==PA(r.expression).kind;if(!e)return function(e,n){const r=[];i(),t.mergeLexicalEnvironment(r,o()),n&&r.push(t.createReturnStatement(t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(ct(),t.createNull()),t.createFunctionApplyCall(ct(),Z(),t.createIdentifier("arguments"))),Z())));const a=t.createNodeArray(r);NI(a,e.members);const s=t.createBlock(a,!0);return NI(s,e),Cw(s,3072),s}(n,s);const c=[],l=[];i();const _=t.copyStandardPrologue(e.body.statements,c,0);(a||j(e.body))&&(p|=8192);ae(l,vJ(e.body.statements,S,fu,_));const u=s||8192&p;ne(c,e),se(c,e,a),_e(c,e),u?le(c,e,Z()):ce(c,e);t.mergeLexicalEnvironment(c,o()),u&&!Y(e.body)&&l.push(t.createReturnStatement(A()));const d=t.createBlock(NI(t.createNodeArray([...c,...l]),e.body.statements),!0);return NI(d,e.body),function(e,n,r){const i=e;e=function(e){for(let n=0;n0;n--){const i=e.statements[n];if(aE(i)&&i.expression&&R(i.expression)){const i=e.statements[n-1];let o;if(QF(i)&&K(PA(i.expression)))o=i.expression;else if(r&&B(i)){const e=i.declarationList.declarations[0];G(PA(e.initializer))&&(o=t.createAssignment(A(),e.initializer))}if(!o)break;const a=t.createReturnStatement(o);xw(a,i),NI(a,i);const s=t.createNodeArray([...e.statements.slice(0,n-1),a,...e.statements.slice(n+1)]);return NI(s,e.statements),t.updateBlock(e,s)}}return e}(e,n),e!==i&&(e=function(e,n){if(16384&n.transformFlags||65536&p||131072&p)return e;for(const t of n.statements)if(134217728&t.transformFlags&&!dz(t))return e;return t.updateBlock(e,vJ(e.statements,X,fu))}(e,n));r&&(e=function(e){return t.updateBlock(e,vJ(e.statements,Q,fu))}(e));return e}(d,e.body,a)}(_,r,s,u));NI(d,_||r),s&&Cw(d,16);n.push(d),b(l,229376,0),m=c}(c,a,_,s),function(e,t){for(const n of t.members)switch(n.kind){case 241:e.push(ue(n));break;case 175:e.push(fe(ut(t,n),n,t));break;case 178:case 179:const r=fv(t.members,n);n===r.firstAccessor&&e.push(ge(ut(t,n),r,t));break;case 177:case 176:break;default:_n.failBadSyntaxKind(n,u&&u.fileName)}}(c,a);const f=Bb(Ya(d,a.members.end),20),g=t.createPartiallyEmittedExpression(_);wT(g,f.end),Cw(g,3072);const h=t.createReturnStatement(g);CT(h,f.pos),Cw(h,3840),c.push(h),Ld(c,o());const y=t.createBlock(NI(t.createNodeArray(c),a.members),!0);return Cw(y,3072),y}(a,s));Cw(c,131072&Zd(a)|1048576);const l=t.createPartiallyEmittedExpression(c);wT(l,a.end),Cw(l,3072);const _=t.createPartiallyEmittedExpression(l);wT(_,Ya(d,a.pos)),Cw(_,3072);const f=t.createParenthesizedExpression(t.createCallExpression(_,void 0,s?[_n.checkDefined(yJ(s.expression,S,W_))]:[]));return Bw(f,3,"* @class "),f}function L(e){return GF(e)&&h(e.declarationList.declarations,(e=>_N(e.name)&&!e.initializer))}function j(e){if(lf(e))return!0;if(!(134217728&e.transformFlags))return!1;switch(e.kind){case 220:case 219:case 263:case 177:case 176:return!1;case 178:case 179:case 175:case 173:{const t=e;return!!wN(t.name)&&!!rO(t.name,j)}}return!!rO(e,j)}function R(e){return $l(e)&&"_this"===hc(e)}function M(e){return $l(e)&&"_super"===hc(e)}function B(e){return GF(e)&&1===e.declarationList.declarations.length&&function(e){return pE(e)&&R(e.name)&&!!e.initializer}(e.declarationList.declarations[0])}function J(e){return ob(e,!0)&&R(e.left)}function z(e){return yF(e)&&gF(e.expression)&&M(e.expression.expression)&&_N(e.expression.name)&&("call"===hc(e.expression.name)||"apply"===hc(e.expression.name))&&e.arguments.length>=1&&110===e.arguments[0].kind}function U(e){return PF(e)&&57===e.operatorToken.kind&&110===e.right.kind&&z(e.left)}function W(e){return PF(e)&&56===e.operatorToken.kind&&PF(e.left)&&38===e.left.operatorToken.kind&&M(e.left.left)&&106===e.left.right.kind&&z(e.right)&&"apply"===hc(e.right.expression.name)}function H(e){return PF(e)&&57===e.operatorToken.kind&&110===e.right.kind&&W(e.left)}function K(e){return J(e)&&U(e.right)}function G(e){return z(e)||U(e)||K(e)||W(e)||H(e)||function(e){return J(e)&&H(e.right)}(e)}function X(e){if(B(e)){if(110===e.declarationList.declarations[0].initializer.kind)return}else if(J(e))return t.createPartiallyEmittedExpression(e.right,e);switch(e.kind){case 220:case 219:case 263:case 177:case 176:return e;case 178:case 179:case 175:case 173:{const n=e;return wN(n.name)?t.replacePropertyName(n,NJ(n.name,X,void 0)):e}}return NJ(e,X,void 0)}function Q(e){if(z(e)&&2===e.arguments.length&&_N(e.arguments[1])&&"arguments"===hc(e.arguments[1]))return t.createLogicalAnd(t.createStrictInequality(ct(),t.createNull()),e);switch(e.kind){case 220:case 219:case 263:case 177:case 176:return e;case 178:case 179:case 175:case 173:{const n=e;return wN(n.name)?t.replacePropertyName(n,NJ(n.name,Q,void 0)):e}}return NJ(e,Q,void 0)}function Y(e){if(254===e.kind)return!0;if(246===e.kind){const t=e;if(t.elseStatement)return Y(t.thenStatement)&&Y(t.elseStatement)}else if(242===e.kind){const t=he(e.statements);if(t&&Y(t))return!0}return!1}function Z(){return Cw(t.createThis(),8)}function te(e){return void 0!==e.initializer||S_(e.name)}function ne(e,t){if(!V(t.parameters,te))return!1;let n=!1;for(const r of t.parameters){const{name:t,initializer:i,dotDotDotToken:o}=r;o||(S_(t)?n=ie(e,r,t,i)||n:i&&(oe(e,r,t,i),n=!0))}return n}function ie(n,r,i,o){return i.elements.length>0?(Md(n,Cw(t.createVariableStatement(void 0,t.createVariableDeclarationList(Lz(r,S,e,0,t.getGeneratedNameForNode(r)))),2097152)),!0):!!o&&(Md(n,Cw(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(r),_n.checkDefined(yJ(o,S,W_)))),2097152)),!0)}function oe(e,n,r,i){i=_n.checkDefined(yJ(i,S,W_));const o=t.createIfStatement(t.createTypeCheck(t.cloneNode(r),"undefined"),Cw(NI(t.createBlock([t.createExpressionStatement(Cw(NI(t.createAssignment(Cw(ET(NI(t.cloneNode(r),r),r.parent),96),Cw(i,3168|Zd(i))),n),3072))]),n),3905));IA(o),NI(o,n),Cw(o,2101056),Md(e,o)}function se(n,r,i){const o=[],a=he(r.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(a,i))return!1;const s=80===a.name.kind?ET(NI(t.cloneNode(a.name),a.name),a.name.parent):t.createTempVariable(void 0);Cw(s,96);const c=80===a.name.kind?t.cloneNode(a.name):s,l=r.parameters.length-1,_=t.createLoopVariable();o.push(Cw(NI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(s,void 0,void 0,t.createArrayLiteralExpression([]))])),a),2097152));const u=t.createForStatement(NI(t.createVariableDeclarationList([t.createVariableDeclaration(_,void 0,void 0,t.createNumericLiteral(l))]),a),NI(t.createLessThan(_,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),a),NI(t.createPostfixIncrement(_),a),t.createBlock([IA(NI(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(c,0===l?_:t.createSubtract(_,t.createNumericLiteral(l))),t.createElementAccessExpression(t.createIdentifier("arguments"),_))),a))]));return Cw(u,2097152),IA(u),o.push(u),80!==a.name.kind&&o.push(Cw(NI(t.createVariableStatement(void 0,t.createVariableDeclarationList(Lz(a,S,e,0,c))),a),2097152)),jd(n,o),!0}function ce(e,n){return!!(131072&p&&220!==n.kind)&&(le(e,n,t.createThis()),!0)}function le(n,r,i){1&y||(y|=1,e.enableSubstitution(110),e.enableEmitNotification(177),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(220),e.enableEmitNotification(219),e.enableEmitNotification(263));const o=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(A(),void 0,void 0,i)]));Cw(o,2100224),Ew(o,r),Md(n,o)}function _e(e,n){if(32768&p){let r;switch(n.kind){case 220:return e;case 175:case 178:case 179:r=t.createVoidZero();break;case 177:r=t.createPropertyAccessExpression(Cw(t.createThis(),8),"constructor");break;case 263:case 219:r=t.createConditionalExpression(t.createLogicalAnd(Cw(t.createThis(),8),t.createBinaryExpression(Cw(t.createThis(),8),104,t.getLocalName(n))),void 0,t.createPropertyAccessExpression(Cw(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return _n.failBadSyntaxKind(n)}const i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,r)]));Cw(i,2100224),Md(e,i)}return e}function ue(e){return NI(t.createEmptyStatement(),e)}function fe(n,r,i){const o=Lw(r),a=Fw(r),s=ke(r,r,void 0,i),c=yJ(r.name,S,n_);let l;if(_n.assert(c),!uN(c)&&jk(e.getCompilerOptions())){const e=wN(c)?c.expression:_N(c)?t.createStringLiteral(gc(c.escapedText)):c;l=t.createObjectDefinePropertyCall(n,e,t.createPropertyDescriptor({value:s,enumerable:!1,writable:!0,configurable:!0}))}else{const e=lA(t,n,c,r.name);l=t.createAssignment(e,s)}Cw(s,3072),Ew(s,a);const _=NI(t.createExpressionStatement(l),r);return xw(_,r),jw(_,o),Cw(_,96),_}function ge(e,n,r){const i=t.createExpressionStatement(be(e,n,r,!1));return Cw(i,3072),Ew(i,Fw(n.firstAccessor)),i}function be(e,{firstAccessor:n,getAccessor:r,setAccessor:i},o,a){const s=ET(NI(t.cloneNode(e),e),e.parent);Cw(s,3136),Ew(s,n.name);const c=yJ(n.name,S,n_);if(_n.assert(c),uN(c))return _n.failBadSyntaxKind(c,"Encountered unhandled private identifier while transforming ES2015.");const l=hA(t,c);Cw(l,3104),Ew(l,n.name);const _=[];if(r){const e=ke(r,void 0,void 0,o);Ew(e,Fw(r)),Cw(e,1024);const n=t.createPropertyAssignment("get",e);jw(n,Lw(r)),_.push(n)}if(i){const e=ke(i,void 0,void 0,o);Ew(e,Fw(i)),Cw(e,1024);const n=t.createPropertyAssignment("set",e);jw(n,Lw(i)),_.push(n)}_.push(t.createPropertyAssignment("enumerable",r||i?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const u=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[s,l,t.createObjectLiteralExpression(_,!0)]);return a&&IA(u),u}function ke(n,r,i,o){const a=m;m=void 0;const s=o&&d_(o)&&!Ev(n)?v(32670,73):v(32670,65),c=SJ(n.parameters,S,e),l=Se(n);return 32768&p&&!i&&(263===n.kind||219===n.kind)&&(i=t.getGeneratedNameForNode(n)),b(s,229376,0),m=a,xw(NI(t.createFunctionExpression(void 0,n.asteriskToken,i,void 0,c,void 0,l),r),n)}function Se(e){let n,r,a=!1,s=!1;const c=[],l=[],_=e.body;let d;if(i(),KF(_)&&(d=t.copyStandardPrologue(_.statements,c,0,!1),d=t.copyCustomPrologue(_.statements,l,d,S,mf),d=t.copyCustomPrologue(_.statements,l,d,S,hf)),a=ne(l,e)||a,a=se(l,e,!1)||a,KF(_))d=t.copyCustomPrologue(_.statements,l,d,S),n=_.statements,ae(l,vJ(_.statements,S,fu,d)),!a&&_.multiLine&&(a=!0);else{_n.assert(220===e.kind),n=Lb(_,-1);const i=e.equalsGreaterThanToken;ty(i)||ty(_)||(Vb(i,_,u)?s=!0:a=!0);const o=yJ(_,S,W_),c=t.createReturnStatement(o);NI(c,_),Uw(c,_),Cw(c,2880),l.push(c),r=_}if(t.mergeLexicalEnvironment(c,o()),_e(c,e),ce(c,e),V(c)&&(a=!0),l.unshift(...c),KF(_)&&ee(l,_.statements))return _;const p=t.createBlock(NI(t.createNodeArray(l),n),a);return NI(p,e.body),!a&&s&&Cw(p,1),r&&Aw(p,20,r),xw(p,e.body),p}function Te(n,r){return ab(n)?Az(n,S,e,0,!r):28===n.operatorToken.kind?t.updateBinaryExpression(n,_n.checkDefined(yJ(n.left,T,W_)),n.operatorToken,_n.checkDefined(yJ(n.right,r?T:S,W_))):NJ(n,S,e)}function Ce(n){return S_(n.name)?we(n):!n.initializer&&function(e){const t=c.hasNodeCheckFlag(e,16384),n=c.hasNodeCheckFlag(e,32768);return!(64&p||t&&n&&512&p)&&!(4096&p)&&(!c.isDeclarationWithCollidingName(e)||n&&!t&&!(6144&p))}(n)?t.updateVariableDeclaration(n,n.name,void 0,void 0,t.createVoidZero()):NJ(n,S,e)}function we(t){const n=v(32,0);let r;return r=S_(t.name)?Lz(t,S,e,0,void 0,!!(32&n)):NJ(t,S,e),b(n,0,0),r}function De(e){m.labels.set(hc(e.label),!0)}function Ne(e){m.labels.set(hc(e.label),!1)}function Fe(n,i,a,s,c){const l=v(n,i),_=function(n,i,a,s){if(!qe(n)){let r;m&&(r=m.allowedNonLabeledJumps,m.allowedNonLabeledJumps=6);const o=s?s(n,i,void 0,a):t.restoreEnclosingLabel(tE(n)?function(e){return t.updateForStatement(e,yJ(e.initializer,T,tu),yJ(e.condition,S,W_),yJ(e.incrementor,T,W_),_n.checkDefined(yJ(e.statement,S,fu,t.liftToBlock)))}(n):NJ(n,S,e),i,m&&Ne);return m&&(m.allowedNonLabeledJumps=r),o}const c=function(e){let t;switch(e.kind){case 249:case 250:case 251:const n=e.initializer;n&&262===n.kind&&(t=n)}const n=[],r=[];if(t&&7&sc(t)){const i=Be(e)||Je(e)||ze(e);for(const o of t.declarations)Qe(e,o,n,r,i)}const i={loopParameters:n,loopOutParameters:r};m&&(m.argumentsName&&(i.argumentsName=m.argumentsName),m.thisName&&(i.thisName=m.thisName),m.hoistedLocalVariables&&(i.hoistedLocalVariables=m.hoistedLocalVariables));return i}(n),l=[],_=m;m=c;const u=Be(n)?function(e,n){const r=t.createUniqueName("_loop_init"),i=!!(1048576&e.initializer.transformFlags);let o=0;n.containsLexicalThis&&(o|=16);i&&4&p&&(o|=524288);const a=[];a.push(t.createVariableStatement(void 0,e.initializer)),Ke(n.loopOutParameters,2,1,a);const s=t.createVariableStatement(void 0,Cw(t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,Cw(t.createFunctionExpression(void 0,i?t.createToken(42):void 0,void 0,void 0,void 0,void 0,_n.checkDefined(yJ(t.createBlock(a,!0),S,KF))),o))]),4194304)),c=t.createVariableDeclarationList(N(n.loopOutParameters,$e));return{functionName:r,containsYield:i,functionDeclaration:s,part:c}}(n,c):void 0,d=Ue(n)?function(e,n,i){const a=t.createUniqueName("_loop");r();const s=yJ(e.statement,S,fu,t.liftToBlock),c=o(),l=[];(Je(e)||ze(e))&&(n.conditionVariable=t.createUniqueName("inc"),e.incrementor?l.push(t.createIfStatement(n.conditionVariable,t.createExpressionStatement(_n.checkDefined(yJ(e.incrementor,S,W_))),t.createExpressionStatement(t.createAssignment(n.conditionVariable,t.createTrue())))):l.push(t.createIfStatement(t.createLogicalNot(n.conditionVariable),t.createExpressionStatement(t.createAssignment(n.conditionVariable,t.createTrue())))),Je(e)&&l.push(t.createIfStatement(t.createPrefixUnaryExpression(54,_n.checkDefined(yJ(e.condition,S,W_))),_n.checkDefined(yJ(t.createBreakStatement(),S,fu)))));_n.assert(s),KF(s)?ae(l,s.statements):l.push(s);Ke(n.loopOutParameters,1,1,l),Ld(l,c);const _=t.createBlock(l,!0);KF(s)&&xw(_,s);const u=!!(1048576&e.statement.transformFlags);let d=1048576;n.containsLexicalThis&&(d|=16);u&&4&p&&(d|=524288);const f=t.createVariableStatement(void 0,Cw(t.createVariableDeclarationList([t.createVariableDeclaration(a,void 0,void 0,Cw(t.createFunctionExpression(void 0,u?t.createToken(42):void 0,void 0,void 0,n.loopParameters,void 0,_),d))]),4194304)),m=function(e,n,r,i){const o=[],a=!(-5&n.nonLocalJumps||n.labeledNonLocalBreaks||n.labeledNonLocalContinues),s=t.createCallExpression(e,void 0,N(n.loopParameters,(e=>e.name))),c=i?t.createYieldExpression(t.createToken(42),Cw(s,8388608)):s;if(a)o.push(t.createExpressionStatement(c)),Ke(n.loopOutParameters,1,0,o);else{const e=t.createUniqueName("state"),i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,c)]));if(o.push(i),Ke(n.loopOutParameters,1,0,o),8&n.nonLocalJumps){let n;r?(r.nonLocalJumps|=8,n=t.createReturnStatement(e)):n=t.createReturnStatement(t.createPropertyAccessExpression(e,"value")),o.push(t.createIfStatement(t.createTypeCheck(e,"object"),n))}if(2&n.nonLocalJumps&&o.push(t.createIfStatement(t.createStrictEquality(e,t.createStringLiteral("break")),t.createBreakStatement())),n.labeledNonLocalBreaks||n.labeledNonLocalContinues){const i=[];Xe(n.labeledNonLocalBreaks,!0,e,r,i),Xe(n.labeledNonLocalContinues,!1,e,r,i),o.push(t.createSwitchStatement(e,t.createCaseBlock(i)))}}return o}(a,n,i,u);return{functionName:a,containsYield:u,functionDeclaration:f,part:m}}(n,c,_):void 0;m=_,u&&l.push(u.functionDeclaration);d&&l.push(d.functionDeclaration);(function(e,n,r){let i;n.argumentsName&&(r?r.argumentsName=n.argumentsName:(i||(i=[])).push(t.createVariableDeclaration(n.argumentsName,void 0,void 0,t.createIdentifier("arguments"))));n.thisName&&(r?r.thisName=n.thisName:(i||(i=[])).push(t.createVariableDeclaration(n.thisName,void 0,void 0,t.createIdentifier("this"))));if(n.hoistedLocalVariables)if(r)r.hoistedLocalVariables=n.hoistedLocalVariables;else{i||(i=[]);for(const e of n.hoistedLocalVariables)i.push(t.createVariableDeclaration(e))}if(n.loopOutParameters.length){i||(i=[]);for(const e of n.loopOutParameters)i.push(t.createVariableDeclaration(e.outParamName))}n.conditionVariable&&(i||(i=[]),i.push(t.createVariableDeclaration(n.conditionVariable,void 0,void 0,t.createFalse())));i&&e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(i)))})(l,c,_),u&&l.push(function(e,n){const r=t.createCallExpression(e,void 0,[]),i=n?t.createYieldExpression(t.createToken(42),Cw(r,8388608)):r;return t.createExpressionStatement(i)}(u.functionName,u.containsYield));let f;if(d)if(s)f=s(n,i,d.part,a);else{const e=We(n,u,t.createBlock(d.part,!0));f=t.restoreEnclosingLabel(e,i,m&&Ne)}else{const e=We(n,u,_n.checkDefined(yJ(n.statement,S,fu,t.liftToBlock)));f=t.restoreEnclosingLabel(e,i,m&&Ne)}return l.push(f),l}(a,s,l,c);return b(l,0,0),_}function Ee(e,t){return Fe(0,1280,e,t)}function Pe(e,t){return Fe(5056,3328,e,t)}function Ae(e,t){return Fe(3008,5376,e,t)}function Ie(e,t){return Fe(3008,5376,e,t,s.downlevelIteration?Re:je)}function Oe(n,r,i){const o=[],a=n.initializer;if(fE(a)){7&n.initializer.flags&&_t();const i=pe(a.declarations);if(i&&S_(i.name)){const a=Lz(i,S,e,0,r),s=NI(t.createVariableDeclarationList(a),n.initializer);xw(s,n.initializer),Ew(s,Ob(a[0].pos,ye(a).end)),o.push(t.createVariableStatement(void 0,s))}else o.push(NI(t.createVariableStatement(void 0,xw(NI(t.createVariableDeclarationList([t.createVariableDeclaration(i?i.name:t.createTempVariable(void 0),void 0,void 0,r)]),jb(a,-1)),a)),Lb(a,-1)))}else{const e=t.createAssignment(a,r);ab(e)?o.push(t.createExpressionStatement(Te(e,!0))):(wT(e,a.end),o.push(NI(t.createExpressionStatement(_n.checkDefined(yJ(e,S,W_))),Lb(a,-1))))}if(i)return Le(ae(o,i));{const e=yJ(n.statement,S,fu,t.liftToBlock);return _n.assert(e),KF(e)?t.updateBlock(e,NI(t.createNodeArray($(o,e.statements)),e.statements)):(o.push(e),Le(o))}}function Le(e){return Cw(t.createBlock(t.createNodeArray(e),!0),864)}function je(e,n,r){const i=yJ(e.expression,S,W_);_n.assert(i);const o=t.createLoopVariable(),a=_N(i)?t.getGeneratedNameForNode(i):t.createTempVariable(void 0);Cw(i,96|Zd(i));const s=NI(t.createForStatement(Cw(NI(t.createVariableDeclarationList([NI(t.createVariableDeclaration(o,void 0,void 0,t.createNumericLiteral(0)),jb(e.expression,-1)),NI(t.createVariableDeclaration(a,void 0,void 0,i),e.expression)]),e.expression),4194304),NI(t.createLessThan(o,t.createPropertyAccessExpression(a,"length")),e.expression),NI(t.createPostfixIncrement(o),e.expression),Oe(e,t.createElementAccessExpression(a,o),r)),e);return Cw(s,512),NI(s,e),t.restoreEnclosingLabel(s,n,m&&Ne)}function Re(e,r,i,o){const s=yJ(e.expression,S,W_);_n.assert(s);const c=_N(s)?t.getGeneratedNameForNode(s):t.createTempVariable(void 0),l=_N(s)?t.getGeneratedNameForNode(c):t.createTempVariable(void 0),_=t.createUniqueName("e"),u=t.getGeneratedNameForNode(_),d=t.createTempVariable(void 0),p=NI(n().createValuesHelper(s),e.expression),f=t.createCallExpression(t.createPropertyAccessExpression(c,"next"),void 0,[]);a(_),a(d);const g=1024&o?t.inlineExpressions([t.createAssignment(_,t.createVoidZero()),p]):p,h=Cw(NI(t.createForStatement(Cw(NI(t.createVariableDeclarationList([NI(t.createVariableDeclaration(c,void 0,void 0,g),e.expression),t.createVariableDeclaration(l,void 0,void 0,f)]),e.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(l,"done")),t.createAssignment(l,f),Oe(e,t.createPropertyAccessExpression(l,"value"),i)),e),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(h,r,m&&Ne)]),t.createCatchClause(t.createVariableDeclaration(u),Cw(t.createBlock([t.createExpressionStatement(t.createAssignment(_,t.createObjectLiteralExpression([t.createPropertyAssignment("error",u)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([Cw(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(l,t.createLogicalNot(t.createPropertyAccessExpression(l,"done"))),t.createAssignment(d,t.createPropertyAccessExpression(c,"return"))),t.createExpressionStatement(t.createFunctionCallCall(d,c,[]))),1)]),void 0,Cw(t.createBlock([Cw(t.createIfStatement(_,t.createThrowStatement(t.createPropertyAccessExpression(_,"error"))),1)]),1))]))}function Me(e){return c.hasNodeCheckFlag(e,8192)}function Be(e){return tE(e)&&!!e.initializer&&Me(e.initializer)}function Je(e){return tE(e)&&!!e.condition&&Me(e.condition)}function ze(e){return tE(e)&&!!e.incrementor&&Me(e.incrementor)}function qe(e){return Ue(e)||Be(e)}function Ue(e){return c.hasNodeCheckFlag(e,4096)}function Ve(e,t){e.hoistedLocalVariables||(e.hoistedLocalVariables=[]),function t(n){if(80===n.kind)e.hoistedLocalVariables.push(n);else for(const e of n.elements)RF(e)||t(e.name)}(t.name)}function We(e,n,r){switch(e.kind){case 249:return function(e,n,r){const i=e.condition&&Me(e.condition),o=i||e.incrementor&&Me(e.incrementor);return t.updateForStatement(e,yJ(n?n.part:e.initializer,T,tu),yJ(i?void 0:e.condition,S,W_),yJ(o?void 0:e.incrementor,T,W_),r)}(e,n,r);case 250:return function(e,n){return t.updateForInStatement(e,_n.checkDefined(yJ(e.initializer,S,tu)),_n.checkDefined(yJ(e.expression,S,W_)),n)}(e,r);case 251:return function(e,n){return t.updateForOfStatement(e,void 0,_n.checkDefined(yJ(e.initializer,S,tu)),_n.checkDefined(yJ(e.expression,S,W_)),n)}(e,r);case 247:return function(e,n){return t.updateDoStatement(e,n,_n.checkDefined(yJ(e.expression,S,W_)))}(e,r);case 248:return function(e,n){return t.updateWhileStatement(e,_n.checkDefined(yJ(e.expression,S,W_)),n)}(e,r);default:return _n.failBadSyntaxKind(e,"IterationStatement expected")}}function $e(e){return t.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function He(e,n){const r=0===n?e.outParamName:e.originalName,i=0===n?e.originalName:e.outParamName;return t.createBinaryExpression(i,64,r)}function Ke(e,n,r,i){for(const o of e)o.flags&n&&i.push(t.createExpressionStatement(He(o,r)))}function Ge(e,t,n,r){t?(e.labeledNonLocalBreaks||(e.labeledNonLocalBreaks=new Map),e.labeledNonLocalBreaks.set(n,r)):(e.labeledNonLocalContinues||(e.labeledNonLocalContinues=new Map),e.labeledNonLocalContinues.set(n,r))}function Xe(e,n,r,i,o){e&&e.forEach(((e,a)=>{const s=[];if(!i||i.labels&&i.labels.get(a)){const e=t.createIdentifier(a);s.push(n?t.createBreakStatement(e):t.createContinueStatement(e))}else Ge(i,n,a,e),s.push(t.createReturnStatement(r));o.push(t.createCaseClause(t.createStringLiteral(e),s))}))}function Qe(e,n,r,i,o){const a=n.name;if(S_(a))for(const t of a.elements)RF(t)||Qe(e,t,r,i,o);else{r.push(t.createParameterDeclaration(void 0,void 0,a));const s=c.hasNodeCheckFlag(n,65536);if(s||o){const r=t.createUniqueName("out_"+hc(a));let o=0;s&&(o|=1),tE(e)&&(e.initializer&&c.isBindingCapturedByNode(e.initializer,n)&&(o|=2),(e.condition&&c.isBindingCapturedByNode(e.condition,n)||e.incrementor&&c.isBindingCapturedByNode(e.incrementor,n))&&(o|=1)),i.push({flags:o,originalName:a,outParamName:r})}}}function Ye(e,n,r){const i=t.createAssignment(lA(t,n,_n.checkDefined(yJ(e.name,S,n_))),_n.checkDefined(yJ(e.initializer,S,W_)));return NI(i,e),r&&IA(i),i}function Ze(e,n,r){const i=t.createAssignment(lA(t,n,_n.checkDefined(yJ(e.name,S,n_))),t.cloneNode(e.name));return NI(i,e),r&&IA(i),i}function nt(e,n,r,i){const o=t.createAssignment(lA(t,n,_n.checkDefined(yJ(e.name,S,n_))),ke(e,e,void 0,r));return NI(o,e),i&&IA(o),o}function rt(e,r,i,o){const a=e.length,c=P(q(e,it,((e,t,n,r)=>t(e,i,o&&r===a))));if(1===c.length){const e=c[0];if(r&&!s.downlevelIteration||IT(e.expression)||VD(e.expression,"___spreadArray"))return e.expression}const l=n(),_=0!==c[0].kind;let u=_?t.createArrayLiteralExpression():c[0].expression;for(let e=_?0:1;e0?t.inlineExpressions(N(i,G)):void 0,yJ(n.condition,M,W_),yJ(n.incrementor,M,W_),wJ(n.statement,M,e))}else n=NJ(n,M,e);m&&ce();return n}(r);case 250:return function(n){m&&ae();const r=n.initializer;if(fE(r)){for(const e of r.declarations)a(e.name);n=t.updateForInStatement(n,r.declarations[0].name,_n.checkDefined(yJ(n.expression,M,W_)),_n.checkDefined(yJ(n.statement,M,fu,t.liftToBlock)))}else n=NJ(n,M,e);m&&ce();return n}(r);case 253:return function(t){if(m){const e=me(t.label&&hc(t.label));if(e>0)return be(e,t)}return NJ(t,M,e)}(r);case 252:return function(t){if(m){const e=ge(t.label&&hc(t.label));if(e>0)return be(e,t)}return NJ(t,M,e)}(r);case 254:return function(e){return n=yJ(e.expression,M,W_),r=e,NI(t.createReturnStatement(t.createArrayLiteralExpression(n?[ve(2),n]:[ve(2)])),r);var n,r}(r);default:return 1048576&r.transformFlags?function(r){switch(r.kind){case 227:return function(n){const r=ry(n);switch(r){case 0:return function(n){if(X(n.right))return Qv(n.operatorToken.kind)?function(e){const t=ee(),n=Z();Se(n,_n.checkDefined(yJ(e.left,M,W_)),e.left),56===e.operatorToken.kind?De(t,n,e.left):we(t,n,e.left);return Se(n,_n.checkDefined(yJ(e.right,M,W_)),e.right),te(t),n}(n):28===n.operatorToken.kind?U(n):t.updateBinaryExpression(n,Y(_n.checkDefined(yJ(n.left,M,W_))),n.operatorToken,_n.checkDefined(yJ(n.right,M,W_)));return NJ(n,M,e)}(n);case 1:return function(n){const{left:r,right:i}=n;if(X(i)){let e;switch(r.kind){case 212:e=t.updatePropertyAccessExpression(r,Y(_n.checkDefined(yJ(r.expression,M,B_))),r.name);break;case 213:e=t.updateElementAccessExpression(r,Y(_n.checkDefined(yJ(r.expression,M,B_))),Y(_n.checkDefined(yJ(r.argumentExpression,M,W_))));break;default:e=_n.checkDefined(yJ(r,M,W_))}const o=n.operatorToken.kind;return _z(o)?NI(t.createAssignment(e,NI(t.createBinaryExpression(Y(e),uz(o),_n.checkDefined(yJ(i,M,W_))),n)),n):t.updateBinaryExpression(n,e,n.operatorToken,_n.checkDefined(yJ(i,M,W_)))}return NJ(n,M,e)}(n);default:return _n.assertNever(r)}}(r);case 357:return function(e){let n=[];for(const r of e.elements)PF(r)&&28===r.operatorToken.kind?n.push(U(r)):(X(r)&&n.length>0&&(Ne(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(_n.checkDefined(yJ(r,M,W_))));return t.inlineExpressions(n)}(r);case 228:return function(t){if(X(t.whenTrue)||X(t.whenFalse)){const e=ee(),n=ee(),r=Z();return De(e,_n.checkDefined(yJ(t.condition,M,W_)),t.condition),Se(r,_n.checkDefined(yJ(t.whenTrue,M,W_)),t.whenTrue),Te(n),te(e),Se(r,_n.checkDefined(yJ(t.whenFalse,M,W_)),t.whenFalse),te(n),r}return NJ(t,M,e)}(r);case 230:return function(e){const r=ee(),i=yJ(e.expression,M,W_);if(e.asteriskToken){!function(e,t){Ne(7,[e],t)}(8388608&Zd(e.expression)?i:NI(n().createValuesHelper(i),e),e)}else!function(e,t){Ne(6,[e],t)}(i,e);return te(r),function(e){return NI(t.createCallExpression(t.createPropertyAccessExpression(C,"sent"),void 0,[]),e)}(e)}(r);case 210:return function(e){return V(e.elements,void 0,void 0,e.multiLine)}(r);case 211:return function(e){const n=e.properties,r=e.multiLine,i=Q(n),o=Z();Se(o,t.createObjectLiteralExpression(vJ(n,M,b_,0,i),r));const a=Ce(n,s,[],i);return a.push(r?IA(ET(NI(t.cloneNode(o),o),o.parent)):o),t.inlineExpressions(a);function s(n,i){X(i)&&n.length>0&&(ke(t.createExpressionStatement(t.inlineExpressions(n))),n=[]);const a=yJ(yA(t,e,i,o),M,W_);return a&&(r&&IA(a),n.push(a)),n}}(r);case 213:return function(n){if(X(n.argumentExpression))return t.updateElementAccessExpression(n,Y(_n.checkDefined(yJ(n.expression,M,B_))),_n.checkDefined(yJ(n.argumentExpression,M,W_)));return NJ(n,M,e)}(r);case 214:return function(n){if(!_f(n)&&_(n.arguments,X)){const{target:e,thisArg:r}=t.createCallBinding(n.expression,a,c,!0);return xw(NI(t.createFunctionApplyCall(Y(_n.checkDefined(yJ(e,M,B_))),r,V(n.arguments)),n),n)}return NJ(n,M,e)}(r);case 215:return function(n){if(_(n.arguments,X)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),a);return xw(NI(t.createNewExpression(t.createFunctionApplyCall(Y(_n.checkDefined(yJ(e,M,W_))),r,V(n.arguments,t.createVoidZero())),void 0,[]),n),n)}return NJ(n,M,e)}(r);default:return NJ(r,M,e)}}(r):4196352&r.transformFlags?NJ(r,M,e):r}}function J(n){if(n.asteriskToken)n=xw(NI(t.createFunctionDeclaration(n.modifiers,void 0,n.name,void 0,SJ(n.parameters,M,e),void 0,q(n.body)),n),n);else{const t=f,r=m;f=!1,m=!1,n=NJ(n,M,e),f=t,m=r}return f?void o(n):n}function z(n){if(n.asteriskToken)n=xw(NI(t.createFunctionExpression(void 0,void 0,n.name,void 0,SJ(n.parameters,M,e),void 0,q(n.body)),n),n);else{const t=f,r=m;f=!1,m=!1,n=NJ(n,M,e),f=t,m=r}return n}function q(e){const o=[],a=f,s=m,c=g,l=h,_=y,u=v,d=b,p=x,N=L,B=k,J=S,z=T,q=C;f=!0,m=!1,g=void 0,h=void 0,y=void 0,v=void 0,b=void 0,x=void 0,L=1,k=void 0,S=void 0,T=void 0,C=t.createTempVariable(void 0),r();const U=t.copyPrologue(e.statements,o,!1,M);W(e.statements,U);const V=function(){j=0,R=0,w=void 0,D=!1,F=!1,E=void 0,P=void 0,A=void 0,I=void 0,O=void 0;const e=function(){if(k){for(let e=0;e0)),1048576))}();return Ld(o,i()),o.push(t.createReturnStatement(V)),f=a,m=s,g=c,h=l,y=_,v=u,b=d,x=p,L=N,k=B,S=J,T=z,C=q,NI(t.createBlock(o,e.multiLine),e)}function U(e){let n=[];return r(e.left),r(e.right),t.inlineExpressions(n);function r(e){PF(e)&&28===e.operatorToken.kind?(r(e.left),r(e.right)):(X(e)&&n.length>0&&(Ne(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(_n.checkDefined(yJ(e,M,W_))))}}function V(e,n,r,i){const o=Q(e);let a;if(o>0){a=Z();const r=vJ(e,M,W_,0,o);Se(a,t.createArrayLiteralExpression(n?[n,...r]:r)),n=void 0}const s=Ce(e,(function(e,r){if(X(r)&&e.length>0){const r=void 0!==a;a||(a=Z()),Se(a,r?t.createArrayConcatCall(a,[t.createArrayLiteralExpression(e,i)]):t.createArrayLiteralExpression(n?[n,...e]:e,i)),n=void 0,e=[]}return e.push(_n.checkDefined(yJ(r,M,W_))),e}),[],o);return a?t.createArrayConcatCall(a,[t.createArrayLiteralExpression(s,i)]):NI(t.createArrayLiteralExpression(n?[n,...s]:s,i),r)}function W(e,t=0){const n=e.length;for(let r=t;r0?Te(t,e):ke(e)}(n);case 253:return function(e){const t=me(e.label?hc(e.label):void 0);t>0?Te(t,e):ke(e)}(n);case 254:return function(e){t=yJ(e.expression,M,W_),n=e,Ne(8,[t],n);var t,n}(n);case 255:return function(e){X(e)?(function(e){const t=ee(),n=ee();te(t),ne({kind:1,expression:e,startLabel:t,endLabel:n})}(Y(_n.checkDefined(yJ(e.expression,M,W_)))),$(e.statement),function(){_n.assert(1===oe());te(re().endLabel)}()):ke(yJ(e,M,fu))}(n);case 256:return function(e){if(X(e.caseBlock)){const n=e.caseBlock,r=n.clauses.length,i=function(){const e=ee();return ne({kind:2,isScript:!1,breakLabel:e}),e}(),o=Y(_n.checkDefined(yJ(e.expression,M,W_))),a=[];let s=-1;for(let e=0;e0)break;l.push(t.createCaseClause(_n.checkDefined(yJ(r.expression,M,W_)),[be(a[i],r.expression)]))}else e++}l.length&&(ke(t.createSwitchStatement(o,t.createCaseBlock(l))),c+=l.length,l=[]),e>0&&(c+=e,e=0)}Te(s>=0?a[s]:i);for(let e=0;e0)break;o.push(G(t))}o.length&&(ke(t.createExpressionStatement(t.inlineExpressions(o))),i+=o.length,o=[])}}function G(e){return Ew(t.createAssignment(Ew(t.cloneNode(e.name),e.name),_n.checkDefined(yJ(e.initializer,M,W_))),e)}function X(e){return!!e&&!!(1048576&e.transformFlags)}function Q(e){const t=e.length;for(let n=0;n=0;n--){const t=v[n];if(!de(t))break;if(t.labelText===e)return!0}return!1}function me(e){if(v)if(e)for(let t=v.length-1;t>=0;t--){const n=v[t];if(de(n)&&n.labelText===e)return n.breakLabel;if(ue(n)&&fe(e,t-1))return n.breakLabel}else for(let e=v.length-1;e>=0;e--){const t=v[e];if(ue(t))return t.breakLabel}return 0}function ge(e){if(v)if(e)for(let t=v.length-1;t>=0;t--){const n=v[t];if(pe(n)&&fe(e,t-1))return n.continueLabel}else for(let e=v.length-1;e>=0;e--){const t=v[e];if(pe(t))return t.continueLabel}return 0}function ye(e){if(void 0!==e&&e>0){void 0===x&&(x=[]);const n=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return void 0===x[e]?x[e]=[n]:x[e].push(n),n}return t.createOmittedExpression()}function ve(e){const n=t.createNumericLiteral(e);return qw(n,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(e)),n}function be(e,n){return _n.assertLessThan(0,e,"Invalid label"),NI(t.createReturnStatement(t.createArrayLiteralExpression([ve(3),ye(e)])),n)}function xe(){Ne(0)}function ke(e){e?Ne(1,[e]):xe()}function Se(e,t,n){Ne(2,[e,t],n)}function Te(e,t){Ne(3,[e],t)}function we(e,t,n){Ne(4,[e,t],n)}function De(e,t,n){Ne(5,[e,t],n)}function Ne(e,t,n){void 0===k&&(k=[],S=[],T=[]),void 0===b&&te(ee());const r=k.length;k[r]=e,S[r]=t,T[r]=n}function Fe(e){(function(e){if(!F)return!0;if(!b||!x)return!1;for(let t=0;t=0;e--){const n=O[e];P=[t.createWithStatement(n.expression,t.createBlock(P))]}if(I){const{startLabel:e,catchLabel:n,finallyLabel:r,endLabel:i}=I;P.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(C,"trys"),"push"),void 0,[t.createArrayLiteralExpression([ye(e),ye(n),ye(r),ye(i)])]))),I=void 0}e&&P.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(C,"label"),t.createNumericLiteral(R+1))))}E.push(t.createCaseClause(t.createNumericLiteral(R),P||[])),P=void 0}function Pe(e){if(b)for(let t=0;t{Ru(e.arguments[0])&&!kg(e.arguments[0].text,a)||(y=re(y,e))}));const n=function(e){switch(e){case 2:return S;case 3:return T;default:return k}}(d)(t);return g=void 0,h=void 0,b=!1,n}));function x(){return!(jS(g.fileName)&&g.commonJsModuleIndicator&&(!g.externalModuleIndicator||!0===g.externalModuleIndicator))&&!(h.exportEquals||!_O(g))}function k(n){r();const o=[],s=Rk(a)||_O(g),c=t.copyPrologue(n.statements,o,s&&!ef(n),F);if(x()&&re(o,G()),V(h.exportedNames)){const e=50;for(let n=0;n11===n.kind?t.createAssignment(t.createElementAccessExpression(t.createIdentifier("exports"),t.createStringLiteral(n.text)),e):t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.createIdentifier(hc(n))),e)),t.createVoidZero())))}for(const e of h.exportedFunctions)$(o,e);re(o,yJ(h.externalHelpersImportDeclaration,F,fu)),ae(o,vJ(n.statements,F,fu,c)),N(o,!1),Ld(o,i());const l=t.updateSourceFile(n,NI(t.createNodeArray(o),n.statements));return Hw(l,e.readEmitHelpers()),l}function S(n){const r=t.createIdentifier("define"),i=BA(t,n,_,a),o=ef(n)&&n,{aliasedModuleNames:c,unaliasedModuleNames:l,importAliasNames:u}=C(n,!0),d=t.updateSourceFile(n,NI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(r,void 0,[...i?[i]:[],t.createArrayLiteralExpression(o?s:[t.createStringLiteral("require"),t.createStringLiteral("exports"),...c,...l]),o?o.statements.length?o.statements[0].expression:t.createObjectLiteralExpression():t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"require"),t.createParameterDeclaration(void 0,void 0,"exports"),...u],void 0,D(n))]))]),n.statements));return Hw(d,e.readEmitHelpers()),d}function T(n){const{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:o}=C(n,!1),s=BA(t,n,_,a),c=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"factory")],void 0,NI(t.createBlock([t.createIfStatement(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("module"),"object"),t.createTypeCheck(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),"object")),t.createBlock([t.createVariableStatement(void 0,[t.createVariableDeclaration("v",void 0,void 0,t.createCallExpression(t.createIdentifier("factory"),void 0,[t.createIdentifier("require"),t.createIdentifier("exports")]))]),Cw(t.createIfStatement(t.createStrictInequality(t.createIdentifier("v"),t.createIdentifier("undefined")),t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),t.createIdentifier("v")))),1)]),t.createIfStatement(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("define"),"function"),t.createPropertyAccessExpression(t.createIdentifier("define"),"amd")),t.createBlock([t.createExpressionStatement(t.createCallExpression(t.createIdentifier("define"),void 0,[...s?[s]:[],t.createArrayLiteralExpression([t.createStringLiteral("require"),t.createStringLiteral("exports"),...r,...i]),t.createIdentifier("factory")]))])))],!0),void 0)),l=t.updateSourceFile(n,NI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(c,void 0,[t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"require"),t.createParameterDeclaration(void 0,void 0,"exports"),...o],void 0,D(n))]))]),n.statements));return Hw(l,e.readEmitHelpers()),l}function C(e,n){const r=[],i=[],o=[];for(const n of e.amdDependencies)n.name?(r.push(t.createStringLiteral(n.path)),o.push(t.createParameterDeclaration(void 0,void 0,n.name))):i.push(t.createStringLiteral(n.path));for(const e of h.externalImports){const s=MA(t,e,g,_,c,a),l=RA(t,e,g);s&&(n&&l?(Cw(l,8),r.push(s),o.push(t.createParameterDeclaration(void 0,void 0,l))):i.push(s))}return{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:o}}function w(e){if(TE(e)||RE(e)||!MA(t,e,g,_,c,a))return;const n=RA(t,e,g),r=B(e,n);return r!==n?t.createExpressionStatement(t.createAssignment(n,r)):void 0}function D(e){r();const n=[],o=t.copyPrologue(e.statements,n,!0,F);x()&&re(n,G()),V(h.exportedNames)&&re(n,t.createExpressionStatement(Ce(h.exportedNames,((e,n)=>11===n.kind?t.createAssignment(t.createElementAccessExpression(t.createIdentifier("exports"),t.createStringLiteral(n.text)),e):t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.createIdentifier(hc(n))),e)),t.createVoidZero())));for(const e of h.exportedFunctions)$(n,e);re(n,yJ(h.externalHelpersImportDeclaration,F,fu)),2===d&&ae(n,R(h.externalImports,w)),ae(n,vJ(e.statements,F,fu,o)),N(n,!0),Ld(n,i());const a=t.createBlock(n,!0);return b&&$w(a,Nq),a}function N(e,n){if(h.exportEquals){const r=yJ(h.exportEquals.expression,A,W_);if(r)if(n){const n=t.createReturnStatement(r);NI(n,h.exportEquals),Cw(n,3840),e.push(n)}else{const n=t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),r));NI(n,h.exportEquals),Cw(n,3072),e.push(n)}}}function F(e){switch(e.kind){case 273:return function(e){let n;const r=Tg(e);if(2!==d){if(!e.importClause)return xw(NI(t.createExpressionStatement(J(e)),e),e);{const i=[];r&&!Cg(e)?i.push(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,B(e,J(e)))):(i.push(t.createVariableDeclaration(t.getGeneratedNameForNode(e),void 0,void 0,B(e,J(e)))),r&&Cg(e)&&i.push(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,t.getGeneratedNameForNode(e)))),n=re(n,xw(NI(t.createVariableStatement(void 0,t.createVariableDeclarationList(i,u>=2?2:0)),e),e))}}else r&&Cg(e)&&(n=re(n,t.createVariableStatement(void 0,t.createVariableDeclarationList([xw(NI(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,t.getGeneratedNameForNode(e)),e),e)],u>=2?2:0))));return n=function(e,t){if(h.exportEquals)return e;const n=t.importClause;if(!n)return e;const r=new az;n.name&&(e=H(e,r,n));const i=n.namedBindings;if(i)switch(i.kind){case 275:e=H(e,r,i);break;case 276:for(const t of i.elements)e=H(e,r,t,!0)}return e}(n,e),xe(n)}(e);case 272:return function(e){let n;_n.assert(Tm(e),"import= for internal module references should be handled in an earlier transformer."),2!==d?n=Fv(e,32)?re(n,xw(NI(t.createExpressionStatement(Q(e.name,J(e))),e),e)):re(n,xw(NI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,J(e))],u>=2?2:0)),e),e)):Fv(e,32)&&(n=re(n,xw(NI(t.createExpressionStatement(Q(t.getExportName(e),t.getLocalName(e))),e),e)));return n=function(e,t){if(h.exportEquals)return e;return H(e,new az,t)}(n,e),xe(n)}(e);case 279:return function(e){if(!e.moduleSpecifier)return;const r=t.getGeneratedNameForNode(e);if(e.exportClause&&ME(e.exportClause)){const i=[];2!==d&&i.push(xw(NI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,J(e))])),e),e));for(const o of e.exportClause.elements){const s=o.propertyName||o.name,c=!!wk(a)&&!(2&ep(e))&&Kd(s)?n().createImportDefaultHelper(r):r,l=11===s.kind?t.createElementAccessExpression(c,s):t.createPropertyAccessExpression(c,s);i.push(xw(NI(t.createExpressionStatement(Q(11===o.name.kind?t.cloneNode(o.name):t.getExportName(o),l,void 0,!0)),o),o))}return xe(i)}if(e.exportClause){const i=[];return i.push(xw(NI(t.createExpressionStatement(Q(t.cloneNode(e.exportClause.name),function(e,t){if(!wk(a)||2&ep(e))return t;if(ez(e))return n().createImportStarHelper(t);return t}(e,2!==d?J(e):Wd(e)||11===e.exportClause.name.kind?r:t.createIdentifier(hc(e.exportClause.name))))),e),e)),xe(i)}return xw(NI(t.createExpressionStatement(n().createExportStarHelper(2!==d?J(e):r)),e),e)}(e);case 278:return function(e){if(e.isExportEquals)return;return X(t.createIdentifier("default"),yJ(e.expression,A,W_),e,!0)}(e);default:return E(e)}}function E(n){switch(n.kind){case 244:return function(n){let r,i,o;if(Fv(n,32)){let e,a=!1;for(const r of n.declarationList.declarations)if(_N(r.name)&&xA(r.name))if(e||(e=vJ(n.modifiers,Y,e_)),r.initializer){i=re(i,t.updateVariableDeclaration(r,r.name,void 0,void 0,Q(r.name,yJ(r.initializer,A,W_))))}else i=re(i,r);else if(r.initializer)if(!S_(r.name)&&(TF(r.initializer)||SF(r.initializer)||jF(r.initializer))){const e=t.createAssignment(NI(t.createPropertyAccessExpression(t.createIdentifier("exports"),r.name),r.name),t.createIdentifier(Uh(r.name)));i=re(i,t.createVariableDeclaration(r.name,r.exclamationToken,r.type,yJ(r.initializer,A,W_))),o=re(o,e),a=!0}else o=re(o,q(r));if(i&&(r=re(r,t.updateVariableStatement(n,e,t.updateVariableDeclarationList(n.declarationList,i)))),o){const e=xw(NI(t.createExpressionStatement(t.inlineExpressions(o)),n),n);a&&Tw(e),r=re(r,e)}}else r=re(r,NJ(n,A,e));return r=function(e,t){return U(e,t.declarationList,!1)}(r,n),xe(r)}(n);case 263:return function(n){let r;r=Fv(n,32)?re(r,xw(NI(t.createFunctionDeclaration(vJ(n.modifiers,Y,e_),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,vJ(n.parameters,A,NN),void 0,NJ(n.body,A,e)),n),n)):re(r,NJ(n,A,e));return xe(r)}(n);case 264:return function(n){let r;r=Fv(n,32)?re(r,xw(NI(t.createClassDeclaration(vJ(n.modifiers,Y,h_),t.getDeclarationName(n,!0,!0),void 0,vJ(n.heritageClauses,A,oP),vJ(n.members,A,u_)),n),n)):re(r,NJ(n,A,e));return r=$(r,n),xe(r)}(n);case 249:return L(n,!0);case 250:return function(n){if(fE(n.initializer)&&!(7&n.initializer.flags)){const r=U(void 0,n.initializer,!0);if(V(r)){const i=yJ(n.initializer,I,tu),o=yJ(n.expression,A,W_),a=wJ(n.statement,E,e),s=KF(a)?t.updateBlock(a,[...r,...a.statements]):t.createBlock([...r,a],!0);return t.updateForInStatement(n,i,o,s)}}return t.updateForInStatement(n,yJ(n.initializer,I,tu),yJ(n.expression,A,W_),wJ(n.statement,E,e))}(n);case 251:return function(n){if(fE(n.initializer)&&!(7&n.initializer.flags)){const r=U(void 0,n.initializer,!0),i=yJ(n.initializer,I,tu),o=yJ(n.expression,A,W_);let a=wJ(n.statement,E,e);return V(r)&&(a=KF(a)?t.updateBlock(a,[...r,...a.statements]):t.createBlock([...r,a],!0)),t.updateForOfStatement(n,n.awaitModifier,i,o,a)}return t.updateForOfStatement(n,n.awaitModifier,yJ(n.initializer,I,tu),yJ(n.expression,A,W_),wJ(n.statement,E,e))}(n);case 247:return function(n){return t.updateDoStatement(n,wJ(n.statement,E,e),yJ(n.expression,A,W_))}(n);case 248:return function(n){return t.updateWhileStatement(n,yJ(n.expression,A,W_),wJ(n.statement,E,e))}(n);case 257:return function(e){return t.updateLabeledStatement(e,e.label,yJ(e.statement,E,fu,t.liftToBlock)??NI(t.createEmptyStatement(),e.statement))}(n);case 255:return function(e){return t.updateWithStatement(e,yJ(e.expression,A,W_),_n.checkDefined(yJ(e.statement,E,fu,t.liftToBlock)))}(n);case 246:return function(e){return t.updateIfStatement(e,yJ(e.expression,A,W_),yJ(e.thenStatement,E,fu,t.liftToBlock)??t.createBlock([]),yJ(e.elseStatement,E,fu,t.liftToBlock))}(n);case 256:return function(e){return t.updateSwitchStatement(e,yJ(e.expression,A,W_),_n.checkDefined(yJ(e.caseBlock,E,kE)))}(n);case 270:return function(e){return t.updateCaseBlock(e,vJ(e.clauses,E,Su))}(n);case 297:return function(e){return t.updateCaseClause(e,yJ(e.expression,A,W_),vJ(e.statements,E,fu))}(n);case 298:case 259:return function(t){return NJ(t,E,e)}(n);case 300:return function(e){return t.updateCatchClause(e,e.variableDeclaration,_n.checkDefined(yJ(e.block,E,KF)))}(n);case 242:return function(t){return t=NJ(t,E,e),t}(n);default:return A(n)}}function P(r,i){if(!(276828160&r.transformFlags||(null==y?void 0:y.length)))return r;switch(r.kind){case 249:return L(r,!1);case 245:return function(e){return t.updateExpressionStatement(e,yJ(e.expression,I,W_))}(r);case 218:return function(e,n){return t.updateParenthesizedExpression(e,yJ(e.expression,n?I:A,W_))}(r,i);case 356:return function(e,n){return t.updatePartiallyEmittedExpression(e,yJ(e.expression,n?I:A,W_))}(r,i);case 214:const s=r===pe(y);if(s&&y.shift(),_f(r)&&_.shouldTransformImportCall(g))return function(r,i){if(0===d&&u>=7)return NJ(r,A,e);const s=MA(t,r,g,_,c,a),l=yJ(pe(r.arguments),A,W_),p=!s||l&&HD(l)&&l.text===s.text?l&&i?HD(l)?Ez(l,a):n().createRewriteRelativeImportExtensionsHelper(l):l:s,f=!!(16384&r.transformFlags);switch(a.module){case 2:return j(p,f);case 3:return function(e,n){if(b=!0,cz(e)){const r=$l(e)?e:HD(e)?t.createStringLiteralFromNode(e):Cw(NI(t.cloneNode(e),e),3072);return t.createConditionalExpression(t.createIdentifier("__syncRequire"),void 0,M(e),void 0,j(r,n))}{const r=t.createTempVariable(o);return t.createComma(t.createAssignment(r,e),t.createConditionalExpression(t.createIdentifier("__syncRequire"),void 0,M(r,!0),void 0,j(r,n)))}}(p??t.createVoidZero(),f);default:return M(p)}}(r,s);if(s)return function(e){return t.updateCallExpression(e,e.expression,void 0,vJ(e.arguments,(t=>t===e.arguments[0]?Ru(t)?Ez(t,a):n().createRewriteRelativeImportExtensionsHelper(t):A(t)),W_))}(r);break;case 227:if(ab(r))return function(t,n){if(O(t.left))return Az(t,A,e,0,!n,z);return NJ(t,A,e)}(r,i);break;case 225:case 226:return function(n,r){if((46===n.operator||47===n.operator)&&_N(n.operand)&&!$l(n.operand)&&!xA(n.operand)&&!ex(n.operand)){const e=ee(n.operand);if(e){let i,a=yJ(n.operand,A,W_);FF(n)?a=t.updatePrefixUnaryExpression(n,a):(a=t.updatePostfixUnaryExpression(n,a),r||(i=t.createTempVariable(o),a=t.createAssignment(i,a),NI(a,n)),a=t.createComma(a,t.cloneNode(n.operand)),NI(a,n));for(const t of e)v[cJ(a)]=!0,a=Q(t,a),NI(a,n);return i&&(v[cJ(a)]=!0,a=t.createComma(a,i),NI(a,n)),a}}return NJ(n,A,e)}(r,i)}return NJ(r,A,e)}function A(e){return P(e,!1)}function I(e){return P(e,!0)}function O(e){if(mF(e))for(const t of e.properties)switch(t.kind){case 304:if(O(t.initializer))return!0;break;case 305:if(O(t.name))return!0;break;case 306:if(O(t.expression))return!0;break;case 175:case 178:case 179:return!1;default:_n.assertNever(t,"Unhandled object member kind")}else if(fF(e)){for(const t of e.elements)if(LF(t)){if(O(t.expression))return!0}else if(O(t))return!0}else if(_N(e))return l(ee(e))>(kA(e)?1:0);return!1}function L(n,r){if(r&&n.initializer&&fE(n.initializer)&&!(7&n.initializer.flags)){const i=U(void 0,n.initializer,!1);if(i){const o=[],a=yJ(n.initializer,I,fE),s=t.createVariableStatement(void 0,a);o.push(s),ae(o,i);const c=yJ(n.condition,A,W_),l=yJ(n.incrementor,I,W_),_=wJ(n.statement,r?E:A,e);return o.push(t.updateForStatement(n,void 0,c,l,_)),o}}return t.updateForStatement(n,yJ(n.initializer,I,tu),yJ(n.condition,A,W_),yJ(n.incrementor,I,W_),wJ(n.statement,r?E:A,e))}function j(e,r){const i=t.createUniqueName("resolve"),o=t.createUniqueName("reject"),s=[t.createParameterDeclaration(void 0,void 0,i),t.createParameterDeclaration(void 0,void 0,o)],c=t.createBlock([t.createExpressionStatement(t.createCallExpression(t.createIdentifier("require"),void 0,[t.createArrayLiteralExpression([e||t.createOmittedExpression()]),i,o]))]);let l;u>=2?l=t.createArrowFunction(void 0,void 0,s,void 0,void 0,c):(l=t.createFunctionExpression(void 0,void 0,void 0,void 0,s,void 0,c),r&&Cw(l,16));const _=t.createNewExpression(t.createIdentifier("Promise"),void 0,[l]);return wk(a)?t.createCallExpression(t.createPropertyAccessExpression(_,t.createIdentifier("then")),void 0,[n().createImportStarCallbackHelper()]):_}function M(e,r){const i=e&&!lz(e)&&!r,o=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Promise"),"resolve"),void 0,i?u>=2?[t.createTemplateExpression(t.createTemplateHead(""),[t.createTemplateSpan(e,t.createTemplateTail(""))])]:[t.createCallExpression(t.createPropertyAccessExpression(t.createStringLiteral(""),"concat"),void 0,[e])]:[]);let s=t.createCallExpression(t.createIdentifier("require"),void 0,i?[t.createIdentifier("s")]:e?[e]:[]);wk(a)&&(s=n().createImportStarHelper(s));const c=i?[t.createParameterDeclaration(void 0,void 0,"s")]:[];let l;l=u>=2?t.createArrowFunction(void 0,void 0,c,void 0,void 0,s):t.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,t.createBlock([t.createReturnStatement(s)]));return t.createCallExpression(t.createPropertyAccessExpression(o,"then"),void 0,[l])}function B(e,t){return!wk(a)||2&ep(e)?t:tz(e)?n().createImportStarHelper(t):nz(e)?n().createImportDefaultHelper(t):t}function J(e){const n=MA(t,e,g,_,c,a),r=[];return n&&r.push(Ez(n,a)),t.createCallExpression(t.createIdentifier("require"),void 0,r)}function z(e,n,r){const i=ee(e);if(i){let o=kA(e)?n:t.createAssignment(e,n);for(const e of i)Cw(o,8),o=Q(e,o,r);return o}return t.createAssignment(e,n)}function q(n){return S_(n.name)?Az(yJ(n,A,nx),A,e,0,!1,z):t.createAssignment(NI(t.createPropertyAccessExpression(t.createIdentifier("exports"),n.name),n.name),n.initializer?yJ(n.initializer,A,W_):t.createVoidZero())}function U(e,t,n){if(h.exportEquals)return e;for(const r of t.declarations)e=W(e,r,n);return e}function W(e,t,n){if(h.exportEquals)return e;if(S_(t.name))for(const r of t.name.elements)RF(r)||(e=W(e,r,n));else $l(t.name)||pE(t)&&!t.initializer&&!n||(e=H(e,new az,t));return e}function $(e,n){if(h.exportEquals)return e;const r=new az;if(Fv(n,32)){e=K(e,r,Fv(n,2048)?t.createIdentifier("default"):t.getDeclarationName(n),t.getLocalName(n),n)}return n.name&&(e=H(e,r,n)),e}function H(e,n,r,i){const o=t.getDeclarationName(r),a=h.exportSpecifiers.get(o);if(a)for(const t of a)e=K(e,n,t.name,o,t.name,void 0,i);return e}function K(e,t,n,r,i,o,a){if(11!==n.kind){if(t.has(n))return e;t.set(n,!0)}return e=re(e,X(n,r,i,o,a))}function G(){const e=t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[t.createIdentifier("exports"),t.createStringLiteral("__esModule"),t.createObjectLiteralExpression([t.createPropertyAssignment("value",t.createTrue())])]));return Cw(e,2097152),e}function X(e,n,r,i,o){const a=NI(t.createExpressionStatement(Q(e,n,void 0,o)),r);return IA(a),i||Cw(a,3072),a}function Q(e,n,r,i){return NI(i?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[t.createIdentifier("exports"),t.createStringLiteralFromNode(e),t.createObjectLiteralExpression([t.createPropertyAssignment("enumerable",t.createTrue()),t.createPropertyAssignment("get",t.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,t.createBlock([t.createReturnStatement(n)])))])]):t.createAssignment(11===e.kind?t.createElementAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)):t.createPropertyAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)),n),r)}function Y(e){switch(e.kind){case 95:case 90:return}return e}function Z(e){var n,r;if(8192&Zd(e)){const n=OA(g);return n?t.createPropertyAccessExpression(n,e):e}if((!$l(e)||64&e.emitNode.autoGenerate.flags)&&!xA(e)){const i=c.getReferencedExportContainer(e,kA(e));if(i&&308===i.kind)return NI(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)),e);const o=c.getReferencedImportDeclaration(e);if(o){if(wE(o))return NI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default")),e);if(LE(o)){const i=o.propertyName||o.name,a=t.getGeneratedNameForNode((null==(r=null==(n=o.parent)?void 0:n.parent)?void 0:r.parent)||o);return NI(11===i.kind?t.createElementAccessExpression(a,t.cloneNode(i)):t.createPropertyAccessExpression(a,t.cloneNode(i)),e)}}}return e}function ee(e){if($l(e)){if(Kl(e)){const t=null==h?void 0:h.exportSpecifiers.get(e);if(t){const e=[];for(const n of t)e.push(n.name);return e}}}else{const t=c.getReferencedImportDeclaration(e);if(t)return null==h?void 0:h.exportedBindings[XJ(t)];const n=new Set,r=c.getReferencedValueDeclarations(e);if(r){for(const e of r){const t=null==h?void 0:h.exportedBindings[XJ(e)];if(t)for(const e of t)n.add(e)}if(n.size)return Ie(n)}}}}var Nq={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'};function Fq(e){const{factory:t,startLexicalEnvironment:n,endLexicalEnvironment:r,hoistVariableDeclaration:i}=e,o=e.getCompilerOptions(),a=e.getEmitResolver(),s=e.getEmitHost(),c=e.onSubstituteNode,l=e.onEmitNode;e.onSubstituteNode=function(e,n){if(function(e){return x&&e.id&&x[e.id]}(n=c(e,n)))return n;if(1===e)return function(e){switch(e.kind){case 80:return function(e){var n,r;if(8192&Zd(e)){const n=OA(m);return n?t.createPropertyAccessExpression(n,e):e}if(!$l(e)&&!xA(e)){const i=a.getReferencedImportDeclaration(e);if(i){if(wE(i))return NI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(i.parent),t.createIdentifier("default")),e);if(LE(i)){const o=i.propertyName||i.name,a=t.getGeneratedNameForNode((null==(r=null==(n=i.parent)?void 0:n.parent)?void 0:r.parent)||i);return NI(11===o.kind?t.createElementAccessExpression(a,t.cloneNode(o)):t.createPropertyAccessExpression(a,t.cloneNode(o)),e)}}}return e}(e);case 227:return function(e){if(nb(e.operatorToken.kind)&&_N(e.left)&&(!$l(e.left)||Kl(e.left))&&!xA(e.left)){const t=K(e.left);if(t){let n=e;for(const e of t)n=M(e,G(n));return n}}return e}(e);case 237:return function(e){if(uf(e))return t.createPropertyAccessExpression(y,t.createIdentifier("meta"));return e}(e)}return e}(n);if(4===e)return function(e){if(305===e.kind)return function(e){var n,r;const i=e.name;if(!$l(i)&&!xA(i)){const o=a.getReferencedImportDeclaration(i);if(o){if(wE(o))return NI(t.createPropertyAssignment(t.cloneNode(i),t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default"))),e);if(LE(o)){const a=o.propertyName||o.name,s=t.getGeneratedNameForNode((null==(r=null==(n=o.parent)?void 0:n.parent)?void 0:r.parent)||o);return NI(t.createPropertyAssignment(t.cloneNode(i),11===a.kind?t.createElementAccessExpression(s,t.cloneNode(a)):t.createPropertyAccessExpression(s,t.cloneNode(a))),e)}}}return e}(e);return e}(n);return n},e.onEmitNode=function(e,t,n){if(308===t.kind){const r=XJ(t);m=t,g=u[r],h=d[r],x=p[r],y=f[r],x&&delete p[r],l(e,t,n),m=void 0,g=void 0,h=void 0,y=void 0,x=void 0}else l(e,t,n)},e.enableSubstitution(80),e.enableSubstitution(305),e.enableSubstitution(227),e.enableSubstitution(237),e.enableEmitNotification(308);const u=[],d=[],p=[],f=[];let m,g,h,y,v,b,x;return ZJ(e,(function(i){if(i.isDeclarationFile||!(hp(i,o)||8388608&i.transformFlags))return i;const c=XJ(i);m=i,b=i,g=u[c]=rz(e,i),h=t.createUniqueName("exports"),d[c]=h,y=f[c]=t.createUniqueName("context");const l=function(e){const n=new Map,r=[];for(const i of e){const e=MA(t,i,m,s,a,o);if(e){const t=e.text,o=n.get(t);void 0!==o?r[o].externalImports.push(i):(n.set(t,r.length),r.push({name:e,externalImports:[i]}))}}return r}(g.externalImports),_=function(e,i){const a=[];n();const s=Rk(o)||_O(m),c=t.copyPrologue(e.statements,a,s,T);a.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(y,t.createPropertyAccessExpression(y,"id")))]))),yJ(g.externalHelpersImportDeclaration,T,fu);const l=vJ(e.statements,T,fu,c);ae(a,v),Ld(a,r());const _=function(e){if(!g.hasExportStarsToExportValues)return;if(!V(g.exportedNames)&&0===g.exportedFunctions.size&&0===g.exportSpecifiers.size){let t=!1;for(const e of g.externalImports)if(279===e.kind&&e.exportClause){t=!0;break}if(!t){const t=k(void 0);return e.push(t),t.name}}const n=[];if(g.exportedNames)for(const e of g.exportedNames)Kd(e)||n.push(t.createPropertyAssignment(t.createStringLiteralFromNode(e),t.createTrue()));for(const e of g.exportedFunctions)Fv(e,2048)||(_n.assert(!!e.name),n.push(t.createPropertyAssignment(t.createStringLiteralFromNode(e.name),t.createTrue())));const r=t.createUniqueName("exportedNames");e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,t.createObjectLiteralExpression(n,!0))])));const i=k(r);return e.push(i),i.name}(a),u=2097152&e.transformFlags?t.createModifiersFromModifierFlags(1024):void 0,d=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",S(_,i)),t.createPropertyAssignment("execute",t.createFunctionExpression(u,void 0,void 0,void 0,[],void 0,t.createBlock(l,!0)))],!0);return a.push(t.createReturnStatement(d)),t.createBlock(a,!0)}(i,l),C=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,h),t.createParameterDeclaration(void 0,void 0,y)],void 0,_),w=BA(t,i,s,o),D=t.createArrayLiteralExpression(N(l,(e=>e.name))),F=Cw(t.updateSourceFile(i,NI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,w?[w,D,C]:[D,C]))]),i.statements)),2048);o.outFile||Xw(F,_,(e=>!e.scoped));x&&(p[c]=x,x=void 0);return m=void 0,g=void 0,h=void 0,y=void 0,v=void 0,b=void 0,F}));function k(e){const n=t.createUniqueName("exportStar"),r=t.createIdentifier("m"),i=t.createIdentifier("n"),o=t.createIdentifier("exports");let a=t.createStrictInequality(i,t.createStringLiteral("default"));return e&&(a=t.createLogicalAnd(a,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(e,"hasOwnProperty"),void 0,[i])))),t.createFunctionDeclaration(void 0,void 0,n,void 0,[t.createParameterDeclaration(void 0,void 0,r)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(o,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(i)]),r,t.createBlock([Cw(t.createIfStatement(a,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(o,i),t.createElementAccessExpression(r,i)))),1)])),t.createExpressionStatement(t.createCallExpression(h,void 0,[o]))],!0))}function S(e,n){const r=[];for(const i of n){const n=_(i.externalImports,(e=>RA(t,e,m))),o=n?t.getGeneratedNameForNode(n):t.createUniqueName(""),a=[];for(const n of i.externalImports){const r=RA(t,n,m);switch(n.kind){case 273:if(!n.importClause)break;case 272:_n.assert(void 0!==r),a.push(t.createExpressionStatement(t.createAssignment(r,o))),Fv(n,32)&&a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createStringLiteral(hc(r)),o])));break;case 279:if(_n.assert(void 0!==r),n.exportClause)if(ME(n.exportClause)){const e=[];for(const r of n.exportClause.elements)e.push(t.createPropertyAssignment(t.createStringLiteral($d(r.name)),t.createElementAccessExpression(o,t.createStringLiteral($d(r.propertyName||r.name)))));a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createObjectLiteralExpression(e,!0)])))}else a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createStringLiteral($d(n.exportClause.name)),o])));else a.push(t.createExpressionStatement(t.createCallExpression(e,void 0,[o])))}}r.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,o)],void 0,t.createBlock(a,!0)))}return t.createArrayLiteralExpression(r,!0)}function T(e){switch(e.kind){case 273:return function(e){let n;e.importClause&&i(RA(t,e,m));return xe(function(e,t){if(g.exportEquals)return e;const n=t.importClause;if(!n)return e;n.name&&(e=L(e,n));const r=n.namedBindings;if(r)switch(r.kind){case 275:e=L(e,r);break;case 276:for(const t of r.elements)e=L(e,t)}return e}(n,e))}(e);case 272:return function(e){let n;return _n.assert(Tm(e),"import= for internal module references should be handled in an earlier transformer."),i(RA(t,e,m)),xe(function(e,t){if(g.exportEquals)return e;return L(e,t)}(n,e))}(e);case 279:return function(e){return void _n.assertIsDefined(e)}(e);case 278:return function(e){if(e.isExportEquals)return;const n=yJ(e.expression,U,W_);return R(t.createIdentifier("default"),n,!0)}(e);default:return B(e)}}function C(e){if(!D(e.declarationList))return yJ(e,U,fu);let n;if(of(e.declarationList)||rf(e.declarationList)){const r=vJ(e.modifiers,H,h_),i=[];for(const n of e.declarationList.declarations)i.push(t.updateVariableDeclaration(n,t.getGeneratedNameForNode(n.name),void 0,void 0,F(n,!1)));const o=t.updateVariableDeclarationList(e.declarationList,i);n=re(n,t.updateVariableStatement(e,r,o))}else{let r;const i=Fv(e,32);for(const t of e.declarationList.declarations)t.initializer?r=re(r,F(t,i)):w(t);r&&(n=re(n,NI(t.createExpressionStatement(t.inlineExpressions(r)),e)))}return n=function(e,t,n){if(g.exportEquals)return e;for(const r of t.declarationList.declarations)(r.initializer||n)&&(e=I(e,r,n));return e}(n,e,!1),xe(n)}function w(e){if(S_(e.name))for(const t of e.name.elements)RF(t)||w(t);else i(t.cloneNode(e.name))}function D(e){return!(4194304&Zd(e)||308!==b.kind&&7&uc(e).flags)}function F(t,n){const r=n?E:P;return S_(t.name)?Az(t,U,e,0,!1,r):t.initializer?r(t.name,yJ(t.initializer,U,W_)):t.name}function E(e,t,n){return A(e,t,n,!0)}function P(e,t,n){return A(e,t,n,!1)}function A(e,n,r,o){return i(t.cloneNode(e)),o?M(e,G(NI(t.createAssignment(e,n),r))):G(NI(t.createAssignment(e,n),r))}function I(e,n,r){if(g.exportEquals)return e;if(S_(n.name))for(const t of n.name.elements)RF(t)||(e=I(e,t,r));else if(!$l(n.name)){let i;r&&(e=j(e,n.name,t.getLocalName(n)),i=hc(n.name)),e=L(e,n,i)}return e}function O(e,n){if(g.exportEquals)return e;let r;if(Fv(n,32)){const i=Fv(n,2048)?t.createStringLiteral("default"):n.name;e=j(e,i,t.getLocalName(n)),r=Uh(i)}return n.name&&(e=L(e,n,r)),e}function L(e,n,r){if(g.exportEquals)return e;const i=t.getDeclarationName(n),o=g.exportSpecifiers.get(i);if(o)for(const t of o)$d(t.name)!==r&&(e=j(e,t.name,i));return e}function j(e,t,n,r){return e=re(e,R(t,n,r))}function R(e,n,r){const i=t.createExpressionStatement(M(e,n));return IA(i),r||Cw(i,3072),i}function M(e,n){const r=_N(e)?t.createStringLiteralFromNode(e):e;return Cw(n,3072|Zd(n)),jw(t.createCallExpression(h,void 0,[r,n]),n)}function B(n){switch(n.kind){case 244:return C(n);case 263:return function(n){v=Fv(n,32)?re(v,t.updateFunctionDeclaration(n,vJ(n.modifiers,H,h_),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,vJ(n.parameters,U,NN),void 0,yJ(n.body,U,KF))):re(v,NJ(n,U,e)),v=O(v,n)}(n);case 264:return function(e){let n;const r=t.getLocalName(e);return i(r),n=re(n,NI(t.createExpressionStatement(t.createAssignment(r,NI(t.createClassExpression(vJ(e.modifiers,H,h_),e.name,void 0,vJ(e.heritageClauses,U,oP),vJ(e.members,U,u_)),e))),e)),n=O(n,e),xe(n)}(n);case 249:return J(n,!0);case 250:return function(n){const r=b;return b=n,n=t.updateForInStatement(n,z(n.initializer),yJ(n.expression,U,W_),wJ(n.statement,B,e)),b=r,n}(n);case 251:return function(n){const r=b;return b=n,n=t.updateForOfStatement(n,n.awaitModifier,z(n.initializer),yJ(n.expression,U,W_),wJ(n.statement,B,e)),b=r,n}(n);case 247:return function(n){return t.updateDoStatement(n,wJ(n.statement,B,e),yJ(n.expression,U,W_))}(n);case 248:return function(n){return t.updateWhileStatement(n,yJ(n.expression,U,W_),wJ(n.statement,B,e))}(n);case 257:return function(e){return t.updateLabeledStatement(e,e.label,yJ(e.statement,B,fu,t.liftToBlock)??t.createExpressionStatement(t.createIdentifier("")))}(n);case 255:return function(e){return t.updateWithStatement(e,yJ(e.expression,U,W_),_n.checkDefined(yJ(e.statement,B,fu,t.liftToBlock)))}(n);case 246:return function(e){return t.updateIfStatement(e,yJ(e.expression,U,W_),yJ(e.thenStatement,B,fu,t.liftToBlock)??t.createBlock([]),yJ(e.elseStatement,B,fu,t.liftToBlock))}(n);case 256:return function(e){return t.updateSwitchStatement(e,yJ(e.expression,U,W_),_n.checkDefined(yJ(e.caseBlock,B,kE)))}(n);case 270:return function(e){const n=b;return b=e,e=t.updateCaseBlock(e,vJ(e.clauses,B,Su)),b=n,e}(n);case 297:return function(e){return t.updateCaseClause(e,yJ(e.expression,U,W_),vJ(e.statements,B,fu))}(n);case 298:case 259:return function(t){return NJ(t,B,e)}(n);case 300:return function(e){const n=b;return b=e,e=t.updateCatchClause(e,e.variableDeclaration,_n.checkDefined(yJ(e.block,B,KF))),b=n,e}(n);case 242:return function(t){const n=b;return b=t,t=NJ(t,B,e),b=n,t}(n);default:return U(n)}}function J(n,r){const i=b;return b=n,n=t.updateForStatement(n,yJ(n.initializer,r?z:W,tu),yJ(n.condition,U,W_),yJ(n.incrementor,W,W_),wJ(n.statement,r?B:U,e)),b=i,n}function z(e){if(function(e){return fE(e)&&D(e)}(e)){let n;for(const t of e.declarations)n=re(n,F(t,!1)),t.initializer||w(t);return n?t.inlineExpressions(n):t.createOmittedExpression()}return yJ(e,W,tu)}function q(n,r){if(!(276828160&n.transformFlags))return n;switch(n.kind){case 249:return J(n,!1);case 245:return function(e){return t.updateExpressionStatement(e,yJ(e.expression,W,W_))}(n);case 218:return function(e,n){return t.updateParenthesizedExpression(e,yJ(e.expression,n?W:U,W_))}(n,r);case 356:return function(e,n){return t.updatePartiallyEmittedExpression(e,yJ(e.expression,n?W:U,W_))}(n,r);case 227:if(ab(n))return function(t,n){if($(t.left))return Az(t,U,e,0,!n);return NJ(t,U,e)}(n,r);break;case 214:if(_f(n))return function(e){const n=MA(t,e,m,s,a,o),r=yJ(pe(e.arguments),U,W_),i=!n||r&&HD(r)&&r.text===n.text?r:n;return t.createCallExpression(t.createPropertyAccessExpression(y,t.createIdentifier("import")),void 0,i?[i]:[])}(n);break;case 225:case 226:return function(n,r){if((46===n.operator||47===n.operator)&&_N(n.operand)&&!$l(n.operand)&&!xA(n.operand)&&!ex(n.operand)){const e=K(n.operand);if(e){let o,a=yJ(n.operand,U,W_);FF(n)?a=t.updatePrefixUnaryExpression(n,a):(a=t.updatePostfixUnaryExpression(n,a),r||(o=t.createTempVariable(i),a=t.createAssignment(o,a),NI(a,n)),a=t.createComma(a,t.cloneNode(n.operand)),NI(a,n));for(const t of e)a=M(t,G(a));return o&&(a=t.createComma(a,o),NI(a,n)),a}}return NJ(n,U,e)}(n,r)}return NJ(n,U,e)}function U(e){return q(e,!1)}function W(e){return q(e,!0)}function $(e){if(ob(e,!0))return $(e.left);if(LF(e))return $(e.expression);if(mF(e))return V(e.properties,$);if(fF(e))return V(e.elements,$);if(cP(e))return $(e.name);if(sP(e))return $(e.initializer);if(_N(e)){const t=a.getReferencedExportContainer(e);return void 0!==t&&308===t.kind}return!1}function H(e){switch(e.kind){case 95:case 90:return}return e}function K(e){let n;const r=function(e){if(!$l(e)){const t=a.getReferencedImportDeclaration(e);if(t)return t;const n=a.getReferencedValueDeclaration(e);if(n&&(null==g?void 0:g.exportedBindings[XJ(n)]))return n;const r=a.getReferencedValueDeclarations(e);if(r)for(const e of r)if(e!==n&&(null==g?void 0:g.exportedBindings[XJ(e)]))return e;return n}}(e);if(r){const i=a.getReferencedExportContainer(e,!1);i&&308===i.kind&&(n=re(n,t.getDeclarationName(r))),n=ae(n,null==g?void 0:g.exportedBindings[XJ(r)])}else if($l(e)&&Kl(e)){const t=null==g?void 0:g.exportSpecifiers.get(e);if(t){const e=[];for(const n of t)e.push(n.name);return e}}return n}function G(e){return void 0===x&&(x=[]),x[cJ(e)]=!0,e}}function Eq(e){const{factory:t,getEmitHelperFactory:n}=e,r=e.getEmitHost(),i=e.getEmitResolver(),o=e.getCompilerOptions(),a=xk(o),s=e.onEmitNode,c=e.onSubstituteNode;e.onEmitNode=function(e,t,n){uP(t)?((_O(t)||Ck(o))&&o.importHelpers&&(u=new Map),d=t,s(e,t,n),d=void 0,u=void 0):s(e,t,n)},e.onSubstituteNode=function(e,n){if((n=c(e,n)).id&&l.has(n.id))return n;if(_N(n)&&8192&Zd(n))return function(e){const n=d&&OA(d);if(n)return l.add(cJ(e)),t.createPropertyAccessExpression(n,e);if(u){const n=hc(e);let r=u.get(n);return r||u.set(n,r=t.createUniqueName(n,48)),r}return e}(n);return n},e.enableEmitNotification(308),e.enableSubstitution(80);const l=new Set;let _,u,d,p;return ZJ(e,(function(r){if(r.isDeclarationFile)return r;if(_O(r)||Ck(o)){d=r,p=void 0,o.rewriteRelativeImportExtensions&&(4194304&d.flags||Em(r))&&EC(r,!1,!1,(e=>{Ru(e.arguments[0])&&!kg(e.arguments[0].text,o)||(_=re(_,e))}));let i=function(r){const i=jA(t,n(),r,o);if(i){const e=[],n=t.copyPrologue(r.statements,e);return ae(e,bJ([i],f,fu)),ae(e,vJ(r.statements,f,fu,n)),t.updateSourceFile(r,NI(t.createNodeArray(e),r.statements))}return NJ(r,f,e)}(r);return Hw(i,e.readEmitHelpers()),d=void 0,p&&(i=t.updateSourceFile(i,NI(t.createNodeArray(jd(i.statements.slice(),p)),i.statements))),!_O(r)||200===kk(o)||V(i.statements,Q_)?i:t.updateSourceFile(i,NI(t.createNodeArray([...i.statements,cA(t)]),i.statements))}return r}));function f(r){switch(r.kind){case 272:return kk(o)>=100?function(e){let n;return _n.assert(Tm(e),"import= for internal module references should be handled in an earlier transformer."),n=re(n,xw(NI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,m(e))],a>=2?2:0)),e),e)),n=function(e,n){Fv(n,32)&&(e=re(e,t.createExportDeclaration(void 0,n.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,hc(n.name))]))));return e}(n,e),xe(n)}(r):void 0;case 278:return function(e){if(e.isExportEquals){if(200===kk(o)){return xw(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),e.expression)),e)}return}return e}(r);case 279:return function(e){const n=Ez(e.moduleSpecifier,o);if(void 0!==o.module&&o.module>5||!e.exportClause||!IE(e.exportClause)||!e.moduleSpecifier)return e.moduleSpecifier&&n!==e.moduleSpecifier?t.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,n,e.attributes):e;const r=e.exportClause.name,i=t.getGeneratedNameForNode(r),a=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamespaceImport(i)),n,e.attributes);xw(a,e.exportClause);const s=Wd(e)?t.createExportDefault(i):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,i,r)]));return xw(s,e),[a,s]}(r);case 273:return function(e){if(!o.rewriteRelativeImportExtensions)return e;const n=Ez(e.moduleSpecifier,o);if(n===e.moduleSpecifier)return e;return t.updateImportDeclaration(e,e.modifiers,e.importClause,n,e.attributes)}(r);case 214:if(r===(null==_?void 0:_[0]))return function(e){return t.updateCallExpression(e,e.expression,e.typeArguments,[Ru(e.arguments[0])?Ez(e.arguments[0],o):n().createRewriteRelativeImportExtensionsHelper(e.arguments[0]),...e.arguments.slice(1)])}(_.shift());default:if((null==_?void 0:_.length)&&Yb(r,_[0]))return NJ(r,f,e)}return r}function m(e){const n=MA(t,e,_n.checkDefined(d),r,i,o),s=[];if(n&&s.push(Ez(n,o)),200===kk(o))return t.createCallExpression(t.createIdentifier("require"),void 0,s);if(!p){const e=t.createUniqueName("_createRequire",48),n=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),e)])),t.createStringLiteral("module"),void 0),r=t.createUniqueName("__require",48),i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,t.createCallExpression(t.cloneNode(e),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],a>=2?2:0));p=[n,i]}const c=p[1].declarationList.declarations[0].name;return _n.assertNode(c,_N),t.createCallExpression(t.cloneNode(c),void 0,s)}}function Pq(e){const t=e.onSubstituteNode,n=e.onEmitNode,r=Eq(e),i=e.onSubstituteNode,o=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=n;const a=Dq(e),s=e.onSubstituteNode,c=e.onEmitNode,l=t=>e.getEmitHost().getEmitModuleFormatOfFile(t);let _;return e.onSubstituteNode=function(e,n){return uP(n)?(_=n,t(e,n)):_?l(_)>=5?i(e,n):s(e,n):t(e,n)},e.onEmitNode=function(e,t,r){uP(t)&&(_=t);if(!_)return n(e,t,r);if(l(_)>=5)return o(e,t,r);return c(e,t,r)},e.enableSubstitution(308),e.enableEmitNotification(308),function(t){return 308===t.kind?u(t):function(t){return e.factory.createBundle(N(t.sourceFiles,u))}(t)};function u(e){if(e.isDeclarationFile)return e;_=e;const t=(l(e)>=5?r:a)(e);return _=void 0,_n.assert(uP(t)),t}}function Aq(e){return pE(e)||PN(e)||EN(e)||pF(e)||Du(e)||Nu(e)||BN(e)||MN(e)||IN(e)||AN(e)||mE(e)||NN(e)||DN(e)||MF(e)||TE(e)||yE(e)||LN(e)||JN(e)||gF(e)||hF(e)||PF(e)||Fg(e)}function Iq(e){return Du(e)||Nu(e)?function(t){const n=function(t){return Ev(e)?t.errorModuleName?2===t.accessibility?ua.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ua.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ua.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:264===e.parent.kind?t.errorModuleName?2===t.accessibility?ua.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ua.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ua.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?ua.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:ua.Property_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:AN(e)||IN(e)?function(t){const n=function(t){return Ev(e)?t.errorModuleName?2===t.accessibility?ua.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ua.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ua.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:264===e.parent.kind?t.errorModuleName?2===t.accessibility?ua.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ua.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ua.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?ua.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:ua.Method_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:Oq(e)}function Oq(e){return pE(e)||PN(e)||EN(e)||gF(e)||hF(e)||PF(e)||pF(e)||LN(e)?t:Du(e)||Nu(e)?function(t){let n;n=179===e.kind?Ev(e)?t.errorModuleName?ua.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ua.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?ua.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ua.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Ev(e)?t.errorModuleName?2===t.accessibility?ua.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ua.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ua.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?2===t.accessibility?ua.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ua.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:ua.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1;return{diagnosticMessage:n,errorNode:e.name,typeName:e.name}}:BN(e)||MN(e)||IN(e)||AN(e)||mE(e)||JN(e)?function(t){let n;switch(e.kind){case 181:n=t.errorModuleName?ua.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ua.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 180:n=t.errorModuleName?ua.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ua.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 182:n=t.errorModuleName?ua.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ua.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 175:case 174:n=Ev(e)?t.errorModuleName?2===t.accessibility?ua.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ua.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:ua.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:264===e.parent.kind?t.errorModuleName?2===t.accessibility?ua.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ua.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:ua.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?ua.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:ua.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 263:n=t.errorModuleName?2===t.accessibility?ua.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:ua.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:ua.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return _n.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:n,errorNode:e.name||e}}:NN(e)?ec(e,e.parent)&&Fv(e.parent,2)?t:function(t){const n=function(t){switch(e.parent.kind){case 177:return t.errorModuleName?2===t.accessibility?ua.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ua.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:ua.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 181:case 186:return t.errorModuleName?ua.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ua.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 180:return t.errorModuleName?ua.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ua.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 182:return t.errorModuleName?ua.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ua.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 175:case 174:return Ev(e.parent)?t.errorModuleName?2===t.accessibility?ua.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ua.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:ua.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:264===e.parent.parent.kind?t.errorModuleName?2===t.accessibility?ua.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ua.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:ua.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?ua.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:ua.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 263:case 185:return t.errorModuleName?2===t.accessibility?ua.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ua.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:ua.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 179:case 178:return t.errorModuleName?2===t.accessibility?ua.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ua.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:ua.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return _n.fail(`Unknown parent for parameter: ${_n.formatSyntaxKind(e.parent.kind)}`)}}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:DN(e)?function(){let t;switch(e.parent.kind){case 264:t=ua.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 265:t=ua.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 201:t=ua.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 186:case 181:t=ua.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 180:t=ua.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 175:case 174:t=Ev(e.parent)?ua.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:264===e.parent.parent.kind?ua.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:ua.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 185:case 263:t=ua.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 196:t=ua.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 266:t=ua.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return _n.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:t,errorNode:e,typeName:e.name}}:MF(e)?function(){let t;t=gE(e.parent.parent)?oP(e.parent)&&119===e.parent.token?ua.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?ua.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:ua.extends_clause_of_exported_class_has_or_is_using_private_name_0:ua.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;return{diagnosticMessage:t,errorNode:e,typeName:wc(e.parent.parent)}}:TE(e)?function(){return{diagnosticMessage:ua.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}:yE(e)||Fg(e)?function(t){return{diagnosticMessage:t.errorModuleName?ua.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:ua.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:Fg(e)?_n.checkDefined(e.typeExpression):e.type,typeName:Fg(e)?wc(e):e.name}}:_n.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${_n.formatSyntaxKind(e.kind)}`);function t(t){const n=function(t){return 261===e.kind||209===e.kind?t.errorModuleName?2===t.accessibility?ua.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ua.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:ua.Exported_variable_0_has_or_is_using_private_name_1:173===e.kind||212===e.kind||213===e.kind||227===e.kind||172===e.kind||170===e.kind&&Fv(e.parent,2)?Ev(e)?t.errorModuleName?2===t.accessibility?ua.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ua.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ua.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:264===e.parent.kind||170===e.kind?t.errorModuleName?2===t.accessibility?ua.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:ua.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:ua.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?ua.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:ua.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}}function Lq(e){const t={220:ua.Add_a_return_type_to_the_function_expression,219:ua.Add_a_return_type_to_the_function_expression,175:ua.Add_a_return_type_to_the_method,178:ua.Add_a_return_type_to_the_get_accessor_declaration,179:ua.Add_a_type_to_parameter_of_the_set_accessor_declaration,263:ua.Add_a_return_type_to_the_function_declaration,181:ua.Add_a_return_type_to_the_function_declaration,170:ua.Add_a_type_annotation_to_the_parameter_0,261:ua.Add_a_type_annotation_to_the_variable_0,173:ua.Add_a_type_annotation_to_the_property_0,172:ua.Add_a_type_annotation_to_the_property_0,278:ua.Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it},n={219:ua.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,263:ua.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,220:ua.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,175:ua.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,181:ua.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,178:ua.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,179:ua.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,170:ua.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations,261:ua.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations,173:ua.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,172:ua.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,168:ua.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations,306:ua.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations,305:ua.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations,210:ua.Only_const_arrays_can_be_inferred_with_isolatedDeclarations,278:ua.Default_exports_can_t_be_inferred_with_isolatedDeclarations,231:ua.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations};return function(r){if(dc(r,oP))return Mp(r,ua.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations);if((wf(r)||WN(r.parent))&&(t_(r)||cb(r)))return function(e){const t=Mp(e,ua.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations,Xd(e,!1));return o(e,t),t}(r);switch(_n.type(r),r.kind){case 178:case 179:return i(r);case 168:case 305:case 306:return function(e){const t=Mp(e,n[e.kind]);return o(e,t),t}(r);case 210:case 231:return function(e){const t=Mp(e,n[e.kind]);return o(e,t),t}(r);case 175:case 181:case 219:case 220:case 263:return function(e){const r=Mp(e,n[e.kind]);return o(e,r),cT(r,Mp(e,t[e.kind])),r}(r);case 209:return function(e){return Mp(e,ua.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations)}(r);case 173:case 261:return function(e){const r=Mp(e,n[e.kind]),i=Xd(e.name,!1);return cT(r,Mp(e,t[e.kind],i)),r}(r);case 170:return function(r){if(Du(r.parent))return i(r.parent);const o=e.requiresAddingImplicitUndefined(r,r.parent);if(!o&&r.initializer)return a(r.initializer);const s=o?ua.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:n[r.kind],c=Mp(r,s),l=Xd(r.name,!1);return cT(c,Mp(r,t[r.kind],l)),c}(r);case 304:return a(r.initializer);case 232:return function(e){return a(e,ua.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations)}(r);default:return a(r)}};function r(e){const t=dc(e,(e=>jE(e)||fu(e)||pE(e)||PN(e)||NN(e)));if(t)return jE(t)?t:aE(t)?dc(t,(e=>a_(e)&&!LN(e))):fu(t)?void 0:t}function i(e){const{getAccessor:r,setAccessor:i}=fv(e.symbol.declarations,e),o=Mp((Du(e)?e.parameters[0]:e)??e,n[e.kind]);return i&&cT(o,Mp(i,t[i.kind])),r&&cT(o,Mp(r,t[r.kind])),o}function o(e,n){const i=r(e);if(i){const e=jE(i)||!i.name?"":Xd(i.name,!1);cT(n,Mp(i,t[i.kind],e))}return n}function a(e,i){const o=r(e);let a;if(o){const r=jE(o)||!o.name?"":Xd(o.name,!1);o===dc(e.parent,(e=>jE(e)||(fu(e)?"quit":!kF(e)&&!xF(e)&&!BF(e))))?(a=Mp(e,i??n[o.kind]),cT(a,Mp(o,t[o.kind],r))):(a=Mp(e,i??ua.Expression_type_can_t_be_inferred_with_isolatedDeclarations),cT(a,Mp(o,t[o.kind],r)),cT(a,Mp(e,ua.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)))}else a=Mp(e,i??ua.Expression_type_can_t_be_inferred_with_isolatedDeclarations);return a}}function jq(e,t,n){const r=e.getCompilerOptions();return k(C(Xy(e,n),Am),n)?Qq(t,e,vw,r,[n],[Bq],!1).diagnostics:void 0}var Rq=531469,Mq=8;function Bq(e){const t=()=>_n.fail("Diagnostic emitted without context");let n,r,i,o,a=t,c=!0,u=!1,d=!1,p=!1,f=!1;const{factory:m}=e,g=e.getEmitHost();let h=()=>{};const y={trackSymbol:function(e,t,n){if(262144&e.flags)return!1;return M(D.isSymbolAccessible(e,t,n,!0))},reportInaccessibleThisError:function(){(v||b)&&e.addDiagnostic(Mp(v||b,ua.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,B(),"this"))},reportInaccessibleUniqueSymbolError:function(){(v||b)&&e.addDiagnostic(Mp(v||b,ua.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,B(),"unique symbol"))},reportCyclicStructureError:function(){(v||b)&&e.addDiagnostic(Mp(v||b,ua.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,B()))},reportPrivateInBaseOfClassExpression:function(t){(v||b)&&e.addDiagnostic(cT(Mp(v||b,ua.Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected,t),...pE((v||b).parent)?[Mp(v||b,ua.Add_a_type_annotation_to_the_variable_0,B())]:[]))},reportLikelyUnsafeImportRequiredError:function(t,n){(v||b)&&(n?e.addDiagnostic(Mp(v||b,ua.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_2_from_1_This_is_likely_not_portable_A_type_annotation_is_necessary,B(),t,n)):e.addDiagnostic(Mp(v||b,ua.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,B(),t)))},reportTruncationError:function(){(v||b)&&e.addDiagnostic(Mp(v||b,ua.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:g,reportNonlocalAugmentation:function(t,n,r){var i;const o=null==(i=n.declarations)?void 0:i.find((e=>bd(e)===t)),a=C(r.declarations,(e=>bd(e)!==t));if(o&&a)for(const t of a)e.addDiagnostic(cT(Mp(t,ua.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Mp(o,ua.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))},reportNonSerializableProperty:function(t){(v||b)&&e.addDiagnostic(Mp(v||b,ua.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,t))},reportInferenceFallback:j,pushErrorFallbackNode(e){const t=b,n=h;h=()=>{h=n,b=t},b=e},popErrorFallbackNode(){h()}};let v,b,x,S,T,w;const D=e.getEmitResolver(),F=e.getCompilerOptions(),E=Lq(D),{stripInternal:I,isolatedDeclarations:O}=F;return function(s){if(308===s.kind&&s.isDeclarationFile)return s;if(309===s.kind){u=!0,S=[],T=[],w=[];const l=m.createBundle(N(s.sourceFiles,(s=>{if(s.isDeclarationFile)return;if(x=s,n=s,r=void 0,o=!1,i=new Map,a=t,p=!1,f=!1,h(s),Zp(s)||ef(s)){d=!1,c=!1;const t=Fm(s)?m.createNodeArray(J(s)):vJ(s.statements,le,fu);return m.updateSourceFile(s,[m.createModuleDeclaration([m.createModifier(138)],m.createStringLiteral(By(e.getEmitHost(),s)),m.createModuleBlock(NI(m.createNodeArray(ae(t)),s.statements)))],!0,[],[],!1,[])}c=!0;const l=Fm(s)?m.createNodeArray(J(s)):vJ(s.statements,le,fu);return m.updateSourceFile(s,ae(l),!0,[],[],!1,[])}))),_=Fo(Lo(iU(s,g,!0).declarationFilePath));return l.syntheticFileReferences=C(_),l.syntheticTypeReferences=v(),l.syntheticLibReferences=b(),l}let l;if(c=!0,p=!1,f=!1,n=s,x=s,a=t,u=!1,d=!1,o=!1,r=void 0,i=new Map,S=[],T=[],w=[],h(x),Fm(x))l=m.createNodeArray(J(s));else{const e=vJ(s.statements,le,fu);l=NI(m.createNodeArray(ae(e)),s.statements),_O(s)&&(!d||p&&!f)&&(l=NI(m.createNodeArray([...l,cA(m)]),l))}const _=Fo(Lo(iU(s,g,!0).declarationFilePath));return m.updateSourceFile(s,l,!0,C(_),v(),!1,b());function h(e){S=$(S,N(e.referencedFiles,(t=>[e,t]))),T=$(T,e.typeReferenceDirectives),w=$(w,e.libReferenceDirectives)}function y(e){const t={...e};return t.pos=-1,t.end=-1,t}function v(){return R(T,(e=>{if(e.preserve)return y(e)}))}function b(){return R(w,(e=>{if(e.preserve)return y(e)}))}function C(e){return R(S,(([t,n])=>{if(!n.preserve)return;const r=g.getSourceFileFromReference(t,n);if(!r)return;let i;if(r.isDeclarationFile)i=r.fileName;else{if(u&&k(s.sourceFiles,r))return;const e=iU(r,g,!0);i=e.declarationFilePath||e.jsFilePath||r.fileName}if(!i)return;const o=sa(e,i,g.getCurrentDirectory(),g.getCanonicalFileName,!1),a=y(n);return a.fileName=o,a}))}};function L(t){D.getPropertiesOfContainerFunction(t).forEach((t=>{if(uC(t.valueDeclaration)){const n=PF(t.valueDeclaration)?t.valueDeclaration.left:t.valueDeclaration;e.addDiagnostic(Mp(n,ua.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function))}}))}function j(t){O&&!Fm(x)&&bd(t)===x&&(pE(t)&&D.isExpandoFunctionDeclaration(t)?L(t):e.addDiagnostic(E(t)))}function M(t){if(0===t.accessibility){if(t.aliasesToMakeVisible)if(r)for(const e of t.aliasesToMakeVisible)se(r,e);else r=t.aliasesToMakeVisible}else if(3!==t.accessibility){const n=a(t);if(n)return n.typeName?e.addDiagnostic(Mp(t.errorNode||n.errorNode,n.diagnosticMessage,Xd(n.typeName),t.errorSymbolName,t.errorModuleName)):e.addDiagnostic(Mp(t.errorNode||n.errorNode,n.diagnosticMessage,t.errorSymbolName,t.errorModuleName)),!0}return!1}function B(){return v?Ap(v):b&&wc(b)?Ap(wc(b)):b&&jE(b)?b.isExportEquals?"export=":"default":"(Missing)"}function J(e){const t=a;a=t=>t.errorNode&&Aq(t.errorNode)?Oq(t.errorNode)(t):{diagnosticMessage:t.errorModuleName?ua.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:ua.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:t.errorNode||e};const n=D.getDeclarationStatementsForSourceFile(e,Rq,Mq,y);return a=t,n}function z(e){return 80===e.kind?e:208===e.kind?m.updateArrayBindingPattern(e,vJ(e.elements,t,C_)):m.updateObjectBindingPattern(e,vJ(e.elements,t,pF));function t(e){return 233===e.kind?e:(e.propertyName&&wN(e.propertyName)&&cb(e.propertyName.expression)&&ee(e.propertyName.expression,n),m.updateBindingElement(e,e.dotDotDotToken,e.propertyName,z(e.name),void 0))}}function q(e,t){let n;o||(n=a,a=Oq(e));const r=m.updateParameterDeclaration(e,function(e,t,n,r){return e.createModifiersFromModifierFlags(Jq(t,n,r))}(m,e,t),e.dotDotDotToken,z(e.name),D.isOptionalParameter(e)?e.questionToken||m.createToken(58):void 0,H(e,!0),W(e));return o||(a=n),r}function U(e){return zq(e)&&!!e.initializer&&D.isLiteralConstDeclaration(fc(e))}function W(e){if(U(e)){return kC(SC(e.initializer))||j(e),D.createLiteralConstValue(fc(e,zq),y)}}function H(e,t){if(!t&&Nv(e,2))return;if(U(e))return;if(!jE(e)&&!pF(e)&&e.type&&(!NN(e)||!D.requiresAddingImplicitUndefined(e,n)))return yJ(e.type,ce,x_);const r=v;let i,s;return v=e.name,o||(i=a,Aq(e)&&(a=Oq(e))),TC(e)?s=D.createTypeOfDeclaration(e,n,Rq,Mq,y):i_(e)?s=D.createReturnTypeOfSignatureDeclaration(e,n,Rq,Mq,y):_n.assertNever(e),v=r,o||(a=i),s??m.createKeywordTypeNode(133)}function K(e){switch((e=fc(e)).kind){case 263:case 268:case 265:case 264:case 266:case 267:return!D.isDeclarationVisible(e);case 261:return!G(e);case 272:case 273:case 279:case 278:return!1;case 176:return!0}return!1}function G(e){return!RF(e)&&(S_(e.name)?V(e.name.elements,G):D.isDeclarationVisible(e))}function X(e,t,n){if(Nv(e,2))return m.createNodeArray();const r=N(t,(e=>q(e,n)));return r?m.createNodeArray(r,t.hasTrailingComma):m.createNodeArray()}function Q(e,t){let n;if(!t){const t=cv(e);t&&(n=[q(t)])}if(RN(e)){let r;if(!t){const t=av(e);t&&(r=q(t))}r||(r=m.createParameterDeclaration(void 0,void 0,"value")),n=re(n,r)}return m.createNodeArray(n||s)}function Y(e,t){return Nv(e,2)?void 0:vJ(t,ce,DN)}function Z(e){return uP(e)||yE(e)||bE(e)||gE(e)||hE(e)||i_(e)||JN(e)||aF(e)}function ee(e,t){M(D.isEntityNameVisible(e,t))}function ne(e,t){return Fu(e)&&Fu(t)&&(e.jsDoc=t.jsDoc),jw(e,Lw(t))}function ie(t,n){if(n){if(d=d||268!==t.kind&&206!==t.kind,Ru(n)&&u){const n=zy(e.getEmitHost(),D,t);if(n)return m.createStringLiteral(n)}return n}}function oe(e){const t=SV(e);return e&&void 0!==t?e:void 0}function ae(e){for(;l(r);){const e=r.shift();if(!wp(e))return _n.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${_n.formatSyntaxKind(e.kind)}`);const t=c;c=e.parent&&uP(e.parent)&&!(_O(e.parent)&&u);const n=de(e);c=t,i.set(XJ(e),n)}return vJ(e,(function(e){if(wp(e)){const t=XJ(e);if(i.has(t)){const n=i.get(t);return i.delete(t),n&&((Xe(n)?V(n,X_):X_(n))&&(p=!0),uP(e.parent)&&(Xe(n)?V(n,Q_):Q_(n))&&(d=!0)),n}}return e}),fu)}function ce(t){if(fe(t))return;if(uu(t)){if(K(t))return;if(Bh(t))if(O){if(!D.isDefinitelyReferenceToGlobalSymbolObject(t.name.expression)){if(gE(t.parent)||mF(t.parent))return void e.addDiagnostic(Mp(t,ua.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));if((hE(t.parent)||$N(t.parent))&&!cb(t.name.expression))return void e.addDiagnostic(Mp(t,ua.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations))}}else if(!D.isLateBound(fc(t))||!cb(t.name.expression))return}if(i_(t)&&D.isImplementationOfOverload(t))return;if(HF(t))return;let r;Z(t)&&(r=n,n=t);const i=a,s=Aq(t),c=o;let l=(188===t.kind||201===t.kind)&&266!==t.parent.kind;if((IN(t)||AN(t))&&Nv(t,2)){if(t.symbol&&t.symbol.declarations&&t.symbol.declarations[0]!==t)return;return u(m.createPropertyDeclaration(ge(t),t.name,void 0,void 0,void 0))}if(s&&!o&&(a=Oq(t)),WN(t)&&ee(t.exprName,n),l&&(o=!0),function(e){switch(e.kind){case 181:case 177:case 175:case 178:case 179:case 173:case 172:case 174:case 180:case 182:case 261:case 169:case 234:case 184:case 195:case 185:case 186:case 206:return!0}return!1}(t))switch(t.kind){case 234:{(t_(t.expression)||cb(t.expression))&&ee(t.expression,n);const r=NJ(t,ce,e);return u(m.updateExpressionWithTypeArguments(r,r.expression,r.typeArguments))}case 184:{ee(t.typeName,n);const r=NJ(t,ce,e);return u(m.updateTypeReferenceNode(r,r.typeName,r.typeArguments))}case 181:return u(m.updateConstructSignature(t,Y(t,t.typeParameters),X(t,t.parameters),H(t)));case 177:return u(m.createConstructorDeclaration(ge(t),X(t,t.parameters,0),void 0));case 175:if(uN(t.name))return u(void 0);return u(m.createMethodDeclaration(ge(t),void 0,t.name,t.questionToken,Y(t,t.typeParameters),X(t,t.parameters),H(t),void 0));case 178:return uN(t.name)?u(void 0):u(m.updateGetAccessorDeclaration(t,ge(t),t.name,Q(t,Nv(t,2)),H(t),void 0));case 179:return uN(t.name)?u(void 0):u(m.updateSetAccessorDeclaration(t,ge(t),t.name,Q(t,Nv(t,2)),void 0));case 173:return uN(t.name)?u(void 0):u(m.updatePropertyDeclaration(t,ge(t),t.name,t.questionToken,H(t),W(t)));case 172:return uN(t.name)?u(void 0):u(m.updatePropertySignature(t,ge(t),t.name,t.questionToken,H(t)));case 174:return uN(t.name)?u(void 0):u(m.updateMethodSignature(t,ge(t),t.name,t.questionToken,Y(t,t.typeParameters),X(t,t.parameters),H(t)));case 180:return u(m.updateCallSignature(t,Y(t,t.typeParameters),X(t,t.parameters),H(t)));case 182:return u(m.updateIndexSignature(t,ge(t),X(t,t.parameters),yJ(t.type,ce,x_)||m.createKeywordTypeNode(133)));case 261:return S_(t.name)?pe(t.name):(l=!0,o=!0,u(m.updateVariableDeclaration(t,t.name,void 0,H(t),W(t))));case 169:return 175===(_=t).parent.kind&&Nv(_.parent,2)&&(t.default||t.constraint)?u(m.updateTypeParameterDeclaration(t,t.modifiers,t.name,void 0,void 0)):u(NJ(t,ce,e));case 195:{const e=yJ(t.checkType,ce,x_),r=yJ(t.extendsType,ce,x_),i=n;n=t.trueType;const o=yJ(t.trueType,ce,x_);n=i;const a=yJ(t.falseType,ce,x_);return _n.assert(e),_n.assert(r),_n.assert(o),_n.assert(a),u(m.updateConditionalTypeNode(t,e,r,o,a))}case 185:return u(m.updateFunctionTypeNode(t,vJ(t.typeParameters,ce,DN),X(t,t.parameters),_n.checkDefined(yJ(t.type,ce,x_))));case 186:return u(m.updateConstructorTypeNode(t,ge(t),vJ(t.typeParameters,ce,DN),X(t,t.parameters),_n.checkDefined(yJ(t.type,ce,x_))));case 206:return df(t)?u(m.updateImportTypeNode(t,m.updateLiteralTypeNode(t.argument,ie(t,t.argument.literal)),t.attributes,t.qualifier,vJ(t.typeArguments,ce,x_),t.isTypeOf)):u(t);default:_n.assertNever(t,`Attempted to process unhandled node kind: ${_n.formatSyntaxKind(t.kind)}`)}var _;return KN(t)&&qa(x,t.pos).line===qa(x,t.end).line&&Cw(t,1),u(NJ(t,ce,e));function u(e){return e&&s&&Bh(t)&&function(e){let t;o||(t=a,a=Iq(e));v=e.name,_n.assert(Bh(e));const r=e;ee(r.name.expression,n),o||(a=t);v=void 0}(t),Z(t)&&(n=r),s&&!o&&(a=i),l&&(o=c),e===t?e:e&&xw(ne(e,t),t)}}function le(e){if(!function(e){switch(e.kind){case 263:case 268:case 272:case 265:case 264:case 266:case 267:case 244:case 273:case 279:case 278:return!0}return!1}(e))return;if(fe(e))return;switch(e.kind){case 279:return uP(e.parent)&&(d=!0),f=!0,m.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,ie(e,e.moduleSpecifier),oe(e.attributes));case 278:if(uP(e.parent)&&(d=!0),f=!0,80===e.expression.kind)return e;{const t=m.createUniqueName("_default",16);a=()=>({diagnosticMessage:ua.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:e}),b=e;const n=H(e),r=m.createVariableDeclaration(t,void 0,n,void 0);b=void 0;const i=m.createVariableStatement(c?[m.createModifier(138)]:[],m.createVariableDeclarationList([r],2));return ne(i,e),Tw(e),[i,m.updateExportAssignment(e,e.modifiers,t)]}}const t=de(e);return i.set(XJ(e),t),e}function _e(e){if(TE(e)||Nv(e,2048)||!FI(e))return e;const t=m.createModifiersFromModifierFlags(131039&zv(e));return m.replaceModifiers(e,t)}function ue(e,t,n,r){const i=m.updateModuleDeclaration(e,t,n,r);if(cp(i)||32&i.flags)return i;const o=m.createModuleDeclaration(i.modifiers,i.name,i.body,32|i.flags);return xw(o,i),NI(o,i),o}function de(t){if(r)for(;Jt(r,t););if(fe(t))return;switch(t.kind){case 272:return function(e){if(D.isDeclarationVisible(e)){if(284===e.moduleReference.kind){const t=Cm(e);return m.updateImportEqualsDeclaration(e,e.modifiers,e.isTypeOnly,e.name,m.updateExternalModuleReference(e.moduleReference,ie(e,t)))}{const t=a;return a=Oq(e),ee(e.moduleReference,n),a=t,e}}}(t);case 273:return function(t){if(!t.importClause)return m.updateImportDeclaration(t,t.modifiers,t.importClause,ie(t,t.moduleSpecifier),oe(t.attributes));const n=166===t.importClause.phaseModifier?void 0:t.importClause.phaseModifier,r=t.importClause&&t.importClause.name&&D.isDeclarationVisible(t.importClause)?t.importClause.name:void 0;if(!t.importClause.namedBindings)return r&&m.updateImportDeclaration(t,t.modifiers,m.updateImportClause(t.importClause,n,r,void 0),ie(t,t.moduleSpecifier),oe(t.attributes));if(275===t.importClause.namedBindings.kind){const e=D.isDeclarationVisible(t.importClause.namedBindings)?t.importClause.namedBindings:void 0;return r||e?m.updateImportDeclaration(t,t.modifiers,m.updateImportClause(t.importClause,n,r,e),ie(t,t.moduleSpecifier),oe(t.attributes)):void 0}const i=R(t.importClause.namedBindings.elements,(e=>D.isDeclarationVisible(e)?e:void 0));return i&&i.length||r?m.updateImportDeclaration(t,t.modifiers,m.updateImportClause(t.importClause,n,r,i&&i.length?m.updateNamedImports(t.importClause.namedBindings,i):void 0),ie(t,t.moduleSpecifier),oe(t.attributes)):D.isImportRequiredByAugmentation(t)?(O&&e.addDiagnostic(Mp(t,ua.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations)),m.updateImportDeclaration(t,t.modifiers,void 0,ie(t,t.moduleSpecifier),oe(t.attributes))):void 0}(t)}if(uu(t)&&K(t))return;if(eA(t))return;if(i_(t)&&D.isImplementationOfOverload(t))return;let o;Z(t)&&(o=n,n=t);const s=Aq(t),u=a;s&&(a=Oq(t));const g=c;switch(t.kind){case 266:{c=!1;const e=h(m.updateTypeAliasDeclaration(t,ge(t),t.name,vJ(t.typeParameters,ce,DN),_n.checkDefined(yJ(t.type,ce,x_))));return c=g,e}case 265:return h(m.updateInterfaceDeclaration(t,ge(t),t.name,Y(t,t.typeParameters),he(t.heritageClauses),vJ(t.members,ce,y_)));case 263:{const e=h(m.updateFunctionDeclaration(t,ge(t),void 0,t.name,Y(t,t.typeParameters),X(t,t.parameters),H(t),void 0));if(e&&D.isExpandoFunctionDeclaration(t)&&function(e){var t;if(e.body)return!0;const n=null==(t=e.symbol.declarations)?void 0:t.filter((e=>mE(e)&&!e.body));return!n||n.indexOf(e)===n.length-1}(t)){const r=D.getPropertiesOfContainerFunction(t);O&&L(t);const i=AI.createModuleDeclaration(void 0,e.name||m.createIdentifier("_default"),m.createModuleBlock([]),32);ET(i,n),i.locals=Xu(r),i.symbol=r[0].parent;const o=[];let s=R(r,(e=>{if(!uC(e.valueDeclaration))return;const t=gc(e.escapedName);if(!gs(t,99))return;a=Oq(e.valueDeclaration);const n=D.createTypeOfDeclaration(e.valueDeclaration,i,Rq,2|Mq,y);a=u;const r=Ph(t),s=r?m.getGeneratedNameForNode(e.valueDeclaration):m.createIdentifier(t);r&&o.push([s,t]);const c=m.createVariableDeclaration(s,void 0,n,void 0);return m.createVariableStatement(r?void 0:[m.createToken(95)],m.createVariableDeclarationList([c]))}));o.length?s.push(m.createExportDeclaration(void 0,!1,m.createNamedExports(N(o,(([e,t])=>m.createExportSpecifier(!1,e,t)))))):s=R(s,(e=>m.replaceModifiers(e,0)));const c=m.createModuleDeclaration(ge(t),t.name,m.createModuleBlock(s),32);if(!Nv(e,2048))return[e,c];const l=m.createModifiersFromModifierFlags(-2081&zv(e)|128),_=m.updateFunctionDeclaration(e,l,void 0,e.name,e.typeParameters,e.parameters,e.type,void 0),p=m.updateModuleDeclaration(c,l,c.name,c.body),g=m.createExportAssignment(void 0,!1,c.name);return uP(t.parent)&&(d=!0),f=!0,[_,p,g]}return e}case 268:{c=!1;const e=t.body;if(e&&269===e.kind){const n=p,r=f;f=!1,p=!1;let i=ae(vJ(e.statements,le,fu));33554432&t.flags&&(p=!1),pp(t)||function(e){return V(e,me)}(i)||f||(i=p?m.createNodeArray([...i,cA(m)]):vJ(i,_e,fu));const o=m.updateModuleBlock(e,i);c=g,p=n,f=r;const a=ge(t);return h(ue(t,a,fp(t)?ie(t,t.name):t.name,o))}{c=g;const n=ge(t);c=!1,yJ(e,le);const r=XJ(e),o=i.get(r);return i.delete(r),h(ue(t,n,t.name,o))}}case 264:{v=t.name,b=t;const e=m.createNodeArray(ge(t)),r=Y(t,t.typeParameters),i=ov(t);let o;if(i){const e=a;o=te(A(i.parameters,(e=>{if(Fv(e,31)&&!fe(e))return a=Oq(e),80===e.name.kind?ne(m.createPropertyDeclaration(ge(e),e.name,e.questionToken,H(e),W(e)),e):function t(n){let r;for(const i of n.elements)RF(i)||(S_(i.name)?r=$(r,t(i.name)):(r=r||[],r.push(m.createPropertyDeclaration(ge(e),i.name,void 0,H(i),void 0))));return r}(e.name)}))),a=e}const s=$($($(V(t.members,(e=>!!e.name&&uN(e.name)))?[m.createPropertyDeclaration(void 0,m.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,D.createLateBoundIndexSignatures(t,n,Rq,Mq,y)),o),vJ(t.members,ce,u_)),l=m.createNodeArray(s),_=vh(t);if(_&&!cb(_.expression)&&106!==_.expression.kind){const n=t.name?gc(t.name.escapedText):"default",i=m.createUniqueName(`${n}_base`,16);a=()=>({diagnosticMessage:ua.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:_,typeName:t.name});const o=m.createVariableDeclaration(i,void 0,D.createTypeOfExpression(_.expression,t,Rq,Mq,y),void 0),s=m.createVariableStatement(c?[m.createModifier(138)]:[],m.createVariableDeclarationList([o],2)),u=m.createNodeArray(N(t.heritageClauses,(e=>{if(96===e.token){const t=a;a=Oq(e.types[0]);const n=m.updateHeritageClause(e,N(e.types,(e=>m.updateExpressionWithTypeArguments(e,i,vJ(e.typeArguments,ce,x_)))));return a=t,n}return m.updateHeritageClause(e,vJ(m.createNodeArray(C(e.types,(e=>cb(e.expression)||106===e.expression.kind))),ce,MF))})));return[s,h(m.updateClassDeclaration(t,e,t.name,r,u,l))]}{const n=he(t.heritageClauses);return h(m.updateClassDeclaration(t,e,t.name,r,n,l))}}case 244:return h(function(e){if(!_(e.declarationList.declarations,G))return;const t=vJ(e.declarationList.declarations,ce,pE);if(!l(t))return;const n=m.createNodeArray(ge(e));let r;of(e.declarationList)||rf(e.declarationList)?(r=m.createVariableDeclarationList(t,2),xw(r,e.declarationList),NI(r,e.declarationList),jw(r,e.declarationList)):r=m.updateVariableDeclarationList(e.declarationList,t);return m.updateVariableStatement(e,n,r)}(t));case 267:return h(m.updateEnumDeclaration(t,m.createNodeArray(ge(t)),t.name,m.createNodeArray(R(t.members,(t=>{if(fe(t))return;const n=D.getEnumMemberValue(t),r=null==n?void 0:n.value;O&&t.initializer&&(null==n?void 0:n.hasExternalReferences)&&!wN(t.name)&&e.addDiagnostic(Mp(t,ua.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations));const i=void 0===r?void 0:"string"==typeof r?m.createStringLiteral(r):r<0?m.createPrefixUnaryExpression(41,m.createNumericLiteral(-r)):m.createNumericLiteral(r);return ne(m.updateEnumMember(t,t.name,i),t)})))))}return _n.assertNever(t,`Unhandled top-level node in declaration emit: ${_n.formatSyntaxKind(t.kind)}`);function h(e){return Z(t)&&(n=o),s&&(a=u),268===t.kind&&(c=g),e===t?e:(b=void 0,v=void 0,e&&xw(ne(e,t),t))}}function pe(e){return P(R(e.elements,(e=>function(e){if(233===e.kind)return;if(e.name){if(!G(e))return;return S_(e.name)?pe(e.name):m.createVariableDeclaration(e.name,void 0,H(e),void 0)}}(e))))}function fe(e){return!!I&&!!e&&qu(e,x)}function me(e){return jE(e)||RE(e)}function ge(e){const t=zv(e),n=function(e){let t=130030,n=c&&!function(e){if(265===e.kind)return!0;return!1}(e)?128:0;const r=308===e.parent.kind;(!r||u&&r&&_O(e.parent))&&(t^=128,n=0);return Jq(e,t,n)}(e);return t===n?bJ(e.modifiers,(e=>et(e,e_)),e_):m.createModifiersFromModifierFlags(n)}function he(e){return m.createNodeArray(C(N(e,(e=>m.updateHeritageClause(e,vJ(m.createNodeArray(C(e.types,(t=>cb(t.expression)||96===e.token&&106===t.expression.kind))),ce,MF)))),(e=>e.types&&!!e.types.length)))}}function Jq(e,t=131070,n=0){let r=zv(e)&t|n;return 2048&r&&!(32&r)&&(r^=32),2048&r&&128&r&&(r^=128),r}function zq(e){switch(e.kind){case 173:case 172:return!Nv(e,2);case 170:case 261:return!0}return!1}var qq={scriptTransformers:s,declarationTransformers:s};function Uq(e,t,n){return{scriptTransformers:Vq(e,t,n),declarationTransformers:Wq(t)}}function Vq(e,t,n){if(n)return s;const r=xk(e),i=kk(e),o=jk(e),a=[];return ae(a,t&&N(t.before,Hq)),a.push(rq),e.experimentalDecorators&&a.push(sq),Gk(e)&&a.push(xq),r<99&&a.push(mq),e.experimentalDecorators||!(r<99)&&o||a.push(cq),a.push(iq),r<8&&a.push(fq),r<7&&a.push(pq),r<6&&a.push(dq),r<5&&a.push(uq),r<4&&a.push(lq),r<3&&a.push(Sq),r<2&&(a.push(Cq),a.push(wq)),a.push(function(e){switch(e){case 200:return Eq;case 99:case 7:case 6:case 5:case 100:case 101:case 102:case 199:case 1:return Pq;case 4:return Fq;default:return Dq}}(i)),ae(a,t&&N(t.after,Hq)),a}function Wq(e){const t=[];return t.push(Bq),ae(t,e&&N(e.afterDeclarations,Kq)),t}function $q(e,t){return n=>{const r=e(n);return"function"==typeof r?t(n,r):function(e){return t=>dP(t)?e.transformBundle(t):e.transformSourceFile(t)}(r)}}function Hq(e){return $q(e,ZJ)}function Kq(e){return $q(e,((e,t)=>t))}function Gq(e,t){return t}function Xq(e,t,n){n(e,t)}function Qq(e,t,n,r,i,o,a){var s,c;const l=new Array(359);let _,u,d,p,f,m=0,g=[],h=[],y=[],v=[],b=0,x=!1,k=[],S=0,T=Gq,C=Xq,w=0;const D=[],N={factory:n,getCompilerOptions:()=>r,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:ut((()=>lD(N))),startLexicalEnvironment:function(){_n.assert(w>0,"Cannot modify the lexical environment during initialization."),_n.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),_n.assert(!x,"Lexical environment is suspended."),g[b]=_,h[b]=u,y[b]=d,v[b]=m,b++,_=void 0,u=void 0,d=void 0,m=0},suspendLexicalEnvironment:function(){_n.assert(w>0,"Cannot modify the lexical environment during initialization."),_n.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),_n.assert(!x,"Lexical environment is already suspended."),x=!0},resumeLexicalEnvironment:function(){_n.assert(w>0,"Cannot modify the lexical environment during initialization."),_n.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),_n.assert(x,"Lexical environment is not suspended."),x=!1},endLexicalEnvironment:function(){let e;if(_n.assert(w>0,"Cannot modify the lexical environment during initialization."),_n.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),_n.assert(!x,"Lexical environment is suspended."),_||u||d){if(u&&(e=[...u]),_){const t=n.createVariableStatement(void 0,n.createVariableDeclarationList(_));Cw(t,2097152),e?e.push(t):e=[t]}d&&(e=e?[...e,...d]:[...d])}b--,_=g[b],u=h[b],d=y[b],m=v[b],0===b&&(g=[],h=[],y=[],v=[]);return e},setLexicalEnvironmentFlags:function(e,t){m=t?m|e:m&~e},getLexicalEnvironmentFlags:function(){return m},hoistVariableDeclaration:function(e){_n.assert(w>0,"Cannot modify the lexical environment during initialization."),_n.assert(w<2,"Cannot modify the lexical environment after transformation has completed.");const t=Cw(n.createVariableDeclaration(e),128);_?_.push(t):_=[t];1&m&&(m|=2)},hoistFunctionDeclaration:function(e){_n.assert(w>0,"Cannot modify the lexical environment during initialization."),_n.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),Cw(e,2097152),u?u.push(e):u=[e]},addInitializationStatement:function(e){_n.assert(w>0,"Cannot modify the lexical environment during initialization."),_n.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),Cw(e,2097152),d?d.push(e):d=[e]},startBlockScope:function(){_n.assert(w>0,"Cannot start a block scope during initialization."),_n.assert(w<2,"Cannot start a block scope after transformation has completed."),k[S]=p,S++,p=void 0},endBlockScope:function(){_n.assert(w>0,"Cannot end a block scope during initialization."),_n.assert(w<2,"Cannot end a block scope after transformation has completed.");const e=V(p)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(p.map((e=>n.createVariableDeclaration(e))),1))]:void 0;S--,p=k[S],0===S&&(k=[]);return e},addBlockScopedVariable:function(e){_n.assert(S>0,"Cannot add a block scoped variable outside of an iteration body."),(p||(p=[])).push(e)},requestEmitHelper:function e(t){if(_n.assert(w>0,"Cannot modify the transformation context during initialization."),_n.assert(w<2,"Cannot modify the transformation context after transformation has completed."),_n.assert(!t.scoped,"Cannot request a scoped emit helper."),t.dependencies)for(const n of t.dependencies)e(n);f=re(f,t)},readEmitHelpers:function(){_n.assert(w>0,"Cannot modify the transformation context during initialization."),_n.assert(w<2,"Cannot modify the transformation context after transformation has completed.");const e=f;return f=void 0,e},enableSubstitution:function(e){_n.assert(w<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=1},enableEmitNotification:function(e){_n.assert(w<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=2},isSubstitutionEnabled:I,isEmitNotificationEnabled:O,get onSubstituteNode(){return T},set onSubstituteNode(e){_n.assert(w<1,"Cannot modify transformation hooks after initialization has completed."),_n.assert(void 0!==e,"Value must not be 'undefined'"),T=e},get onEmitNode(){return C},set onEmitNode(e){_n.assert(w<1,"Cannot modify transformation hooks after initialization has completed."),_n.assert(void 0!==e,"Value must not be 'undefined'"),C=e},addDiagnostic(e){D.push(e)}};for(const e of i)Sw(bd(fc(e)));er("beforeTransform");const F=o.map((e=>e(N))),E=e=>{for(const t of F)e=t(e);return e};w=1;const P=[];for(const e of i)null==(s=$n)||s.push($n.Phase.Emit,"transformNodes",308===e.kind?{path:e.path}:{kind:e.kind,pos:e.pos,end:e.end}),P.push((a?E:A)(e)),null==(c=$n)||c.pop();return w=2,er("afterTransform"),tr("transformTime","beforeTransform","afterTransform"),{transformed:P,substituteNode:function(e,t){return _n.assert(w<3,"Cannot substitute a node after the result is disposed."),t&&I(t)&&T(e,t)||t},emitNodeWithNotification:function(e,t,n){_n.assert(w<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),t&&(O(t)?C(e,t,n):n(e,t))},isEmitNotificationEnabled:O,dispose:function(){if(w<3){for(const e of i)Sw(bd(fc(e)));_=void 0,g=void 0,u=void 0,h=void 0,T=void 0,C=void 0,f=void 0,w=3}},diagnostics:D};function A(e){return!e||uP(e)&&e.isDeclarationFile?e:E(e)}function I(e){return!(!(1&l[e.kind])||8&Zd(e))}function O(e){return!!(2&l[e.kind])||!!(4&Zd(e))}}var Yq={factory:vw,getCompilerOptions:()=>({}),getEmitResolver:_t,getEmitHost:_t,getEmitHelperFactory:_t,startLexicalEnvironment:nt,resumeLexicalEnvironment:nt,suspendLexicalEnvironment:nt,endLexicalEnvironment:ot,setLexicalEnvironmentFlags:nt,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:nt,hoistFunctionDeclaration:nt,addInitializationStatement:nt,startBlockScope:nt,endBlockScope:ot,addBlockScopedVariable:nt,requestEmitHelper:nt,readEmitHelpers:_t,enableSubstitution:nt,enableEmitNotification:nt,isSubstitutionEnabled:_t,isEmitNotificationEnabled:_t,onSubstituteNode:Gq,onEmitNode:Xq,addDiagnostic:nt},Zq=function(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}();function eU(e){return So(e,".tsbuildinfo")}function tU(e,t,n,r=!1,i,o){const a=Xe(n)?n:Xy(e,n,r),s=e.getCompilerOptions();if(!i)if(s.outFile){if(a.length){const n=vw.createBundle(a),i=t(iU(n,e,r),n);if(i)return i}}else for(const n of a){const i=t(iU(n,e,r),n);if(i)return i}if(o){const e=nU(s);if(e)return t({buildInfoPath:e},void 0)}}function nU(e){const t=e.configFilePath;if(!function(e){return Ik(e)||!!e.tscBuild}(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const n=e.outFile;let r;if(n)r=WS(n);else{if(!t)return;const n=WS(t);r=e.outDir?e.rootDir?Mo(e.outDir,ia(e.rootDir,n,!0)):Ro(e.outDir,Eo(n)):n}return r+".tsbuildinfo"}function rU(e,t){const n=e.outFile,r=e.emitDeclarationOnly?void 0:n,i=r&&oU(r,e),o=t||Pk(e)?WS(n)+".d.ts":void 0;return{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:o&&Ok(e)?o+".map":void 0}}function iU(e,t,n){const r=t.getCompilerOptions();if(309===e.kind)return rU(r,n);{const i=Uy(e.fileName,t,aU(e.fileName,r)),o=ef(e),a=o&&0===ea(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()),s=r.emitDeclarationOnly||a?void 0:i,c=!s||ef(e)?void 0:oU(s,r),l=n||Pk(r)&&!o?Vy(e.fileName,t):void 0;return{jsFilePath:s,sourceMapFilePath:c,declarationFilePath:l,declarationMapPath:l&&Ok(r)?l+".map":void 0}}}function oU(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function aU(e,t){return So(e,".json")?".json":1===t.jsx&&To(e,[".jsx",".tsx"])?".jsx":To(e,[".mts",".mjs"])?".mjs":To(e,[".cts",".cjs"])?".cjs":".js"}function sU(e,t,n,r){return n?Mo(n,ia(r(),e,t)):e}function cU(e,t,n,r=()=>hU(t,n)){return lU(e,t.options,n,r)}function lU(e,t,n,r){return KS(sU(e,n,t.declarationDir||t.outDir,r),$y(e))}function _U(e,t,n,r=()=>hU(t,n)){if(t.options.emitDeclarationOnly)return;const i=So(e,".json"),o=uU(e,t.options,n,r);return i&&0===ea(e,o,_n.checkDefined(t.options.configFilePath),n)?void 0:o}function uU(e,t,n,r){return KS(sU(e,n,t.outDir,r),aU(e,t))}function dU(){let e;return{addOutput:function(t){t&&(e||(e=[])).push(t)},getOutputs:function(){return e||s}}}function pU(e,t){const{jsFilePath:n,sourceMapFilePath:r,declarationFilePath:i,declarationMapPath:o}=rU(e.options,!1);t(n),t(r),t(i),t(o)}function fU(e,t,n,r,i){if(yO(t))return;const o=_U(t,e,n,i);if(r(o),!So(t,".json")&&(o&&e.options.sourceMap&&r(`${o}.map`),Pk(e.options))){const o=cU(t,e,n,i);r(o),e.options.declarationMap&&r(`${o}.map`)}}function mU(e,t,n,r,i){let o;return e.rootDir?(o=Jo(e.rootDir,n),null==i||i(e.rootDir)):e.configFilePath?(o=Fo(Lo(e.configFilePath)),null==i||i(o)):o=GU(t(),n,r),o&&o[o.length-1]!==_o&&(o+=_o),o}function gU(e,t,n){let r=GU(e,t,n);return r&&r[r.length-1]!==_o&&(r+=_o),r}function hU({options:e,fileNames:t},n){return mU(e,(()=>C(t,(t=>!(e.noEmitForJsFiles&&To(t,NS)||yO(t))))),Fo(Lo(_n.checkDefined(e.configFilePath))),Vt(!n))}function yU(e,t){const{addOutput:n,getOutputs:r}=dU();if(e.options.outFile)pU(e,n);else{const r=ut((()=>hU(e,t)));for(const i of e.fileNames)fU(e,i,t,n,r)}return n(nU(e.options)),r()}function vU(e,t,n){t=zo(t),_n.assert(k(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:r,getOutputs:i}=dU();return e.options.outFile?pU(e,r):fU(e,t,n,r),i()}function bU(e,t){if(e.options.outFile){const{jsFilePath:t,declarationFilePath:n}=rU(e.options,!1);return _n.checkDefined(t||n,`project ${e.options.configFilePath} expected to have at least one output`)}const n=ut((()=>hU(e,t)));for(const r of e.fileNames){if(yO(r))continue;const i=_U(r,e,t,n);if(i)return i;if(!So(r,".json")&&Pk(e.options))return cU(r,e,t,n)}const r=nU(e.options);return r||_n.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function xU(e,t){return!!t&&!!e}function kU(e,t,n,{scriptTransformers:r,declarationTransformers:i},a,s,c,_){var u=t.getCompilerOptions(),d=u.sourceMap||u.inlineSourceMap||Ok(u)?[]:void 0,p=u.listEmittedFiles?[]:void 0,f=uy(),m=Ib(u),g=Ly(m),{enter:h,exit:y}=Wn("printTime","beforePrint","afterPrint"),v=!1;return h(),tU(t,(function({jsFilePath:s,sourceMapFilePath:_,declarationFilePath:d,declarationMapPath:m,buildInfoPath:g},h){var y,k,S,T,w,D;null==(y=$n)||y.push($n.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:s}),function(n,i,o){if(!n||a||!i)return;if(t.isEmitBlocked(i)||u.noEmit)return void(v=!0);(uP(n)?[n]:C(n.sourceFiles,Am)).forEach((t=>{!u.noCheck&&mT(t,u)||function(t){if(Fm(t))return;iO(t,(t=>!TE(t)||32&Uv(t)?CE(t)?"skip":void e.markLinkedReferences(t):"skip"))}(t)}));const s=Qq(e,t,vw,u,[n],r,!1),c=EU({removeComments:u.removeComments,newLine:u.newLine,noEmitHelpers:u.noEmitHelpers,module:kk(u),moduleResolution:Sk(u),target:xk(u),sourceMap:u.sourceMap,inlineSourceMap:u.inlineSourceMap,inlineSources:u.inlineSources,extendedDiagnostics:u.extendedDiagnostics},{hasGlobalName:e.hasGlobalName,onEmitNode:s.emitNodeWithNotification,isEmitNotificationEnabled:s.isEmitNotificationEnabled,substituteNode:s.substituteNode});_n.assert(1===s.transformed.length,"Should only see one output from the transform"),x(i,o,s,c,u),s.dispose(),p&&(p.push(i),o&&p.push(o))}(h,s,_),null==(k=$n)||k.pop(),null==(S=$n)||S.push($n.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:d}),function(n,r,o){if(!n||0===a)return;if(!r)return void((a||u.emitDeclarationOnly)&&(v=!0));const s=uP(n)?[n]:n.sourceFiles,_=c?s:C(s,Am),d=u.outFile?[vw.createBundle(_)]:_;_.forEach((e=>{(a&&!Pk(u)||u.noCheck||xU(a,c)||!mT(e,u))&&b(e)}));const m=Qq(e,t,vw,u,d,i,!1);if(l(m.diagnostics))for(const e of m.diagnostics)f.add(e);const g=!!m.diagnostics&&!!m.diagnostics.length||!!t.isEmitBlocked(r)||!!u.noEmit;if(v=v||g,!g||c){_n.assert(1===m.transformed.length,"Should only see one output from the decl transform");const t={removeComments:u.removeComments,newLine:u.newLine,noEmitHelpers:!0,module:u.module,moduleResolution:u.moduleResolution,target:u.target,sourceMap:2!==a&&u.declarationMap,inlineSourceMap:u.inlineSourceMap,extendedDiagnostics:u.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0},n=x(r,o,m,EU(t,{hasGlobalName:e.hasGlobalName,onEmitNode:m.emitNodeWithNotification,isEmitNotificationEnabled:m.isEmitNotificationEnabled,substituteNode:m.substituteNode}),{sourceMap:t.sourceMap,sourceRoot:u.sourceRoot,mapRoot:u.mapRoot,extendedDiagnostics:u.extendedDiagnostics});p&&(n&&p.push(r),o&&p.push(o))}m.dispose()}(h,d,m),null==(T=$n)||T.pop(),null==(w=$n)||w.push($n.Phase.Emit,"emitBuildInfo",{buildInfoPath:g}),function(e){if(!e||n)return;if(t.isEmitBlocked(e))return void(v=!0);const r=t.getBuildInfo()||{version:o};ev(t,f,e,SU(r),!1,void 0,{buildInfo:r}),null==p||p.push(e)}(g),null==(D=$n)||D.pop()}),Xy(t,n,c),c,s,!n&&!_),y(),{emitSkipped:v,diagnostics:f.getDiagnostics(),emittedFiles:p,sourceMaps:d};function b(t){jE(t)?80===t.expression.kind&&e.collectLinkedAliases(t.expression,!0):BE(t)?e.collectLinkedAliases(t.propertyName||t.name,!0):rO(t,b)}function x(e,n,r,i,o){const a=r.transformed[0],s=309===a.kind?a:void 0,c=308===a.kind?a:void 0,l=s?s.sourceFiles:[c];let _,p;if(function(e,t){return(e.sourceMap||e.inlineSourceMap)&&(308!==t.kind||!So(t.fileName,".json"))}(o,a)&&(_=PJ(t,Eo(Lo(e)),function(e){const t=Lo(e.sourceRoot||"");return t?$o(t):t}(o),function(e,n,r){if(e.sourceRoot)return t.getCommonSourceDirectory();if(e.mapRoot){let n=Lo(e.mapRoot);return r&&(n=Fo(Yy(r.fileName,t,n))),0===No(n)&&(n=Ro(t.getCommonSourceDirectory(),n)),n}return Fo(zo(n))}(o,e,c),o)),s?i.writeBundle(s,g,_):i.writeFile(c,g,_),_){d&&d.push({inputSourceFileNames:_.getSources(),sourceMap:_.toJSON()});const r=function(e,n,r,i,o){if(e.inlineSourceMap){const e=n.toString();return`data:application/json;base64,${Cb(co,e)}`}const a=Eo(Lo(_n.checkDefined(i)));if(e.mapRoot){let n=Lo(e.mapRoot);return o&&(n=Fo(Yy(o.fileName,t,n))),0===No(n)?(n=Ro(t.getCommonSourceDirectory(),n),encodeURI(sa(Fo(zo(r)),Ro(n,a),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Ro(n,a))}return encodeURI(a)}(o,_,e,n,c);if(r&&(g.isAtStartOfLine()||g.rawWrite(m),p=g.getTextPos(),g.writeComment(`//# sourceMappingURL=${r}`)),n){const e=_.toString();ev(t,f,n,e,!1,l)}}else g.writeLine();const h=g.getText(),y={sourceMapUrlPos:p,diagnostics:r.diagnostics};return ev(t,f,e,h,!!u.emitBOM,l,y),g.clear(),!y.skippedDtsWrite}}function SU(e){return JSON.stringify(e)}function TU(e,t){return Db(e,t)}var CU={hasGlobalName:_t,getReferencedExportContainer:_t,getReferencedImportDeclaration:_t,getReferencedDeclarationWithCollidingName:_t,isDeclarationWithCollidingName:_t,isValueAliasDeclaration:_t,isReferencedAliasDeclaration:_t,isTopLevelValueImportEqualsWithEntityName:_t,hasNodeCheckFlag:_t,isDeclarationVisible:_t,isLateBound:e=>!1,collectLinkedAliases:_t,markLinkedReferences:_t,isImplementationOfOverload:_t,requiresAddingImplicitUndefined:_t,isExpandoFunctionDeclaration:_t,getPropertiesOfContainerFunction:_t,createTypeOfDeclaration:_t,createReturnTypeOfSignatureDeclaration:_t,createTypeOfExpression:_t,createLiteralConstValue:_t,isSymbolAccessible:_t,isEntityNameVisible:_t,getConstantValue:_t,getEnumMemberValue:_t,getReferencedValueDeclaration:_t,getReferencedValueDeclarations:_t,getTypeReferenceSerializationKind:_t,isOptionalParameter:_t,isArgumentsLocalBinding:_t,getExternalModuleFileFromDeclaration:_t,isLiteralConstDeclaration:_t,getJsxFactoryEntity:_t,getJsxFragmentFactoryEntity:_t,isBindingCapturedByNode:_t,getDeclarationStatementsForSourceFile:_t,isImportRequiredByAugmentation:_t,isDefinitelyReferenceToGlobalSymbolObject:_t,createLateBoundIndexSignatures:_t,symbolToDeclarations:_t},wU=ut((()=>EU({}))),DU=ut((()=>EU({removeComments:!0}))),NU=ut((()=>EU({removeComments:!0,neverAsciiEscape:!0}))),FU=ut((()=>EU({removeComments:!0,omitTrailingSemicolon:!0})));function EU(e={},t={}){var n,r,i,o,a,s,c,l,u,d,p,f,m,g,y,v,x,k,S,T,C,w,D,N,F,E,{hasGlobalName:P,onEmitNode:A=Xq,isEmitNotificationEnabled:I,substituteNode:O=Gq,onBeforeEmitNode:L,onAfterEmitNode:j,onBeforeEmitNodeArray:R,onAfterEmitNodeArray:M,onBeforeEmitToken:B,onAfterEmitToken:J}=t,z=!!e.extendedDiagnostics,q=!!e.omitBraceSourceMapPositions,U=Ib(e),W=kk(e),$=new Map,H=e.preserveSourceNewlines,K=function(e){x.write(e)},G=!0,X=-1,Q=-1,Y=-1,Z=-1,ee=-1,te=!1,ne=!!e.removeComments,{enter:re,exit:ie}=Vn(z,"commentTime","beforeComment","afterComment"),oe=vw.parenthesizer,ae={select:e=>0===e?oe.parenthesizeLeadingTypeArgument:void 0},se=function(){return fI((function(e,t){if(t){t.stackIndex++,t.preserveSourceNewlinesStack[t.stackIndex]=H,t.containerPosStack[t.stackIndex]=Y,t.containerEndStack[t.stackIndex]=Z,t.declarationListContainerEndStack[t.stackIndex]=ee;const n=t.shouldEmitCommentsStack[t.stackIndex]=Ie(e),r=t.shouldEmitSourceMapsStack[t.stackIndex]=Oe(e);null==L||L(e),n&&Xn(e),r&&yr(e),Ee(e)}else t={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return t}),(function(t,n,r){return e(t,r,"left")}),(function(e,t,n){const r=28!==e.kind,i=Cn(n,n.left,e),o=Cn(n,e,n.right);gn(i,r),cr(e.pos),dn(e,103===e.kind?Zt:en),_r(e.end,!0),gn(o,!0)}),(function(t,n,r){return e(t,r,"right")}),(function(e,t){const n=Cn(e,e.left,e.operatorToken),r=Cn(e,e.operatorToken,e.right);if(hn(n,r),t.stackIndex>0){const n=t.preserveSourceNewlinesStack[t.stackIndex],r=t.containerPosStack[t.stackIndex],i=t.containerEndStack[t.stackIndex],o=t.declarationListContainerEndStack[t.stackIndex],a=t.shouldEmitCommentsStack[t.stackIndex],s=t.shouldEmitSourceMapsStack[t.stackIndex];Pe(n),s&&br(e),a&&Qn(e,r,i,o),null==j||j(e),t.stackIndex--}}),void 0);function e(e,t,n){const r="left"===n?oe.getParenthesizeLeftSideOfBinaryForOperator(t.operatorToken.kind):oe.getParenthesizeRightSideOfBinaryForOperator(t.operatorToken.kind);let i=Le(0,1,e);if(i===Je&&(_n.assertIsDefined(F),i=je(1,1,e=r(tt(F,W_))),F=void 0),(i===Gn||i===hr||i===Me)&&PF(e))return e;E=r,i(1,e)}}();return Te(),{printNode:function(e,t,n){switch(e){case 0:_n.assert(uP(t),"Expected a SourceFile node.");break;case 2:_n.assert(_N(t),"Expected an Identifier node.");break;case 1:_n.assert(W_(t),"Expected an Expression node.")}switch(t.kind){case 308:return _e(t);case 309:return ce(t)}return ue(e,t,n,ge()),be()},printList:function(e,t,n){return de(e,t,n,ge()),be()},printFile:_e,printBundle:ce,writeNode:ue,writeList:de,writeFile:me,writeBundle:fe};function ce(e){return fe(e,ge(),void 0),be()}function _e(e){return me(e,ge(),void 0),be()}function ue(e,t,n,r){const i=x;Se(r,void 0),xe(e,t,n),Te(),x=i}function de(e,t,n,r){const i=x;Se(r,void 0),n&&ke(n),Wt(void 0,t,e),Te(),x=i}function fe(e,t,n){S=!1;const r=x;var i;Se(t,n),Pt(e),Et(e),ze(e),Dt((i=e).syntheticFileReferences||[],i.syntheticTypeReferences||[],i.syntheticLibReferences||[]);for(const t of e.sourceFiles)xe(0,t,t);Te(),x=r}function me(e,t,n){S=!0;const r=x;Se(t,n),Pt(e),Et(e),xe(0,e,e),Te(),x=r}function ge(){return k||(k=Ly(U))}function be(){const e=k.getText();return k.clear(),e}function xe(e,t,n){n&&ke(n),Ae(e,t,void 0)}function ke(e){n=e,D=void 0,N=void 0,e&&Tr(e)}function Se(t,n){t&&e.omitTrailingSemicolon&&(t=jy(t)),T=n,G=!(x=t)||!T}function Te(){r=[],i=[],o=[],a=new Set,s=[],c=new Map,l=[],u=0,d=[],p=0,f=[],m=void 0,g=[],y=void 0,n=void 0,D=void 0,N=void 0,Se(void 0,void 0)}function Ce(){return D||(D=Ma(_n.checkDefined(n)))}function we(e,t){void 0!==e&&Ae(4,e,t)}function De(e){void 0!==e&&Ae(2,e,void 0)}function Ne(e,t){void 0!==e&&Ae(1,e,t)}function Fe(e){Ae(HD(e)?6:4,e)}function Ee(e){H&&4&ep(e)&&(H=!1)}function Pe(e){H=e}function Ae(e,t,n){E=n;Le(0,e,t)(e,t),E=void 0}function Ie(e){return!ne&&!uP(e)}function Oe(e){return!G&&!uP(e)&&!Pm(e)}function Le(e,t,n){switch(e){case 0:if(A!==Xq&&(!I||I(n)))return Re;case 1:if(O!==Gq&&(F=O(t,n)||n)!==n)return E&&(F=E(F)),Je;case 2:if(Ie(n))return Gn;case 3:if(Oe(n))return hr;case 4:return Me;default:return _n.assertNever(e)}}function je(e,t,n){return Le(e+1,t,n)}function Re(e,t){const n=je(0,e,t);A(e,t,n)}function Me(e,t){if(null==L||L(t),H){const n=H;Ee(t),Be(e,t),Pe(n)}else Be(e,t);null==j||j(t),E=void 0}function Be(e,t,r=!0){if(r){const n=Qw(t);if(n)return function(e,t,n){switch(n.kind){case 1:!function(e,t,n){an(`\${${n.order}:`),Be(e,t,!1),an("}")}(e,t,n);break;case 0:!function(e,t,n){_n.assert(243===t.kind,`A tab stop cannot be attached to a node of kind ${_n.formatSyntaxKind(t.kind)}.`),_n.assert(5!==e,"A tab stop cannot be attached to an embedded statement."),an(`$${n.order}`)}(e,t,n)}}(e,t,n)}if(0===e)return wt(tt(t,uP));if(2===e)return Ve(tt(t,_N));if(6===e)return Ue(tt(t,HD),!0);if(3===e)return function(e){we(e.name),rn(),Zt("in"),rn(),we(e.constraint)}(tt(t,DN));if(7===e)return function(e){Qt("{"),rn(),Zt(132===e.token?"assert":"with"),Qt(":"),rn();const t=e.elements;Wt(e,t,526226),rn(),Qt("}")}(tt(t,EE));if(5===e)return _n.assertNode(t,XF),Ye(!0);if(4===e){switch(t.kind){case 16:case 17:case 18:return Ue(t,!1);case 80:return Ve(t);case 81:return We(t);case 167:return function(e){(function(e){80===e.kind?Ne(e):we(e)})(e.left),Qt("."),we(e.right)}(t);case 168:return function(e){Qt("["),Ne(e.expression,oe.parenthesizeExpressionOfComputedPropertyName),Qt("]")}(t);case 169:return function(e){Ot(e,e.modifiers),we(e.name),e.constraint&&(rn(),Zt("extends"),rn(),we(e.constraint));e.default&&(rn(),en("="),rn(),we(e.default))}(t);case 170:return function(e){It(e,e.modifiers,!0),we(e.dotDotDotToken),At(e.name,tn),we(e.questionToken),e.parent&&318===e.parent.kind&&!e.name?we(e.type):Lt(e.type);jt(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.pos,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 171:return o=t,Qt("@"),void Ne(o.expression,oe.parenthesizeLeftSideOfAccess);case 172:return function(e){Ot(e,e.modifiers),At(e.name,on),we(e.questionToken),Lt(e.type),Yt()}(t);case 173:return function(e){It(e,e.modifiers,!0),we(e.name),we(e.questionToken),we(e.exclamationToken),Lt(e.type),jt(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),Yt()}(t);case 174:return function(e){Ot(e,e.modifiers),we(e.name),we(e.questionToken),lt(e,dt,ut)}(t);case 175:return function(e){It(e,e.modifiers,!0),we(e.asteriskToken),we(e.name),we(e.questionToken),lt(e,dt,_t)}(t);case 176:return function(e){Zt("static"),En(e),pt(e.body),Pn(e)}(t);case 177:return function(e){It(e,e.modifiers,!1),Zt("constructor"),lt(e,dt,_t)}(t);case 178:case 179:return function(e){const t=It(e,e.modifiers,!0),n=178===e.kind?139:153;rt(n,t,Zt,e),rn(),we(e.name),lt(e,dt,_t)}(t);case 180:return function(e){lt(e,dt,ut)}(t);case 181:return function(e){Zt("new"),rn(),lt(e,dt,ut)}(t);case 182:return function(e){It(e,e.modifiers,!1),t=e,n=e.parameters,Wt(t,n,8848),Lt(e.type),Yt();var t,n}(t);case 183:return function(e){e.assertsModifier&&(we(e.assertsModifier),rn());we(e.parameterName),e.type&&(rn(),Zt("is"),rn(),we(e.type))}(t);case 184:return function(e){we(e.typeName),Jt(e,e.typeArguments)}(t);case 185:return function(e){lt(e,$e,He)}(t);case 186:return function(e){Ot(e,e.modifiers),Zt("new"),rn(),lt(e,$e,He)}(t);case 187:return function(e){Zt("typeof"),rn(),we(e.exprName),Jt(e,e.typeArguments)}(t);case 188:return function(e){En(e),_(e.members,Ln),Qt("{");const t=1&Zd(e)?768:32897;Wt(e,e.members,524288|t),Qt("}"),Pn(e)}(t);case 189:return function(e){we(e.elementType,oe.parenthesizeNonArrayTypeOfPostfixType),Qt("["),Qt("]")}(t);case 190:return function(e){rt(23,e.pos,Qt,e);const t=1&Zd(e)?528:657;Wt(e,e.elements,524288|t,oe.parenthesizeElementTypeOfTupleType),rt(24,e.elements.end,Qt,e)}(t);case 191:return function(e){we(e.type,oe.parenthesizeTypeOfOptionalType),Qt("?")}(t);case 193:return function(e){Wt(e,e.types,516,oe.parenthesizeConstituentTypeOfUnionType)}(t);case 194:return function(e){Wt(e,e.types,520,oe.parenthesizeConstituentTypeOfIntersectionType)}(t);case 195:return function(e){we(e.checkType,oe.parenthesizeCheckTypeOfConditionalType),rn(),Zt("extends"),rn(),we(e.extendsType,oe.parenthesizeExtendsTypeOfConditionalType),rn(),Qt("?"),rn(),we(e.trueType),rn(),Qt(":"),rn(),we(e.falseType)}(t);case 196:return function(e){Zt("infer"),rn(),we(e.typeParameter)}(t);case 197:return function(e){Qt("("),we(e.type),Qt(")")}(t);case 234:return Xe(t);case 198:return void Zt("this");case 199:return function(e){pn(e.operator,Zt),rn();const t=148===e.operator?oe.parenthesizeOperandOfReadonlyTypeOperator:oe.parenthesizeOperandOfTypeOperator;we(e.type,t)}(t);case 200:return function(e){we(e.objectType,oe.parenthesizeNonArrayTypeOfPostfixType),Qt("["),we(e.indexType),Qt("]")}(t);case 201:return function(e){const t=Zd(e);Qt("{"),1&t?rn():(sn(),cn());e.readonlyToken&&(we(e.readonlyToken),148!==e.readonlyToken.kind&&Zt("readonly"),rn());Qt("["),Ae(3,e.typeParameter),e.nameType&&(rn(),Zt("as"),rn(),we(e.nameType));Qt("]"),e.questionToken&&(we(e.questionToken),58!==e.questionToken.kind&&Qt("?"));Qt(":"),rn(),we(e.type),Yt(),1&t?rn():(sn(),ln());Wt(e,e.members,2),Qt("}")}(t);case 202:return function(e){Ne(e.literal)}(t);case 203:return function(e){we(e.dotDotDotToken),we(e.name),we(e.questionToken),rt(59,e.name.end,Qt,e),rn(),we(e.type)}(t);case 204:return function(e){we(e.head),Wt(e,e.templateSpans,262144)}(t);case 205:return function(e){we(e.type),we(e.literal)}(t);case 206:return function(e){e.isTypeOf&&(Zt("typeof"),rn());Zt("import"),Qt("("),we(e.argument),e.attributes&&(Qt(","),rn(),Ae(7,e.attributes));Qt(")"),e.qualifier&&(Qt("."),we(e.qualifier));Jt(e,e.typeArguments)}(t);case 207:return function(e){Qt("{"),Wt(e,e.elements,525136),Qt("}")}(t);case 208:return function(e){Qt("["),Wt(e,e.elements,524880),Qt("]")}(t);case 209:return function(e){we(e.dotDotDotToken),e.propertyName&&(we(e.propertyName),Qt(":"),rn());we(e.name),jt(e.initializer,e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 240:return function(e){Ne(e.expression),we(e.literal)}(t);case 241:return void Yt();case 242:return function(e){Qe(e,!e.multiLine&&wn(e))}(t);case 244:return function(e){It(e,e.modifiers,!1),we(e.declarationList),Yt()}(t);case 243:return Ye(!1);case 245:return function(e){Ne(e.expression,oe.parenthesizeExpressionOfExpressionStatement),n&&ef(n)&&!ty(e.expression)||Yt()}(t);case 246:return function(e){const t=rt(101,e.pos,Zt,e);rn(),rt(21,t,Qt,e),Ne(e.expression),rt(22,e.expression.end,Qt,e),Bt(e,e.thenStatement),e.elseStatement&&(fn(e,e.thenStatement,e.elseStatement),rt(93,e.thenStatement.end,Zt,e),246===e.elseStatement.kind?(rn(),we(e.elseStatement)):Bt(e,e.elseStatement))}(t);case 247:return function(e){rt(92,e.pos,Zt,e),Bt(e,e.statement),KF(e.statement)&&!H?rn():fn(e,e.statement,e.expression);Ze(e,e.statement.end),Yt()}(t);case 248:return function(e){Ze(e,e.pos),Bt(e,e.statement)}(t);case 249:return function(e){const t=rt(99,e.pos,Zt,e);rn();let n=rt(21,t,Qt,e);nt(e.initializer),n=rt(27,e.initializer?e.initializer.end:n,Qt,e),Mt(e.condition),n=rt(27,e.condition?e.condition.end:n,Qt,e),Mt(e.incrementor),rt(22,e.incrementor?e.incrementor.end:n,Qt,e),Bt(e,e.statement)}(t);case 250:return function(e){const t=rt(99,e.pos,Zt,e);rn(),rt(21,t,Qt,e),nt(e.initializer),rn(),rt(103,e.initializer.end,Zt,e),rn(),Ne(e.expression),rt(22,e.expression.end,Qt,e),Bt(e,e.statement)}(t);case 251:return function(e){const t=rt(99,e.pos,Zt,e);rn(),function(e){e&&(we(e),rn())}(e.awaitModifier),rt(21,t,Qt,e),nt(e.initializer),rn(),rt(165,e.initializer.end,Zt,e),rn(),Ne(e.expression),rt(22,e.expression.end,Qt,e),Bt(e,e.statement)}(t);case 252:return function(e){rt(88,e.pos,Zt,e),Rt(e.label),Yt()}(t);case 253:return function(e){rt(83,e.pos,Zt,e),Rt(e.label),Yt()}(t);case 254:return function(e){rt(107,e.pos,Zt,e),Mt(e.expression&&at(e.expression),at),Yt()}(t);case 255:return function(e){const t=rt(118,e.pos,Zt,e);rn(),rt(21,t,Qt,e),Ne(e.expression),rt(22,e.expression.end,Qt,e),Bt(e,e.statement)}(t);case 256:return function(e){const t=rt(109,e.pos,Zt,e);rn(),rt(21,t,Qt,e),Ne(e.expression),rt(22,e.expression.end,Qt,e),rn(),we(e.caseBlock)}(t);case 257:return function(e){we(e.label),rt(59,e.label.end,Qt,e),rn(),we(e.statement)}(t);case 258:return function(e){rt(111,e.pos,Zt,e),Mt(at(e.expression),at),Yt()}(t);case 259:return function(e){rt(113,e.pos,Zt,e),rn(),we(e.tryBlock),e.catchClause&&(fn(e,e.tryBlock,e.catchClause),we(e.catchClause));e.finallyBlock&&(fn(e,e.catchClause||e.tryBlock,e.finallyBlock),rt(98,(e.catchClause||e.tryBlock).end,Zt,e),rn(),we(e.finallyBlock))}(t);case 260:return function(e){un(89,e.pos,Zt),Yt()}(t);case 261:return function(e){var t,n,r;we(e.name),we(e.exclamationToken),Lt(e.type),jt(e.initializer,(null==(t=e.type)?void 0:t.end)??(null==(r=null==(n=e.name.emitNode)?void 0:n.typeNode)?void 0:r.end)??e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 262:return function(e){if(rf(e))Zt("await"),rn(),Zt("using");else{Zt(cf(e)?"let":af(e)?"const":of(e)?"using":"var")}rn(),Wt(e,e.declarations,528)}(t);case 263:return function(e){ct(e)}(t);case 264:return function(e){gt(e)}(t);case 265:return function(e){It(e,e.modifiers,!1),Zt("interface"),rn(),we(e.name),zt(e,e.typeParameters),Wt(e,e.heritageClauses,512),rn(),Qt("{"),En(e),_(e.members,Ln),Wt(e,e.members,129),Pn(e),Qt("}")}(t);case 266:return function(e){It(e,e.modifiers,!1),Zt("type"),rn(),we(e.name),zt(e,e.typeParameters),rn(),Qt("="),rn(),we(e.type),Yt()}(t);case 267:return function(e){It(e,e.modifiers,!1),Zt("enum"),rn(),we(e.name),rn(),Qt("{"),Wt(e,e.members,145),Qt("}")}(t);case 268:return function(e){It(e,e.modifiers,!1),2048&~e.flags&&(Zt(32&e.flags?"namespace":"module"),rn());we(e.name);let t=e.body;if(!t)return Yt();for(;t&&bE(t);)Qt("."),we(t.name),t=t.body;rn(),we(t)}(t);case 269:return function(e){En(e),_(e.statements,On),Qe(e,wn(e)),Pn(e)}(t);case 270:return function(e){rt(19,e.pos,Qt,e),Wt(e,e.clauses,129),rt(20,e.clauses.end,Qt,e,!0)}(t);case 271:return function(e){let t=rt(95,e.pos,Zt,e);rn(),t=rt(130,t,Zt,e),rn(),t=rt(145,t,Zt,e),rn(),we(e.name),Yt()}(t);case 272:return function(e){It(e,e.modifiers,!1),rt(102,e.modifiers?e.modifiers.end:e.pos,Zt,e),rn(),e.isTypeOnly&&(rt(156,e.pos,Zt,e),rn());we(e.name),rn(),rt(64,e.name.end,Qt,e),rn(),function(e){80===e.kind?Ne(e):we(e)}(e.moduleReference),Yt()}(t);case 273:return function(e){It(e,e.modifiers,!1),rt(102,e.modifiers?e.modifiers.end:e.pos,Zt,e),rn(),e.importClause&&(we(e.importClause),rn(),rt(161,e.importClause.end,Zt,e),rn());Ne(e.moduleSpecifier),e.attributes&&Rt(e.attributes);Yt()}(t);case 274:return function(e){void 0!==e.phaseModifier&&(rt(e.phaseModifier,e.pos,Zt,e),rn());we(e.name),e.name&&e.namedBindings&&(rt(28,e.name.end,Qt,e),rn());we(e.namedBindings)}(t);case 275:return function(e){const t=rt(42,e.pos,Qt,e);rn(),rt(130,t,Zt,e),rn(),we(e.name)}(t);case 281:return function(e){const t=rt(42,e.pos,Qt,e);rn(),rt(130,t,Zt,e),rn(),we(e.name)}(t);case 276:case 280:return function(e){ht(e)}(t);case 277:case 282:return function(e){yt(e)}(t);case 278:return function(e){const t=rt(95,e.pos,Zt,e);rn(),e.isExportEquals?rt(64,t,en,e):rt(90,t,Zt,e);rn(),Ne(e.expression,e.isExportEquals?oe.getParenthesizeRightSideOfBinaryForOperator(64):oe.parenthesizeExpressionOfExportDefault),Yt()}(t);case 279:return function(e){It(e,e.modifiers,!1);let t=rt(95,e.pos,Zt,e);rn(),e.isTypeOnly&&(t=rt(156,t,Zt,e),rn());e.exportClause?we(e.exportClause):t=rt(42,t,Qt,e);if(e.moduleSpecifier){rn();rt(161,e.exportClause?e.exportClause.end:t,Zt,e),rn(),Ne(e.moduleSpecifier)}e.attributes&&Rt(e.attributes);Yt()}(t);case 301:return function(e){rt(e.token,e.pos,Zt,e),rn();const t=e.elements;Wt(e,t,526226)}(t);case 302:return function(e){we(e.name),Qt(":"),rn();const t=e.value;if(!(1024&Zd(t))){_r(Lw(t).pos)}we(t)}(t);case 283:case 320:case 331:case 332:case 334:case 335:case 336:case 337:case 354:case 355:return;case 284:return function(e){Zt("require"),Qt("("),Ne(e.expression),Qt(")")}(t);case 12:return function(e){x.writeLiteral(e.text)}(t);case 287:case 290:return function(e){if(Qt("<"),HE(e)){const t=kn(e.tagName,e);vt(e.tagName),Jt(e,e.typeArguments),e.attributes.properties&&e.attributes.properties.length>0&&rn(),we(e.attributes),Sn(e.attributes,e),hn(t)}Qt(">")}(t);case 288:case 291:return function(e){Qt("")}(t);case 292:return function(e){we(e.name),function(e,t,n,r){n&&(t(e),r(n))}("=",Qt,e.initializer,Fe)}(t);case 293:return function(e){Wt(e,e.properties,262656)}(t);case 294:return function(e){Qt("{..."),Ne(e.expression),Qt("}")}(t);case 295:return function(e){var t;if(e.expression||!ne&&!ty(e)&&(r=e.pos,function(e){let t=!1;return ss((null==n?void 0:n.text)||"",e+1,(()=>t=!0)),t}(r)||function(e){let t=!1;return as((null==n?void 0:n.text)||"",e+1,(()=>t=!0)),t}(r))){const r=n&&!ty(e)&&qa(n,e.pos).line!==qa(n,e.end).line;r&&x.increaseIndent();const i=rt(19,e.pos,Qt,e);we(e.dotDotDotToken),Ne(e.expression),rt(20,(null==(t=e.expression)?void 0:t.end)||i,Qt,e),r&&x.decreaseIndent()}var r}(t);case 296:return function(e){De(e.namespace),Qt(":"),De(e.name)}(t);case 297:return function(e){rt(84,e.pos,Zt,e),rn(),Ne(e.expression,oe.parenthesizeExpressionForDisallowedComma),bt(e,e.statements,e.expression.end)}(t);case 298:return function(e){const t=rt(90,e.pos,Zt,e);bt(e,e.statements,t)}(t);case 299:return function(e){rn(),pn(e.token,Zt),rn(),Wt(e,e.types,528)}(t);case 300:return function(e){const t=rt(85,e.pos,Zt,e);rn(),e.variableDeclaration&&(rt(21,t,Qt,e),we(e.variableDeclaration),rt(22,e.variableDeclaration.end,Qt,e),rn());we(e.block)}(t);case 304:return function(e){we(e.name),Qt(":"),rn();const t=e.initializer;if(!(1024&Zd(t))){_r(Lw(t).pos)}Ne(t,oe.parenthesizeExpressionForDisallowedComma)}(t);case 305:return function(e){we(e.name),e.objectAssignmentInitializer&&(rn(),Qt("="),rn(),Ne(e.objectAssignmentInitializer,oe.parenthesizeExpressionForDisallowedComma))}(t);case 306:return function(e){e.expression&&(rt(26,e.pos,Qt,e),Ne(e.expression,oe.parenthesizeExpressionForDisallowedComma))}(t);case 307:return function(e){we(e.name),jt(e.initializer,e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 308:return wt(t);case 309:return _n.fail("Bundles should be printed using printBundle");case 310:return Ct(t);case 311:return function(e){rn(),Qt("{"),we(e.name),Qt("}")}(t);case 313:return Qt("*");case 314:return Qt("?");case 315:return function(e){Qt("?"),we(e.type)}(t);case 316:return function(e){Qt("!"),we(e.type)}(t);case 317:return function(e){we(e.type),Qt("=")}(t);case 318:return function(e){Zt("function"),qt(e,e.parameters),Qt(":"),we(e.type)}(t);case 192:case 319:return function(e){Qt("..."),we(e.type)}(t);case 321:return function(e){if(K("/**"),e.comment){const t=_l(e.comment);if(t){const e=t.split(/\r\n?|\n/);for(const t of e)sn(),rn(),Qt("*"),rn(),K(t)}}e.tags&&(1!==e.tags.length||345!==e.tags[0].kind||e.comment?Wt(e,e.tags,33):(rn(),we(e.tags[0])));rn(),K("*/")}(t);case 323:return xt(t);case 324:return kt(t);case 328:case 333:case 338:return St((i=t).tagName),void Tt(i.comment);case 329:case 330:return function(e){St(e.tagName),rn(),Qt("{"),we(e.class),Qt("}"),Tt(e.comment)}(t);case 339:return function(e){St(e.tagName),e.name&&(rn(),we(e.name));Tt(e.comment),kt(e.typeExpression)}(t);case 340:return function(e){Tt(e.comment),kt(e.typeExpression)}(t);case 342:case 349:return function(e){St(e.tagName),Ct(e.typeExpression),rn(),e.isBracketed&&Qt("[");we(e.name),e.isBracketed&&Qt("]");Tt(e.comment)}(t);case 341:case 343:case 344:case 345:case 350:case 351:return function(e){St(e.tagName),Ct(e.typeExpression),Tt(e.comment)}(t);case 346:return function(e){St(e.tagName),Ct(e.constraint),rn(),Wt(e,e.typeParameters,528),Tt(e.comment)}(t);case 347:return function(e){St(e.tagName),e.typeExpression&&(310===e.typeExpression.kind?Ct(e.typeExpression):(rn(),Qt("{"),K("Object"),e.typeExpression.isArrayType&&(Qt("["),Qt("]")),Qt("}")));e.fullName&&(rn(),we(e.fullName));Tt(e.comment),e.typeExpression&&323===e.typeExpression.kind&&xt(e.typeExpression)}(t);case 348:return function(e){St(e.tagName),we(e.name),Tt(e.comment)}(t);case 352:return function(e){St(e.tagName),rn(),e.importClause&&(we(e.importClause),rn(),rt(161,e.importClause.end,Zt,e),rn());Ne(e.moduleSpecifier),e.attributes&&Rt(e.attributes);Tt(e.comment)}(t)}if(W_(t)&&(e=1,O!==Gq)){const n=O(e,t)||t;n!==t&&(t=n,E&&(t=E(t)))}}var i,o;if(1===e)switch(t.kind){case 9:case 10:return function(e){Ue(e,!1)}(t);case 11:case 14:case 15:return Ue(t,!1);case 80:return Ve(t);case 81:return We(t);case 210:return function(e){const t=e.elements,n=e.multiLine?65536:0;$t(e,t,8914|n,oe.parenthesizeExpressionForDisallowedComma)}(t);case 211:return function(e){En(e),_(e.properties,Ln);const t=131072&Zd(e);t&&cn();const r=e.multiLine?65536:0,i=n&&!ef(n)?64:0;Wt(e,e.properties,526226|i|r),t&&ln();Pn(e)}(t);case 212:return function(e){Ne(e.expression,oe.parenthesizeLeftSideOfAccess);const t=e.questionDotToken||DT(vw.createToken(25),e.expression.end,e.name.pos),n=Cn(e,e.expression,t),r=Cn(e,t,e.name);gn(n,!1);const i=29!==t.kind&&function(e){if(WD(e=Tl(e))){const t=Fn(e,void 0,!0,!1);return!(448&e.numericLiteralFlags||t.includes(Ea(25))||t.includes(String.fromCharCode(69))||t.includes(String.fromCharCode(101)))}if(Cx(e)){const t=Vw(e);return"number"==typeof t&&isFinite(t)&&t>=0&&Math.floor(t)===t}}(e.expression)&&!x.hasTrailingComment()&&!x.hasTrailingWhitespace();i&&Qt(".");e.questionDotToken?we(t):rt(t.kind,e.expression.end,Qt,e);gn(r,!1),we(e.name),hn(n,r)}(t);case 213:return function(e){Ne(e.expression,oe.parenthesizeLeftSideOfAccess),we(e.questionDotToken),rt(23,e.expression.end,Qt,e),Ne(e.argumentExpression),rt(24,e.argumentExpression.end,Qt,e)}(t);case 214:return function(e){const t=16&ep(e);t&&(Qt("("),Gt("0"),Qt(","),rn());Ne(e.expression,oe.parenthesizeLeftSideOfAccess),t&&Qt(")");we(e.questionDotToken),Jt(e,e.typeArguments),$t(e,e.arguments,2576,oe.parenthesizeExpressionForDisallowedComma)}(t);case 215:return function(e){rt(105,e.pos,Zt,e),rn(),Ne(e.expression,oe.parenthesizeExpressionOfNew),Jt(e,e.typeArguments),$t(e,e.arguments,18960,oe.parenthesizeExpressionForDisallowedComma)}(t);case 216:return function(e){const t=16&ep(e);t&&(Qt("("),Gt("0"),Qt(","),rn());Ne(e.tag,oe.parenthesizeLeftSideOfAccess),t&&Qt(")");Jt(e,e.typeArguments),rn(),Ne(e.template)}(t);case 217:return function(e){Qt("<"),we(e.type),Qt(">"),Ne(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 218:return function(e){const t=rt(21,e.pos,Qt,e),n=kn(e.expression,e);Ne(e.expression,void 0),Sn(e.expression,e),hn(n),rt(22,e.expression?e.expression.end:t,Qt,e)}(t);case 219:return function(e){jn(e.name),ct(e)}(t);case 220:return function(e){Ot(e,e.modifiers),lt(e,Ke,Ge)}(t);case 221:return function(e){rt(91,e.pos,Zt,e),rn(),Ne(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 222:return function(e){rt(114,e.pos,Zt,e),rn(),Ne(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 223:return function(e){rt(116,e.pos,Zt,e),rn(),Ne(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 224:return function(e){rt(135,e.pos,Zt,e),rn(),Ne(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 225:return function(e){pn(e.operator,en),function(e){const t=e.operand;return 225===t.kind&&(40===e.operator&&(40===t.operator||46===t.operator)||41===e.operator&&(41===t.operator||47===t.operator))}(e)&&rn();Ne(e.operand,oe.parenthesizeOperandOfPrefixUnary)}(t);case 226:return function(e){Ne(e.operand,oe.parenthesizeOperandOfPostfixUnary),pn(e.operator,en)}(t);case 227:return se(t);case 228:return function(e){const t=Cn(e,e.condition,e.questionToken),n=Cn(e,e.questionToken,e.whenTrue),r=Cn(e,e.whenTrue,e.colonToken),i=Cn(e,e.colonToken,e.whenFalse);Ne(e.condition,oe.parenthesizeConditionOfConditionalExpression),gn(t,!0),we(e.questionToken),gn(n,!0),Ne(e.whenTrue,oe.parenthesizeBranchOfConditionalExpression),hn(t,n),gn(r,!0),we(e.colonToken),gn(i,!0),Ne(e.whenFalse,oe.parenthesizeBranchOfConditionalExpression),hn(r,i)}(t);case 229:return function(e){we(e.head),Wt(e,e.templateSpans,262144)}(t);case 230:return function(e){rt(127,e.pos,Zt,e),we(e.asteriskToken),Mt(e.expression&&at(e.expression),st)}(t);case 231:return function(e){rt(26,e.pos,Qt,e),Ne(e.expression,oe.parenthesizeExpressionForDisallowedComma)}(t);case 232:return function(e){jn(e.name),gt(e)}(t);case 233:case 283:case 354:return;case 235:return function(e){Ne(e.expression,void 0),e.type&&(rn(),Zt("as"),rn(),we(e.type))}(t);case 236:return function(e){Ne(e.expression,oe.parenthesizeLeftSideOfAccess),en("!")}(t);case 234:return Xe(t);case 239:return function(e){Ne(e.expression,void 0),e.type&&(rn(),Zt("satisfies"),rn(),we(e.type))}(t);case 237:return function(e){un(e.keywordToken,e.pos,Qt),Qt("."),we(e.name)}(t);case 238:return _n.fail("SyntheticExpression should never be printed.");case 285:return function(e){we(e.openingElement),Wt(e,e.children,262144),we(e.closingElement)}(t);case 286:return function(e){Qt("<"),vt(e.tagName),Jt(e,e.typeArguments),rn(),we(e.attributes),Qt("/>")}(t);case 289:return function(e){we(e.openingFragment),Wt(e,e.children,262144),we(e.closingFragment)}(t);case 353:return _n.fail("SyntaxList should not be printed");case 356:return function(e){const t=Zd(e);1024&t||e.pos===e.expression.pos||_r(e.expression.pos);Ne(e.expression),2048&t||e.end===e.expression.end||cr(e.expression.end)}(t);case 357:return function(e){$t(e,e.elements,528,void 0)}(t);case 358:return _n.fail("SyntheticReferenceExpression should not be printed")}return wh(t.kind)?dn(t,Zt):El(t.kind)?dn(t,Qt):void _n.fail(`Unhandled SyntaxKind: ${_n.formatSyntaxKind(t.kind)}.`)}function Je(e,t){const n=je(1,e,t);_n.assertIsDefined(F),t=F,F=void 0,n(e,t)}function ze(t){let r=!1;const i=309===t.kind?t:void 0;if(i&&0===W)return;const o=i?i.sourceFiles.length:1;for(let a=0;a")}function He(e){rn(),we(e.type)}function Ke(e){zt(e,e.typeParameters),Ut(e,e.parameters),Lt(e.type),rn(),we(e.equalsGreaterThanToken)}function Ge(e){KF(e.body)?pt(e.body):(rn(),Ne(e.body,oe.parenthesizeConciseBodyOfArrowFunction))}function Xe(e){Ne(e.expression,oe.parenthesizeLeftSideOfAccess),Jt(e,e.typeArguments)}function Qe(e,t){rt(19,e.pos,Qt,e);const n=t||1&Zd(e)?768:129;Wt(e,e.statements,n),rt(20,e.statements.end,Qt,e,!!(1&n))}function Ye(e){e?Qt(";"):Yt()}function Ze(e,t){const n=rt(117,t,Zt,e);rn(),rt(21,n,Qt,e),Ne(e.expression),rt(22,e.expression.end,Qt,e)}function nt(e){void 0!==e&&(262===e.kind?we(e):Ne(e))}function rt(e,t,r,i,o){const a=fc(i),s=a&&a.kind===i.kind,c=t;if(s&&n&&(t=Ya(n.text,t)),s&&i.pos!==c){const e=o&&n&&!Kb(c,t,n);e&&cn(),cr(c),e&&ln()}if(t=q||19!==e&&20!==e?pn(e,r,t):un(e,t,r,i),s&&i.end!==t){const e=295===i.kind;_r(t,!e,e)}return t}function it(e){return 2===e.kind||!!e.hasTrailingNewLine}function ot(e){if(!n)return!1;const t=us(n.text,e.pos);if(t){const t=fc(e);if(t&&kF(t.parent))return!0}return!!V(t,it)||(!!V(Rw(e),it)||!!VF(e)&&(!(e.pos===e.expression.pos||!V(ds(n.text,e.expression.pos),it))||ot(e.expression)))}function at(e){if(!ne)switch(e.kind){case 356:if(ot(e)){const t=fc(e);if(t&&kF(t)){const n=vw.createParenthesizedExpression(e.expression);return xw(n,e),NI(n,t),n}return vw.createParenthesizedExpression(e)}return vw.updatePartiallyEmittedExpression(e,at(e.expression));case 212:return vw.updatePropertyAccessExpression(e,at(e.expression),e.name);case 213:return vw.updateElementAccessExpression(e,at(e.expression),e.argumentExpression);case 214:return vw.updateCallExpression(e,at(e.expression),e.typeArguments,e.arguments);case 216:return vw.updateTaggedTemplateExpression(e,at(e.tag),e.typeArguments,e.template);case 226:return vw.updatePostfixUnaryExpression(e,at(e.operand));case 227:return vw.updateBinaryExpression(e,at(e.left),e.operatorToken,e.right);case 228:return vw.updateConditionalExpression(e,at(e.condition),e.questionToken,e.whenTrue,e.colonToken,e.whenFalse);case 235:return vw.updateAsExpression(e,at(e.expression),e.type);case 239:return vw.updateSatisfiesExpression(e,at(e.expression),e.type);case 236:return vw.updateNonNullExpression(e,at(e.expression))}return e}function st(e){return at(oe.parenthesizeExpressionForDisallowedComma(e))}function ct(e){It(e,e.modifiers,!1),Zt("function"),we(e.asteriskToken),rn(),De(e.name),lt(e,dt,_t)}function lt(e,t,n){const r=131072&Zd(e);r&&cn(),En(e),_(e.parameters,On),t(e),n(e),Pn(e),r&&ln()}function _t(e){const t=e.body;t?pt(t):Yt()}function ut(e){Yt()}function dt(e){zt(e,e.typeParameters),qt(e,e.parameters),Lt(e.type)}function pt(e){On(e),null==L||L(e),rn(),Qt("{"),cn();const t=function(e){if(1&Zd(e))return!0;if(e.multiLine)return!1;if(!ty(e)&&n&&!Jb(e,n))return!1;if(yn(e,pe(e.statements),2)||bn(e,he(e.statements),2,e.statements))return!1;let t;for(const n of e.statements){if(vn(t,n,2)>0)return!1;t=n}return!0}(e)?ft:mt;nr(e,e.statements,t),ln(),un(20,e.statements.end,Qt,e),null==j||j(e)}function ft(e){mt(e,!0)}function mt(e,t){const n=Ft(e.statements),r=x.getTextPos();ze(e),0===n&&r===x.getTextPos()&&t?(ln(),Wt(e,e.statements,768),cn()):Wt(e,e.statements,1,void 0,n)}function gt(e){It(e,e.modifiers,!0),rt(86,Mb(e).pos,Zt,e),e.name&&(rn(),De(e.name));const t=131072&Zd(e);t&&cn(),zt(e,e.typeParameters),Wt(e,e.heritageClauses,0),rn(),Qt("{"),En(e),_(e.members,Ln),Wt(e,e.members,129),Pn(e),Qt("}"),t&&ln()}function ht(e){Qt("{"),Wt(e,e.elements,525136),Qt("}")}function yt(e){e.isTypeOnly&&(Zt("type"),rn()),e.propertyName&&(we(e.propertyName),rn(),rt(130,e.propertyName.end,Zt,e),rn()),we(e.name)}function vt(e){80===e.kind?Ne(e):we(e)}function bt(e,t,r){let i=163969;1===t.length&&(!n||ty(e)||ty(t[0])||zb(e,t[0],n))?(un(59,r,Qt,e),rn(),i&=-130):rt(59,r,Qt,e),Wt(e,t,i)}function xt(e){Wt(e,vw.createNodeArray(e.jsDocPropertyTags),33)}function kt(e){e.typeParameters&&Wt(e,vw.createNodeArray(e.typeParameters),33),e.parameters&&Wt(e,vw.createNodeArray(e.parameters),33),e.type&&(sn(),rn(),Qt("*"),rn(),we(e.type))}function St(e){Qt("@"),we(e)}function Tt(e){const t=_l(e);t&&(rn(),K(t))}function Ct(e){e&&(rn(),Qt("{"),we(e.type),Qt("}"))}function wt(e){sn();const t=e.statements;0===t.length||!pf(t[0])||ty(t[0])?nr(e,t,Nt):Nt(e)}function Dt(e,t,r){if(n&&n.moduleName&&(nn(`/// `),sn()),n&&n.amdDependencies)for(const e of n.amdDependencies)e.name?nn(`/// `):nn(`/// `),sn();function i(e,t){for(const n of t){const t=n.resolutionMode?`resolution-mode="${99===n.resolutionMode?"import":"require"}" `:"",r=n.preserve?'preserve="true" ':"";nn(`/// `),sn()}}i("path",e),i("types",t),i("lib",r)}function Nt(e){const t=e.statements;En(e),_(e.statements,On),ze(e);const n=b(t,(e=>!pf(e)));!function(e){e.isDeclarationFile&&Dt(e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(e),Wt(e,t,1,void 0,-1===n?t.length:n),Pn(e)}function Ft(e,t,n){let r=!!t;for(let i=0;i=r.length||0===s;if(c&&32768&i)return null==R||R(r),void(null==M||M(r));15360&i&&(Qt(function(e){return Zq[15360&e][0]}(i)),c&&r&&_r(r.pos,!0)),null==R||R(r),c?!(1&i)||H&&(!t||n&&Jb(t,n))?256&i&&!(524288&i)&&rn():sn():Kt(e,t,r,i,o,a,s,r.hasTrailingComma,r),null==M||M(r),15360&i&&(c&&r&&cr(r.end),Qt(function(e){return Zq[15360&e][1]}(i)))}function Kt(e,t,n,r,i,o,a,s,c){const l=!(262144&r);let _=l;const u=yn(t,n[o],r);u?(sn(u),_=!1):256&r&&rn(),128&r&&cn();const d=function(e,t){return 1===e.length?PU:"object"==typeof t?AU:IU}(e,i);let p,f=!1;for(let s=0;s0){if(131&r||(cn(),f=!0),_&&60&r&&!YS(a.pos)){_r(Lw(a).pos,!!(512&r),!0)}sn(e),_=!1}else p&&512&r&&rn()}if(_){_r(Lw(a).pos)}else _=l;v=a.pos,d(a,e,i,s),f&&(ln(),f=!1),p=a}const m=p?Zd(p):0,g=ne||!!(2048&m),h=s&&64&r&&16&r;h&&(p&&!g?rt(28,p.end,Qt,p):Qt(",")),p&&(t?t.end:-1)!==p.end&&60&r&&!g&&cr(h&&(null==c?void 0:c.end)?c.end:p.end),128&r&&ln();const y=bn(t,n[o+a-1],r,c);y?sn(y):2097408&r&&rn()}function Gt(e){x.writeLiteral(e)}function Xt(e,t){x.writeSymbol(e,t)}function Qt(e){x.writePunctuation(e)}function Yt(){x.writeTrailingSemicolon(";")}function Zt(e){x.writeKeyword(e)}function en(e){x.writeOperator(e)}function tn(e){x.writeParameter(e)}function nn(e){x.writeComment(e)}function rn(){x.writeSpace(" ")}function on(e){x.writeProperty(e)}function an(e){x.nonEscapingWrite?x.nonEscapingWrite(e):x.write(e)}function sn(e=1){for(let t=0;t0)}function cn(){x.increaseIndent()}function ln(){x.decreaseIndent()}function un(e,t,n,r){return G?pn(e,n,t):function(e,t,n,r,i){if(G||e&&Pm(e))return i(t,n,r);const o=e&&e.emitNode,a=o&&o.flags||0,s=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[t],c=s&&s.source||C;r=xr(c,s?s.pos:r),!(256&a)&&r>=0&&Sr(c,r);r=i(t,n,r),s&&(r=s.end);!(512&a)&&r>=0&&Sr(c,r);return r}(r,e,n,t,pn)}function dn(e,t){B&&B(e),t(Ea(e.kind)),J&&J(e)}function pn(e,t,n){const r=Ea(e);return t(r),n<0?n:n+r.length}function fn(e,t,n){if(1&Zd(e))rn();else if(H){const r=Cn(e,t,n);r?sn(r):rn()}else sn()}function mn(e){const t=e.split(/\r\n?|\n/),n=ju(t);for(const e of t){const t=n?e.slice(n):e;t.length&&(sn(),K(t))}}function gn(e,t){e?(cn(),sn(e)):t&&rn()}function hn(e,t){e&&ln(),t&&ln()}function yn(e,t,r){if(2&r||H){if(65536&r)return 1;if(void 0===t)return!e||n&&Jb(e,n)?0:1;if(t.pos===v)return 0;if(12===t.kind)return 0;if(n&&e&&!YS(e.pos)&&!ty(t)&&(!t.parent||uc(t.parent)===uc(e)))return H?xn((r=>Xb(t.pos,e.pos,n,r))):zb(e,t,n)?0:1;if(Tn(t,r))return 1}return 1&r?1:0}function vn(e,t,r){if(2&r||H){if(void 0===e||void 0===t)return 0;if(12===t.kind)return 0;if(n&&!ty(e)&&!ty(t))return H&&function(e,t){if(t.pos-1&&r.indexOf(t)===i+1}(e,t)?xn((r=>Wb(e,t,n,r))):!H&&(o=t,(i=uc(i=e)).parent&&i.parent===uc(o).parent)?Vb(e,t,n)?0:1:65536&r?1:0;if(Tn(e,r)||Tn(t,r))return 1}else if(Iw(t))return 1;var i,o;return 1&r?1:0}function bn(e,t,r,i){if(2&r||H){if(65536&r)return 1;if(void 0===t)return!e||n&&Jb(e,n)?0:1;if(n&&e&&!YS(e.pos)&&!ty(t)&&(!t.parent||t.parent===e)){if(H){const r=i&&!YS(i.end)?i.end:t.end;return xn((t=>Qb(r,e.end,n,t)))}return qb(e,t,n)?0:1}if(Tn(t,r))return 1}return 1&r&&!(131072&r)?1:0}function xn(e){_n.assert(!!H);const t=e(!0);return 0===t?e(!1):t}function kn(e,t){const n=H&&yn(t,e,0);return n&&gn(n,!1),!!n}function Sn(e,t){const n=H&&bn(t,e,0,void 0);n&&sn(n)}function Tn(e,t){if(ty(e)){const n=Iw(e);return void 0===n?!!(65536&t):n}return!!(65536&t)}function Cn(e,t,r){return 262144&Zd(e)?0:(e=Dn(e),t=Dn(t),Iw(r=Dn(r))?1:!n||ty(e)||ty(t)||ty(r)?0:H?xn((e=>Wb(t,r,n,e))):Vb(t,r,n)?0:1)}function wn(e){return 0===e.statements.length&&(!n||Vb(e,e,n))}function Dn(e){for(;218===e.kind&&ty(e);)e=e.expression;return e}function Nn(e,t){if($l(e)||Hl(e))return Rn(e);if(HD(e)&&e.textSourceNode)return Nn(e.textSourceNode,t);const r=n,i=!!r&&!!e.parent&&!ty(e);if(pl(e)){if(!i||bd(e)!==uc(r))return hc(e)}else if(nP(e)){if(!i||bd(e)!==uc(r))return sC(e)}else if(_n.assertNode(e,Ol),!i)return e.text;return Vd(r,e,t)}function Fn(t,r=n,i,o){if(11===t.kind&&t.textSourceNode){const e=t.textSourceNode;if(_N(e)||uN(e)||WD(e)||nP(e)){const n=WD(e)?e.text:Nn(e);return o?`"${Fy(n)}"`:i||16777216&Zd(t)?`"${ky(n)}"`:`"${Ty(n)}"`}return Fn(e,bd(e),i,o)}return rp(t,r,(i?1:0)|(o?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0))}function En(e){l.push(u),u=0,g.push(y),e&&1048576&Zd(e)||(d.push(p),p=0,s.push(c),c=void 0,f.push(m))}function Pn(e){u=l.pop(),y=g.pop(),e&&1048576&Zd(e)||(p=d.pop(),c=s.pop(),m=f.pop())}function An(e){m&&m!==he(f)||(m=new Set),m.add(e)}function In(e){y&&y!==he(g)||(y=new Set),y.add(e)}function On(e){if(e)switch(e.kind){case 242:case 297:case 298:_(e.statements,On);break;case 257:case 255:case 247:case 248:On(e.statement);break;case 246:On(e.thenStatement),On(e.elseStatement);break;case 249:case 251:case 250:On(e.initializer),On(e.statement);break;case 256:On(e.caseBlock);break;case 270:_(e.clauses,On);break;case 259:On(e.tryBlock),On(e.catchClause),On(e.finallyBlock);break;case 300:On(e.variableDeclaration),On(e.block);break;case 244:On(e.declarationList);break;case 262:_(e.declarations,On);break;case 261:case 170:case 209:case 264:case 275:case 281:jn(e.name);break;case 263:jn(e.name),1048576&Zd(e)&&(_(e.parameters,On),On(e.body));break;case 207:case 208:case 276:_(e.elements,On);break;case 273:On(e.importClause);break;case 274:jn(e.name),On(e.namedBindings);break;case 277:jn(e.propertyName||e.name)}}function Ln(e){if(e)switch(e.kind){case 304:case 305:case 173:case 172:case 175:case 174:case 178:case 179:jn(e.name)}}function jn(e){e&&($l(e)||Hl(e)?Rn(e):S_(e)&&On(e))}function Rn(e){const t=e.emitNode.autoGenerate;if(4==(7&t.flags))return Mn(hI(e),uN(e),t.flags,t.prefix,t.suffix);{const n=t.id;return o[n]||(o[n]=function(e){const t=e.emitNode.autoGenerate,n=yI(t.prefix,Rn),r=yI(t.suffix);switch(7&t.flags){case 1:return qn(0,!!(8&t.flags),uN(e),n,r);case 2:return _n.assertNode(e,_N),qn(268435456,!!(8&t.flags),!1,n,r);case 3:return Un(hc(e),32&t.flags?Jn:Bn,!!(16&t.flags),!!(8&t.flags),uN(e),n,r)}return _n.fail(`Unsupported GeneratedIdentifierKind: ${_n.formatEnum(7&t.flags,vr,!0)}.`)}(e))}}function Mn(e,t,n,o,a){const s=cJ(e),c=t?i:r;return c[s]||(c[s]=Kn(e,t,n??0,yI(o,Rn),yI(a)))}function Bn(e,t){return Jn(e,t)&&!function(e,t){let n,r;t?(n=y,r=g):(n=m,r=f);if(null==n?void 0:n.has(e))return!0;for(let t=r.length-1;t>=0;t--)if(n!==r[t]&&(n=r[t],null==n?void 0:n.has(e)))return!0;return!1}(e,t)&&!a.has(e)}function Jn(e,t){return!n||Dd(n,e,P)}function zn(e,t){switch(e){case"":p=t;break;case"#":u=t;break;default:c??(c=new Map),c.set(e,t)}}function qn(e,t,n,r,i){r.length>0&&35===r.charCodeAt(0)&&(r=r.slice(1));const o=bI(n,r,"",i);let a=function(e){switch(e){case"":return p;case"#":return u;default:return(null==c?void 0:c.get(e))??0}}(o);if(e&&!(a&e)){const s=bI(n,r,268435456===e?"_i":"_n",i);if(Bn(s,n))return a|=e,n?In(s):t&&An(s),zn(o,a),s}for(;;){const e=268435455&a;if(a++,8!==e&&13!==e){const s=bI(n,r,e<26?"_"+String.fromCharCode(97+e):"_"+(e-26),i);if(Bn(s,n))return n?In(s):t&&An(s),zn(o,a),s}}}function Un(e,t=Bn,n,r,i,o,s){if(e.length>0&&35===e.charCodeAt(0)&&(e=e.slice(1)),o.length>0&&35===o.charCodeAt(0)&&(o=o.slice(1)),n){const n=bI(i,o,e,s);if(t(n,i))return i?In(n):r?An(n):a.add(n),n}95!==e.charCodeAt(e.length-1)&&(e+="_");let c=1;for(;;){const n=bI(i,o,e+c,s);if(t(n,i))return i?In(n):r?An(n):a.add(n),n;c++}}function Wn(e){return Un(e,Jn,!0,!1,!1,"","")}function $n(e){const t=Nn(e.name);return function(e,t){for(let n=t;n&&lh(n,t);n=n.nextContainer)if(cu(n)&&n.locals){const t=n.locals.get(mc(e));if(t&&3257279&t.flags)return!1}return!0}(t,et(e,cu))?t:Un(t,Bn,!1,!1,!1,"","")}function Hn(){return Un("default",Bn,!1,!1,!1,"","")}function Kn(e,t,n,r,i){switch(e.kind){case 80:case 81:return Un(Nn(e),Bn,!!(16&n),!!(8&n),t,r,i);case 268:case 267:return _n.assert(!r&&!i&&!t),$n(e);case 273:case 279:return _n.assert(!r&&!i&&!t),function(e){const t=Sg(e);return Un(HD(t)?op(t.text):"module",Bn,!1,!1,!1,"","")}(e);case 263:case 264:{_n.assert(!r&&!i&&!t);const o=e.name;return o&&!$l(o)?Kn(o,!1,n,r,i):Hn()}case 278:return _n.assert(!r&&!i&&!t),Hn();case 232:return _n.assert(!r&&!i&&!t),Un("class",Bn,!1,!1,!1,"","");case 175:case 178:case 179:return function(e,t,n,r){return _N(e.name)?Mn(e.name,t):qn(0,!1,t,n,r)}(e,t,r,i);case 168:return qn(0,!0,t,r,i);default:return qn(0,!1,t,r,i)}}function Gn(e,t){const n=je(2,e,t),r=Y,i=Z,o=ee;Xn(t),n(e,t),Qn(t,r,i,o)}function Xn(e){const t=Zd(e),n=Lw(e);!function(e,t,n,r){re(),te=!1;const i=n<0||!!(1024&t)||12===e.kind,o=r<0||!!(2048&t)||12===e.kind;(n>0||r>0)&&n!==r&&(i||rr(n,354!==e.kind),(!i||n>=0&&1024&t)&&(Y=n),(!o||r>=0&&2048&t)&&(Z=r,262===e.kind&&(ee=r)));_(Rw(e),Zn),ie()}(e,t,n.pos,n.end),4096&t&&(ne=!0)}function Qn(e,t,n,r){const i=Zd(e),o=Lw(e);4096&i&&(ne=!1),Yn(e,i,o.pos,o.end,t,n,r);const a=tD(e);a&&Yn(e,i,a.pos,a.end,t,n,r)}function Yn(e,t,n,r,i,o,a){re();const s=r<0||!!(2048&t)||12===e.kind;_(Jw(e),er),(n>0||r>0)&&n!==r&&(Y=i,Z=o,ee=a,s||354===e.kind||function(e){fr(e,lr)}(r)),ie()}function Zn(e){(e.hasLeadingNewline||2===e.kind)&&x.writeLine(),tr(e),e.hasTrailingNewLine||2===e.kind?x.writeLine():x.writeSpace(" ")}function er(e){x.isAtStartOfLine()||x.writeSpace(" "),tr(e),e.hasTrailingNewLine&&x.writeLine()}function tr(e){const t=function(e){return 3===e.kind?`/*${e.text}*/`:`//${e.text}`}(e);Sv(t,3===e.kind?La(t):void 0,x,0,t.length,U)}function nr(e,t,r){re();const{pos:i,end:o}=t,a=Zd(e),s=ne||o<0||!!(2048&a);i<0||!!(1024&a)||function(e){const t=n&&kv(n.text,Ce(),x,mr,e,U,ne);t&&(N?N.push(t):N=[t])}(t),ie(),4096&a&&!ne?(ne=!0,r(e),ne=!1):r(e),re(),s||(rr(t.end,!0),te&&!x.isAtStartOfLine()&&x.writeLine()),ie()}function rr(e,t){te=!1,t?0===e&&(null==n?void 0:n.isDeclarationFile)?pr(e,or):pr(e,sr):0===e&&pr(e,ir)}function ir(e,t,n,r,i){gr(e,t)&&sr(e,t,n,r,i)}function or(e,t,n,r,i){gr(e,t)||sr(e,t,n,r,i)}function ar(t,n){return!e.onlyPrintJsDocStyle||(LI(t,n)||Jd(t,n))}function sr(e,t,r,i,o){n&&ar(n.text,e)&&(te||(xv(Ce(),x,o,e),te=!0),kr(e),Sv(n.text,Ce(),x,e,t,U),kr(t),i?x.writeLine():3===r&&x.writeSpace(" "))}function cr(e){ne||-1===e||rr(e,!0)}function lr(e,t,r,i){n&&ar(n.text,e)&&(x.isAtStartOfLine()||x.writeSpace(" "),kr(e),Sv(n.text,Ce(),x,e,t,U),kr(t),i&&x.writeLine())}function _r(e,t,n){ne||(re(),fr(e,t?lr:n?ur:dr),ie())}function ur(e,t,r){n&&(kr(e),Sv(n.text,Ce(),x,e,t,U),kr(t),2===r&&x.writeLine())}function dr(e,t,r,i){n&&(kr(e),Sv(n.text,Ce(),x,e,t,U),kr(t),i?x.writeLine():x.writeSpace(" "))}function pr(e,t){!n||-1!==Y&&e===Y||(function(e){return void 0!==N&&ye(N).nodePos===e}(e)?function(e){if(!n)return;const t=ye(N).detachedCommentEndPos;N.length-1?N.pop():N=void 0;as(n.text,t,e,t)}(t):as(n.text,e,t,e))}function fr(e,t){n&&(-1===Z||e!==Z&&e!==ee)&&ss(n.text,e,t)}function mr(e,t,r,i,o,a){n&&ar(n.text,i)&&(kr(i),Sv(e,t,r,i,o,a),kr(o))}function gr(e,t){return!!n&&Bd(n.text,e,t)}function hr(e,t){const n=je(3,e,t);yr(t),n(e,t),br(t)}function yr(e){const t=Zd(e),n=Fw(e),r=n.source||C;354!==e.kind&&!(32&t)&&n.pos>=0&&Sr(n.source||C,xr(r,n.pos)),128&t&&(G=!0)}function br(e){const t=Zd(e),n=Fw(e);128&t&&(G=!1),354!==e.kind&&!(64&t)&&n.end>=0&&Sr(n.source||C,n.end)}function xr(e,t){return e.skipTrivia?e.skipTrivia(t):Ya(e.text,t)}function kr(e){if(G||YS(e)||Cr(C))return;const{line:t,character:n}=qa(C,e);T.addMapping(x.getLine(),x.getColumn(),X,t,n,void 0)}function Sr(e,t){if(e!==C){const n=C,r=X;Tr(e),kr(t),function(e,t){C=e,X=t}(n,r)}else kr(t)}function Tr(t){G||(C=t,t!==w?Cr(t)||(X=T.addSource(t.fileName),e.inlineSources&&T.setSourceContent(X,t.text),w=t,Q=X):X=Q)}function Cr(e){return So(e.fileName,".json")}}function PU(e,t,n,r){t(e)}function AU(e,t,n,r){t(e,n.select(r))}function IU(e,t,n,r){t(e,n)}function OU(e,t,n){if(!e.getDirectories||!e.readDirectory)return;const r=new Map,i=Vt(n);return{useCaseSensitiveFileNames:n,fileExists:function(t){const n=c(o(t));return n&&u(n.sortedAndCanonicalizedFiles,i(l(t)))||e.fileExists(t)},readFile:(t,n)=>e.readFile(t,n),directoryExists:e.directoryExists&&function(t){const n=o(t);return r.has($o(n))||e.directoryExists(t)},getDirectories:function(t){const n=o(t),r=_(t,n);if(r)return r.directories.slice();return e.getDirectories(t)},readDirectory:function(r,i,a,c,u){const p=o(r),f=_(r,p);let m;if(void 0!==f)return vS(r,i,a,c,n,t,u,(function(e){const t=o(e);if(t===p)return f||g(e,t);const n=_(e,t);return void 0!==n?n||g(e,t):oT}),d);return e.readDirectory(r,i,a,c,u);function g(t,n){if(m&&n===p)return m;const r={files:N(e.readDirectory(t,void 0,void 0,["*.*"]),l)||s,directories:e.getDirectories(t)||s};return n===p&&(m=r),r}},createDirectory:e.createDirectory&&function(t){const n=c(o(t));if(n){const e=l(t),r=i(e);Y(n.sortedAndCanonicalizedDirectories,r,Tt)&&n.directories.push(e)}e.createDirectory(t)},writeFile:e.writeFile&&function(t,n,r){const i=c(o(t));i&&f(i,l(t),!0);return e.writeFile(t,n,r)},addOrDeleteFileOrDirectory:function(t,n){if(void 0!==a(n))return void m();const r=c(n);if(!r)return void p(n);if(!e.directoryExists)return void m();const o=l(t),s={fileExists:e.fileExists(t),directoryExists:e.directoryExists(t)};s.directoryExists||u(r.sortedAndCanonicalizedDirectories,i(o))?m():f(r,o,s.fileExists);return s},addOrDeleteFile:function(e,t,n){if(1===n)return;const r=c(t);r?f(r,l(e),0===n):p(t)},clearCache:m,realpath:e.realpath&&d};function o(e){return Vo(e,t,i)}function a(e){return r.get($o(e))}function c(e){const t=a(Fo(e));return t?(t.sortedAndCanonicalizedFiles||(t.sortedAndCanonicalizedFiles=t.files.map(i).sort(),t.sortedAndCanonicalizedDirectories=t.directories.map(i).sort()),t):t}function l(e){return Eo(zo(e))}function _(t,n){const i=a(n=$o(n));if(i)return i;try{return function(t,n){var i;if(!e.realpath||$o(o(e.realpath(t)))===n){const i={files:N(e.readDirectory(t,void 0,void 0,["*.*"]),l)||[],directories:e.getDirectories(t)||[]};return r.set($o(n),i),i}if(null==(i=e.directoryExists)?void 0:i.call(e,t))return r.set(n,!1),!1}(t,n)}catch{return void _n.assert(!r.has($o(n)))}}function u(e,t){return Se(e,t,at,Tt)>=0}function d(t){return e.realpath?e.realpath(t):t}function p(e){ca(Fo(e),(e=>!!r.delete($o(e))||void 0))}function f(e,t,n){const r=e.sortedAndCanonicalizedFiles,o=i(t);if(n)Y(r,o,Tt)&&e.files.push(t);else{const t=Se(r,o,at,Tt);if(t>=0){r.splice(t,1);const n=e.files.findIndex((e=>i(e)===o));e.files.splice(n,1)}}}function m(){r.clear()}}var LU=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(LU||{});function jU(e,t,n,r,i){var o;const a=je((null==(o=null==t?void 0:t.configFile)?void 0:o.extendedSourceFiles)||s,i);n.forEach(((t,n)=>{a.has(n)||(t.projects.delete(e),t.close())})),a.forEach(((t,i)=>{const o=n.get(i);o?o.projects.add(e):n.set(i,{projects:new Set([e]),watcher:r(t,i),close:()=>{const e=n.get(i);e&&0===e.projects.size&&(e.watcher.close(),n.delete(i))}})}))}function RU(e,t){t.forEach((t=>{t.projects.delete(e)&&t.close()}))}function MU(e,t,n){e.delete(t)&&e.forEach((({extendedResult:r},i)=>{var o;(null==(o=r.extendedSourceFiles)?void 0:o.some((e=>n(e)===t)))&&MU(e,i,n)}))}function BU(e,t,n){mx(t,e.getMissingFilePaths(),{createNewValue:n,onDeleteValue:ix})}function JU(e,t,n){function r(e,t){return{watcher:n(e,t),flags:t}}t?mx(e,new Map(Object.entries(t)),{createNewValue:r,onDeleteValue:$U,onExistingValue:function(t,n,i){if(t.flags===n)return;t.watcher.close(),e.set(i,r(i,n))}}):px(e,$U)}function zU({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:n,configFileName:r,options:i,program:o,extraFileExtensions:a,currentDirectory:s,useCaseSensitiveFileNames:c,writeLog:l,toPath:_,getScriptKind:u}){const d=QW(n);if(!d)return l(`Project: ${r} Detected ignored path: ${t}`),!0;if((n=d)===e)return!1;if(ko(n)&&!zS(t,i,a)&&!function(){if(!u)return!1;switch(u(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return Lk(i);case 6:return Ek(i);case 0:return!1}}())return l(`Project: ${r} Detected file add/remove of non supported extension: ${t}`),!0;if(Vj(t,i.configFile.configFileSpecs,Jo(Fo(r),s),c,s))return l(`Project: ${r} Detected excluded file: ${t}`),!0;if(!o)return!1;if(i.outFile||i.outDir)return!1;if(yO(n)){if(i.declarationDir)return!1}else if(!To(n,NS))return!1;const p=WS(n),f=Xe(o)?void 0:w$(o)?o.getProgramOrUndefined():o,m=f||Xe(o)?void 0:o;return!(!g(p+".ts")&&!g(p+".tsx"))&&(l(`Project: ${r} Detected output file: ${t}`),!0);function g(e){return f?!!f.getSourceFileByPath(e):m?m.state.fileInfos.has(e):!!y(o,(t=>_(t)===e))}}function qU(e,t){return!!e&&e.isEmittedFile(t)}var UU=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(UU||{});function VU(e,t,n,r){to(2===t?n:nt);const i={watchFile:(t,n,r,i)=>e.watchFile(t,n,r,i),watchDirectory:(t,n,r,i)=>e.watchDirectory(t,n,!!(1&r),i)},o=0!==t?{watchFile:l("watchFile"),watchDirectory:l("watchDirectory")}:void 0,a=2===t?{watchFile:function(e,t,i,a,s,c){n(`FileWatcher:: Added:: ${_(e,i,a,s,c,r)}`);const l=o.watchFile(e,t,i,a,s,c);return{close:()=>{n(`FileWatcher:: Close:: ${_(e,i,a,s,c,r)}`),l.close()}}},watchDirectory:function(e,t,i,a,s,c){const l=`DirectoryWatcher:: Added:: ${_(e,i,a,s,c,r)}`;n(l);const u=qn(),d=o.watchDirectory(e,t,i,a,s,c),p=qn()-u;return n(`Elapsed:: ${p}ms ${l}`),{close:()=>{const t=`DirectoryWatcher:: Close:: ${_(e,i,a,s,c,r)}`;n(t);const o=qn();d.close();const l=qn()-o;n(`Elapsed:: ${l}ms ${t}`)}}}}:o||i,s=2===t?function(e,t,i,o,a){return n(`ExcludeWatcher:: Added:: ${_(e,t,i,o,a,r)}`),{close:()=>n(`ExcludeWatcher:: Close:: ${_(e,t,i,o,a,r)}`)}}:j$;return{watchFile:c("watchFile"),watchDirectory:c("watchDirectory")};function c(t){return(n,r,i,o,c,l)=>{var _;return $j(n,"watchFile"===t?null==o?void 0:o.excludeFiles:null==o?void 0:o.excludeDirectories,"boolean"==typeof e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),(null==(_=e.getCurrentDirectory)?void 0:_.call(e))||"")?s(n,i,o,c,l):a[t].call(void 0,n,r,i,o,c,l)}}function l(e){return(t,o,a,s,c,l)=>i[e].call(void 0,t,((...i)=>{const u=`${"watchFile"===e?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${i[0]} ${void 0!==i[1]?i[1]:""}:: ${_(t,a,s,c,l,r)}`;n(u);const d=qn();o.call(void 0,...i);const p=qn()-d;n(`Elapsed:: ${p}ms ${u}`)}),a,s,c,l)}function _(e,t,n,r,i,o){return`WatchInfo: ${e} ${t} ${JSON.stringify(n)} ${o?o(r,i):void 0===i?r:`${r} ${i}`}`}}function WU(e){const t=null==e?void 0:e.fallbackPolling;return{watchFile:void 0!==t?t:1}}function $U(e){e.watcher.close()}function HU(e,t,n="tsconfig.json"){return ca(e,(e=>{const r=Ro(e,n);return t(r)?r:void 0}))}function KU(e,t){const n=Fo(t);return zo(ho(e)?e:Ro(n,e))}function GU(e,t,n){let r;return _(e,(e=>{const i=Bo(e,t);if(i.pop(),!r)return void(r=i);const o=Math.min(r.length,i.length);for(let e=0;e{let o;try{er("beforeIORead"),o=e(n),er("afterIORead"),tr("I/O Read","beforeIORead","afterIORead")}catch(e){i&&i(e.message),o=""}return void 0!==o?sO(n,o,r,t):void 0}}function YU(e,t,n){return(r,i,o,a)=>{try{er("beforeIOWrite"),nv(r,i,o,e,t,n),er("afterIOWrite"),tr("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}}}function ZU(e,t,n=co){const r=new Map,i=Vt(n.useCaseSensitiveFileNames);function o(){return Fo(zo(n.getExecutingFilePath()))}const a=Ib(e),s=n.realpath&&(e=>n.realpath(e)),c={getSourceFile:QU((e=>c.readFile(e)),t),getDefaultLibLocation:o,getDefaultLibFileName:e=>Ro(o(),Fs(e)),writeFile:YU(((e,t,r)=>n.writeFile(e,t,r)),(e=>(c.createDirectory||n.createDirectory)(e)),(e=>{return t=e,!!r.has(t)||!!(c.directoryExists||n.directoryExists)(t)&&(r.set(t,!0),!0);var t})),getCurrentDirectory:ut((()=>n.getCurrentDirectory())),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames,getCanonicalFileName:i,getNewLine:()=>a,fileExists:e=>n.fileExists(e),readFile:e=>n.readFile(e),trace:e=>n.write(e+a),directoryExists:e=>n.directoryExists(e),getEnvironmentVariable:e=>n.getEnvironmentVariable?n.getEnvironmentVariable(e):"",getDirectories:e=>n.getDirectories(e),realpath:s,readDirectory:(e,t,r,i,o)=>n.readDirectory(e,t,r,i,o),createDirectory:e=>n.createDirectory(e),createHash:Ve(n,n.createHash)};return c}function eV(e,t,n){const r=e.readFile,i=e.fileExists,o=e.directoryExists,a=e.createDirectory,s=e.writeFile,c=new Map,l=new Map,_=new Map,u=new Map,d=(t,n)=>{const i=r.call(e,n);return c.set(t,void 0!==i&&i),i};e.readFile=n=>{const i=t(n),o=c.get(i);return void 0!==o?!1!==o?o:void 0:So(n,".json")||eU(n)?d(i,n):r.call(e,n)};const p=n?(e,r,i,o)=>{const a=t(e),s="object"==typeof r?r.impliedNodeFormat:void 0,c=u.get(s),l=null==c?void 0:c.get(a);if(l)return l;const _=n(e,r,i,o);return _&&(yO(e)||So(e,".json"))&&u.set(s,(c||new Map).set(a,_)),_}:void 0;return e.fileExists=n=>{const r=t(n),o=l.get(r);if(void 0!==o)return o;const a=i.call(e,n);return l.set(r,!!a),a},s&&(e.writeFile=(n,r,...i)=>{const o=t(n);l.delete(o);const a=c.get(o);void 0!==a&&a!==r?(c.delete(o),u.forEach((e=>e.delete(o)))):p&&u.forEach((e=>{const t=e.get(o);t&&t.text!==r&&e.delete(o)})),s.call(e,n,r,...i)}),o&&(e.directoryExists=n=>{const r=t(n),i=_.get(r);if(void 0!==i)return i;const a=o.call(e,n);return _.set(r,!!a),a},a&&(e.createDirectory=n=>{const r=t(n);_.delete(r),a.call(e,n)})),{originalReadFile:r,originalFileExists:i,originalDirectoryExists:o,originalCreateDirectory:a,originalWriteFile:s,getSourceFileWithCache:p,readFileWithCache:e=>{const n=t(e),r=c.get(n);return void 0!==r?!1!==r?r:void 0:d(n,e)}}}function tV(e,t,n){let r;return r=ae(r,e.getConfigFileParsingDiagnostics()),r=ae(r,e.getOptionsDiagnostics(n)),r=ae(r,e.getSyntacticDiagnostics(t,n)),r=ae(r,e.getGlobalDiagnostics(n)),r=ae(r,e.getSemanticDiagnostics(t,n)),Pk(e.getCompilerOptions())&&(r=ae(r,e.getDeclarationDiagnostics(t,n))),Ds(r||s)}function nV(e,t){let n="";for(const r of e)n+=rV(r,t);return n}function rV(e,t){const n=`${si(e)} TS${e.code}: ${gV(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:r,character:i}=qa(e.file,e.start);return`${oa(e.file.fileName,t.getCurrentDirectory(),(e=>t.getCanonicalFileName(e)))}(${r+1},${i+1}): `+n}return n}var iV=(e=>(e.Grey="",e.Red="",e.Yellow="",e.Blue="",e.Cyan="",e))(iV||{}),oV="",aV=" ",sV="",cV="...",lV=" ",_V=" ";function uV(e){switch(e){case 1:return"";case 0:return"";case 2:return _n.fail("Should never get an Info diagnostic on the command line.");case 3:return""}}function dV(e,t){return t+e+sV}function pV(e,t,n,r,i,o){const{line:a,character:s}=qa(e,t),{line:c,character:l}=qa(e,t+n),_=qa(e,e.text.length).line,u=c-a>=4;let d=(c+1+"").length;u&&(d=Math.max(cV.length,d));let p="";for(let t=a;t<=c;t++){p+=o.getNewLine(),u&&a+1n.getCanonicalFileName(e))):e.fileName,""),a+=":",a+=r(`${i+1}`,""),a+=":",a+=r(`${o+1}`,""),a}function mV(e,t){let n="";for(const r of e){if(r.file){const{file:e,start:i}=r;n+=fV(e,i,t),n+=" - "}if(n+=dV(si(r),uV(r.category)),n+=dV(` TS${r.code}: `,""),n+=gV(r.messageText,t.getNewLine()),r.file&&r.code!==ua.File_appears_to_be_binary.code&&(n+=t.getNewLine(),n+=pV(r.file,r.start,r.length,"",uV(r.category),t)),r.relatedInformation){n+=t.getNewLine();for(const{file:e,start:i,length:o,messageText:a}of r.relatedInformation)e&&(n+=t.getNewLine(),n+=lV+fV(e,i,t),n+=pV(e,i,o,_V,"",t)),n+=t.getNewLine(),n+=_V+gV(a,t.getNewLine())}n+=t.getNewLine()}return n}function gV(e,t,n=0){if(Ye(e))return e;if(void 0===e)return"";let r="";if(n){r+=t;for(let e=0;ebV(t,e,n)};function DV(e,t,n,r,i){return{nameAndMode:wV,resolve:(o,a)=>$R(o,e,n,r,i,t,a)}}function NV(e){return Ye(e)?e:e.fileName}var FV={getName:NV,getMode:(e,t,n)=>hV(e,t&&HV(t,n))};function EV(e,t,n,r,i){return{nameAndMode:FV,resolve:(o,a)=>TR(o,e,n,r,t,i,a)}}function PV(e,t,n,r,i,o,a,c){if(0===e.length)return s;const l=[],_=new Map,u=c(t,n,r,o,a);for(const t of e){const e=u.nameAndMode.getName(t),o=u.nameAndMode.getMode(t,i,(null==n?void 0:n.commandLine.options)||r),a=LR(e,o);let s=_.get(a);s||_.set(a,s=u.resolve(e,o)),l.push(s)}return l}var AV="__inferred type names__.ts";function IV(e,t,n){return Ro(e.configFilePath?Fo(e.configFilePath):t,`__lib_node_modules_lookup_${n}__.ts`)}function OV(e){const t=e.split(".");let n=t[1],r=2;for(;t[r]&&"d"!==t[r];)n+=(2===r?"/":"-")+t[r],r++;return"@typescript/lib-"+n}function LV(e){switch(null==e?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function jV(e){return void 0!==e.pos}function RV(e,t){var n,r,i,o;const a=_n.checkDefined(e.getSourceFileByPath(t.file)),{kind:s,index:c}=t;let l,_,u;switch(s){case 3:const t=tW(a,c);if(u=null==(r=null==(n=e.getResolvedModuleFromModuleSpecifier(t,a))?void 0:n.resolvedModule)?void 0:r.packageId,-1===t.pos)return{file:a,packageId:u,text:t.text};l=Ya(a.text,t.pos),_=t.end;break;case 4:({pos:l,end:_}=a.referencedFiles[c]);break;case 5:({pos:l,end:_}=a.typeReferenceDirectives[c]),u=null==(o=null==(i=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(a.typeReferenceDirectives[c],a))?void 0:i.resolvedTypeReferenceDirective)?void 0:o.packageId;break;case 7:({pos:l,end:_}=a.libReferenceDirectives[c]);break;default:return _n.assertNever(s)}return{file:a,pos:l,end:_,packageId:u}}function MV(e,t,n,r,i,o,a,s,c,l){if(!e||(null==s?void 0:s()))return!1;if(!ee(e.getRootFileNames(),t))return!1;let u;if(!ee(e.getProjectReferences(),l,(function(t,n,r){return ld(t,n)&&f(e.getResolvedProjectReferences()[r],t)})))return!1;if(e.getSourceFiles().some((function(e){return!function(e){return e.version===r(e.resolvedPath,e.fileName)}(e)||o(e.path)})))return!1;const d=e.getMissingFilePaths();if(d&&id(d,i))return!1;const p=e.getCompilerOptions();return!!dx(p,n)&&((!e.resolvedLibReferences||!id(e.resolvedLibReferences,((e,t)=>a(t))))&&(!p.configFile||!n.configFile||p.configFile.text===n.configFile.text));function f(e,t){if(e){if(k(u,e))return!0;const n=YV(t),r=c(n);return!!r&&(e.commandLine.options.configFile===r.options.configFile&&(!!ee(e.commandLine.fileNames,r.fileNames)&&((u||(u=[])).push(e),!_(e.references,((t,n)=>!f(t,e.commandLine.projectReferences[n]))))))}const n=YV(t);return!c(n)}}function BV(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function JV(e,t,n,r){const i=zV(e,t,n,r);return"object"==typeof i?i.impliedNodeFormat:i}function zV(e,t,n,r){const i=Sk(r),o=3<=i&&i<=99||oM(e);return To(e,[".d.mts",".mts",".mjs"])?99:To(e,[".d.cts",".cts",".cjs"])?1:o&&To(e,[".d.ts",".ts",".tsx",".js",".jsx"])?function(){const i=yM(t,n,r),o=[];i.failedLookupLocations=o,i.affectingLocations=o;const a=vM(Fo(e),i);return{impliedNodeFormat:"module"===(null==a?void 0:a.contents.packageJsonContent.type)?99:1,packageJsonLocations:o,packageJsonScope:a}}():void 0}var qV=new Set([ua.Cannot_redeclare_block_scoped_variable_0.code,ua.A_module_cannot_have_multiple_default_exports.code,ua.Another_export_default_is_here.code,ua.The_first_export_default_is_here.code,ua.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,ua.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,ua.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,ua.constructor_is_a_reserved_word.code,ua.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,ua.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,ua.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,ua.Invalid_use_of_0_in_strict_mode.code,ua.A_label_is_not_allowed_here.code,ua.with_statements_are_not_allowed_in_strict_mode.code,ua.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,ua.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,ua.A_class_declaration_without_the_default_modifier_must_have_a_name.code,ua.A_class_member_cannot_have_the_0_keyword.code,ua.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,ua.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,ua.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,ua.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,ua.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,ua.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,ua.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,ua.A_destructuring_declaration_must_have_an_initializer.code,ua.A_get_accessor_cannot_have_parameters.code,ua.A_rest_element_cannot_contain_a_binding_pattern.code,ua.A_rest_element_cannot_have_a_property_name.code,ua.A_rest_element_cannot_have_an_initializer.code,ua.A_rest_element_must_be_last_in_a_destructuring_pattern.code,ua.A_rest_parameter_cannot_have_an_initializer.code,ua.A_rest_parameter_must_be_last_in_a_parameter_list.code,ua.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,ua.A_return_statement_cannot_be_used_inside_a_class_static_block.code,ua.A_set_accessor_cannot_have_rest_parameter.code,ua.A_set_accessor_must_have_exactly_one_parameter.code,ua.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,ua.An_export_declaration_cannot_have_modifiers.code,ua.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,ua.An_import_declaration_cannot_have_modifiers.code,ua.An_object_member_cannot_be_declared_optional.code,ua.Argument_of_dynamic_import_cannot_be_spread_element.code,ua.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,ua.Cannot_redeclare_identifier_0_in_catch_clause.code,ua.Catch_clause_variable_cannot_have_an_initializer.code,ua.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,ua.Classes_can_only_extend_a_single_class.code,ua.Classes_may_not_have_a_field_named_constructor.code,ua.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,ua.Duplicate_label_0.code,ua.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,ua.for_await_loops_cannot_be_used_inside_a_class_static_block.code,ua.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,ua.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,ua.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,ua.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,ua.Jump_target_cannot_cross_function_boundary.code,ua.Line_terminator_not_permitted_before_arrow.code,ua.Modifiers_cannot_appear_here.code,ua.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,ua.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,ua.Private_identifiers_are_not_allowed_outside_class_bodies.code,ua.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,ua.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,ua.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,ua.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,ua.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,ua.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,ua.Trailing_comma_not_allowed.code,ua.Variable_declaration_list_cannot_be_empty.code,ua._0_and_1_operations_cannot_be_mixed_without_parentheses.code,ua._0_expected.code,ua._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,ua._0_list_cannot_be_empty.code,ua._0_modifier_already_seen.code,ua._0_modifier_cannot_appear_on_a_constructor_declaration.code,ua._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,ua._0_modifier_cannot_appear_on_a_parameter.code,ua._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,ua._0_modifier_cannot_be_used_here.code,ua._0_modifier_must_precede_1_modifier.code,ua._0_declarations_can_only_be_declared_inside_a_block.code,ua._0_declarations_must_be_initialized.code,ua.extends_clause_already_seen.code,ua.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,ua.Class_constructor_may_not_be_a_generator.code,ua.Class_constructor_may_not_be_an_accessor.code,ua.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,ua.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,ua.Private_field_0_must_be_declared_in_an_enclosing_class.code,ua.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]);function UV(e,t,n,r,o){var a,c,l,u,d,f,m,g,h,v,x,S,T,w,D,N;let F=Xe(e)?function(e,t,n,r,i,o){return{rootNames:e,options:t,host:n,oldProgram:r,configFileParsingDiagnostics:i,typeScriptVersion:o}}(e,t,n,r,o):e;const{rootNames:E,options:I,configFileParsingDiagnostics:O,projectReferences:L,typeScriptVersion:j,host:M}=F;let{oldProgram:B}=F;F=void 0,e=void 0;for(const e of XO)if(De(I,e.name)&&"string"==typeof I[e.name])throw new Error(`${e.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`);const J=ut((()=>Pn("ignoreDeprecations",ua.Invalid_value_for_ignoreDeprecations)));let z,q,U,W,H,K,G,X,Q;const Y=nW(Ln);let Z,te,ne,ie,oe,ae,se,ce,_e;const ue="number"==typeof I.maxNodeModuleJsDepth?I.maxNodeModuleJsDepth:0;let de=0;const pe=new Map,fe=new Map;null==(a=$n)||a.push($n.Phase.Program,"createProgram",{configFilePath:I.configFilePath,rootDir:I.rootDir},!0),er("beforeProgram");const me=M||XU(I),ge=QV(me),he=ut((()=>me.getDefaultLibFileName(I))),ye=me.getDefaultLibLocation?me.getDefaultLibLocation():Fo(he());let ve=!1;const be=me.getCurrentDirectory(),xe=OS(I),ke=LS(I,xe),Se=new Map;let Te,Ce,we,Ne;const Fe=me.hasInvalidatedResolutions||rt;let Ee;if(me.resolveModuleNameLiterals?(Ne=me.resolveModuleNameLiterals.bind(me),we=null==(c=me.getModuleResolutionCache)?void 0:c.call(me)):me.resolveModuleNames?(Ne=(e,t,n,r,i,o)=>me.resolveModuleNames(e.map(CV),t,null==o?void 0:o.map(CV),n,r,i).map((e=>e?void 0!==e.extension?{resolvedModule:e}:{resolvedModule:{...e,extension:tT(e.resolvedFileName)}}:TV)),we=null==(l=me.getModuleResolutionCache)?void 0:l.call(me)):(we=zR(be,kn,I),Ne=(e,t,n,r,i)=>PV(e,t,n,r,i,me,we,DV)),me.resolveTypeReferenceDirectiveReferences)Ee=me.resolveTypeReferenceDirectiveReferences.bind(me);else if(me.resolveTypeReferenceDirectives)Ee=(e,t,n,r,i)=>me.resolveTypeReferenceDirectives(e.map(NV),t,n,r,null==i?void 0:i.impliedNodeFormat).map((e=>({resolvedTypeReferenceDirective:e})));else{const e=qR(be,kn,void 0,null==we?void 0:we.getPackageJsonInfoCache(),null==we?void 0:we.optionsToRedirectsKey);Ee=(t,n,r,i,o)=>PV(t,n,r,i,o,me,e,EV)}const Pe=me.hasInvalidatedLibResolutions||rt;let Ae;if(me.resolveLibrary)Ae=me.resolveLibrary.bind(me);else{const e=zR(be,kn,I,null==we?void 0:we.getPackageJsonInfoCache());Ae=(t,n,r)=>VR(t,n,r,me,e)}const Ie=new Map;let Oe,Le=new Map,je=We();const Re=new Map,Me=new Set;let Be=new Map;const Je=me.useCaseSensitiveFileNames()?new Map:void 0;let ze,qe,Ue,$e;const He=!!(null==(u=me.useSourceOfProjectReferenceRedirect)?void 0:u.call(me))&&!I.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Ke,fileExists:Ge,directoryExists:Qe}=function(e){let t;const n=e.compilerHost.fileExists,r=e.compilerHost.directoryExists,i=e.compilerHost.getDirectories,o=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:nt,fileExists:c};let a;e.compilerHost.fileExists=c,r&&(a=e.compilerHost.directoryExists=n=>r.call(e.compilerHost,n)?(u(n),!0):!!e.getResolvedProjectReferences()&&(t||(t=new Set,e.forEachResolvedProjectReference((n=>{const r=n.commandLine.options.outFile;if(r)t.add(Fo(e.toPath(r)));else{const r=n.commandLine.options.declarationDir||n.commandLine.options.outDir;r&&t.add(e.toPath(r))}}))),d(n,!1)));i&&(e.compilerHost.getDirectories=t=>!e.getResolvedProjectReferences()||r&&r.call(e.compilerHost,t)?i.call(e.compilerHost,t):[]);o&&(e.compilerHost.realpath=t=>{var n;return(null==(n=e.getSymlinkCache().getSymlinkedFiles())?void 0:n.get(e.toPath(t)))||o.call(e.compilerHost,t)});return{onProgramCreateComplete:s,fileExists:c,directoryExists:a};function s(){e.compilerHost.fileExists=n,e.compilerHost.directoryExists=r,e.compilerHost.getDirectories=i}function c(t){return!!n.call(e.compilerHost,t)||!!e.getResolvedProjectReferences()&&(!!yO(t)&&d(t,!0))}function l(t){const r=e.getRedirectFromOutput(e.toPath(t));return void 0!==r?!Ye(r.source)||n.call(e.compilerHost,r.source):void 0}function _(n){const r=e.toPath(n),i=`${r}${_o}`;return od(t,(e=>r===e||Kt(e,i)||Kt(r,`${e}/`)))}function u(t){var n;if(!e.getResolvedProjectReferences()||LT(t))return;if(!o||!t.includes(iM))return;const r=e.getSymlinkCache(),i=$o(e.toPath(t));if(null==(n=r.getSymlinkedDirectories())?void 0:n.has(i))return;const a=zo(o.call(e.compilerHost,t));let s;a!==t&&(s=$o(e.toPath(a)))!==i?r.setSymlinkedDirectory(t,{real:$o(a),realPath:s}):r.setSymlinkedDirectory(i,!1)}function d(t,n){var r;const i=n?l:_,o=i(t);if(void 0!==o)return o;const a=e.getSymlinkCache(),s=a.getSymlinkedDirectories();if(!s)return!1;const c=e.toPath(t);return!!c.includes(iM)&&(!(!n||!(null==(r=a.getSymlinkedFiles())?void 0:r.has(c)))||(p(s.entries(),(([r,o])=>{if(!o||!Kt(c,r))return;const s=i(c.replace(r,o.realPath));if(n&&s){const n=Jo(t,e.compilerHost.getCurrentDirectory());a.setSymlinkedFile(c,`${o.real}${n.replace(new RegExp(r,"i"),"")}`)}return s}))||!1))}}({compilerHost:me,getSymlinkCache:Jn,useSourceOfProjectReferenceRedirect:He,toPath:kt,getResolvedProjectReferences:Ft,getRedirectFromOutput:un,forEachResolvedProjectReference:ln}),Ze=me.readFile.bind(me);null==(d=$n)||d.push($n.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!B});const tt=function(e,t){return!!e&&nd(e.getCompilerOptions(),t,WO)}(B,I);let it;if(null==(f=$n)||f.pop(),null==(m=$n)||m.push($n.Phase.Program,"tryReuseStructureFromOldProgram",{}),it=function(){var e;if(!B)return 0;const t=B.getCompilerOptions();if(ed(t,I))return 0;if(!ee(B.getRootFileNames(),E))return 0;if(jC(B.getProjectReferences(),B.getResolvedProjectReferences(),((e,t,n)=>{const r=Tn((t?t.commandLine.projectReferences:L)[n]);return e?!r||r.sourceFile!==e.sourceFile||!ee(e.commandLine.fileNames,r.commandLine.fileNames):void 0!==r}),((e,t)=>!ee(e,t?pn(t.sourceFile.path).commandLine.projectReferences:L,ld))))return 0;L&&(ze=L.map(Tn));const n=[],r=[];if(it=2,id(B.getMissingFilePaths(),(e=>me.fileExists(e))))return 0;const i=B.getSourceFiles();let o;a=o||(o={}),a[a.Exists=0]="Exists",a[a.Modified=1]="Modified";var a;const s=new Map;for(const t of i){const i=rn(t.fileName,we,me,I);let o,a=me.getSourceFileByPath?me.getSourceFileByPath(t.fileName,t.resolvedPath,i,void 0,tt):me.getSourceFile(t.fileName,i,void 0,tt);if(!a)return 0;if(a.packageJsonLocations=(null==(e=i.packageJsonLocations)?void 0:e.length)?i.packageJsonLocations:void 0,a.packageJsonScope=i.packageJsonScope,_n.assert(!a.redirectInfo,"Host should not return a redirect source file from `getSourceFile`"),t.redirectInfo){if(a!==t.redirectInfo.unredirected)return 0;o=!1,a=t}else if(B.redirectTargetsMap.has(t.path)){if(a!==t)return 0;o=!1}else o=a!==t;a.path=t.path,a.originalFileName=t.originalFileName,a.resolvedPath=t.resolvedPath,a.fileName=t.fileName;const c=B.sourceFileToPackageName.get(t.path);if(void 0!==c){const e=s.get(c),t=o?1:0;if(void 0!==e&&1===t||1===e)return 0;s.set(c,t)}o?(t.impliedNodeFormat!==a.impliedNodeFormat?it=1:ee(t.libReferenceDirectives,a.libReferenceDirectives,$t)&&ee(t.referencedFiles,a.referencedFiles,$t)?(Qt(a),ee(t.imports,a.imports,Ht)&&ee(t.moduleAugmentations,a.moduleAugmentations,Ht)?(12582912&t.flags)!=(12582912&a.flags)?it=1:ee(t.typeReferenceDirectives,a.typeReferenceDirectives,$t)||(it=1):it=1):it=1,r.push(a)):Fe(t.path)&&(it=1,r.push(a)),n.push(a)}if(2!==it)return it;for(const e of r){const t=eW(e),n=Tt(t,e);(ae??(ae=new Map)).set(e.path,n);const r=gn(e);yd(t,n,(t=>B.getResolvedModule(e,t.text,xV(e,t,r))),_d)&&(it=1);const i=e.typeReferenceDirectives,o=Ct(i,e);(ce??(ce=new Map)).set(e.path,o);yd(i,o,(t=>B.getResolvedTypeReferenceDirective(e,NV(t),Hn(t,e))),hd)&&(it=1)}if(2!==it)return it;if(td(t,I))return 1;if(B.resolvedLibReferences&&id(B.resolvedLibReferences,((e,t)=>bn(t).actual!==e.actual)))return 1;if(me.hasChangedAutomaticTypeDirectiveNames){if(me.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Z=NR(I,me),!ee(B.getAutomaticTypeDirectiveNames(),Z))return 1;Be=B.getMissingFilePaths(),_n.assert(n.length===B.getSourceFiles().length);for(const e of n)Re.set(e.path,e),B.isSourceFileDefaultLibrary(e)&&Me.add(e.path);B.getFilesByNameMap().forEach(((e,t)=>{e?e.path!==t?Re.set(t,Re.get(e.path)):B.isSourceFileFromExternalLibrary(e)&&fe.set(e.path,!0):Re.set(t,e)}));const c=t.configFile&&t.configFile===I.configFile||!t.configFile&&!I.configFile&&!nd(t,I,JO);return Y.reuseStateFromOldProgram(B.getProgramDiagnosticsContainer(),c),ve=c,U=n,Z=B.getAutomaticTypeDirectiveNames(),te=B.getAutomaticTypeDirectiveResolutions(),Le=B.sourceFileToPackageName,je=B.redirectTargetsMap,Oe=B.usesUriStyleNodeCoreModules,oe=B.resolvedModules,se=B.resolvedTypeReferenceDirectiveNames,ne=B.resolvedLibReferences,_e=B.getCurrentPackagesMap(),2}(),null==(g=$n)||g.pop(),2!==it){if(z=[],q=[],L&&(ze||(ze=L.map(Tn)),E.length&&(null==ze||ze.forEach(((e,t)=>{if(!e)return;const n=e.commandLine.options.outFile;if(He){if(n||0===kk(e.commandLine.options))for(const n of e.commandLine.fileNames)en(n,{kind:1,index:t})}else if(n)en(KS(n,".d.ts"),{kind:2,index:t});else if(0===kk(e.commandLine.options)){const n=ut((()=>hU(e.commandLine,!me.useCaseSensitiveFileNames())));for(const r of e.commandLine.fileNames)yO(r)||So(r,".json")||en(cU(r,e.commandLine,!me.useCaseSensitiveFileNames(),n),{kind:2,index:t})}})))),null==(h=$n)||h.push($n.Phase.Program,"processRootFiles",{count:E.length}),_(E,((e,t)=>Wt(e,!1,{kind:0,index:t}))),null==(v=$n)||v.pop(),Z??(Z=E.length?NR(I,me):s),te=jR(),Z.length){null==(x=$n)||x.push($n.Phase.Program,"processTypeReferences",{count:Z.length});const e=Ro(I.configFilePath?Fo(I.configFilePath):be,AV),t=Ct(Z,e);for(let e=0;e{Wt(yn(e),!0,{kind:6,index:t})}))}U=le(z,(function(e,t){return yt(xt(e),xt(t))})).concat(q),z=void 0,q=void 0,G=void 0}if(B&&me.onReleaseOldSourceFile){const e=B.getSourceFiles();for(const t of e){const e=Ot(t.resolvedPath);(tt||!e||e.impliedNodeFormat!==t.impliedNodeFormat||t.resolvedPath===t.path&&e.resolvedPath!==t.path)&&me.onReleaseOldSourceFile(t,B.getCompilerOptions(),!!Ot(t.path),e)}me.getParsedCommandLine||B.forEachResolvedProjectReference((e=>{pn(e.sourceFile.path)||me.onReleaseOldSourceFile(e.sourceFile,B.getCompilerOptions(),!1,void 0)}))}B&&me.onReleaseParsedCommandLine&&jC(B.getProjectReferences(),B.getResolvedProjectReferences(),((e,t,n)=>{const r=YV((null==t?void 0:t.commandLine.projectReferences[n])||B.getProjectReferences()[n]);(null==qe?void 0:qe.has(kt(r)))||me.onReleaseParsedCommandLine(r,e,B.getCompilerOptions())})),B=void 0,ie=void 0,ae=void 0,ce=void 0;const ot={getRootFileNames:()=>E,getSourceFile:It,getSourceFileByPath:Ot,getSourceFiles:()=>U,getMissingFilePaths:()=>Be,getModuleResolutionCache:()=>we,getFilesByNameMap:()=>Re,getCompilerOptions:()=>I,getSyntacticDiagnostics:function(e,t){return Lt(e,Mt,t)},getOptionsDiagnostics:function(){return Ds($(Y.getCombinedDiagnostics(ot).getGlobalDiagnostics(),function(){if(!I.configFile)return s;let e=Y.getCombinedDiagnostics(ot).getDiagnostics(I.configFile.fileName);return ln((t=>{e=$(e,Y.getCombinedDiagnostics(ot).getDiagnostics(t.sourceFile.fileName))})),e}()))},getGlobalDiagnostics:function(){return E.length?Ds(Pt().getGlobalDiagnostics().slice()):s},getSemanticDiagnostics:function(e,t,n){return Lt(e,((e,t)=>function(e,t,n){return $(XV(Jt(e,t,n),I),jt(e))}(e,t,n)),t)},getCachedSemanticDiagnostics:function(e){return null==X?void 0:X.get(e.path)},getSuggestionDiagnostics:function(e,t){return Bt((()=>Pt().getSuggestionDiagnostics(e,t)))},getDeclarationDiagnostics:function(e,t){return Lt(e,Vt,t)},getBindAndCheckDiagnostics:function(e,t){return Jt(e,t,void 0)},getProgramDiagnostics:jt,getTypeChecker:Pt,getClassifiableNames:function(){var e;if(!K){Pt(),K=new Set;for(const t of U)null==(e=t.classifiableNames)||e.forEach((e=>K.add(e)))}return K},getCommonSourceDirectory:St,emit:function(e,t,n,r,i,o,a){var s,c;null==(s=$n)||s.push($n.Phase.Emit,"emit",{path:null==e?void 0:e.path},!0);const l=Bt((()=>function(e,t,n,r,i,o,a,s){if(!a){const i=GV(e,t,n,r);if(i)return i}const c=Pt(),l=c.getEmitResolver(I.outFile?void 0:t,r,xU(i,a));er("beforeEmit");const _=c.runWithCancellationToken(r,(()=>kU(l,Dt(n),t,Uq(I,o,i),i,!1,a,s)));return er("afterEmit"),tr("Emit","beforeEmit","afterEmit"),_}(ot,e,t,n,r,i,o,a)));return null==(c=$n)||c.pop(),l},getCurrentDirectory:()=>be,getNodeCount:()=>Pt().getNodeCount(),getIdentifierCount:()=>Pt().getIdentifierCount(),getSymbolCount:()=>Pt().getSymbolCount(),getTypeCount:()=>Pt().getTypeCount(),getInstantiationCount:()=>Pt().getInstantiationCount(),getRelationCacheSizes:()=>Pt().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Y.getFileProcessingDiagnostics(),getAutomaticTypeDirectiveNames:()=>Z,getAutomaticTypeDirectiveResolutions:()=>te,isSourceFileFromExternalLibrary:Et,isSourceFileDefaultLibrary:function(e){return Me.has(e.path)},getModeForUsageLocation:zn,getEmitSyntaxForUsageLocation:function(e,t){return kV(e,t,gn(e))},getModeForResolutionAtIndex:qn,getSourceFileFromReference:function(e,t){return Yt(KU(t.fileName,e.fileName),It)},getLibFileFromReference:function(e){var t;const n=OC(e),r=n&&(null==(t=null==ne?void 0:ne.get(n))?void 0:t.actual);return void 0!==r?It(r):void 0},sourceFileToPackageName:Le,redirectTargetsMap:je,usesUriStyleNodeCoreModules:Oe,resolvedModules:oe,resolvedTypeReferenceDirectiveNames:se,resolvedLibReferences:ne,getProgramDiagnosticsContainer:()=>Y,getResolvedModule:st,getResolvedModuleFromModuleSpecifier:function(e,t){return t??(t=bd(e)),_n.assertIsDefined(t,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),st(t,e.text,zn(t,e))},getResolvedTypeReferenceDirective:ct,getResolvedTypeReferenceDirectiveFromTypeReferenceDirective:function(e,t){return ct(t,e.fileName,Hn(e,t))},forEachResolvedModule:_t,forEachResolvedTypeReferenceDirective:dt,getCurrentPackagesMap:()=>_e,typesPackageExists:function(e){return ft().has(JM(e))},packageBundlesTypes:function(e){return!!ft().get(e)},isEmittedFile:function(e){if(I.noEmit)return!1;const t=kt(e);if(Ot(t))return!1;const n=I.outFile;if(n)return Bn(t,n)||Bn(t,WS(n)+".d.ts");if(I.declarationDir&&ta(I.declarationDir,t,be,!me.useCaseSensitiveFileNames()))return!0;if(I.outDir)return ta(I.outDir,t,be,!me.useCaseSensitiveFileNames());if(To(t,NS)||yO(t)){const e=WS(t);return!!Ot(e+".ts")||!!Ot(e+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return O||s},getProjectReferences:function(){return L},getResolvedProjectReferences:Ft,getRedirectFromSourceFile:cn,getResolvedProjectReferenceByPath:pn,forEachResolvedProjectReference:ln,isSourceOfProjectReferenceRedirect:dn,getRedirectFromOutput:un,getCompilerOptionsForFile:gn,getDefaultResolutionModeForFile:Un,getEmitModuleFormatOfFile:Vn,getImpliedNodeFormatForEmit:function(e){return $V(e,gn(e))},shouldTransformImportCall:Wn,emitBuildInfo:function(e){var t,n;null==(t=$n)||t.push($n.Phase.Emit,"emitBuildInfo",{},!0),er("beforeEmit");const r=kU(CU,Dt(e),void 0,qq,!1,!0);return er("afterEmit"),tr("Emit","beforeEmit","afterEmit"),null==(n=$n)||n.pop(),r},fileExists:Ge,readFile:Ze,directoryExists:Qe,getSymlinkCache:Jn,realpath:null==(D=me.realpath)?void 0:D.bind(me),useCaseSensitiveFileNames:()=>me.useCaseSensitiveFileNames(),getCanonicalFileName:kn,getFileIncludeReasons:()=>Y.getFileReasons(),structureIsReused:it,writeFile:Nt,getGlobalTypingsCacheLocation:Ve(me,me.getGlobalTypingsCacheLocation)};return Ke(),ve||function(){I.strictPropertyInitialization&&!qk(I,"strictNullChecks")&&En(ua.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks");I.exactOptionalPropertyTypes&&!qk(I,"strictNullChecks")&&En(ua.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks");(I.isolatedModules||I.verbatimModuleSyntax)&&I.outFile&&En(ua.Option_0_cannot_be_specified_with_option_1,"outFile",I.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules");I.isolatedDeclarations&&(Lk(I)&&En(ua.Option_0_cannot_be_specified_with_option_1,"allowJs","isolatedDeclarations"),Pk(I)||En(ua.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"isolatedDeclarations","declaration","composite"));I.inlineSourceMap&&(I.sourceMap&&En(ua.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),I.mapRoot&&En(ua.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap"));I.composite&&(!1===I.declaration&&En(ua.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===I.incremental&&En(ua.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const e=I.outFile;I.tsBuildInfoFile||!I.incremental||e||I.configFilePath||Y.addConfigDiagnostic(Zx(ua.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));if(function(){function e(e,t,n,r,i,...o){if(n){let a=tk(void 0,ua.Use_0_instead,n);r&&(a=tk(a,r));In(!t,e,void 0,tk(a,i,...o))}else{let n;r&&(n=tk(void 0,r));In(!t,e,void 0,tk(n,i,...o))}}Cn("5.0","5.5",e,(e=>{0===I.target&&e("target","ES3"),I.noImplicitUseStrict&&e("noImplicitUseStrict"),I.keyofStringsOnly&&e("keyofStringsOnly"),I.suppressExcessPropertyErrors&&e("suppressExcessPropertyErrors"),I.suppressImplicitAnyIndexErrors&&e("suppressImplicitAnyIndexErrors"),I.noStrictGenericChecks&&e("noStrictGenericChecks"),I.charset&&e("charset"),I.out&&e("out"),I.importsNotUsedAsValues&&e("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),I.preserveValueImports&&e("preserveValueImports",void 0,"verbatimModuleSyntax")})),Cn("6.0","7.0",e,(e=>{!1===I.alwaysStrict&&e("alwaysStrict","false",void 0,void 0),1===I.target&&e("target","ES5"),2===I.moduleResolution&&e("moduleResolution","node10",void 0,ua.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information),1===I.moduleResolution&&e("moduleResolution","classic",void 0,void 0),void 0!==I.baseUrl&&e("baseUrl",void 0,void 0,ua.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information),!1===I.esModuleInterop&&e("esModuleInterop","false",void 0,void 0),!1===I.allowSyntheticDefaultImports&&e("allowSyntheticDefaultImports","false",void 0,void 0),I.outFile&&e("outFile"),0!==I.module&&2!==I.module&&3!==I.module&&4!==I.module||e("module",pi[I.module],void 0,void 0),void 0!==I.downlevelIteration&&e("downlevelIteration")}))}(),function(){const e=I.suppressOutputPathCheck?void 0:nU(I);jC(L,ze,((t,n,r)=>{const i=(n?n.commandLine.projectReferences:L)[r],o=n&&n.sourceFile;if(function(e,t,n){function r(e,r,i,o,a,...s){An(t,n,a,...s)}Cn("5.0","5.5",r,(t=>{e.prepend&&t("prepend")}))}(i,o,r),!t)return void An(o,r,ua.File_0_not_found,i.path);const a=t.commandLine.options;if(!a.composite||a.noEmit){(n?n.commandLine.fileNames:E).length&&(a.composite||An(o,r,ua.Referenced_project_0_must_have_setting_composite_Colon_true,i.path),a.noEmit&&An(o,r,ua.Referenced_project_0_may_not_disable_emit,i.path))}!n&&e&&e===nU(a)&&(An(o,r,ua.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,e,i.path),Se.set(kt(e),!0))}))}(),I.composite){const e=new Set(E.map(kt));for(const t of U)Qy(t,ot)&&!e.has(t.path)&&Y.addLazyConfigDiagnostic(t,ua.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,t.fileName,I.configFilePath||"")}if(I.paths)for(const e in I.paths)if(De(I.paths,e))if(Yk(e)||Nn(!0,e,ua.Pattern_0_can_have_at_most_one_Asterisk_character,e),Xe(I.paths[e])){const t=I.paths[e].length;0===t&&Nn(!1,e,ua.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,e);for(let n=0;n_O(e)&&!e.isDeclarationFile));if(I.isolatedModules||I.verbatimModuleSyntax)0===I.module&&t<2&&I.isolatedModules&&En(ua.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===I.preserveConstEnums&&En(ua.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,I.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(n&&t<2&&0===I.module){const e=Qp(n,"boolean"==typeof n.externalModuleIndicator?n:n.externalModuleIndicator);Y.addConfigDiagnostic(Qx(n,e.start,e.length,ua.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(e&&!I.emitDeclarationOnly)if(I.module&&2!==I.module&&4!==I.module)En(ua.Only_amd_and_system_modules_are_supported_alongside_0,"outFile","module");else if(void 0===I.module&&n){const e=Qp(n,"boolean"==typeof n.externalModuleIndicator?n:n.externalModuleIndicator);Y.addConfigDiagnostic(Qx(n,e.start,e.length,ua.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,"outFile"))}Ek(I)&&(1===Sk(I)?En(ua.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):Bk(I)||En(ua.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module"));if(I.outDir||I.rootDir||I.sourceRoot||I.mapRoot||Pk(I)&&I.declarationDir){const e=St();I.outDir&&""===e&&U.some((e=>No(e.fileName)>1))&&En(ua.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(!I.noEmit&&!I.composite&&!I.rootDir&&I.configFilePath&&(I.outDir||Pk(I)&&I.declarationDir||I.outFile)){const e=St(),t=gU(R(U,(e=>!e.isDeclarationFile&&Qy(e,ot)?e.fileName:void 0)),be,kn);""!==t&&kn(e)!==kn(t)&&In(!0,I.outFile?"outFile":I.outDir?"outDir":"declarationDir",!I.outFile&&I.outDir?"declarationDir":void 0,tk(tk(void 0,ua.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information),ua.The_common_source_directory_of_0_is_1_The_rootDir_setting_must_be_explicitly_set_to_this_or_another_path_to_adjust_your_output_s_file_layout,Eo(I.configFilePath),aa(I.configFilePath,t,kn)))}I.checkJs&&!Lk(I)&&En(ua.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs");I.emitDeclarationOnly&&(Pk(I)||En(ua.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"));I.emitDecoratorMetadata&&!I.experimentalDecorators&&En(ua.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators");I.jsxFactory?(I.reactNamespace&&En(ua.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==I.jsx&&5!==I.jsx||En(ua.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",PO.get(""+I.jsx)),cO(I.jsxFactory,t)||Pn("jsxFactory",ua.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,I.jsxFactory)):I.reactNamespace&&!gs(I.reactNamespace,t)&&Pn("reactNamespace",ua.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,I.reactNamespace);I.jsxFragmentFactory&&(I.jsxFactory||En(ua.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==I.jsx&&5!==I.jsx||En(ua.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",PO.get(""+I.jsx)),cO(I.jsxFragmentFactory,t)||Pn("jsxFragmentFactory",ua.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,I.jsxFragmentFactory));I.reactNamespace&&(4!==I.jsx&&5!==I.jsx||En(ua.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",PO.get(""+I.jsx)));I.jsxImportSource&&2===I.jsx&&En(ua.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",PO.get(""+I.jsx));const r=kk(I);I.verbatimModuleSyntax&&(2!==r&&3!==r&&4!==r||En(ua.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"));I.allowImportingTsExtensions&&!(I.noEmit||I.emitDeclarationOnly||I.rewriteRelativeImportExtensions)&&Pn("allowImportingTsExtensions",ua.Option_allowImportingTsExtensions_can_only_be_used_when_one_of_noEmit_emitDeclarationOnly_or_rewriteRelativeImportExtensions_is_set);const i=Sk(I);I.resolvePackageJsonExports&&!Jk(i)&&En(ua.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports");I.resolvePackageJsonImports&&!Jk(i)&&En(ua.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports");I.customConditions&&!Jk(i)&&En(ua.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions");100!==i||Mk(r)||200===r||1===r||Pn("moduleResolution",ua.Option_0_can_only_be_used_when_module_is_set_to_preserve_commonjs_or_es2015_or_later,"bundler");if(pi[r]&&100<=r&&r<=199&&!(3<=i&&i<=99)){const e=pi[r],t=ci[e]?e:"Node16";Pn("moduleResolution",ua.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,t,e)}else if(ci[i]&&3<=i&&i<=99&&!(100<=r&&r<=199)){const e=ci[i];Pn("module",ua.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,e,e)}if(!I.noEmit&&!I.suppressOutputPathCheck){const e=Dt(),t=new Set;tU(e,(e=>{I.emitDeclarationOnly||o(e.jsFilePath,t),o(e.declarationFilePath,t)}))}function o(e,t){if(e){const n=kt(e);if(Re.has(n)){let t;I.configFilePath||(t=tk(void 0,ua.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=tk(t,ua.Cannot_write_file_0_because_it_would_overwrite_input_file,e),Mn(e,ek(t))}const r=me.useCaseSensitiveFileNames()?n:lt(n);t.has(r)?Mn(e,Zx(ua.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,e)):t.add(r)}}}(),er("afterProgram"),tr("Program","beforeProgram","afterProgram"),null==(N=$n)||N.pop(),ot;function st(e,t,n){var r;return null==(r=null==oe?void 0:oe.get(e.path))?void 0:r.get(t,n)}function ct(e,t,n){var r;return null==(r=null==se?void 0:se.get(e.path))?void 0:r.get(t,n)}function _t(e,t){pt(oe,e,t)}function dt(e,t){pt(se,e,t)}function pt(e,t,n){var r;n?null==(r=null==e?void 0:e.get(n.path))||r.forEach(((e,r,i)=>t(e,r,i,n.path))):null==e||e.forEach(((e,n)=>e.forEach(((e,r,i)=>t(e,r,i,n)))))}function ft(){return _e||(_e=new Map,_t((({resolvedModule:e})=>{(null==e?void 0:e.packageId)&&_e.set(e.packageId.name,".d.ts"===e.extension||!!_e.get(e.packageId.name))})),_e)}function mt(e){var t;(null==(t=e.resolutionDiagnostics)?void 0:t.length)&&Y.addFileProcessingDiagnostic({kind:2,diagnostics:e.resolutionDiagnostics})}function gt(e,t,n,r){if(me.resolveModuleNameLiterals||!me.resolveModuleNames)return mt(n);if(!we||ws(t))return;const i=Fo(Jo(e.originalFileName,be)),o=bt(e),a=we.getFromNonRelativeNameCache(t,r,i,o);a&&mt(a)}function ht(e,t,n){var r,i;const o=Jo(t.originalFileName,be),a=bt(t);null==(r=$n)||r.push($n.Phase.Program,"resolveModuleNamesWorker",{containingFileName:o}),er("beforeResolveModule");const s=Ne(e,o,a,I,t,n);return er("afterResolveModule"),tr("ResolveModule","beforeResolveModule","afterResolveModule"),null==(i=$n)||i.pop(),s}function vt(e,t,n){var r,i;const o=Ye(t)?void 0:t,a=Ye(t)?t:Jo(t.originalFileName,be),s=o&&bt(o);null==(r=$n)||r.push($n.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:a}),er("beforeResolveTypeReference");const c=Ee(e,a,s,I,o,n);return er("afterResolveTypeReference"),tr("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null==(i=$n)||i.pop(),c}function bt(e){var t,n;const r=cn(e.originalFileName);if(r||!yO(e.originalFileName))return null==r?void 0:r.resolvedRef;const i=null==(t=un(e.path))?void 0:t.resolvedRef;if(i)return i;if(!me.realpath||!I.preserveSymlinks||!e.originalFileName.includes(iM))return;const o=kt(me.realpath(e.originalFileName));return o===e.path||null==(n=un(o))?void 0:n.resolvedRef}function xt(e){if(ta(ye,e.fileName,!1)){const t=Eo(e.fileName);if("lib.d.ts"===t||"lib.es6.d.ts"===t)return 0;const n=Rt(Gt(t,"lib."),".d.ts"),r=IO.indexOf(n);if(-1!==r)return r+1}return IO.length+2}function kt(e){return Vo(e,be,kn)}function St(){let e=Y.getCommonSourceDirectory();if(void 0!==e)return e;const t=C(U,(e=>Qy(e,ot)));return e=mU(I,(()=>R(t,(e=>e.isDeclarationFile?void 0:e.fileName))),be,kn,(e=>function(e,t){let n=!0;const r=me.getCanonicalFileName(Jo(t,be));for(const i of e)if(!i.isDeclarationFile){0!==me.getCanonicalFileName(Jo(i.fileName,be)).indexOf(r)&&(Y.addLazyConfigDiagnostic(i,ua.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,i.fileName,t),n=!1)}return n}(t,e))),Y.setCommonSourceDirectory(e),e}function Tt(e,t){return wt({entries:e,containingFile:t,containingSourceFile:t,redirectedReference:bt(t),nameAndModeGetter:wV,resolutionWorker:ht,getResolutionFromOldProgram:(e,n)=>null==B?void 0:B.getResolvedModule(t,e,n),getResolved:ud,canReuseResolutionsInFile:()=>t===(null==B?void 0:B.getSourceFile(t.fileName))&&!Fe(t.path),resolveToOwnAmbientModule:!0})}function Ct(e,t){const n=Ye(t)?void 0:t;return wt({entries:e,containingFile:t,containingSourceFile:n,redirectedReference:n&&bt(n),nameAndModeGetter:FV,resolutionWorker:vt,getResolutionFromOldProgram:(e,t)=>{var r;return n?null==B?void 0:B.getResolvedTypeReferenceDirective(n,e,t):null==(r=null==B?void 0:B.getAutomaticTypeDirectiveResolutions())?void 0:r.get(e,t)},getResolved:dd,canReuseResolutionsInFile:()=>n?n===(null==B?void 0:B.getSourceFile(n.fileName))&&!Fe(n.path):!Fe(kt(t))})}function wt({entries:e,containingFile:t,containingSourceFile:n,redirectedReference:r,nameAndModeGetter:i,resolutionWorker:o,getResolutionFromOldProgram:a,getResolved:c,canReuseResolutionsInFile:l,resolveToOwnAmbientModule:_}){if(!e.length)return s;if(!(0!==it||_&&n.ambientModuleNames.length))return o(e,t,void 0);let u,d,p,f;const m=l();for(let s=0;sp[d[t]]=e)),p):g}function Dt(e){return{getCanonicalFileName:kn,getCommonSourceDirectory:ot.getCommonSourceDirectory,getCompilerOptions:ot.getCompilerOptions,getCurrentDirectory:()=>be,getSourceFile:ot.getSourceFile,getSourceFileByPath:ot.getSourceFileByPath,getSourceFiles:ot.getSourceFiles,isSourceFileFromExternalLibrary:Et,getRedirectFromSourceFile:cn,isSourceOfProjectReferenceRedirect:dn,getSymlinkCache:Jn,writeFile:e||Nt,isEmitBlocked:At,shouldTransformImportCall:Wn,getEmitModuleFormatOfFile:Vn,getDefaultResolutionModeForFile:Un,getModeForResolutionAtIndex:qn,readFile:e=>me.readFile(e),fileExists:e=>{const t=kt(e);return!!Ot(t)||!Be.has(t)&&me.fileExists(e)},realpath:Ve(me,me.realpath),useCaseSensitiveFileNames:()=>me.useCaseSensitiveFileNames(),getBuildInfo:()=>{var e;return null==(e=ot.getBuildInfo)?void 0:e.call(ot)},getSourceFileFromReference:(e,t)=>ot.getSourceFileFromReference(e,t),redirectTargetsMap:je,getFileIncludeReasons:ot.getFileIncludeReasons,createHash:Ve(me,me.createHash),getModuleResolutionCache:()=>ot.getModuleResolutionCache(),trace:Ve(me,me.trace),getGlobalTypingsCacheLocation:ot.getGlobalTypingsCacheLocation}}function Nt(e,t,n,r,i,o){me.writeFile(e,t,n,r,i,o)}function Ft(){return ze}function Et(e){return!!fe.get(e.path)}function Pt(){return H||(H=uJ(ot))}function At(e){return Se.has(kt(e))}function It(e){return Ot(kt(e))}function Ot(e){return Re.get(e)||void 0}function Lt(e,t,n){return Ds(e?t(e,n):A(ot.getSourceFiles(),(e=>(n&&n.throwIfCancellationRequested(),t(e,n)))))}function jt(e){var t;if(dT(e,I,ot))return s;const n=Y.getCombinedDiagnostics(ot).getDiagnostics(e.fileName);return(null==(t=e.commentDirectives)?void 0:t.length)?qt(e,e.commentDirectives,n).diagnostics:n}function Mt(e){return Fm(e)?(e.additionalSyntacticDiagnostics||(e.additionalSyntacticDiagnostics=function(e){return Bt((()=>{const t=[];return n(e,e),iO(e,n,r),t;function n(e,n){switch(n.kind){case 170:case 173:case 175:if(n.questionToken===e)return t.push(a(e,ua.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 174:case 177:case 178:case 179:case 219:case 263:case 220:case 261:if(n.type===e)return t.push(a(e,ua.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(e.kind){case 274:if(e.isTypeOnly)return t.push(a(n,ua._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 279:if(e.isTypeOnly)return t.push(a(e,ua._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 277:case 282:if(e.isTypeOnly)return t.push(a(e,ua._0_declarations_can_only_be_used_in_TypeScript_files,LE(e)?"import...type":"export...type")),"skip";break;case 272:return t.push(a(e,ua.import_can_only_be_used_in_TypeScript_files)),"skip";case 278:if(e.isExportEquals)return t.push(a(e,ua.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 299:if(119===e.token)return t.push(a(e,ua.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 265:const r=Ea(120);return _n.assertIsDefined(r),t.push(a(e,ua._0_declarations_can_only_be_used_in_TypeScript_files,r)),"skip";case 268:const i=32&e.flags?Ea(145):Ea(144);return _n.assertIsDefined(i),t.push(a(e,ua._0_declarations_can_only_be_used_in_TypeScript_files,i)),"skip";case 266:return t.push(a(e,ua.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 177:case 175:case 263:return e.body?void 0:(t.push(a(e,ua.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 267:const o=_n.checkDefined(Ea(94));return t.push(a(e,ua._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 236:return t.push(a(e,ua.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 235:return t.push(a(e.type,ua.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 239:return t.push(a(e.type,ua.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 217:_n.fail()}}function r(e,n){if(XA(n)){const e=y(n.modifiers,FN);e&&t.push(a(e,ua.Decorators_are_not_valid_here))}else if(EI(n)&&n.modifiers){const e=b(n.modifiers,FN);if(e>=0)if(NN(n)&&!I.experimentalDecorators)t.push(a(n.modifiers[e],ua.Decorators_are_not_valid_here));else if(gE(n)){const r=b(n.modifiers,dN);if(r>=0){const i=b(n.modifiers,pN);if(e>r&&i>=0&&e=0&&e=0&&t.push(cT(a(n.modifiers[i],ua.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),a(n.modifiers[e],ua.Decorator_used_before_export_here)))}}}}switch(n.kind){case 264:case 232:case 175:case 177:case 178:case 179:case 219:case 263:case 220:if(e===n.typeParameters)return t.push(o(e,ua.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 244:if(e===n.modifiers)return i(n.modifiers,244===n.kind),"skip";break;case 173:if(e===n.modifiers){for(const n of e)e_(n)&&126!==n.kind&&129!==n.kind&&t.push(a(n,ua.The_0_modifier_can_only_be_used_in_TypeScript_files,Ea(n.kind)));return"skip"}break;case 170:if(e===n.modifiers&&V(e,e_))return t.push(o(e,ua.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 214:case 215:case 234:case 286:case 287:case 216:if(e===n.typeArguments)return t.push(o(e,ua.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}}function i(e,n){for(const r of e)switch(r.kind){case 87:if(n)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:t.push(a(r,ua.The_0_modifier_can_only_be_used_in_TypeScript_files,Ea(r.kind)))}}function o(t,n,...r){const i=t.pos;return Qx(e,i,t.end-i,n,...r)}function a(t,n,...r){return Jp(e,t,n,...r)}}))}(e)),$(e.additionalSyntacticDiagnostics,e.parseDiagnostics)):e.parseDiagnostics}function Bt(e){try{return e()}catch(e){throw e instanceof Tr&&(H=void 0),e}}function Jt(e,t,n){if(n)return zt(e,t,n);let r=null==X?void 0:X.get(e.path);return r||(X??(X=new Map)).set(e.path,r=zt(e,t)),r}function zt(e,t,n){return Bt((()=>{if(dT(e,I,ot))return s;const r=Pt();_n.assert(!!e.bindDiagnostics);const i=1===e.scriptKind||2===e.scriptKind,o=kd(e,I.checkJs),a=i&&iT(e,I);let c=e.bindDiagnostics,l=r.getDiagnostics(e,t,n);return o&&(c=C(c,(e=>qV.has(e.code))),l=C(l,(e=>qV.has(e.code)))),function(e,t,n,...r){var i;const o=P(r);if(!t||!(null==(i=e.commentDirectives)?void 0:i.length))return o;const{diagnostics:a,directives:s}=qt(e,e.commentDirectives,o);if(n)return a;for(const t of s.getUnusedExpectations())a.push(Hp(e,t.range,ua.Unused_ts_expect_error_directive));return a}(e,!o,!!n,c,l,a?e.jsDocDiagnostics:void 0)}))}function qt(e,t,n){const r=zd(e,t),i=n.filter((e=>-1===function(e,t){const{file:n,start:r}=e;if(!n)return-1;const i=Ma(n);let o=Ba(i,r).line-1;for(;o>=0;){if(t.markUsed(o))return o;const e=n.text.slice(i[o],i[o+1]).trim();if(""!==e&&!/^\s*\/\/.*$/.test(e))return-1;o--}return-1}(e,r)));return{diagnostics:i,directives:r}}function Ut(e,t){let n=null==Q?void 0:Q.get(e.path);return n||(Q??(Q=new Map)).set(e.path,n=function(e,t){return Bt((()=>{const n=Pt().getEmitResolver(e,t);return jq(Dt(nt),n,e)||s}))}(e,t)),n}function Vt(e,t){return e.isDeclarationFile?s:Ut(e,t)}function Wt(e,t,n){Zt(zo(e),t,void 0,n)}function $t(e,t){return e.fileName===t.fileName}function Ht(e,t){return 80===e.kind?80===t.kind&&e.escapedText===t.escapedText:11===t.kind&&e.text===t.text}function Xt(e,t){const n=vw.createStringLiteral(e),r=vw.createImportDeclaration(void 0,void 0,n);return Nw(r,2),ET(n,r),ET(r,t),n.flags&=-17,r.flags&=-17,n}function Qt(e){if(e.imports)return;const t=Fm(e),n=_O(e);let r,i,o;if(t||!e.isDeclarationFile&&(Ck(I)||_O(e))){I.importHelpers&&(r=[Xt(Vu,e)]);const t=Qk(Xk(I,e),I);t&&(r||(r=[])).push(Xt(t,e))}for(const t of e.statements)a(t,!1);return(4194304&e.flags||t)&&EC(e,!0,!0,((e,t)=>{PT(e,!1),r=re(r,t)})),e.imports=r||s,e.moduleAugmentations=i||s,void(e.ambientModuleNames=o||s);function a(t,s){if(Np(t)){const n=Sg(t);!(n&&HD(n)&&n.text)||s&&ws(n.text)||(PT(t,!1),r=re(r,n),Oe||0!==de||e.isDeclarationFile||(Kt(n.text,"node:")&&!NC.has(n.text)?Oe=!0:void 0===Oe&&DC.has(n.text)&&(Oe=!1)))}else if(bE(t)&&cp(t)&&(s||Fv(t,128)||e.isDeclarationFile)){t.name.parent=t;const r=Uh(t.name);if(n||s&&!ws(r))(i||(i=[])).push(t.name);else if(!s){e.isDeclarationFile&&(o||(o=[])).push(r);const n=t.body;if(n)for(const e of n.statements)a(e,!0)}}}}function Yt(e,t,n,r){if(ko(e)){const i=me.getCanonicalFileName(e);if(!I.allowNonTsExtensions&&!_(P(ke),(e=>So(i,e))))return void(n&&(jS(i)?n(ua.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,e):n(ua.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,e,"'"+P(xe).join("', '")+"'")));const o=t(e);if(n)if(o)LV(r)&&i===me.getCanonicalFileName(Ot(r.file).fileName)&&n(ua.A_file_cannot_have_a_reference_to_itself);else{const t=cn(e);(null==t?void 0:t.outputDts)?n(ua.Output_file_0_has_not_been_built_from_source_file_1,t.outputDts,e):n(ua.File_0_not_found,e)}return o}{const r=I.allowNonTsExtensions&&t(e);if(r)return r;if(n&&I.allowNonTsExtensions)return void n(ua.File_0_not_found,e);const i=_(xe[0],(n=>t(e+n)));return n&&!i&&n(ua.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,e,"'"+P(xe).join("', '")+"'"),i}}function Zt(e,t,n,r){Yt(e,(e=>nn(e,t,r,n)),((e,...t)=>wn(void 0,r,e,t)),r)}function en(e,t){return Zt(e,!1,void 0,t)}function tn(e,t,n){!LV(n)&&V(Y.getFileReasons().get(t.path),LV)?wn(t,n,ua.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[t.fileName,e]):wn(t,n,ua.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[e,t.fileName])}function nn(e,t,n,r){var i,o;null==(i=$n)||i.push($n.Phase.Program,"findSourceFile",{fileName:e,isDefaultLib:t||void 0,fileIncludeKind:Cr[n.kind]});const a=function(e,t,n,r){var i,o;const a=kt(e);if(He){let i=un(a);if(!i&&me.realpath&&I.preserveSymlinks&&yO(e)&&e.includes(iM)){const t=kt(me.realpath(e));t!==a&&(i=un(t))}if(null==i?void 0:i.source){const o=nn(i.source,t,n,r);return o&&an(o,a,e,void 0),o}}const s=e;if(Re.has(a)){const r=Re.get(a),o=on(r||void 0,n,!0);if(r&&o&&!1!==I.forceConsistentCasingInFileNames){const t=r.fileName;kt(t)!==kt(e)&&(e=(null==(i=cn(e))?void 0:i.outputDts)||e);Uo(t,be)!==Uo(e,be)&&tn(e,r,n)}return r&&fe.get(r.path)&&0===de?(fe.set(r.path,!1),I.noResolve||(fn(r,t),mn(r)),I.noLib||xn(r),pe.set(r.path,!1),Sn(r)):r&&pe.get(r.path)&&dewn(void 0,n,ua.Cannot_read_file_0_Colon_1,[e,t])),tt);if(r){const t=gd(r),i=Ie.get(t);if(i){const t=function(e,t,n,r,i,o,a){var s;const c=AI.createRedirectedSourceFile({redirectTarget:e,unredirected:t});return c.fileName=n,c.path=r,c.resolvedPath=i,c.originalFileName=o,c.packageJsonLocations=(null==(s=a.packageJsonLocations)?void 0:s.length)?a.packageJsonLocations:void 0,c.packageJsonScope=a.packageJsonScope,fe.set(r,de>0),c}(i,_,e,a,kt(e),s,l);return je.add(i.path,e),an(t,a,e,c),on(t,n,!1),Le.set(a,md(r)),q.push(t),t}_&&(Ie.set(t,_),Le.set(a,md(r)))}if(an(_,a,e,c),_){if(fe.set(a,de>0),_.fileName=e,_.path=a,_.resolvedPath=kt(e),_.originalFileName=s,_.packageJsonLocations=(null==(o=l.packageJsonLocations)?void 0:o.length)?l.packageJsonLocations:void 0,_.packageJsonScope=l.packageJsonScope,on(_,n,!1),me.useCaseSensitiveFileNames()){const t=lt(a),r=Je.get(t);r?tn(e,r,n):Je.set(t,_)}I.noResolve||(fn(_,t),mn(_)),I.noLib||xn(_),Sn(_),t?z.push(_):q.push(_),(G??(G=new Set)).add(_.path)}return _}(e,t,n,r);return null==(o=$n)||o.pop(),a}function rn(e,t,n,r){const i=zV(Jo(e,be),null==t?void 0:t.getPackageJsonInfoCache(),n,r),o=xk(r),a=mk(r);return"object"==typeof i?{...i,languageVersion:o,setExternalModuleIndicator:a,jsDocParsingMode:n.jsDocParsingMode}:{languageVersion:o,impliedNodeFormat:i,setExternalModuleIndicator:a,jsDocParsingMode:n.jsDocParsingMode}}function on(e,t,n){return!(!e||n&&LV(t)&&(null==G?void 0:G.has(t.file)))&&(Y.getFileReasons().add(e.path,t),!0)}function an(e,t,n,r){r?(sn(n,r,e),sn(n,t,e||!1)):sn(n,t,e)}function sn(e,t,n){Re.set(t,n),void 0!==n?Be.delete(t):Be.set(t,e)}function cn(e){return null==Ue?void 0:Ue.get(kt(e))}function ln(e){return LC(ze,e)}function un(e){return null==$e?void 0:$e.get(e)}function dn(e){return He&&!!cn(e)}function pn(e){if(qe)return qe.get(e)||void 0}function fn(e,t){_(e.referencedFiles,((n,r)=>{Zt(KU(n.fileName,e.fileName),t,void 0,{kind:4,file:e.path,index:r})}))}function mn(e){const t=e.typeReferenceDirectives;if(!t.length)return;const n=(null==ce?void 0:ce.get(e.path))||Ct(t,e),r=jR();(se??(se=new Map)).set(e.path,r);for(let i=0;i{const r=OC(t);r?Wt(yn(r),!0,{kind:7,file:e.path,index:n}):Y.addFileProcessingDiagnostic({kind:0,reason:{kind:7,file:e.path,index:n}})}))}function kn(e){return me.getCanonicalFileName(e)}function Sn(e){if(Qt(e),e.imports.length||e.moduleAugmentations.length){const t=eW(e),n=(null==ae?void 0:ae.get(e.path))||Tt(t,e);_n.assert(n.length===t.length);const r=gn(e),i=jR();(oe??(oe=new Map)).set(e.path,i);for(let o=0;oue,f=d&&!ZV(r,a,e)&&!r.noResolve&&ohU(a.commandLine,!me.useCaseSensitiveFileNames())));i.fileNames.forEach((n=>{const r=kt(n);let o;yO(n)||So(n,".json")||(i.options.outFile?o=e:(o=cU(n,a.commandLine,!me.useCaseSensitiveFileNames(),t),$e.set(kt(o),{resolvedRef:a,source:n}))),Ue.set(r,{resolvedRef:a,outputDts:o})}))}return i.projectReferences&&(a.references=i.projectReferences.map(Tn)),a}function Cn(e,t,n,r){const o=new vn(e),a=new vn(t),s=new vn(j||i),c=function(){const e=I.ignoreDeprecations;if(e){if("5.0"===e||"6.0"===e)return new vn(e);J()}return vn.zero}(),l=!(1===a.compareTo(s)),_=!l&&-1===c.compareTo(o);(l||_)&&r(((r,i,o,a)=>{l?void 0===i?n(r,i,o,a,ua.Option_0_has_been_removed_Please_remove_it_from_your_configuration,r):n(r,i,o,a,ua.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,r,i):void 0===i?n(r,i,o,a,ua.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,r,t,e):n(r,i,o,a,ua.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,r,i,t,e)}))}function wn(e,t,n,r){Y.addFileProcessingDiagnostic({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:n,args:r})}function Dn(e,t,n,...r){let i=!0;Fn((o=>{mF(o.initializer)&&Vf(o.initializer,e,(e=>{const o=e.initializer;fF(o)&&o.elements.length>t&&(Y.addConfigDiagnostic(Jp(I.configFile,o.elements[t],n,...r)),i=!1)}))})),i&&On(n,...r)}function Nn(e,t,n,...r){let i=!0;Fn((o=>{mF(o.initializer)&&Rn(o.initializer,e,t,void 0,n,...r)&&(i=!1)})),i&&On(n,...r)}function Fn(e){return BC(Ln(),"paths",e)}function En(e,t,n,r){In(!0,t,n,e,t,n,r)}function Pn(e,t,...n){In(!1,e,void 0,t,...n)}function An(e,t,n,...r){const i=Hf(e||I.configFile,"references",(e=>fF(e.initializer)?e.initializer:void 0));i&&i.elements.length>t?Y.addConfigDiagnostic(Jp(e||I.configFile,i.elements[t],n,...r)):Y.addConfigDiagnostic(Zx(n,...r))}function In(e,t,n,r,...i){const o=Ln();(!o||!Rn(o,e,t,n,r,...i))&&On(r,...i)}function On(e,...t){const n=jn();n?"messageText"in e?Y.addConfigDiagnostic(zp(I.configFile,n.name,e)):Y.addConfigDiagnostic(Jp(I.configFile,n.name,e,...t)):"messageText"in e?Y.addConfigDiagnostic(ek(e)):Y.addConfigDiagnostic(Zx(e,...t))}function Ln(){if(void 0===Te){const e=jn();Te=e&&et(e.initializer,mF)||!1}return Te||void 0}function jn(){return void 0===Ce&&(Ce=Vf(Wf(I.configFile),"compilerOptions",at)||!1),Ce||void 0}function Rn(e,t,n,r,i,...o){let a=!1;return Vf(e,n,(e=>{"messageText"in i?Y.addConfigDiagnostic(zp(I.configFile,t?e.name:e.initializer,i)):Y.addConfigDiagnostic(Jp(I.configFile,t?e.name:e.initializer,i,...o)),a=!0}),r),a}function Mn(e,t){Se.set(kt(e),!0),Y.addConfigDiagnostic(t)}function Bn(e,t){return 0===ea(e,t,be,!me.useCaseSensitiveFileNames())}function Jn(){return me.getSymlinkCache?me.getSymlinkCache():(W||(W=Zk(be,kn)),U&&!W.hasProcessedResolutions()&&W.setSymlinksFromResolutions(_t,dt,te),W)}function zn(e,t){return xV(e,t,gn(e))}function qn(e,t){return zn(e,tW(e,t))}function Un(e){return HV(e,gn(e))}function Vn(e){return WV(e,gn(e))}function Wn(e){return VV(e,gn(e))}function Hn(e,t){return e.resolutionMode||Un(t)}}function VV(e,t){const n=kk(t);return!(100<=n&&n<=199||200===n)&&WV(e,t)<5}function WV(e,t){return $V(e,t)??kk(t)}function $V(e,t){var n,r;const i=kk(t);return 100<=i&&i<=199?e.impliedNodeFormat:1!==e.impliedNodeFormat||"commonjs"!==(null==(n=e.packageJsonScope)?void 0:n.contents.packageJsonContent.type)&&!To(e.fileName,[".cjs",".cts"])?99!==e.impliedNodeFormat||"module"!==(null==(r=e.packageJsonScope)?void 0:r.contents.packageJsonContent.type)&&!To(e.fileName,[".mjs",".mts"])?void 0:99:1}function HV(e,t){return gk(t)?$V(e,t):void 0}var KV={diagnostics:s,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function GV(e,t,n,r){const i=e.getCompilerOptions();if(i.noEmit)return t?KV:e.emitBuildInfo(n,r);if(!i.noEmitOnError)return;let o,a=[...e.getOptionsDiagnostics(r),...e.getSyntacticDiagnostics(t,r),...e.getGlobalDiagnostics(r),...e.getSemanticDiagnostics(t,r)];if(0===a.length&&Pk(e.getCompilerOptions())&&(a=e.getDeclarationDiagnostics(void 0,r)),a.length){if(!t){const t=e.emitBuildInfo(n,r);t.diagnostics&&(a=[...a,...t.diagnostics]),o=t.emittedFiles}return{diagnostics:a,sourceMaps:void 0,emittedFiles:o,emitSkipped:!0}}}function XV(e,t){return C(e,(e=>!e.skippedOn||!t[e.skippedOn]))}function QV(e,t=e){return{fileExists:e=>t.fileExists(e),readDirectory:(e,n,r,i,o)=>(_n.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(e,n,r,i,o)),readFile:e=>t.readFile(e),directoryExists:Ve(t,t.directoryExists),getDirectories:Ve(t,t.getDirectories),realpath:Ve(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||ot,trace:e.trace?t=>e.trace(t):void 0}}function YV(e){return tH(e.path)}function ZV(e,{extension:t},{isDeclarationFile:n}){switch(t){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return r();case".jsx":return r()||i();case".js":case".mjs":case".cjs":return i();case".json":return Ek(e)?void 0:ua.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used;default:return n||e.allowArbitraryExtensions?void 0:ua.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}function r(){return e.jsx?void 0:ua.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return Lk(e)||!qk(e,"noImplicitAny")?void 0:ua.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function eW({imports:e,moduleAugmentations:t}){const n=e.map((e=>e));for(const e of t)11===e.kind&&n.push(e);return n}function tW({imports:e,moduleAugmentations:t},n){if(nn,getFileReasons:()=>l,getCommonSourceDirectory:()=>r,getConfigDiagnostics:()=>i,getLazyConfigDiagnostics:()=>o,getCombinedDiagnostics:e=>t||(t=uy(),null==i||i.getDiagnostics().forEach((e=>t.add(e))),null==n||n.forEach((n=>{switch(n.kind){case 1:return t.add(_(e,n.file&&e.getSourceFileByPath(n.file),n.fileProcessingReason,n.diagnostic,n.args||s));case 0:return t.add(function(e,{reason:t}){const{file:n,pos:r,end:i}=RV(e,t),o=IC(n.libReferenceDirectives[t.index]),a=Ot(Rt(Gt(o,"lib."),".d.ts"),IO,at);return Qx(n,_n.checkDefined(r),_n.checkDefined(i)-r,a?ua.Cannot_find_lib_definition_for_0_Did_you_mean_1:ua.Cannot_find_lib_definition_for_0,o,a)}(e,n));case 2:return n.diagnostics.forEach((e=>t.add(e)));default:_n.assertNever(n)}})),null==o||o.forEach((({file:n,diagnostic:r,args:i})=>t.add(_(e,n,void 0,r,i)))),a=void 0,c=void 0,t)};function _(t,n,r,i,o){let _,u,d,p,f,m;const g=n&&l.get(n.path);let h=LV(r)?r:void 0,y=n&&(null==a?void 0:a.get(n.path));y?(y.fileIncludeReasonDetails?(_=new Set(g),null==g||g.forEach(k)):null==g||g.forEach(x),f=y.redirectInfo):(null==g||g.forEach(x),f=n&&N$(n,t.getCompilerOptionsForFile(n))),r&&x(r);const v=(null==_?void 0:_.size)!==(null==g?void 0:g.length);h&&1===(null==_?void 0:_.size)&&(_=void 0),_&&y&&(y.details&&!v?m=tk(y.details,i,...o??s):y.fileIncludeReasonDetails&&(v?u=S()?re(y.fileIncludeReasonDetails.next.slice(0,g.length),u[0]):[...y.fileIncludeReasonDetails.next,u[0]]:S()?u=y.fileIncludeReasonDetails.next.slice(0,g.length):p=y.fileIncludeReasonDetails)),m||(p||(p=_&&tk(u,ua.The_file_is_in_the_program_because_Colon)),m=tk(f?p?[p,...f]:f:p,i,...o||s)),n&&(y?(!y.fileIncludeReasonDetails||!v&&p)&&(y.fileIncludeReasonDetails=p):(a??(a=new Map)).set(n.path,y={fileIncludeReasonDetails:p,redirectInfo:f}),y.details||v||(y.details=m.next));const b=h&&RV(t,h);return b&&jV(b)?Vp(b.file,b.pos,b.end-b.pos,m,d):ek(m,d);function x(e){(null==_?void 0:_.has(e))||((_??(_=new Set)).add(e),(u??(u=[])).push(P$(t,e)),k(e))}function k(n){!h&&LV(n)?h=n:h!==n&&(d=re(d,function(t,n){let r=null==c?void 0:c.get(n);void 0===r&&(c??(c=new Map)).set(n,r=function(t,n){if(LV(n)){const e=RV(t,n);let r;switch(n.kind){case 3:r=ua.File_is_included_via_import_here;break;case 4:r=ua.File_is_included_via_reference_here;break;case 5:r=ua.File_is_included_via_type_library_reference_here;break;case 7:r=ua.File_is_included_via_library_reference_here;break;default:_n.assertNever(n)}return jV(e)?Qx(e.file,e.pos,e.end-e.pos,r):void 0}const r=t.getCurrentDirectory(),i=t.getRootFileNames(),o=t.getCompilerOptions();if(!o.configFile)return;let a,s;switch(n.kind){case 0:if(!o.configFile.configFileSpecs)return;const c=Jo(i[n.index],r),l=F$(t,c);if(l){a=$f(o.configFile,"files",l),s=ua.File_is_matched_by_files_list_specified_here;break}const _=E$(t,c);if(!_||!Ye(_))return;a=$f(o.configFile,"include",_),s=ua.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const u=t.getResolvedProjectReferences(),d=t.getProjectReferences(),p=_n.checkDefined(null==u?void 0:u[n.index]),f=jC(d,u,((e,t,n)=>e===p?{sourceFile:(null==t?void 0:t.sourceFile)||o.configFile,index:n}:void 0));if(!f)return;const{sourceFile:m,index:g}=f,h=Hf(m,"references",(e=>fF(e.initializer)?e.initializer:void 0));return h&&h.elements.length>g?Jp(m,h.elements[g],2===n.kind?ua.File_is_output_from_referenced_project_specified_here:ua.File_is_source_from_referenced_project_specified_here):void 0;case 8:a=RC(e(),"types",hk(o)?"*":n.typeReference),s=ua.File_is_entry_point_of_type_library_specified_here;break;case 6:if(void 0!==n.index){a=RC(e(),"lib",o.lib[n.index]),s=ua.File_is_library_specified_here;break}const y=Uk(xk(o));a=y?MC(e(),"target",y):void 0,s=ua.File_is_default_library_for_target_specified_here;break;default:_n.assertNever(n)}return a&&Jp(o.configFile,a,s)}(t,n)??!1);return r||void 0}(t,n)))}function S(){var e;return(null==(e=y.fileIncludeReasonDetails.next)?void 0:e.length)!==(null==g?void 0:g.length)}}}function rW(e,t,n,r,i,o){const a=[],{emitSkipped:s,diagnostics:c}=e.emit(t,(function(e,t,n){a.push({name:e,writeByteOrderMark:n,text:t})}),r,n,i,o);return{outputFiles:a,emitSkipped:s,diagnostics:c}}var iW,oW=(e=>(e[e.ComputedDts=0]="ComputedDts",e[e.StoredSignatureAtEmit=1]="StoredSignatureAtEmit",e[e.UsedVersion=2]="UsedVersion",e))(oW||{});(e=>{function t(){return function(e,t,r){const i={getKeys:e=>t.get(e),getValues:t=>e.get(t),keys:()=>e.keys(),size:()=>e.size,deleteKey:i=>{(r||(r=new Set)).add(i);const o=e.get(i);return!!o&&(o.forEach((e=>n(t,e,i))),e.delete(i),!0)},set:(o,a)=>{null==r||r.delete(o);const s=e.get(o);return e.set(o,a),null==s||s.forEach((e=>{a.has(e)||n(t,e,o)})),a.forEach((e=>{(null==s?void 0:s.has(e))||function(e,t,n){let r=e.get(t);r||(r=new Set,e.set(t,r));r.add(n)}(t,e,o)})),i}};return i}(new Map,new Map,void 0)}function n(e,t,n){const r=e.get(t);return!!(null==r?void 0:r.delete(n))&&(r.size||e.delete(t),!0)}function r(e,t){const n=e.getSymbolAtLocation(t);return n&&function(e){return R(e.declarations,(e=>{var t;return null==(t=bd(e))?void 0:t.resolvedPath}))}(n)}function i(e,t,n,r){var i;return Vo((null==(i=e.getRedirectFromSourceFile(t))?void 0:i.outputDts)||t,n,r)}function o(e,t,n){let o;if(t.imports&&t.imports.length>0){const n=e.getTypeChecker();for(const e of t.imports){const t=r(n,e);null==t||t.forEach(c)}}const a=Fo(t.resolvedPath);if(t.referencedFiles&&t.referencedFiles.length>0)for(const r of t.referencedFiles){c(i(e,r.fileName,a,n))}if(e.forEachResolvedTypeReferenceDirective((({resolvedTypeReferenceDirective:t})=>{if(!t)return;const r=t.resolvedFileName;c(i(e,r,a,n))}),t),t.moduleAugmentations.length){const n=e.getTypeChecker();for(const e of t.moduleAugmentations){if(!HD(e))continue;const t=n.getSymbolAtLocation(e);t&&s(t)}}for(const t of e.getTypeChecker().getAmbientModules())t.declarations&&t.declarations.length>1&&s(t);return o;function s(e){if(e.declarations)for(const n of e.declarations){const e=bd(n);e&&e!==t&&c(e.resolvedPath)}}function c(e){(o||(o=new Set)).add(e)}}function a(e,t){return t&&!t.referencedMap==!e}function c(e){return 0===e.module||e.outFile?void 0:t()}function l(e,t,n,r,i){const o=t.getSourceFileByPath(n);return o?u(e,t,o,r,i)?(e.referencedMap?h:g)(e,t,o,r,i):[o]:s}function _(e,t,n,r,i){e.emit(t,((n,o,a,s,c,l)=>{_n.assert(yO(n),`File extension for signature expected to be dts: Got:: ${n}`),i(MW(e,t,o,r,l),c)}),n,2,void 0,!0)}function u(e,t,n,r,i,o=e.useFileVersionAsSignature){var a;if(null==(a=e.hasCalledUpdateShapeSignature)?void 0:a.has(n.resolvedPath))return!1;const s=e.fileInfos.get(n.resolvedPath),c=s.signature;let l;return n.isDeclarationFile||o||_(t,n,r,i,(t=>{l=t,i.storeSignatureInfo&&(e.signatureInfo??(e.signatureInfo=new Map)).set(n.resolvedPath,0)})),void 0===l&&(l=n.version,i.storeSignatureInfo&&(e.signatureInfo??(e.signatureInfo=new Map)).set(n.resolvedPath,2)),(e.oldSignatures||(e.oldSignatures=new Map)).set(n.resolvedPath,c||!1),(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(n.resolvedPath),s.signature=l,l!==c}function d(e,t){if(!e.allFileNames){const n=t.getSourceFiles();e.allFileNames=n===s?s:n.map((e=>e.fileName))}return e.allFileNames}function p(e,t){const n=e.referencedMap.getKeys(t);return n?Ie(n.keys()):[]}function f(e){return function(e){return V(e.moduleAugmentations,(e=>pp(e.parent)))}(e)||!Zp(e)&&!ef(e)&&!function(e){for(const t of e.statements)if(!lp(t))return!1;return!0}(e)}function m(e,t,n){if(e.allFilesExcludingDefaultLibraryFile)return e.allFilesExcludingDefaultLibraryFile;let r;n&&i(n);for(const e of t.getSourceFiles())e!==n&&i(e);return e.allFilesExcludingDefaultLibraryFile=r||s,e.allFilesExcludingDefaultLibraryFile;function i(e){t.isSourceFileDefaultLibrary(e)||(r||(r=[])).push(e)}}function g(e,t,n){const r=t.getCompilerOptions();return r&&r.outFile?[n]:m(e,t,n)}function h(e,t,n,r,i){if(f(n))return m(e,t,n);const o=t.getCompilerOptions();if(o&&(Ck(o)||o.outFile))return[n];const a=new Map;a.set(n.resolvedPath,n);const s=p(e,n.resolvedPath);for(;s.length>0;){const n=s.pop();if(!a.has(n)){const o=t.getSourceFileByPath(n);a.set(n,o),o&&u(e,t,o,r,i)&&s.push(...p(e,o.resolvedPath))}}return Ie(M(a.values(),(e=>e)))}e.createManyToManyPathMap=t,e.canReuseOldState=a,e.createReferencedMap=c,e.create=function(e,t,n){var r,i;const s=new Map,l=e.getCompilerOptions(),_=c(l),u=a(_,t);e.getTypeChecker();for(const n of e.getSourceFiles()){const a=_n.checkDefined(n.version,"Program intended to be used with Builder should have source files with versions set"),c=u?null==(r=t.oldSignatures)?void 0:r.get(n.resolvedPath):void 0,d=void 0===c?u?null==(i=t.fileInfos.get(n.resolvedPath))?void 0:i.signature:void 0:c||void 0;if(_){const t=o(e,n,e.getCanonicalFileName);t&&_.set(n.resolvedPath,t)}s.set(n.resolvedPath,{version:a,signature:d,affectsGlobalScope:l.outFile?void 0:f(n)||void 0,impliedFormat:n.impliedNodeFormat})}return{fileInfos:s,referencedMap:_,useFileVersionAsSignature:!n&&!u}},e.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},e.getFilesAffectedBy=function(e,t,n,r,i){var o;const a=l(e,t,n,r,i);return null==(o=e.oldSignatures)||o.clear(),a},e.getFilesAffectedByWithOldState=l,e.updateSignatureOfFile=function(e,t,n){e.fileInfos.get(n).signature=t,(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(n)},e.computeDtsSignature=_,e.updateShapeSignature=u,e.getAllDependencies=function(e,t,n){if(t.getCompilerOptions().outFile)return d(e,t);if(!e.referencedMap||f(n))return d(e,t);const r=new Set,i=[n.resolvedPath];for(;i.length;){const t=i.pop();if(!r.has(t)){r.add(t);const n=e.referencedMap.getValues(t);if(n)for(const e of n.keys())i.push(e)}}return Ie(M(r.keys(),(e=>{var n;return(null==(n=t.getSourceFileByPath(e))?void 0:n.fileName)??e})))},e.getReferencedByPaths=p,e.getAllFilesExcludingDefaultLibraryFile=m})(iW||(iW={}));var aW=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.DtsErrors=8]="DtsErrors",e[e.DtsEmit=16]="DtsEmit",e[e.DtsMap=32]="DtsMap",e[e.Dts=24]="Dts",e[e.AllJs=7]="AllJs",e[e.AllDtsEmit=48]="AllDtsEmit",e[e.AllDts=56]="AllDts",e[e.All=63]="All",e))(aW||{});function sW(e){return void 0!==e.program}function cW(e){let t=1;return e.sourceMap&&(t|=2),e.inlineSourceMap&&(t|=4),Pk(e)&&(t|=24),e.declarationMap&&(t|=32),e.emitDeclarationOnly&&(t&=56),t}function lW(e,t){const n=t&&(Ze(t)?t:cW(t)),r=Ze(e)?e:cW(e);if(n===r)return 0;if(!n||!r)return r;const i=n^r;let o=0;return 7&i&&(o=7&r),8&i&&(o|=8&r),48&i&&(o|=48&r),o}function _W(e,t){var n,r;const i=iW.create(e,t,!1);i.program=e;const o=e.getCompilerOptions();i.compilerOptions=o;const a=o.outFile;i.semanticDiagnosticsPerFile=new Map,a&&o.composite&&(null==t?void 0:t.outSignature)&&a===t.compilerOptions.outFile&&(i.outSignature=t.outSignature&&uW(o,t.compilerOptions,t.outSignature)),i.changedFilesSet=new Set,i.latestChangedDtsFile=o.composite?null==t?void 0:t.latestChangedDtsFile:void 0,i.checkPending=!!i.compilerOptions.noCheck||void 0;const s=iW.canReuseOldState(i.referencedMap,t),c=s?t.compilerOptions:void 0;let l=s&&!Wk(o,c);const _=o.composite&&(null==t?void 0:t.emitSignatures)&&!a&&!Hk(o,t.compilerOptions);let u=!0;s?(null==(n=t.changedFilesSet)||n.forEach((e=>i.changedFilesSet.add(e))),!a&&(null==(r=t.affectedFilesPendingEmit)?void 0:r.size)&&(i.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),i.seenAffectedFiles=new Set),i.programEmitPending=t.programEmitPending,a&&i.changedFilesSet.size&&(l=!1,u=!1),i.hasErrorsFromOldState=t.hasErrors):i.buildInfoEmitPending=Ik(o);const d=i.referencedMap,p=s?t.referencedMap:void 0,f=l&&!o.skipLibCheck==!c.skipLibCheck,m=f&&!o.skipDefaultLibCheck==!c.skipDefaultLibCheck;if(i.fileInfos.forEach(((n,r)=>{var a;let c,h;if(!s||!(c=t.fileInfos.get(r))||c.version!==n.version||c.impliedFormat!==n.impliedFormat||(y=h=d&&d.getValues(r),v=p&&p.getValues(r),y!==v&&(void 0===y||void 0===v||y.size!==v.size||od(y,(e=>!v.has(e)))))||h&&od(h,(e=>!i.fileInfos.has(e)&&t.fileInfos.has(e))))g(r);else{const n=e.getSourceFileByPath(r),o=u?null==(a=t.emitDiagnosticsPerFile)?void 0:a.get(r):void 0;if(o&&(i.emitDiagnosticsPerFile??(i.emitDiagnosticsPerFile=new Map)).set(r,t.hasReusableDiagnostic?mW(o,r,e):dW(o,e)),l){if(n.isDeclarationFile&&!f)return;if(e.isSourceFileDefaultLibrary(n)&&!m)return;const o=t.semanticDiagnosticsPerFile.get(r);o&&(i.semanticDiagnosticsPerFile.set(r,t.hasReusableDiagnostic?mW(o,r,e):dW(o,e)),(i.semanticDiagnosticsFromOldState??(i.semanticDiagnosticsFromOldState=new Set)).add(r))}}var y,v;if(_){const e=t.emitSignatures.get(r);e&&(i.emitSignatures??(i.emitSignatures=new Map)).set(r,uW(o,t.compilerOptions,e))}})),s&&id(t.fileInfos,((e,t)=>!i.fileInfos.has(t)&&(!!e.affectsGlobalScope||(i.buildInfoEmitPending=!0,!!a)))))iW.getAllFilesExcludingDefaultLibraryFile(i,e,void 0).forEach((e=>g(e.resolvedPath)));else if(c){const t=$k(o,c)?cW(o):lW(o,c);0!==t&&(a?i.changedFilesSet.size||(i.programEmitPending=i.programEmitPending?i.programEmitPending|t:t):(e.getSourceFiles().forEach((e=>{i.changedFilesSet.has(e.resolvedPath)||JW(i,e.resolvedPath,t)})),_n.assert(!i.seenAffectedFiles||!i.seenAffectedFiles.size),i.seenAffectedFiles=i.seenAffectedFiles||new Set),i.buildInfoEmitPending=!0)}return s&&i.semanticDiagnosticsPerFile.size!==i.fileInfos.size&&t.checkPending!==i.checkPending&&(i.buildInfoEmitPending=!0),i;function g(e){i.changedFilesSet.add(e),a&&(l=!1,u=!1,i.semanticDiagnosticsFromOldState=void 0,i.semanticDiagnosticsPerFile.clear(),i.emitDiagnosticsPerFile=void 0),i.buildInfoEmitPending=!0,i.programEmitPending=void 0}}function uW(e,t,n){return!!e.declarationMap==!!t.declarationMap?n:Ye(n)?[n]:n[0]}function dW(e,t){return e.length?E(e,(e=>{if(Ye(e.messageText))return e;const n=pW(e.messageText,e.file,t,(e=>{var t;return null==(t=e.repopulateInfo)?void 0:t.call(e)}));return n===e.messageText?e:{...e,messageText:n}})):e}function pW(e,t,n,r){const i=r(e);if(!0===i)return{...fd(t),next:fW(e.next,t,n,r)};if(i)return{...pd(t,n,i.moduleReference,i.mode,i.packageName||i.moduleReference),next:fW(e.next,t,n,r)};const o=fW(e.next,t,n,r);return o===e.next?e:{...e,next:o}}function fW(e,t,n,r){return E(e,(e=>pW(e,t,n,r)))}function mW(e,t,n){if(!e.length)return s;let r;return e.map((e=>{const r=gW(e,t,n,i);r.reportsUnnecessary=e.reportsUnnecessary,r.reportsDeprecated=e.reportDeprecated,r.source=e.source,r.skippedOn=e.skippedOn;const{relatedInformation:o}=e;return r.relatedInformation=o?o.length?o.map((e=>gW(e,t,n,i))):[]:void 0,r}));function i(e){return r??(r=Fo(Jo(nU(n.getCompilerOptions()),n.getCurrentDirectory()))),Vo(e,r,n.getCanonicalFileName)}}function gW(e,t,n,r){const{file:i}=e,o=!1!==i?n.getSourceFileByPath(i?r(i):t):void 0;return{...e,file:o,messageText:Ye(e.messageText)?e.messageText:pW(e.messageText,o,n,(e=>e.info))}}function hW(e,t){_n.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function yW(e,t,n){for(var r;;){const{affectedFiles:i}=e;if(i){const o=e.seenAffectedFiles;let a=e.affectedFilesIndex;for(;a{const i=n?55&t:7&t;i?e.affectedFilesPendingEmit.set(r,i):e.affectedFilesPendingEmit.delete(r)})),e.programEmitPending)){const t=n?55&e.programEmitPending:7&e.programEmitPending;e.programEmitPending=t||void 0}}function bW(e,t,n,r){let i=lW(e,t);return n&&(i&=56),r&&(i&=8),i}function xW(e){return e?8:56}function kW(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=e.program.getCompilerOptions();_(e.program.getSourceFiles(),(n=>e.program.isSourceFileDefaultLibrary(n)&&!pT(n,t,e.program)&&CW(e,n.resolvedPath)))}}function SW(e,t,n,r){if(CW(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles)return kW(e),void iW.updateShapeSignature(e,e.program,t,n,r);e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||function(e,t,n,r){var i,o;if(!e.referencedMap||!e.changedFilesSet.has(t.resolvedPath))return;if(!wW(e,t.resolvedPath))return;if(Ck(e.compilerOptions)){const i=new Map;i.set(t.resolvedPath,!0);const o=iW.getReferencedByPaths(e,t.resolvedPath);for(;o.length>0;){const t=o.pop();if(!i.has(t)){if(i.set(t,!0),DW(e,t,!1,n,r))return;if(TW(e,t,!1,n,r),wW(e,t)){const n=e.program.getSourceFileByPath(t);o.push(...iW.getReferencedByPaths(e,n.resolvedPath))}}}}const a=new Set,s=!!(null==(i=t.symbol)?void 0:i.exports)&&!!id(t.symbol.exports,(n=>{if(128&n.flags)return!0;const r=sx(n,e.program.getTypeChecker());return r!==n&&(!!(128&r.flags)&&V(r.declarations,(e=>bd(e)===t)))}));null==(o=e.referencedMap.getKeys(t.resolvedPath))||o.forEach((t=>{if(DW(e,t,s,n,r))return!0;const i=e.referencedMap.getKeys(t);return i&&od(i,(t=>NW(e,t,s,a,n,r)))}))}(e,t,n,r)}function TW(e,t,n,r,i){if(CW(e,t),!e.changedFilesSet.has(t)){const o=e.program.getSourceFileByPath(t);o&&(iW.updateShapeSignature(e,e.program,o,r,i,!0),n?JW(e,t,cW(e.compilerOptions)):Pk(e.compilerOptions)&&JW(e,t,e.compilerOptions.declarationMap?56:24))}}function CW(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function wW(e,t){const n=_n.checkDefined(e.oldSignatures).get(t)||void 0;return _n.checkDefined(e.fileInfos.get(t)).signature!==n}function DW(e,t,n,r,i){var o;return!!(null==(o=e.fileInfos.get(t))?void 0:o.affectsGlobalScope)&&(iW.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach((t=>TW(e,t.resolvedPath,n,r,i))),kW(e),!0)}function NW(e,t,n,r,i,o){var a;if(J(r,t)){if(DW(e,t,n,i,o))return!0;TW(e,t,n,i,o),null==(a=e.referencedMap.getKeys(t))||a.forEach((t=>NW(e,t,n,r,i,o)))}}function FW(e,t,n,r){return e.compilerOptions.noCheck?s:$(function(e,t,n,r){r??(r=e.semanticDiagnosticsPerFile);const i=t.resolvedPath,o=r.get(i);if(o)return XV(o,e.compilerOptions);const a=e.program.getBindAndCheckDiagnostics(t,n);return r.set(i,a),e.buildInfoEmitPending=!0,XV(a,e.compilerOptions)}(e,t,n,r),e.program.getProgramDiagnostics(t))}function EW(e){var t;return!!(null==(t=e.options)?void 0:t.outFile)}function PW(e){return!!e.fileNames}function AW(e){void 0===e.hasErrors&&(Ik(e.compilerOptions)?e.hasErrors=!V(e.program.getSourceFiles(),(t=>{var n,r;const i=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return void 0===i||!!i.length||!!(null==(r=null==(n=e.emitDiagnosticsPerFile)?void 0:n.get(t.resolvedPath))?void 0:r.length)}))&&(IW(e)||V(e.program.getSourceFiles(),(t=>!!e.program.getProgramDiagnostics(t).length))):e.hasErrors=V(e.program.getSourceFiles(),(t=>{var n,r;const i=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return!!(null==i?void 0:i.length)||!!(null==(r=null==(n=e.emitDiagnosticsPerFile)?void 0:n.get(t.resolvedPath))?void 0:r.length)}))||IW(e))}function IW(e){return!!(e.program.getConfigFileParsingDiagnostics().length||e.program.getSyntacticDiagnostics().length||e.program.getOptionsDiagnostics().length||e.program.getGlobalDiagnostics().length)}function OW(e){return AW(e),e.buildInfoEmitPending??(e.buildInfoEmitPending=!!e.hasErrorsFromOldState!=!!e.hasErrors)}var LW=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(LW||{});function jW(e,t,n,r,i,o){let a,c,l;return void 0===e?(_n.assert(void 0===t),a=n,l=r,_n.assert(!!l),c=l.getProgram()):Xe(e)?(l=r,c=UV({rootNames:e,options:t,host:n,oldProgram:l&&l.getProgramOrUndefined(),configFileParsingDiagnostics:i,projectReferences:o}),a=n):(c=e,a=t,l=n,i=r),{host:a,newProgram:c,oldProgram:l,configFileParsingDiagnostics:i||s}}function RW(e,t){return void 0!==(null==t?void 0:t.sourceMapUrlPos)?e.substring(0,t.sourceMapUrlPos):e}function MW(e,t,n,r,i){var o;let a;return n=RW(n,i),(null==(o=null==i?void 0:i.diagnostics)?void 0:o.length)&&(n+=i.diagnostics.map((n=>`${function(n){if(n.file.resolvedPath===t.resolvedPath)return`(${n.start},${n.length})`;void 0===a&&(a=Fo(t.resolvedPath));return`${Ho(ia(a,n.file.resolvedPath,e.getCanonicalFileName))}(${n.start},${n.length})`}(n)}${ai[n.category]}${n.code}: ${s(n.messageText)}`)).join("\n")),(r.createHash??ji)(n);function s(e){return Ye(e)?e:void 0===e?"":e.next?e.messageText+e.next.map(s).join("\n"):e.messageText}}function BW(e,{newProgram:t,host:n,oldProgram:r,configFileParsingDiagnostics:i}){let a=r&&r.state;if(a&&t===a.program&&i===t.getConfigFileParsingDiagnostics())return t=void 0,a=void 0,r;const c=_W(t,a);t.getBuildInfo=()=>function(e){var t,n;const r=e.program.getCurrentDirectory(),i=Fo(Jo(nU(e.compilerOptions),r)),a=e.latestChangedDtsFile?b(e.latestChangedDtsFile):void 0,c=[],l=new Map,u=new Set(e.program.getRootFileNames().map((t=>Vo(t,r,e.program.getCanonicalFileName))));if(AW(e),!Ik(e.compilerOptions))return{root:Ie(u,(e=>x(e))),errors:!!e.hasErrors||void 0,checkPending:e.checkPending,version:o};const d=[];if(e.compilerOptions.outFile){const t=Ie(e.fileInfos.entries(),(([e,t])=>(T(e,k(e)),t.impliedFormat?{version:t.version,impliedFormat:t.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:t.version)));return{fileNames:c,fileInfos:t,root:d,resolvedRoot:C(),options:w(e.compilerOptions),semanticDiagnosticsPerFile:e.changedFilesSet.size?void 0:N(),emitDiagnosticsPerFile:F(),changeFileSet:O(),outSignature:e.outSignature,latestChangedDtsFile:a,pendingEmit:e.programEmitPending?e.programEmitPending!==cW(e.compilerOptions)&&e.programEmitPending:void 0,errors:!!e.hasErrors||void 0,checkPending:e.checkPending,version:o}}let p,f,m;const g=Ie(e.fileInfos.entries(),(([t,n])=>{var r,i;const o=k(t);T(t,o),_n.assert(c[o-1]===x(t));const a=null==(r=e.oldSignatures)?void 0:r.get(t),l=void 0!==a?a||void 0:n.signature;if(e.compilerOptions.composite){const n=e.program.getSourceFileByPath(t);if(!ef(n)&&Qy(n,e.program)){const n=null==(i=e.emitSignatures)?void 0:i.get(t);n!==l&&(m=re(m,void 0===n?o:[o,Ye(n)||n[0]!==l?n:s]))}}return n.version===l?n.affectsGlobalScope||n.impliedFormat?{version:n.version,signature:void 0,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:n.version:void 0!==l?void 0===a?n:{version:n.version,signature:l,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:{version:n.version,signature:!1,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}}));let h;(null==(t=e.referencedMap)?void 0:t.size())&&(h=Ie(e.referencedMap.keys()).sort(Tt).map((t=>[k(t),S(e.referencedMap.getValues(t))])));const y=N();let v;if(null==(n=e.affectedFilesPendingEmit)?void 0:n.size){const t=cW(e.compilerOptions),n=new Set;for(const r of Ie(e.affectedFilesPendingEmit.keys()).sort(Tt))if(J(n,r)){const n=e.program.getSourceFileByPath(r);if(!n||!Qy(n,e.program))continue;const i=k(r),o=e.affectedFilesPendingEmit.get(r);v=re(v,o===t?i:24===o?[i]:[i,o])}}return{fileNames:c,fileIdsList:p,fileInfos:g,root:d,resolvedRoot:C(),options:w(e.compilerOptions),referencedMap:h,semanticDiagnosticsPerFile:y,emitDiagnosticsPerFile:F(),changeFileSet:O(),affectedFilesPendingEmit:v,emitSignatures:m,latestChangedDtsFile:a,errors:!!e.hasErrors||void 0,checkPending:e.checkPending,version:o};function b(e){return x(Jo(e,r))}function x(t){return Ho(ia(i,t,e.program.getCanonicalFileName))}function k(e){let t=l.get(e);return void 0===t&&(c.push(x(e)),l.set(e,t=c.length)),t}function S(e){const t=Ie(e.keys(),k).sort(yt),n=t.join();let r=null==f?void 0:f.get(n);return void 0===r&&(p=re(p,t),(f??(f=new Map)).set(n,r=p.length)),r}function T(t,n){const r=e.program.getSourceFile(t);if(!e.program.getFileIncludeReasons().get(r.path).some((e=>0===e.kind)))return;if(!d.length)return d.push(n);const i=d[d.length-1],o=Xe(i);if(o&&i[1]===n-1)return i[1]=n;if(o||1===d.length||i!==n-1)return d.push(n);const a=d[d.length-2];return Ze(a)&&a===i-1?(d[d.length-2]=[a,n],d.length=d.length-1):d.push(n)}function C(){let t;return u.forEach((n=>{const r=e.program.getSourceFileByPath(n);r&&n!==r.resolvedPath&&(t=re(t,[k(r.resolvedPath),k(n)]))})),t}function w(e){let t;const{optionsNameMap:n}=rL();for(const r of Fe(e).sort(Tt)){const i=n.get(r.toLowerCase());(null==i?void 0:i.affectsBuildInfo)&&((t||(t={}))[r]=D(i,e[r]))}return t}function D(e,t){if(e)if(_n.assert("listOrElement"!==e.type),"list"===e.type){const n=t;if(e.element.isFilePath&&n.length)return n.map(b)}else if(e.isFilePath)return b(t);return t}function N(){let t;return e.fileInfos.forEach(((n,r)=>{const i=e.semanticDiagnosticsPerFile.get(r);i?i.length&&(t=re(t,[k(r),E(i,r)])):e.changedFilesSet.has(r)||(t=re(t,k(r)))})),t}function F(){var t;let n;if(!(null==(t=e.emitDiagnosticsPerFile)?void 0:t.size))return n;for(const t of Ie(e.emitDiagnosticsPerFile.keys()).sort(Tt)){const r=e.emitDiagnosticsPerFile.get(t);n=re(n,[k(t),E(r,t)])}return n}function E(e,t){return _n.assert(!!e.length),e.map((e=>{const n=P(e,t);n.reportsUnnecessary=e.reportsUnnecessary,n.reportDeprecated=e.reportsDeprecated,n.source=e.source,n.skippedOn=e.skippedOn;const{relatedInformation:r}=e;return n.relatedInformation=r?r.length?r.map((e=>P(e,t))):[]:void 0,n}))}function P(e,t){const{file:n}=e;return{...e,file:!!n&&(n.resolvedPath===t?void 0:x(n.resolvedPath)),messageText:Ye(e.messageText)?e.messageText:A(e.messageText)}}function A(e){if(e.repopulateInfo)return{info:e.repopulateInfo(),next:I(e.next)};const t=I(e.next);return t===e.next?e:{...e,next:t}}function I(e){return e&&_(e,((t,n)=>{const r=A(t);if(t===r)return;const i=n>0?e.slice(0,n-1):[];i.push(r);for(let t=n+1;t!!c.hasChangedEmitSignature,l.getAllDependencies=e=>iW.getAllDependencies(c,_n.checkDefined(c.program),e),l.getSemanticDiagnostics=function(e,t){if(_n.assert(sW(c)),hW(c,e),e)return FW(c,e,t);for(;;){const e=g(t);if(!e)break;if(e.affected===c.program)return e.result}let n;for(const e of c.program.getSourceFiles())n=ae(n,FW(c,e,t));c.checkPending&&!c.compilerOptions.noCheck&&(c.checkPending=void 0,c.buildInfoEmitPending=!0);return n||s},l.getDeclarationDiagnostics=function(t,n){var r;if(_n.assert(sW(c)),1===e){let e,i;for(hW(c,t);e=u(void 0,n,void 0,void 0,!0);)t||(i=ae(i,e.result.diagnostics));return(t?null==(r=c.emitDiagnosticsPerFile)?void 0:r.get(t.resolvedPath):i)||s}{const e=c.program.getDeclarationDiagnostics(t,n);return m(t,void 0,!0,e),e}},l.emit=function(t,n,r,i,o){_n.assert(sW(c)),1===e&&hW(c,t);const a=GV(l,t,n,r);if(a)return a;if(!t){if(1===e){let e,t,a=[],c=!1,l=[];for(;t=p(n,r,i,o);)c=c||t.result.emitSkipped,e=ae(e,t.result.diagnostics),l=ae(l,t.result.emittedFiles),a=ae(a,t.result.sourceMaps);return{emitSkipped:c,diagnostics:e||s,emittedFiles:l,sourceMaps:a}}vW(c,i,!1)}const _=c.program.emit(t,f(n,o),r,i,o);return m(t,i,!1,_.diagnostics),_},l.releaseProgram=()=>function(e){iW.releaseCache(e),e.program=void 0}(c),0===e?l.getSemanticDiagnosticsOfNextAffectedFile=g:1===e?(l.getSemanticDiagnosticsOfNextAffectedFile=g,l.emitNextAffectedFile=p,l.emitBuildInfo=function(e,t){if(_n.assert(sW(c)),OW(c)){const r=c.program.emitBuildInfo(e||Ve(n,n.writeFile),t);return c.buildInfoEmitPending=!1,r}return KV}):_t(),l;function u(e,t,r,i,o){var a,s,l,_;_n.assert(sW(c));let u=yW(c,t,n);const p=cW(c.compilerOptions);let m,g=o?8:r?56&p:p;if(!u){if(c.compilerOptions.outFile){if(c.programEmitPending&&(g=bW(c.programEmitPending,c.seenProgramEmit,r,o),g&&(u=c.program)),!u&&(null==(a=c.emitDiagnosticsPerFile)?void 0:a.size)){const e=c.seenProgramEmit||0;if(!(e&xW(o))){c.seenProgramEmit=xW(o)|e;const t=[];return c.emitDiagnosticsPerFile.forEach((e=>ae(t,e))),{result:{emitSkipped:!0,diagnostics:t},affected:c.program}}}}else{const e=function(e,t,n){var r;if(null==(r=e.affectedFilesPendingEmit)?void 0:r.size)return id(e.affectedFilesPendingEmit,((r,i)=>{var o;const a=e.program.getSourceFileByPath(i);if(!a||!Qy(a,e.program))return void e.affectedFilesPendingEmit.delete(i);const s=bW(r,null==(o=e.seenEmittedFiles)?void 0:o.get(a.resolvedPath),t,n);return s?{affectedFile:a,emitKind:s}:void 0}))}(c,r,o);if(e)({affectedFile:u,emitKind:g}=e);else{const e=function(e,t){var n;if(null==(n=e.emitDiagnosticsPerFile)?void 0:n.size)return id(e.emitDiagnosticsPerFile,((n,r)=>{var i;const o=e.program.getSourceFileByPath(r);if(!o||!Qy(o,e.program))return void e.emitDiagnosticsPerFile.delete(r);const a=(null==(i=e.seenEmittedFiles)?void 0:i.get(o.resolvedPath))||0;return a&xW(t)?void 0:{affectedFile:o,diagnostics:n,seenKind:a}}))}(c,o);if(e)return(c.seenEmittedFiles??(c.seenEmittedFiles=new Map)).set(e.affectedFile.resolvedPath,e.seenKind|xW(o)),{result:{emitSkipped:!0,diagnostics:e.diagnostics},affected:e.affectedFile}}}if(!u){if(o||!OW(c))return;const r=c.program,i=r.emitBuildInfo(e||Ve(n,n.writeFile),t);return c.buildInfoEmitPending=!1,{result:i,affected:r}}}7&g&&(m=0),56&g&&(m=void 0===m?1:void 0);const h=o?{emitSkipped:!0,diagnostics:c.program.getDeclarationDiagnostics(u===c.program?void 0:u,t)}:c.program.emit(u===c.program?void 0:u,f(e,i),t,m,i,void 0,!0);if(u!==c.program){const e=u;c.seenAffectedFiles.add(e.resolvedPath),void 0!==c.affectedFilesIndex&&c.affectedFilesIndex++,c.buildInfoEmitPending=!0;const t=(null==(s=c.seenEmittedFiles)?void 0:s.get(e.resolvedPath))||0;(c.seenEmittedFiles??(c.seenEmittedFiles=new Map)).set(e.resolvedPath,g|t);const n=lW((null==(l=c.affectedFilesPendingEmit)?void 0:l.get(e.resolvedPath))||p,g|t);n?(c.affectedFilesPendingEmit??(c.affectedFilesPendingEmit=new Map)).set(e.resolvedPath,n):null==(_=c.affectedFilesPendingEmit)||_.delete(e.resolvedPath),h.diagnostics.length&&(c.emitDiagnosticsPerFile??(c.emitDiagnosticsPerFile=new Map)).set(e.resolvedPath,h.diagnostics)}else c.changedFilesSet.clear(),c.programEmitPending=c.changedFilesSet.size?lW(p,g):c.programEmitPending?lW(c.programEmitPending,g):void 0,c.seenProgramEmit=g|(c.seenProgramEmit||0),d(h.diagnostics),c.buildInfoEmitPending=!0;return{result:h,affected:u}}function d(e){let t;e.forEach((e=>{if(!e.file)return;let n=null==t?void 0:t.get(e.file.resolvedPath);n||(t??(t=new Map)).set(e.file.resolvedPath,n=[]),n.push(e)})),t&&(c.emitDiagnosticsPerFile=t)}function p(e,t,n,r){return u(e,t,n,r,!1)}function f(e,t){return _n.assert(sW(c)),Pk(c.compilerOptions)?(r,i,o,a,s,l)=>{var _,u,d;if(yO(r))if(c.compilerOptions.outFile){if(c.compilerOptions.composite){const e=p(c.outSignature,void 0);if(!e)return l.skippedDtsWrite=!0;c.outSignature=e}}else{let e;if(_n.assert(1===(null==s?void 0:s.length)),!t){const t=s[0],r=c.fileInfos.get(t.resolvedPath);if(r.signature===t.version){const o=MW(c.program,t,i,n,l);if((null==(_=null==l?void 0:l.diagnostics)?void 0:_.length)||(e=o),o!==t.version)if(n.storeSignatureInfo&&(c.signatureInfo??(c.signatureInfo=new Map)).set(t.resolvedPath,1),c.affectedFiles){void 0===(null==(u=c.oldSignatures)?void 0:u.get(t.resolvedPath))&&(c.oldSignatures??(c.oldSignatures=new Map)).set(t.resolvedPath,r.signature||!1),r.signature=o}else r.signature=o}}if(c.compilerOptions.composite){const t=s[0].resolvedPath;if(e=p(null==(d=c.emitSignatures)?void 0:d.get(t),e),!e)return l.skippedDtsWrite=!0;(c.emitSignatures??(c.emitSignatures=new Map)).set(t,e)}}function p(e,t){const o=!e||Ye(e)?e:e[0];if(t??(t=function(e,t,n){return(t.createHash??ji)(RW(e,n))}(i,n,l)),t===o){if(e===o)return;l?l.differsOnlyInMap=!0:l={differsOnlyInMap:!0}}else c.hasChangedEmitSignature=!0,c.latestChangedDtsFile=r;return t}e?e(r,i,o,a,s,l):n.writeFile?n.writeFile(r,i,o,a,s,l):c.program.writeFile(r,i,o,a,s,l)}:e||Ve(n,n.writeFile)}function m(t,n,r,i){t||1===e||(vW(c,n,r),d(i))}function g(e,t){for(_n.assert(sW(c));;){const r=yW(c,e,n);let i;if(!r)return void(c.checkPending&&!c.compilerOptions.noCheck&&(c.checkPending=void 0,c.buildInfoEmitPending=!0));if(r!==c.program){const n=r;if(t&&t(n)||(i=FW(c,n,e)),c.seenAffectedFiles.add(n.resolvedPath),c.affectedFilesIndex++,c.buildInfoEmitPending=!0,!i)continue}else{let t;const n=new Map;c.program.getSourceFiles().forEach((r=>t=ae(t,FW(c,r,e,n)))),c.semanticDiagnosticsPerFile=n,i=t||s,c.changedFilesSet.clear(),c.programEmitPending=cW(c.compilerOptions),c.compilerOptions.noCheck||(c.checkPending=void 0),c.buildInfoEmitPending=!0}return{result:i,affected:r}}}}function JW(e,t,n){var r,i;const o=(null==(r=e.affectedFilesPendingEmit)?void 0:r.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,o|n),null==(i=e.emitDiagnosticsPerFile)||i.delete(t)}function zW(e){return Ye(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:Ye(e.signature)?e:{version:e.version,signature:!1===e.signature?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function qW(e,t){return Ze(e)?t:e[1]||24}function UW(e,t){return e||cW(t||{})}function VW(e,t,n){var r,i,o,a;const c=Fo(Jo(t,n.getCurrentDirectory())),l=Vt(n.useCaseSensitiveFileNames());let _;const u=null==(r=e.fileNames)?void 0:r.map((function(e){return Vo(e,c,l)}));let d;const p=e.latestChangedDtsFile?g(e.latestChangedDtsFile):void 0,f=new Map,m=new Set(N(e.changeFileSet,h));if(EW(e))e.fileInfos.forEach(((e,t)=>{const n=h(t+1);f.set(n,Ye(e)?{version:e,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:e)})),_={fileInfos:f,compilerOptions:e.options?ij(e.options,g):{},semanticDiagnosticsPerFile:y(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:v(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:m,latestChangedDtsFile:p,outSignature:e.outSignature,programEmitPending:void 0===e.pendingEmit?void 0:UW(e.pendingEmit,e.options),hasErrors:e.errors,checkPending:e.checkPending};else{d=null==(i=e.fileIdsList)?void 0:i.map((e=>new Set(e.map(h))));const t=(null==(o=e.options)?void 0:o.composite)&&!e.options.outFile?new Map:void 0;e.fileInfos.forEach(((e,n)=>{const r=h(n+1),i=zW(e);f.set(r,i),t&&i.signature&&t.set(r,i.signature)})),null==(a=e.emitSignatures)||a.forEach((e=>{if(Ze(e))t.delete(h(e));else{const n=h(e[0]);t.set(n,Ye(e[1])||e[1].length?e[1]:[t.get(n)])}}));const n=e.affectedFilesPendingEmit?cW(e.options||{}):void 0;_={fileInfos:f,compilerOptions:e.options?ij(e.options,g):{},referencedMap:function(e,t){const n=iW.createReferencedMap(t);return n&&e?(e.forEach((([e,t])=>n.set(h(e),d[t-1]))),n):n}(e.referencedMap,e.options??{}),semanticDiagnosticsPerFile:y(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:v(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:m,affectedFilesPendingEmit:e.affectedFilesPendingEmit&&je(e.affectedFilesPendingEmit,(e=>h(Ze(e)?e:e[0])),(e=>qW(e,n))),latestChangedDtsFile:p,emitSignatures:(null==t?void 0:t.size)?t:void 0,hasErrors:e.errors,checkPending:e.checkPending}}return{state:_,getProgram:_t,getProgramOrUndefined:ot,releaseProgram:nt,getCompilerOptions:()=>_.compilerOptions,getSourceFile:_t,getSourceFiles:_t,getOptionsDiagnostics:_t,getGlobalDiagnostics:_t,getConfigFileParsingDiagnostics:_t,getSyntacticDiagnostics:_t,getDeclarationDiagnostics:_t,getSemanticDiagnostics:_t,emit:_t,getAllDependencies:_t,getCurrentDirectory:_t,emitNextAffectedFile:_t,getSemanticDiagnosticsOfNextAffectedFile:_t,emitBuildInfo:_t,close:nt,hasChangedEmitSignature:rt};function g(e){return Jo(e,c)}function h(e){return u[e-1]}function y(e){const t=new Map(M(f.keys(),(e=>m.has(e)?void 0:[e,s])));return null==e||e.forEach((e=>{Ze(e)?t.delete(h(e)):t.set(h(e[0]),e[1])})),t}function v(e){return e&&je(e,(e=>h(e[0])),(e=>e[1]))}}function WW(e,t,n){const r=Fo(Jo(t,n.getCurrentDirectory())),i=Vt(n.useCaseSensitiveFileNames()),o=new Map;let a=0;const s=new Map,c=new Map(e.resolvedRoot);return e.fileInfos.forEach(((t,n)=>{const s=Vo(e.fileNames[n],r,i),c=Ye(t)?t:t.version;if(o.set(s,c),aVo(e,i,o)))}function HW(e,t){return{state:void 0,getProgram:n,getProgramOrUndefined:()=>e.program,releaseProgram:()=>e.program=void 0,getCompilerOptions:()=>e.compilerOptions,getSourceFile:e=>n().getSourceFile(e),getSourceFiles:()=>n().getSourceFiles(),getOptionsDiagnostics:e=>n().getOptionsDiagnostics(e),getGlobalDiagnostics:e=>n().getGlobalDiagnostics(e),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(e,t)=>n().getSyntacticDiagnostics(e,t),getDeclarationDiagnostics:(e,t)=>n().getDeclarationDiagnostics(e,t),getSemanticDiagnostics:(e,t)=>n().getSemanticDiagnostics(e,t),emit:(e,t,r,i,o)=>n().emit(e,t,r,i,o),emitBuildInfo:(e,t)=>n().emitBuildInfo(e,t),getAllDependencies:_t,getCurrentDirectory:()=>n().getCurrentDirectory(),close:nt};function n(){return _n.checkDefined(e.program)}}function KW(e,t,n,r,i,o){return BW(0,jW(e,t,n,r,i,o))}function GW(e,t,n,r,i,o){return BW(1,jW(e,t,n,r,i,o))}function XW(e,t,n,r,i,o){const{newProgram:a,configFileParsingDiagnostics:s}=jW(e,t,n,r,i,o);return HW({program:a,compilerOptions:a.getCompilerOptions()},s)}function QW(e){return jt(e,"/node_modules/.staging")?Rt(e,"/.staging"):V(Yi,(t=>e.includes(t)))?void 0:e}function YW(e,t){if(t<=1)return 1;let n=1,r=0===e[0].search(/[a-z]:/i);if(e[0]!==_o&&!r&&0===e[1].search(/[a-z]\$$/i)){if(2===t)return 2;n=2,r=!0}return r&&!e[n].match(/^users$/i)?n:e[n].match(/^workspaces$/i)?n+1:n+2}function ZW(e,t){if(void 0===t&&(t=e.length),t<=2)return!1;return t>YW(e,t)+1}function e$(e){return ZW(Io(e))}function t$(e){return r$(Fo(e))}function n$(e,t){if(t.lengthi.length+1?s$(l,c,Math.max(i.length+1,_+1),d):{dir:n,dirPath:r,nonRecursive:!0}:a$(l,c,c.length-1,_,u,i,d,s)}function a$(e,t,n,r,i,o,a,s){if(-1!==i)return s$(e,t,i+1,a);let c=!0,l=n;if(!s)for(let e=0;e=n&&r+2function(e,t,n,r,i,o,a){const s=_$(e),c=$R(n,r,i,s,t,o,a);if(!e.getGlobalTypingsCacheLocation)return c;const l=e.getGlobalTypingsCacheLocation();if(!(void 0===l||ws(n)||c.resolvedModule&&ZS(c.resolvedModule.extension))){const{resolvedModule:r,failedLookupLocations:o,affectingLocations:a,resolutionDiagnostics:_}=KM(_n.checkDefined(e.globalCacheResolutionModuleName)(n),e.projectName,i,s,l,t);if(r)return c.resolvedModule=r,c.failedLookupLocations=pR(c.failedLookupLocations,o),c.affectingLocations=pR(c.affectingLocations,a),c.resolutionDiagnostics=pR(c.resolutionDiagnostics,_),c}return c}(r,i,o,e,n,t,a)}}function d$(e,t,n){let r,i,o;const a=new Set,c=new Set,l=new Set,_=new Map,u=new Map;let d,f,m,g,h,y=!1,v=!1;const b=ut((()=>e.getCurrentDirectory())),x=e.getCachedDirectoryStructureHost(),k=new Map,S=zR(b(),e.getCanonicalFileName,e.getCompilationSettings()),T=new Map,C=qR(b(),e.getCanonicalFileName,e.getCompilationSettings(),S.getPackageJsonInfoCache(),S.optionsToRedirectsKey),w=new Map,D=zR(b(),e.getCanonicalFileName,UR(e.getCompilationSettings()),S.getPackageJsonInfoCache()),N=new Map,F=new Map,E=l$(t,b),P=e.toPath(E),A=Io(P),I=ZW(A),O=new Map,L=new Map,j=new Map,R=new Map;return{rootDirForResolution:t,resolvedModuleNames:k,resolvedTypeReferenceDirectives:T,resolvedLibraries:w,resolvedFileToResolution:_,resolutionsWithFailedLookups:c,resolutionsWithOnlyAffectingLocations:l,directoryWatchesOfFailedLookups:N,fileWatchesOfAffectingLocations:F,packageDirWatchers:L,dirPathToSymlinkPackageRefCount:j,watchFailedLookupLocationsOfExternalModuleResolutions:W,getModuleResolutionCache:()=>S,startRecordingFilesWithChangedResolutions:function(){r=[]},finishRecordingFilesWithChangedResolutions:function(){const e=r;return r=void 0,e},startCachingPerDirectoryResolution:function(){S.isReadonly=void 0,C.isReadonly=void 0,D.isReadonly=void 0,S.getPackageJsonInfoCache().isReadonly=void 0,S.clearAllExceptPackageJsonInfoCache(),C.clearAllExceptPackageJsonInfoCache(),D.clearAllExceptPackageJsonInfoCache(),X(),O.clear()},finishCachingPerDirectoryResolution:function(t,n){o=void 0,v=!1,X(),t!==n&&(!function(t){w.forEach(((n,r)=>{var i;(null==(i=null==t?void 0:t.resolvedLibReferences)?void 0:i.has(r))||(ee(n,e.toPath(IV(e.getCompilationSettings(),b(),r)),ud),w.delete(r))}))}(t),null==t||t.getSourceFiles().forEach((e=>{var t;const n=(null==(t=e.packageJsonLocations)?void 0:t.length)??0,r=u.get(e.resolvedPath)??s;for(let t=r.length;tn)for(let e=n;e{const r=null==t?void 0:t.getSourceFileByPath(n);r&&r.resolvedPath===n||(e.forEach((e=>F.get(e).files--)),u.delete(n))})));N.forEach(J),F.forEach(z),L.forEach(B),y=!1,S.isReadonly=!0,C.isReadonly=!0,D.isReadonly=!0,S.getPackageJsonInfoCache().isReadonly=!0,O.clear()},resolveModuleNameLiterals:function(t,r,i,o,a,s){return q({entries:t,containingFile:r,containingSourceFile:a,redirectedReference:i,options:o,reusedNames:s,perFileCache:k,loader:u$(r,i,o,e,S),getResolutionWithResolvedFileName:ud,shouldRetryResolution:e=>!e.resolvedModule||!eT(e.resolvedModule.extension),logChanges:n,deferWatchingNonRelativeResolution:!0})},resolveTypeReferenceDirectiveReferences:function(t,n,r,i,o,a){return q({entries:t,containingFile:n,containingSourceFile:o,redirectedReference:r,options:i,reusedNames:a,perFileCache:T,loader:EV(n,r,i,_$(e),C),getResolutionWithResolvedFileName:dd,shouldRetryResolution:e=>void 0===e.resolvedTypeReferenceDirective,deferWatchingNonRelativeResolution:!1})},resolveLibrary:function(t,n,r,i){const o=_$(e);let a=null==w?void 0:w.get(i);if(!a||a.isInvalidated){const s=a;a=VR(t,n,r,o,D);const c=e.toPath(n);W(t,a,c,ud,!1),w.set(i,a),s&&ee(s,c,ud)}else if(iR(r,o)){const e=ud(a);rR(o,(null==e?void 0:e.resolvedFileName)?e.packageId?ua.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:ua.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:ua.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,t,n,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&gd(e.packageId))}return a},resolveSingleModuleNameWithoutWatching:function(t,n){var r,i;const o=e.toPath(n),a=k.get(o),s=null==a?void 0:a.get(t,void 0);if(s&&!s.isInvalidated)return s;const c=null==(r=e.beforeResolveSingleModuleNameWithoutWatching)?void 0:r.call(e,S),l=_$(e),_=$R(t,n,e.getCompilationSettings(),l,S);return null==(i=e.afterResolveSingleModuleNameWithoutWatching)||i.call(e,S,t,n,_,c),_},removeResolutionsFromProjectReferenceRedirects:function(t){if(!So(t,".json"))return;const n=e.getCurrentProgram();if(!n)return;const r=n.getResolvedProjectReferenceByPath(t);if(!r)return;r.commandLine.fileNames.forEach((t=>ie(e.toPath(t))))},removeResolutionsOfFile:ie,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:function(t){ie(t);const n=y;oe(_.get(t),it)&&y&&!n&&e.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:ce,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(e){_n.assert(o===e||void 0===o),o=e},createHasInvalidatedResolutions:function(e,t){ce();const n=i;return i=void 0,{hasInvalidatedResolutions:t=>e(t)||v||!!(null==n?void 0:n.has(t))||M(t),hasInvalidatedLibResolutions:e=>{var n;return t(e)||!!(null==(n=null==w?void 0:w.get(e))?void 0:n.isInvalidated)}}},isFileWithInvalidatedNonRelativeUnresolvedImports:M,updateTypeRootsWatch:function(){var t;const n=e.getCompilationSettings();if(!hk(n))return void de();if(!I||(null==(t=e.skipWatchingTypeRoots)?void 0:t.call(e)))return void de();const r=vR(n,{getCurrentDirectory:b});r?mx(R,new Set(r),{createNewValue:pe,onDeleteValue:ix}):de()},closeTypeRootsWatch:de,clear:function(){px(N,$U),px(F,$U),O.clear(),L.clear(),j.clear(),a.clear(),de(),k.clear(),T.clear(),_.clear(),c.clear(),l.clear(),m=void 0,g=void 0,h=void 0,f=void 0,d=void 0,v=!1,S.clear(),C.clear(),S.update(e.getCompilationSettings()),C.update(e.getCompilationSettings()),D.clear(),u.clear(),w.clear(),y=!1},onChangesAffectModuleResolution:function(){v=!0,S.clearAllExceptPackageJsonInfoCache(),C.clearAllExceptPackageJsonInfoCache(),S.update(e.getCompilationSettings()),C.update(e.getCompilationSettings())}};function M(e){if(!o)return!1;const t=o.get(e);return!!t&&!!t.length}function B(e,t){0===e.dirPathToWatcher.size&&L.delete(t)}function J(e,t){0===e.refCount&&(N.delete(t),e.watcher.close())}function z(e,t){var n;0!==e.files||0!==e.resolutions||(null==(n=e.symlinks)?void 0:n.size)||(F.delete(t),e.watcher.close())}function q({entries:t,containingFile:n,containingSourceFile:i,redirectedReference:o,options:a,perFileCache:s,reusedNames:c,loader:l,getResolutionWithResolvedFileName:_,deferWatchingNonRelativeResolution:u,shouldRetryResolution:d,logChanges:p}){var f,m;const g=e.toPath(n),h=s.get(g)||s.set(g,jR()).get(g),y=[],b=p&&M(g),x=e.getCurrentProgram(),S=x&&(null==(f=x.getRedirectFromSourceFile(n))?void 0:f.resolvedRef),T=S?!o||o.sourceFile.path!==S.sourceFile.path:!!o,C=jR();for(const c of t){const t=l.nameAndMode.getName(c),f=l.nameAndMode.getMode(c,i,(null==o?void 0:o.commandLine.options)||a);let x=h.get(t,f);if(!C.has(t,f)&&(v||T||!x||x.isInvalidated||b&&!ws(t)&&d(x))){const n=x;x=l.resolve(t,f),e.onDiscoveredSymlink&&p$(x)&&e.onDiscoveredSymlink(),h.set(t,f,x),x===n||(null==(m=e.skipWatchingFailedLookups)?void 0:m.call(e,g))||(W(t,x,g,_,u),n&&ee(n,g,_)),p&&r&&!w(n,x)&&(r.push(g),p=!1)}else{const r=_$(e);if(iR(a,r)&&!C.has(t,f)){const e=_(x);rR(r,s===k?(null==e?void 0:e.resolvedFileName)?e.packageId?ua.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:ua.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:ua.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:(null==e?void 0:e.resolvedFileName)?e.packageId?ua.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:ua.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:ua.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,t,n,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&gd(e.packageId))}}_n.assert(void 0!==x&&!x.isInvalidated),C.set(t,f,!0),y.push(x)}return null==c||c.forEach((e=>C.set(l.nameAndMode.getName(e),l.nameAndMode.getMode(e,i,(null==o?void 0:o.commandLine.options)||a),!0))),h.size()!==C.size()&&h.forEach(((t,n,r)=>{var i;C.has(n,r)||((null==(i=e.skipWatchingFailedLookups)?void 0:i.call(e,g))||ee(t,g,_),h.delete(n,r))})),y;function w(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=_(e),r=_(t);return n===r||!(!n||!r)&&n.resolvedFileName===r.resolvedFileName}}function U(e){return jt(e,"/node_modules/@types")}function W(t,n,r,i,o){if((n.files??(n.files=new Set)).add(r),1!==n.files.size)return;!o||ws(t)?H(n):a.add(n);const s=i(n);if(s&&s.resolvedFileName){const t=e.toPath(s.resolvedFileName);let r=_.get(t);r||_.set(t,r=new Set),r.add(n)}}function $(t,n){const r=o$(t,e.toPath(t),E,P,A,I,b,e.preferNonRecursiveWatch);if(r){const{dir:e,dirPath:t,nonRecursive:i,packageDir:o,packageDirPath:a}=r;t===P?(_n.assert(i),_n.assert(!o),n=!0):Q(e,t,o,a,i)}return n}function H(e){var t;_n.assert(!!(null==(t=e.files)?void 0:t.size));const{failedLookupLocations:n,affectingLocations:r,alternateResult:i}=e;if(!(null==n?void 0:n.length)&&!(null==r?void 0:r.length)&&!i)return;((null==n?void 0:n.length)||i)&&c.add(e);let o=!1;if(n)for(const e of n)o=$(e,o);i&&(o=$(i,o)),o&&Q(E,P,void 0,void 0,!0),function(e,t){var n;_n.assert(!!(null==(n=e.files)?void 0:n.size));const{affectingLocations:r}=e;if(!(null==r?void 0:r.length))return;t&&l.add(e);for(const e of r)K(e,!0)}(e,!(null==n?void 0:n.length)&&!i)}function K(t,n){const r=F.get(t);if(r)return void(n?r.resolutions++:r.files++);let i,o=t,a=!1;e.realpath&&(o=e.realpath(t),t!==o&&(a=!0,i=F.get(o)));const s=n?1:0,c=n?0:1;if(!a||!i){const t={watcher:i$(e.toPath(o))?e.watchAffectingFileLocation(o,((t,n)=>{null==x||x.addOrDeleteFile(t,e.toPath(o),n),G(o,S.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()})):L$,resolutions:a?0:s,files:a?0:c,symlinks:void 0};F.set(o,t),a&&(i=t)}if(a){_n.assert(!!i);const e={watcher:{close:()=>{var e;const n=F.get(o);!(null==(e=null==n?void 0:n.symlinks)?void 0:e.delete(t))||n.symlinks.size||n.resolutions||n.files||(F.delete(o),n.watcher.close())}},resolutions:s,files:c,symlinks:void 0};F.set(t,e),(i.symlinks??(i.symlinks=new Set)).add(t)}}function G(t,n){var r;const i=F.get(t);(null==i?void 0:i.resolutions)&&(f??(f=new Set)).add(t),(null==i?void 0:i.files)&&(d??(d=new Set)).add(t),null==(r=null==i?void 0:i.symlinks)||r.forEach((e=>G(e,n))),null==n||n.delete(e.toPath(t))}function X(){a.forEach(H),a.clear()}function Q(t,n,r,i,o){i&&e.realpath?function(t,n,r,i,o){_n.assert(!o);let a=O.get(i),s=L.get(i);if(void 0===a){const t=e.realpath(r);a=t!==r&&e.toPath(t)!==i,O.set(i,a),s?s.isSymlink!==a&&(s.dirPathToWatcher.forEach((e=>{te(s.isSymlink?i:n),e.watcher=l()})),s.isSymlink=a):L.set(i,s={dirPathToWatcher:new Map,isSymlink:a})}else _n.assertIsDefined(s),_n.assert(a===s.isSymlink);const c=s.dirPathToWatcher.get(n);function l(){return a?Y(r,i,o):Y(t,n,o)}c?c.refCount++:(s.dirPathToWatcher.set(n,{watcher:l(),refCount:1}),a&&j.set(n,(j.get(n)??0)+1))}(t,n,r,i,o):Y(t,n,o)}function Y(e,t,n){let r=N.get(t);return r?(_n.assert(!!n==!!r.nonRecursive),r.refCount++):N.set(t,r={watcher:ne(e,t,n),refCount:1,nonRecursive:n}),r}function Z(t,n){const r=o$(t,e.toPath(t),E,P,A,I,b,e.preferNonRecursiveWatch);if(r){const{dirPath:t,packageDirPath:i}=r;if(t===P)n=!0;else if(i&&e.realpath){const e=L.get(i),n=e.dirPathToWatcher.get(t);if(n.refCount--,0===n.refCount&&(te(e.isSymlink?i:t),e.dirPathToWatcher.delete(t),e.isSymlink)){const e=j.get(t)-1;0===e?j.delete(t):j.set(t,e)}}else te(t)}return n}function ee(t,n,r){if(_n.checkDefined(t.files).delete(n),t.files.size)return;t.files=void 0;const i=r(t);if(i&&i.resolvedFileName){const n=e.toPath(i.resolvedFileName),r=_.get(n);(null==r?void 0:r.delete(t))&&!r.size&&_.delete(n)}const{failedLookupLocations:o,affectingLocations:a,alternateResult:s}=t;if(c.delete(t)){let e=!1;if(o)for(const t of o)e=Z(t,e);s&&(e=Z(s,e)),e&&te(P)}else(null==a?void 0:a.length)&&l.delete(t);if(a)for(const e of a){F.get(e).resolutions--}}function te(e){N.get(e).refCount--}function ne(t,n,r){return e.watchDirectoryOfFailedLookupLocation(t,(t=>{const r=e.toPath(t);x&&x.addOrDeleteFileOrDirectory(t,r),ae(r,n===r)}),r?0:1)}function re(t,n,r){var i;const o=t.get(n);o&&((null==(i=e.skipWatchingFailedLookups)?void 0:i.call(e,n))||o.forEach((e=>ee(e,n,r))),t.delete(n))}function ie(e){re(k,e,ud),re(T,e,dd)}function oe(e,t){if(!e)return!1;let n=!1;return e.forEach((e=>{if(!e.isInvalidated&&t(e)){e.isInvalidated=n=!0;for(const t of _n.checkDefined(e.files))(i??(i=new Set)).add(t),y=y||jt(t,AV)}})),n}function ae(t,n){if(n)(h||(h=new Set)).add(t);else{const n=QW(t);if(!n)return!1;if(t=n,e.fileIsOpen(t))return!1;const r=Fo(t);if(U(t)||la(t)||U(r)||la(r))(m||(m=new Set)).add(t),(g||(g=new Set)).add(t);else{if(qU(e.getCurrentProgram(),t))return!1;if(So(t,".map"))return!1;(m||(m=new Set)).add(t),(g||(g=new Set)).add(t);const n=aM(t,!0);n&&(g||(g=new Set)).add(n)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function se(){const e=S.getPackageJsonInfoCache().getInternalMap();e&&(m||g||h)&&e.forEach(((t,n)=>_e(n)?e.delete(n):void 0))}function ce(){var t;if(v)return d=void 0,se(),(m||g||h||f)&&oe(w,le),m=void 0,g=void 0,h=void 0,f=void 0,!0;let n=!1;return d&&(null==(t=e.getCurrentProgram())||t.getSourceFiles().forEach((e=>{V(e.packageJsonLocations,(e=>d.has(e)))&&((i??(i=new Set)).add(e.path),n=!0)})),d=void 0),m||g||h||f?(n=oe(c,le)||n,se(),m=void 0,g=void 0,h=void 0,n=oe(l,ue)||n,f=void 0,n):n}function le(t){var n;return!!ue(t)||!!(m||g||h)&&((null==(n=t.failedLookupLocations)?void 0:n.some((t=>_e(e.toPath(t)))))||!!t.alternateResult&&_e(e.toPath(t.alternateResult)))}function _e(e){return(null==m?void 0:m.has(e))||p((null==g?void 0:g.keys())||[],(t=>!!Kt(e,t)||void 0))||p((null==h?void 0:h.keys())||[],(t=>!(!(e.length>t.length&&Kt(e,t))||!yo(t)&&e[t.length]!==_o)||void 0))}function ue(e){var t;return!!f&&(null==(t=e.affectingLocations)?void 0:t.some((e=>f.has(e))))}function de(){px(R,ix)}function pe(t){return function(t){return!!e.getCompilationSettings().typeRoots||t$(e.toPath(t))}(t)?e.watchTypeRootsDirectory(t,(n=>{const r=e.toPath(n);x&&x.addOrDeleteFileOrDirectory(n,r),y=!0,e.onChangedAutomaticTypeDirectiveNames();const i=c$(t,e.toPath(t),P,A,I,b,e.preferNonRecursiveWatch,(e=>N.has(e)||j.has(e)));i&&ae(r,i===r)}),1):L$}}function p$(e){var t,n;return!(!(null==(t=e.resolvedModule)?void 0:t.originalPath)&&!(null==(n=e.resolvedTypeReferenceDirective)?void 0:n.originalPath))}var f$=co?{getCurrentDirectory:()=>co.getCurrentDirectory(),getNewLine:()=>co.newLine,getCanonicalFileName:Vt(co.useCaseSensitiveFileNames)}:void 0;function m$(e,t){const n=e===co&&f$?f$:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Vt(e.useCaseSensitiveFileNames)};if(!t)return t=>e.write(rV(t,n));const r=new Array(1);return t=>{r[0]=t,e.write(mV(r,n)+n.getNewLine()),r[0]=void 0}}function g$(e,t,n){return!(!e.clearScreen||n.preserveWatchOutput||n.extendedDiagnostics||n.diagnostics||!k(h$,t.code))&&(e.clearScreen(),!0)}var h$=[ua.Starting_compilation_in_watch_mode.code,ua.File_change_detected_Starting_incremental_compilation.code];function y$(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):(new Date).toLocaleTimeString()}function v$(e,t){return t?(t,n,r)=>{g$(e,t,r);let i=`[${dV(y$(e),"")}] `;i+=`${gV(t.messageText,e.newLine)}${n+n}`,e.write(i)}:(t,n,r)=>{let i="";g$(e,t,r)||(i+=n),i+=`${y$(e)} - `,i+=`${gV(t.messageText,e.newLine)}${function(e,t){return k(h$,e.code)?t+t:t}(t,n)}`,e.write(i)}}function b$(e,t,n,r,i,o){const a=i;a.onUnRecoverableConfigFileDiagnostic=e=>W$(i,o,e);const s=SL(e,t,a,n,r);return a.onUnRecoverableConfigFileDiagnostic=void 0,s}function x$(e){return T(e,(e=>1===e.category))}function k$(e){return C(e,(e=>1===e.category)).map((e=>{if(void 0!==e.file)return`${e.file.fileName}`})).map((t=>{if(void 0===t)return;const n=y(e,(e=>void 0!==e.file&&e.file.fileName===t));if(void 0!==n){const{line:e}=qa(n.file,n.start);return{fileName:t,line:e+1}}}))}function S$(e){return 1===e?ua.Found_1_error_Watching_for_file_changes:ua.Found_0_errors_Watching_for_file_changes}function T$(e,t){const n=dV(":"+e.line,"");return vo(e.fileName)&&vo(t)?ia(t,e.fileName,!1)+n:e.fileName+n}function C$(e,t,n,r){if(0===e)return"";const i=t.filter((e=>void 0!==e)),o=i.map((e=>`${e.fileName}:${e.line}`)).filter(((e,t,n)=>n.indexOf(e)===t)),a=i[0]&&T$(i[0],r.getCurrentDirectory());let s;s=1===e?void 0!==t[0]?[ua.Found_1_error_in_0,a]:[ua.Found_1_error]:0===o.length?[ua.Found_0_errors,e]:1===o.length?[ua.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,a]:[ua.Found_0_errors_in_1_files,e,o.length];const c=Zx(...s),l=o.length>1?function(e,t){const n=e.filter(((e,t,n)=>t===n.findIndex((t=>(null==t?void 0:t.fileName)===(null==e?void 0:e.fileName)))));if(0===n.length)return"";const r=e=>Math.log(e)*Math.LOG10E+1,i=n.map((t=>[t,T(e,(e=>e.fileName===t.fileName))])),o=bt(i,0,(e=>e[1])),a=ua.Errors_Files.message,s=a.split(" ")[0].length,c=Math.max(s,r(o)),l=Math.max(r(o)-s,0);let _="";return _+=" ".repeat(l)+a+"\n",i.forEach((e=>{const[n,r]=e,i=Math.log(r)*Math.LOG10E+1|0,o=ioa(t,e.getCurrentDirectory(),e.getCanonicalFileName);for(const a of e.getSourceFiles())t(`${A$(a,o)}`),null==(n=i.get(a.path))||n.forEach((n=>t(` ${P$(e,n,o).messageText}`))),null==(r=N$(a,e.getCompilerOptionsForFile(a),o))||r.forEach((e=>t(` ${e.messageText}`)))}function N$(e,t,n){var r;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(tk(void 0,ua.File_is_output_of_project_reference_source_0,A$(e.originalFileName,n))),e.redirectInfo&&(i??(i=[])).push(tk(void 0,ua.File_redirects_to_file_0,A$(e.redirectInfo.redirectTarget,n))),Zp(e))switch($V(e,t)){case 99:e.packageJsonScope&&(i??(i=[])).push(tk(void 0,ua.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,A$(ye(e.packageJsonLocations),n)));break;case 1:e.packageJsonScope?(i??(i=[])).push(tk(void 0,e.packageJsonScope.contents.packageJsonContent.type?ua.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:ua.File_is_CommonJS_module_because_0_does_not_have_field_type,A$(ye(e.packageJsonLocations),n))):(null==(r=e.packageJsonLocations)?void 0:r.length)&&(i??(i=[])).push(tk(void 0,ua.File_is_CommonJS_module_because_package_json_was_not_found))}return i}function F$(e,t){var n;const r=e.getCompilerOptions().configFile;if(!(null==(n=null==r?void 0:r.configFileSpecs)?void 0:n.validatedFilesSpec))return;const i=e.getCanonicalFileName(t),o=Fo(Jo(r.fileName,e.getCurrentDirectory())),a=b(r.configFileSpecs.validatedFilesSpec,(t=>e.getCanonicalFileName(Jo(t,o))===i));return-1!==a?r.configFileSpecs.validatedFilesSpecBeforeSubstitution[a]:void 0}function E$(e,t){var n,r;const i=e.getCompilerOptions().configFile;if(!(null==(n=null==i?void 0:i.configFileSpecs)?void 0:n.validatedIncludeSpecs))return;if(i.configFileSpecs.isDefaultIncludeSpec)return!0;const o=So(t,".json"),a=Fo(Jo(i.fileName,e.getCurrentDirectory())),s=e.useCaseSensitiveFileNames(),c=b(null==(r=null==i?void 0:i.configFileSpecs)?void 0:r.validatedIncludeSpecs,(e=>{if(o&&!jt(e,".json"))return!1;const n=fS(e,a,"files");return!!n&&yS(`(?:${n})$`,s).test(t)}));return-1!==c?i.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[c]:void 0}function P$(e,t,n){var r,i;const o=e.getCompilerOptions();if(LV(t)){const r=RV(e,t),i=jV(r)?r.file.text.substring(r.pos,r.end):`"${r.text}"`;let o;switch(_n.assert(jV(r)||3===t.kind,"Only synthetic references are imports"),t.kind){case 3:o=jV(r)?r.packageId?ua.Imported_via_0_from_file_1_with_packageId_2:ua.Imported_via_0_from_file_1:r.text===Vu?r.packageId?ua.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:ua.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:r.packageId?ua.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:ua.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:_n.assert(!r.packageId),o=ua.Referenced_via_0_from_file_1;break;case 5:o=r.packageId?ua.Type_library_referenced_via_0_from_file_1_with_packageId_2:ua.Type_library_referenced_via_0_from_file_1;break;case 7:_n.assert(!r.packageId),o=ua.Library_referenced_via_0_from_file_1;break;default:_n.assertNever(t)}return tk(void 0,o,i,A$(r.file,n),r.packageId&&gd(r.packageId))}switch(t.kind){case 0:if(!(null==(r=o.configFile)?void 0:r.configFileSpecs))return tk(void 0,ua.Root_file_specified_for_compilation);const a=Jo(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(F$(e,a))return tk(void 0,ua.Part_of_files_list_in_tsconfig_json);const s=E$(e,a);return Ye(s)?tk(void 0,ua.Matched_by_include_pattern_0_in_1,s,A$(o.configFile,n)):tk(void 0,s?ua.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:ua.Root_file_specified_for_compilation);case 1:case 2:const c=2===t.kind,l=_n.checkDefined(null==(i=e.getResolvedProjectReferences())?void 0:i[t.index]);return tk(void 0,o.outFile?c?ua.Output_from_referenced_project_0_included_because_1_specified:ua.Source_from_referenced_project_0_included_because_1_specified:c?ua.Output_from_referenced_project_0_included_because_module_is_specified_as_none:ua.Source_from_referenced_project_0_included_because_module_is_specified_as_none,A$(l.sourceFile.fileName,n),o.outFile?"--outFile":"--out");case 8:return tk(void 0,...hk(o)?t.packageId?[ua.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,gd(t.packageId)]:[ua.Entry_point_for_implicit_type_library_0,t.typeReference]:t.packageId?[ua.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,gd(t.packageId)]:[ua.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]);case 6:{if(void 0!==t.index)return tk(void 0,ua.Library_0_specified_in_compilerOptions,o.lib[t.index]);const e=Uk(xk(o));return tk(void 0,...e?[ua.Default_library_for_target_0,e]:[ua.Default_library])}default:_n.assertNever(t)}}function A$(e,t){const n=Ye(e)?e:e.fileName;return t?t(n):n}function I$(e,t,n,r,i,o,a,c){const l=e.getCompilerOptions(),u=e.getConfigFileParsingDiagnostics().slice(),d=u.length;ae(u,e.getSyntacticDiagnostics(void 0,o)),u.length===d&&(ae(u,e.getOptionsDiagnostics(o)),l.listFilesOnly||(ae(u,e.getGlobalDiagnostics(o)),u.length===d&&ae(u,e.getSemanticDiagnostics(void 0,o)),l.noEmit&&Pk(l)&&u.length===d&&ae(u,e.getDeclarationDiagnostics(void 0,o))));const p=l.listFilesOnly?{emitSkipped:!0,diagnostics:s}:e.emit(void 0,i,o,a,c);ae(u,p.diagnostics);const f=Ds(u);if(f.forEach(t),n){const t=e.getCurrentDirectory();_(p.emittedFiles,(e=>{const r=Jo(e,t);n(`TSFILE: ${r}`)})),function(e,t){const n=e.getCompilerOptions();n.explainFiles?D$(w$(e)?e.getProgram():e,t):(n.listFiles||n.listFilesOnly)&&_(e.getSourceFiles(),(e=>{t(e.fileName)}))}(e,n)}return r&&r(x$(f),k$(f)),{emitResult:p,diagnostics:f}}function O$(e,t,n,r,i,o,a,s){const{emitResult:c,diagnostics:l}=I$(e,t,n,r,i,o,a,s);return c.emitSkipped&&l.length>0?1:l.length>0?2:0}var L$={close:nt},j$=()=>L$;function R$(e=co,t){return{onWatchStatusChange:t||v$(e),watchFile:Ve(e,e.watchFile)||j$,watchDirectory:Ve(e,e.watchDirectory)||j$,setTimeout:Ve(e,e.setTimeout)||nt,clearTimeout:Ve(e,e.clearTimeout)||nt,preferNonRecursiveWatch:e.preferNonRecursiveWatch}}var M$={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"};function B$(e,t){const n=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,r=0!==n?t=>e.trace(t):nt,i=VU(e,n,r);return i.writeLog=r,i}function J$(e,t,n=e){const r=e.useCaseSensitiveFileNames(),i={getSourceFile:QU(((t,n)=>n?e.readFile(t,n):i.readFile(t)),void 0),getDefaultLibLocation:Ve(e,e.getDefaultLibLocation),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:YU(((t,n,r)=>e.writeFile(t,n,r)),(t=>e.createDirectory(t)),(t=>e.directoryExists(t))),getCurrentDirectory:ut((()=>e.getCurrentDirectory())),useCaseSensitiveFileNames:()=>r,getCanonicalFileName:Vt(r),getNewLine:()=>Ib(t()),fileExists:t=>e.fileExists(t),readFile:t=>e.readFile(t),trace:Ve(e,e.trace),directoryExists:Ve(n,n.directoryExists),getDirectories:Ve(n,n.getDirectories),realpath:Ve(e,e.realpath),getEnvironmentVariable:Ve(e,e.getEnvironmentVariable)||(()=>""),createHash:Ve(e,e.createHash),readDirectory:Ve(e,e.readDirectory),storeSignatureInfo:e.storeSignatureInfo,jsDocParsingMode:e.jsDocParsingMode};return i}function z$(e,t){if(t.match(AJ)){let e=t.length,n=e;for(let r=e-1;r>=0;r--){const i=t.charCodeAt(r);switch(i){case 10:r&&13===t.charCodeAt(r-1)&&r--;case 13:break;default:if(i<127||!Wa(i)){n=r;continue}}const o=t.substring(n,e);if(o.match(IJ)){t=t.substring(0,n);break}if(!o.match(OJ))break;e=n}}return(e.createHash||ji)(t)}function q$(e){const t=e.getSourceFile;e.getSourceFile=(...n)=>{const r=t.call(e,...n);return r&&(r.version=z$(e,r.text)),r}}function U$(e,t){const n=ut((()=>Fo(zo(e.getExecutingFilePath()))));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:ut((()=>e.getCurrentDirectory())),getDefaultLibLocation:n,getDefaultLibFileName:e=>Ro(n(),Fs(e)),fileExists:t=>e.fileExists(t),readFile:(t,n)=>e.readFile(t,n),directoryExists:t=>e.directoryExists(t),getDirectories:t=>e.getDirectories(t),readDirectory:(t,n,r,i,o)=>e.readDirectory(t,n,r,i,o),realpath:Ve(e,e.realpath),getEnvironmentVariable:Ve(e,e.getEnvironmentVariable),trace:t=>e.write(t+e.newLine),createDirectory:t=>e.createDirectory(t),writeFile:(t,n,r)=>e.writeFile(t,n,r),createHash:Ve(e,e.createHash),createProgram:t||GW,storeSignatureInfo:e.storeSignatureInfo,now:Ve(e,e.now)}}function V$(e=co,t,n,r){const i=t=>e.write(t+e.newLine),o=U$(e,t);return Ue(o,R$(e,r)),o.afterProgramCreate=e=>{const t=e.getCompilerOptions(),r=Ib(t);I$(e,n,i,(e=>o.onWatchStatusChange(Zx(S$(e),e),r,t,e)))},o}function W$(e,t,n){t(n),e.exit(1)}function $$({configFileName:e,optionsToExtend:t,watchOptionsToExtend:n,extraFileExtensions:r,system:i,createProgram:o,reportDiagnostic:a,reportWatchStatus:s}){const c=a||m$(i),l=V$(i,o,c,s);return l.onUnRecoverableConfigFileDiagnostic=e=>W$(i,c,e),l.configFileName=e,l.optionsToExtend=t,l.watchOptionsToExtend=n,l.extraFileExtensions=r,l}function H$({rootFiles:e,options:t,watchOptions:n,projectReferences:r,system:i,createProgram:o,reportDiagnostic:a,reportWatchStatus:s}){const c=V$(i,o,a||m$(i),s);return c.rootFiles=e,c.options=t,c.watchOptions=n,c.projectReferences=r,c}function K$(e){const t=e.system||co,n=e.host||(e.host=X$(e.options,t)),r=Q$(e),i=O$(r,e.reportDiagnostic||m$(t),(e=>n.trace&&n.trace(e)),e.reportErrorSummary||e.options.pretty?(e,r)=>t.write(C$(e,r,t.newLine,n)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(r),i}function G$(e,t){const n=nU(e);if(!n)return;let r;if(t.getBuildInfo)r=t.getBuildInfo(n,e.configFilePath);else{const e=t.readFile(n);if(!e)return;r=TU(n,e)}return r&&r.version===o&&PW(r)?VW(r,n,t):void 0}function X$(e,t=co){const n=ZU(e,void 0,t);return n.createHash=Ve(t,t.createHash),n.storeSignatureInfo=t.storeSignatureInfo,q$(n),eV(n,(e=>Vo(e,n.getCurrentDirectory(),n.getCanonicalFileName))),n}function Q$({rootNames:e,options:t,configFileParsingDiagnostics:n,projectReferences:r,host:i,createProgram:o}){return(o=o||GW)(e,t,i=i||X$(t),G$(t,i),n,r)}function Y$(e,t,n,r,i,o,a,s){return Xe(e)?H$({rootFiles:e,options:t,watchOptions:s,projectReferences:a,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:o}):$$({configFileName:e,optionsToExtend:t,watchOptionsToExtend:a,extraFileExtensions:s,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:o})}function Z$(e){let t,n,r,i,o,a,s,c,l=new Map([[void 0,void 0]]),_=e.extendedConfigCache,u=!1;const d=new Map;let p,f=!1;const m=e.useCaseSensitiveFileNames(),g=e.getCurrentDirectory(),{configFileName:h,optionsToExtend:y={},watchOptionsToExtend:v,extraFileExtensions:b,createProgram:x}=e;let k,S,{rootFiles:T,options:C,watchOptions:w,projectReferences:D}=e,N=!1,F=!1;const E=void 0===h?void 0:OU(e,g,m),P=E||e,A=QV(e,P);let I=G();h&&e.configFileParsingResult&&(ce(e.configFileParsingResult),I=G()),ee(ua.Starting_compilation_in_watch_mode),h&&!e.configFileParsingResult&&(I=Ib(y),_n.assert(!T),se(),I=G()),_n.assert(C),_n.assert(T);const{watchFile:O,watchDirectory:L,writeLog:j}=B$(e,C),R=Vt(m);let M;j(`Current directory: ${g} CaseSensitiveFileNames: ${m}`),h&&(M=O(h,(function(){_n.assert(!!h),n=2,ie()}),2e3,w,M$.ConfigFile));const B=J$(e,(()=>C),P);q$(B);const J=B.getSourceFile;B.getSourceFile=(e,...t)=>Y(e,X(e),...t),B.getSourceFileByPath=Y,B.getNewLine=()=>I,B.fileExists=function(e){const t=X(e);if(Q(d.get(t)))return!1;return P.fileExists(e)},B.onReleaseOldSourceFile=function(e,t,n){const r=d.get(e.resolvedPath);void 0!==r&&(Q(r)?(p||(p=[])).push(e.path):r.sourceFile===e&&(r.fileWatcher&&r.fileWatcher.close(),d.delete(e.resolvedPath),n||z.removeResolutionsOfFile(e.path)))},B.onReleaseParsedCommandLine=function(e){var t;const n=X(e),r=null==s?void 0:s.get(n);if(!r)return;s.delete(n),r.watchedDirectories&&px(r.watchedDirectories,$U);null==(t=r.watcher)||t.close(),RU(n,c)},B.toPath=X,B.getCompilationSettings=()=>C,B.useSourceOfProjectReferenceRedirect=Ve(e,e.useSourceOfProjectReferenceRedirect),B.preferNonRecursiveWatch=e.preferNonRecursiveWatch,B.watchDirectoryOfFailedLookupLocation=(e,t,n)=>L(e,t,n,w,M$.FailedLookupLocations),B.watchAffectingFileLocation=(e,t)=>O(e,t,2e3,w,M$.AffectingFileLocation),B.watchTypeRootsDirectory=(e,t,n)=>L(e,t,n,w,M$.TypeRoots),B.getCachedDirectoryStructureHost=()=>E,B.scheduleInvalidateResolutionsOfFailedLookupLocations=function(){if(!e.setTimeout||!e.clearTimeout)return z.invalidateResolutionsOfFailedLookupLocations();const t=ne();j("Scheduling invalidateFailedLookup"+(t?", Cancelled earlier one":"")),a=e.setTimeout(re,250,"timerToInvalidateFailedLookupResolutions")},B.onInvalidatedResolution=ie,B.onChangedAutomaticTypeDirectiveNames=ie,B.fileIsOpen=rt,B.getCurrentProgram=H,B.writeLog=j,B.getParsedCommandLine=le;const z=d$(B,h?Fo(Jo(h,g)):g,!1);B.resolveModuleNameLiterals=Ve(e,e.resolveModuleNameLiterals),B.resolveModuleNames=Ve(e,e.resolveModuleNames),B.resolveModuleNameLiterals||B.resolveModuleNames||(B.resolveModuleNameLiterals=z.resolveModuleNameLiterals.bind(z)),B.resolveTypeReferenceDirectiveReferences=Ve(e,e.resolveTypeReferenceDirectiveReferences),B.resolveTypeReferenceDirectives=Ve(e,e.resolveTypeReferenceDirectives),B.resolveTypeReferenceDirectiveReferences||B.resolveTypeReferenceDirectives||(B.resolveTypeReferenceDirectiveReferences=z.resolveTypeReferenceDirectiveReferences.bind(z)),B.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):z.resolveLibrary.bind(z),B.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?Ve(e,e.getModuleResolutionCache):()=>z.getModuleResolutionCache();const q=!!(e.resolveModuleNameLiterals||e.resolveTypeReferenceDirectiveReferences||e.resolveModuleNames||e.resolveTypeReferenceDirectives)?Ve(e,e.hasInvalidatedResolutions)||it:rt,U=e.resolveLibrary?Ve(e,e.hasInvalidatedLibResolutions)||it:rt;return t=G$(C,B),K(),h?{getCurrentProgram:$,getProgram:ae,close:V,getResolutionCache:W}:{getCurrentProgram:$,getProgram:ae,updateRootFileNames:function(e){_n.assert(!h,"Cannot update root file names with config file watch mode"),T=e,ie()},close:V,getResolutionCache:W};function V(){ne(),z.clear(),px(d,(e=>{e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)})),M&&(M.close(),M=void 0),null==_||_.clear(),_=void 0,c&&(px(c,$U),c=void 0),i&&(px(i,$U),i=void 0),r&&(px(r,ix),r=void 0),s&&(px(s,(e=>{var t;null==(t=e.watcher)||t.close(),e.watcher=void 0,e.watchedDirectories&&px(e.watchedDirectories,$U),e.watchedDirectories=void 0})),s=void 0),t=void 0}function W(){return z}function $(){return t}function H(){return t&&t.getProgramOrUndefined()}function K(){j("Synchronizing program"),_n.assert(C),_n.assert(T),ne();const n=$();f&&(I=G(),n&&ed(n.getCompilerOptions(),C)&&z.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:o,hasInvalidatedLibResolutions:a}=z.createHasInvalidatedResolutions(q,U),{originalReadFile:c,originalFileExists:_,originalDirectoryExists:y,originalCreateDirectory:v,originalWriteFile:b,readFileWithCache:N}=eV(B,X);return MV(H(),T,C,(e=>function(e,t){const n=d.get(e);if(!n)return;if(n.version)return n.version;const r=t(e);return void 0!==r?z$(B,r):void 0}(e,N)),(e=>B.fileExists(e)),o,a,te,le,D)?F&&(u&&ee(ua.File_change_detected_Starting_incremental_compilation),t=x(void 0,void 0,B,t,S,D),F=!1):(u&&ee(ua.File_change_detected_Starting_incremental_compilation),function(e,n){j("CreatingProgramWith::"),j(` roots: ${JSON.stringify(T)}`),j(` options: ${JSON.stringify(C)}`),D&&j(` projectReferences: ${JSON.stringify(D)}`);const i=f||!H();f=!1,F=!1,z.startCachingPerDirectoryResolution(),B.hasInvalidatedResolutions=e,B.hasInvalidatedLibResolutions=n,B.hasChangedAutomaticTypeDirectiveNames=te;const o=H();t=x(T,C,B,t,S,D),z.finishCachingPerDirectoryResolution(t.getProgram(),o),BU(t.getProgram(),r||(r=new Map),pe),i&&z.updateTypeRootsWatch();if(p){for(const e of p)r.has(e)||d.delete(e);p=void 0}}(o,a)),u=!1,e.afterProgramCreate&&n!==t&&e.afterProgramCreate(t),B.readFile=c,B.fileExists=_,B.directoryExists=y,B.createDirectory=v,B.writeFile=b,null==l||l.forEach(((e,t)=>{if(t){const n=null==s?void 0:s.get(t);n&&function(e,t,n){var r,i,o,a;n.watcher||(n.watcher=O(e,((n,r)=>{de(e,t,r);const i=null==s?void 0:s.get(t);i&&(i.updateLevel=2),z.removeResolutionsFromProjectReferenceRedirects(t),ie()}),2e3,(null==(r=n.parsedCommandLine)?void 0:r.watchOptions)||w,M$.ConfigFileOfReferencedProject)),JU(n.watchedDirectories||(n.watchedDirectories=new Map),null==(i=n.parsedCommandLine)?void 0:i.wildcardDirectories,((r,i)=>{var o;return L(r,(n=>{const i=X(n);E&&E.addOrDeleteFileOrDirectory(n,i),Z(i);const o=null==s?void 0:s.get(t);(null==o?void 0:o.parsedCommandLine)&&(zU({watchedDirPath:X(r),fileOrDirectory:n,fileOrDirectoryPath:i,configFileName:e,options:o.parsedCommandLine.options,program:o.parsedCommandLine.fileNames,currentDirectory:g,useCaseSensitiveFileNames:m,writeLog:j,toPath:X})||2!==o.updateLevel&&(o.updateLevel=1,ie()))}),i,(null==(o=n.parsedCommandLine)?void 0:o.watchOptions)||w,M$.WildcardDirectoryOfReferencedProject)})),ge(t,null==(o=n.parsedCommandLine)?void 0:o.options,(null==(a=n.parsedCommandLine)?void 0:a.watchOptions)||w,M$.ExtendedConfigOfReferencedProject)}(e,t,n)}else JU(i||(i=new Map),k,me),h&&ge(X(h),C,w,M$.ExtendedConfigFile)})),l=void 0,t}function G(){return Ib(C||y)}function X(e){return Vo(e,g,R)}function Q(e){return"boolean"==typeof e}function Y(e,t,n,r,i){const o=d.get(t);if(Q(o))return;const a="object"==typeof n?n.impliedNodeFormat:void 0;if(void 0===o||i||function(e){return"boolean"==typeof e.version}(o)||o.sourceFile.impliedNodeFormat!==a){const i=J(e,n,r);if(o)i?(o.sourceFile=i,o.version=i.version,o.fileWatcher||(o.fileWatcher=_e(t,e,ue,250,w,M$.SourceFile))):(o.fileWatcher&&o.fileWatcher.close(),d.set(t,!1));else if(i){const n=_e(t,e,ue,250,w,M$.SourceFile);d.set(t,{sourceFile:i,version:i.version,fileWatcher:n})}else d.set(t,!1);return i}return o.sourceFile}function Z(e){const t=d.get(e);void 0!==t&&(Q(t)?d.set(e,{version:!1}):t.version=!1)}function ee(t){e.onWatchStatusChange&&e.onWatchStatusChange(Zx(t),I,C||y)}function te(){return z.hasChangedAutomaticTypeDirectiveNames()}function ne(){return!!a&&(e.clearTimeout(a),a=void 0,!0)}function re(){a=void 0,z.invalidateResolutionsOfFailedLookupLocations()&&ie()}function ie(){e.setTimeout&&e.clearTimeout&&(o&&e.clearTimeout(o),j("Scheduling update"),o=e.setTimeout(oe,250,"timerToUpdateProgram"))}function oe(){o=void 0,u=!0,ae()}function ae(){switch(n){case 1:!function(){j("Reloading new file names and options"),_n.assert(C),_n.assert(h),n=0,T=Uj(C.configFile.configFileSpecs,Jo(Fo(h),g),C,A,b),Tj(T,Jo(h,g),C.configFile.configFileSpecs,S,N)&&(F=!0);K()}();break;case 2:!function(){_n.assert(h),j(`Reloading config file: ${h}`),n=0,E&&E.clearCache();se(),f=!0,(l??(l=new Map)).set(void 0,void 0),K()}();break;default:K()}return $()}function se(){_n.assert(h),ce(SL(h,y,A,_||(_=new Map),v,b))}function ce(e){T=e.fileNames,C=e.options,w=e.watchOptions,D=e.projectReferences,k=e.wildcardDirectories,S=BV(e).slice(),N=Sj(e.raw),F=!0}function le(t){const n=X(t);let r=null==s?void 0:s.get(n);if(r){if(!r.updateLevel)return r.parsedCommandLine;if(r.parsedCommandLine&&1===r.updateLevel&&!e.getParsedCommandLine){j("Reloading new file names and options"),_n.assert(C);const e=Uj(r.parsedCommandLine.options.configFile.configFileSpecs,Jo(Fo(t),g),C,A);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:e},r.updateLevel=void 0,r.parsedCommandLine}}j(`Loading config file: ${t}`);const i=e.getParsedCommandLine?e.getParsedCommandLine(t):function(e){const t=A.onUnRecoverableConfigFileDiagnostic;A.onUnRecoverableConfigFileDiagnostic=nt;const n=SL(e,void 0,A,_||(_=new Map),v);return A.onUnRecoverableConfigFileDiagnostic=t,n}(t);return r?(r.parsedCommandLine=i,r.updateLevel=void 0):(s||(s=new Map)).set(n,r={parsedCommandLine:i}),(l??(l=new Map)).set(n,t),i}function _e(e,t,n,r,i,o){return O(t,((t,r)=>n(t,r,e)),r,i,o)}function ue(e,t,n){de(e,n,t),2===t&&d.has(n)&&z.invalidateResolutionOfFile(n),Z(n),ie()}function de(e,t,n){E&&E.addOrDeleteFile(e,t,n)}function pe(e,t){return(null==s?void 0:s.has(e))?L$:_e(e,t,fe,500,w,M$.MissingFile)}function fe(e,t,n){de(e,n,t),0===t&&r.has(n)&&(r.get(n).close(),r.delete(n),Z(n),ie())}function me(e,t){return L(e,(t=>{_n.assert(h),_n.assert(C);const r=X(t);E&&E.addOrDeleteFileOrDirectory(t,r),Z(r),zU({watchedDirPath:X(e),fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:h,extraFileExtensions:b,options:C,program:$()||T,currentDirectory:g,useCaseSensitiveFileNames:m,writeLog:j,toPath:X})||2!==n&&(n=1,ie())}),t,w,M$.WildcardDirectory)}function ge(e,t,r,i){jU(e,t,c||(c=new Map),((e,t)=>O(e,((r,i)=>{var o;de(e,t,i),_&&MU(_,t,X);const a=null==(o=c.get(t))?void 0:o.projects;(null==a?void 0:a.size)&&a.forEach((e=>{if(h&&X(h)===e)n=2;else{const t=null==s?void 0:s.get(e);t&&(t.updateLevel=2),z.removeResolutionsFromProjectReferenceRedirects(e)}ie()}))}),2e3,r,i)),X)}}var eH=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutputMissing=3]="OutputMissing",e[e.ErrorReadingFile=4]="ErrorReadingFile",e[e.OutOfDateWithSelf=5]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfoWithPendingEmit=7]="OutOfDateBuildInfoWithPendingEmit",e[e.OutOfDateBuildInfoWithErrors=8]="OutOfDateBuildInfoWithErrors",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(eH||{});function tH(e){return So(e,".json")?e:Ro(e,"tsconfig.json")}var nH=new Date(-864e13);function rH(e,t){return function(e,t,n){const r=e.get(t);let i;return r||(i=n(),e.set(t,i)),r||i}(e,t,(()=>new Map))}function iH(e){return e.now?e.now():new Date}function oH(e){return!!e&&!!e.buildOrder}function aH(e){return oH(e)?e.buildOrder:e}function sH(e,t){return n=>{let r=t?`[${dV(y$(e),"")}] `:`${y$(e)} - `;r+=`${gV(n.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(r)}}function cH(e,t,n,r){const i=U$(e,t);return i.getModifiedTime=e.getModifiedTime?t=>e.getModifiedTime(t):ot,i.setModifiedTime=e.setModifiedTime?(t,n)=>e.setModifiedTime(t,n):nt,i.deleteFile=e.deleteFile?t=>e.deleteFile(t):nt,i.reportDiagnostic=n||m$(e),i.reportSolutionBuilderStatus=r||sH(e),i.now=Ve(e,e.now),i}function lH(e=co,t,n,r,i){const o=cH(e,t,n,r);return o.reportErrorSummary=i,o}function _H(e=co,t,n,r,i){const o=cH(e,t,n,r);return Ue(o,R$(e,i)),o}function uH(e,t,n){return iK(!1,e,t,n)}function dH(e,t,n,r){return iK(!0,e,t,n,r)}function pH(e,t,n,r,i){const o=t,a=t,s=function(e){const t={};return jO.forEach((n=>{De(e,n.name)&&(t[n.name]=e[n.name])})),t.tscBuild=!0,t}(r),c=J$(o,(()=>m.projectCompilerOptions));let l,_,u;q$(c),c.getParsedCommandLine=e=>yH(m,e,mH(m,e)),c.resolveModuleNameLiterals=Ve(o,o.resolveModuleNameLiterals),c.resolveTypeReferenceDirectiveReferences=Ve(o,o.resolveTypeReferenceDirectiveReferences),c.resolveLibrary=Ve(o,o.resolveLibrary),c.resolveModuleNames=Ve(o,o.resolveModuleNames),c.resolveTypeReferenceDirectives=Ve(o,o.resolveTypeReferenceDirectives),c.getModuleResolutionCache=Ve(o,o.getModuleResolutionCache),c.resolveModuleNameLiterals||c.resolveModuleNames||(l=zR(c.getCurrentDirectory(),c.getCanonicalFileName),c.resolveModuleNameLiterals=(e,t,n,r,i)=>PV(e,t,n,r,i,o,l,DV),c.getModuleResolutionCache=()=>l),c.resolveTypeReferenceDirectiveReferences||c.resolveTypeReferenceDirectives||(_=qR(c.getCurrentDirectory(),c.getCanonicalFileName,void 0,null==l?void 0:l.getPackageJsonInfoCache(),null==l?void 0:l.optionsToRedirectsKey),c.resolveTypeReferenceDirectiveReferences=(e,t,n,r,i)=>PV(e,t,n,r,i,o,_,EV)),c.resolveLibrary||(u=zR(c.getCurrentDirectory(),c.getCanonicalFileName,void 0,null==l?void 0:l.getPackageJsonInfoCache()),c.resolveLibrary=(e,t,n)=>VR(e,t,n,o,u)),c.getBuildInfo=(e,t)=>BH(m,e,mH(m,t),void 0);const{watchFile:d,watchDirectory:p,writeLog:f}=B$(a,r),m={host:o,hostWithWatch:a,parseConfigFileHost:QV(o),write:Ve(o,o.trace),options:r,baseCompilerOptions:s,rootNames:n,baseWatchOptions:i,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:c,moduleResolutionCache:l,typeReferenceDirectiveResolutionCache:_,libraryResolutionCache:u,buildOrder:void 0,readFileWithCache:e=>o.readFile(e),projectCompilerOptions:s,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:d,watchDirectory:p,writeLog:f};return m}function fH(e,t){return Vo(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function mH(e,t){const{resolvedConfigFilePaths:n}=e,r=n.get(t);if(void 0!==r)return r;const i=fH(e,t);return n.set(t,i),i}function gH(e){return!!e.options}function hH(e,t){const n=e.configFileCache.get(t);return n&&gH(n)?n:void 0}function yH(e,t,n){const{configFileCache:r}=e,i=r.get(n);if(i)return gH(i)?i:void 0;let o;er("SolutionBuilder::beforeConfigFileParsing");const{parseConfigFileHost:a,baseCompilerOptions:s,baseWatchOptions:c,extendedConfigCache:l,host:_}=e;let u;return _.getParsedCommandLine?(u=_.getParsedCommandLine(t),u||(o=Zx(ua.File_0_not_found,t))):(a.onUnRecoverableConfigFileDiagnostic=e=>o=e,u=SL(t,s,a,l,c),a.onUnRecoverableConfigFileDiagnostic=nt),r.set(n,u||o),er("SolutionBuilder::afterConfigFileParsing"),tr("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),u}function vH(e,t){return tH(Mo(e.compilerHost.getCurrentDirectory(),t))}function bH(e,t){const n=new Map,r=new Map,i=[];let o,a;for(const e of t)c(e);return a?{buildOrder:o||s,circularDiagnostics:a}:o||s;function c(t,s){const l=mH(e,t);if(r.has(l))return;if(n.has(l))return void(s||(a||(a=[])).push(Zx(ua.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,i.join("\r\n"))));n.set(l,!0),i.push(t);const _=yH(e,t,l);if(_&&_.projectReferences)for(const t of _.projectReferences){c(vH(e,t.path),s||t.circular)}i.pop(),r.set(l,!0),(o||(o=[])).push(t)}}function xH(e){return e.buildOrder||function(e){const t=bH(e,e.rootNames.map((t=>vH(e,t))));e.resolvedConfigFilePaths.clear();const n=new Set(aH(t).map((t=>mH(e,t)))),r={onDeleteValue:nt};fx(e.configFileCache,n,r),fx(e.projectStatus,n,r),fx(e.builderPrograms,n,r),fx(e.diagnostics,n,r),fx(e.projectPendingBuild,n,r),fx(e.projectErrorsReported,n,r),fx(e.buildInfoCache,n,r),fx(e.outputTimeStamps,n,r),fx(e.lastCachedPackageJsonLookups,n,r),e.watch&&(fx(e.allWatchedConfigFiles,n,{onDeleteValue:ix}),e.allWatchedExtendedConfigFiles.forEach((e=>{e.projects.forEach((t=>{n.has(t)||e.projects.delete(t)})),e.close()})),fx(e.allWatchedWildcardDirectories,n,{onDeleteValue:e=>e.forEach($U)}),fx(e.allWatchedInputFiles,n,{onDeleteValue:e=>e.forEach(ix)}),fx(e.allWatchedPackageJsonFiles,n,{onDeleteValue:e=>e.forEach(ix)}));return e.buildOrder=t}(e)}function kH(e,t,n){const r=t&&vH(e,t),i=xH(e);if(oH(i))return i;if(r){const t=mH(e,r);if(-1===b(i,(n=>mH(e,n)===t)))return}const o=r?bH(e,[r]):i;return _n.assert(!oH(o)),_n.assert(!n||void 0!==r),_n.assert(!n||o[o.length-1]===r),n?o.slice(0,o.length-1):o}function SH(e){e.cache&&TH(e);const{compilerHost:t,host:n}=e,r=e.readFileWithCache,i=t.getSourceFile,{originalReadFile:o,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,getSourceFileWithCache:_,readFileWithCache:u}=eV(n,(t=>fH(e,t)),((...e)=>i.call(t,...e)));e.readFileWithCache=u,t.getSourceFile=_,e.cache={originalReadFile:o,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,originalReadFileWithCache:r,originalGetSourceFile:i}}function TH(e){if(!e.cache)return;const{cache:t,host:n,compilerHost:r,extendedConfigCache:i,moduleResolutionCache:o,typeReferenceDirectiveResolutionCache:a,libraryResolutionCache:s}=e;n.readFile=t.originalReadFile,n.fileExists=t.originalFileExists,n.directoryExists=t.originalDirectoryExists,n.createDirectory=t.originalCreateDirectory,n.writeFile=t.originalWriteFile,r.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,i.clear(),null==o||o.clear(),null==a||a.clear(),null==s||s.clear(),e.cache=void 0}function CH(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function wH({projectPendingBuild:e},t,n){const r=e.get(t);(void 0===r||re.projectPendingBuild.set(mH(e,t),0))),t&&t.throwIfCancellationRequested()}var NH=(e=>(e[e.Build=0]="Build",e[e.UpdateOutputFileStamps=1]="UpdateOutputFileStamps",e))(NH||{});function FH(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function EH(e,t,n,r,i,o,a){let c,l,_=0;return{kind:0,project:t,projectPath:n,buildOrder:a,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>u(at),getProgram:()=>u((e=>e.getProgramOrUndefined())),getSourceFile:e=>u((t=>t.getSourceFile(e))),getSourceFiles:()=>d((e=>e.getSourceFiles())),getOptionsDiagnostics:e=>d((t=>t.getOptionsDiagnostics(e))),getGlobalDiagnostics:e=>d((t=>t.getGlobalDiagnostics(e))),getConfigFileParsingDiagnostics:()=>d((e=>e.getConfigFileParsingDiagnostics())),getSyntacticDiagnostics:(e,t)=>d((n=>n.getSyntacticDiagnostics(e,t))),getAllDependencies:e=>d((t=>t.getAllDependencies(e))),getSemanticDiagnostics:(e,t)=>d((n=>n.getSemanticDiagnostics(e,t))),getSemanticDiagnosticsOfNextAffectedFile:(e,t)=>u((n=>n.getSemanticDiagnosticsOfNextAffectedFile&&n.getSemanticDiagnosticsOfNextAffectedFile(e,t))),emit:(n,r,i,o,a)=>n||o?u((s=>{var c,l;return s.emit(n,r,i,o,a||(null==(l=(c=e.host).getCustomTransformers)?void 0:l.call(c,t)))})):(m(0,i),f(r,i,a)),done:function(t,r,i){return m(3,t,r,i),er("SolutionBuilder::Projects built"),FH(e,n)}};function u(e){return m(0),c&&e(c)}function d(e){return u(e)||s}function p(){var r,o,a;if(_n.assert(void 0===c),e.options.dry)return aK(e,ua.A_non_dry_build_would_build_project_0,t),l=1,void(_=2);if(e.options.verbose&&aK(e,ua.Building_project_0,t),0===i.fileNames.length)return lK(e,n,BV(i)),l=0,void(_=2);const{host:s,compilerHost:u}=e;if(e.projectCompilerOptions=i.options,null==(r=e.moduleResolutionCache)||r.update(i.options),null==(o=e.typeReferenceDirectiveResolutionCache)||o.update(i.options),c=s.createProgram(i.fileNames,i.options,u,function({options:e,builderPrograms:t,compilerHost:n},r,i){if(e.force)return;const o=t.get(r);return o||G$(i.options,n)}(e,n,i),BV(i),i.projectReferences),e.watch){const t=null==(a=e.moduleResolutionCache)?void 0:a.getPackageJsonInfoCache().getInternalMap();e.lastCachedPackageJsonLookups.set(n,t&&new Set(Ie(t.values(),(t=>e.host.realpath&&(FR(t)||t.directoryExists)?e.host.realpath(Ro(t.packageDirectory,"package.json")):Ro(t.packageDirectory,"package.json"))))),e.builderPrograms.set(n,c)}_++}function f(r,a,s){var u,d,p;_n.assertIsDefined(c),_n.assert(1===_);const{host:f,compilerHost:m}=e,g=new Map,h=c.getCompilerOptions(),y=Ik(h);let v,b;const{emitResult:x,diagnostics:k}=I$(c,(e=>f.reportDiagnostic(e)),e.write,void 0,((t,i,o,a,s,l)=>{var _;const u=fH(e,t);if(g.set(fH(e,t),t),null==l?void 0:l.buildInfo){b||(b=iH(e.host));const r=null==(_=c.hasChangedEmitSignature)?void 0:_.call(c),i=MH(e,t,n);i?(i.buildInfo=l.buildInfo,i.modifiedTime=b,r&&(i.latestChangedDtsTime=b)):e.buildInfoCache.set(n,{path:fH(e,t),buildInfo:l.buildInfo,modifiedTime:b,latestChangedDtsTime:r?b:void 0})}const d=(null==l?void 0:l.differsOnlyInMap)?zi(e.host,t):void 0;(r||m.writeFile)(t,i,o,a,s,l),(null==l?void 0:l.differsOnlyInMap)?e.host.setModifiedTime(t,d):!y&&e.watch&&(v||(v=RH(e,n))).set(u,b||(b=iH(e.host)))}),a,void 0,s||(null==(d=(u=e.host).getCustomTransformers)?void 0:d.call(u,t)));return h.noEmitOnError&&k.length||!g.size&&8===o.type||UH(e,i,n,ua.Updating_unchanged_output_timestamps_of_project_0,g),e.projectErrorsReported.set(n,!0),l=(null==(p=c.hasChangedEmitSignature)?void 0:p.call(c))?0:2,k.length?(e.diagnostics.set(n,k),e.projectStatus.set(n,{type:0,reason:"it had errors"}),l|=4):(e.diagnostics.delete(n),e.projectStatus.set(n,{type:1,oldestOutputFileName:fe(g.values())??bU(i,!f.useCaseSensitiveFileNames())})),function(e,t){t&&(e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram());e.projectCompilerOptions=e.baseCompilerOptions}(e,c),_=2,x}function m(o,s,c,u){for(;_<=o&&_<3;){const o=_;switch(_){case 0:p();break;case 1:f(c,s,u);break;case 2:$H(e,t,n,r,i,a,_n.checkDefined(l)),_++}_n.assert(_>o)}}}function PH(e,t,n){if(!e.projectPendingBuild.size)return;if(oH(t))return;const{options:r,projectPendingBuild:i}=e;for(let o=0;or.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{WH(e,r,n),o=!1},done:()=>(o&&WH(e,r,n),er("SolutionBuilder::Timestamps only updates"),FH(e,n))}}(e,t.project,t.projectPath,t.config,n)}function IH(e,t,n){const r=PH(e,t,n);return r?AH(e,r,t):r}function OH(e){return!!e.watcher}function LH(e,t){const n=fH(e,t),r=e.filesWatched.get(n);if(e.watch&&r){if(!OH(r))return r;if(r.modifiedTime)return r.modifiedTime}const i=zi(e.host,t);return e.watch&&(r?r.modifiedTime=i:e.filesWatched.set(n,i)),i}function jH(e,t,n,r,i,o,a){const s=fH(e,t),c=e.filesWatched.get(s);if(c&&OH(c))c.callbacks.push(n);else{const l=e.watchFile(t,((t,n,r)=>{const i=_n.checkDefined(e.filesWatched.get(s));_n.assert(OH(i)),i.modifiedTime=r,i.callbacks.forEach((e=>e(t,n,r)))}),r,i,o,a);e.filesWatched.set(s,{callbacks:[n],watcher:l,modifiedTime:c})}return{close:()=>{const t=_n.checkDefined(e.filesWatched.get(s));_n.assert(OH(t)),1===t.callbacks.length?(e.filesWatched.delete(s),$U(t)):Ut(t.callbacks,n)}}}function RH(e,t){if(!e.watch)return;let n=e.outputTimeStamps.get(t);return n||e.outputTimeStamps.set(t,n=new Map),n}function MH(e,t,n){const r=fH(e,t),i=e.buildInfoCache.get(n);return(null==i?void 0:i.path)===r?i:void 0}function BH(e,t,n,r){const i=fH(e,t),o=e.buildInfoCache.get(n);if(void 0!==o&&o.path===i)return o.buildInfo||void 0;const a=e.readFileWithCache(t),s=a?TU(t,a):void 0;return e.buildInfoCache.set(n,{path:i,buildInfo:s||!1,modifiedTime:r||Ji}),s}function JH(e,t,n,r){if(nS&&(b=n,S=t),C.add(r)}if(v?(w||(w=WW(v,f,p)),D=id(w.roots,((e,t)=>C.has(t)?void 0:t))):D=_($W(y,f,p),(e=>C.has(e)?void 0:e)),D)return{type:10,buildInfoFile:f,inputFile:D};if(!m){const r=yU(t,!p.useCaseSensitiveFileNames()),i=RH(e,n);for(const t of r){if(t===f)continue;const n=fH(e,t);let r=null==i?void 0:i.get(n);if(r||(r=zi(e.host,t),null==i||i.set(n,r)),r===Ji)return{type:3,missingOutputFileName:t};if(rJH(e,t,x,k)));if(E)return E;const P=e.lastCachedPackageJsonLookups.get(n),A=P&&od(P,(t=>JH(e,t,x,k)));return A||{type:N?2:T?15:1,newestInputFileTime:S,newestInputFileName:b,oldestOutputFileName:k}}(e,t,n);return er("SolutionBuilder::afterUpToDateCheck"),tr("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(n,i),i}function UH(e,t,n,r,i){if(t.options.noEmit)return;let o;const a=nU(t.options),s=Ik(t.options);if(a&&s)return(null==i?void 0:i.has(fH(e,a)))||(e.options.verbose&&aK(e,r,t.options.configFilePath),e.host.setModifiedTime(a,o=iH(e.host)),MH(e,a,n).modifiedTime=o),void e.outputTimeStamps.delete(n);const{host:c}=e,l=yU(t,!c.useCaseSensitiveFileNames()),_=RH(e,n),u=_?new Set:void 0;if(!i||l.length!==i.size){let s=!!e.options.verbose;for(const d of l){const l=fH(e,d);(null==i?void 0:i.has(l))||(s&&(s=!1,aK(e,r,t.options.configFilePath)),c.setModifiedTime(d,o||(o=iH(e.host))),d===a?MH(e,a,n).modifiedTime=o:_&&(_.set(l,o),u.add(l)))}}null==_||_.forEach(((e,t)=>{(null==i?void 0:i.has(t))||u.has(t)||_.delete(t)}))}function VH(e,t,n){if(!t.composite)return;const r=_n.checkDefined(e.buildInfoCache.get(n));if(void 0!==r.latestChangedDtsTime)return r.latestChangedDtsTime||void 0;const i=r.buildInfo&&PW(r.buildInfo)&&r.buildInfo.latestChangedDtsFile?e.host.getModifiedTime(Jo(r.buildInfo.latestChangedDtsFile,Fo(r.path))):void 0;return r.latestChangedDtsTime=i||!1,i}function WH(e,t,n){if(e.options.dry)return aK(e,ua.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);UH(e,t,n,ua.Updating_output_timestamps_of_project_0),e.projectStatus.set(n,{type:1,oldestOutputFileName:bU(t,!e.host.useCaseSensitiveFileNames())})}function $H(e,t,n,r,i,o,a){if(!(e.options.stopBuildOnErrors&&4&a)&&i.options.composite)for(let i=r+1;ie.diagnostics.has(mH(e,t))))?c?2:1:0}(e,t,n,r,i,o);return er("SolutionBuilder::afterBuild"),tr("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),a}function KH(e,t,n){er("SolutionBuilder::beforeClean");const r=function(e,t,n){const r=kH(e,t,n);if(!r)return 3;if(oH(r))return cK(e,r.circularDiagnostics),4;const{options:i,host:o}=e,a=i.dry?[]:void 0;for(const t of r){const n=mH(e,t),r=yH(e,t,n);if(void 0===r){_K(e,n);continue}const i=yU(r,!o.useCaseSensitiveFileNames());if(!i.length)continue;const s=new Set(r.fileNames.map((t=>fH(e,t))));for(const t of i)s.has(fH(e,t))||o.fileExists(t)&&(a?a.push(t):(o.deleteFile(t),GH(e,n,0)))}a&&aK(e,ua.A_non_dry_build_would_delete_the_following_files_Colon_0,a.map((e=>`\r\n * ${e}`)).join(""));return 0}(e,t,n);return er("SolutionBuilder::afterClean"),tr("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),r}function GH(e,t,n){e.host.getParsedCommandLine&&1===n&&(n=2),2===n&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,CH(e,t),wH(e,t,n),SH(e)}function XH(e,t,n){e.reportFileChangeDetected=!0,GH(e,t,n),QH(e,250,!0)}function QH(e,t,n){const{hostWithWatch:r}=e;r.setTimeout&&r.clearTimeout&&(e.timerToBuildInvalidatedProject&&r.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=r.setTimeout(YH,t,"timerToBuildInvalidatedProject",e,n))}function YH(e,t,n){er("SolutionBuilder::beforeBuild");const r=function(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),sK(e,ua.File_change_detected_Starting_incremental_compilation));let n=0;const r=xH(e),i=IH(e,r,!1);if(i)for(i.done(),n++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const i=PH(e,r,!1);if(!i)break;if(1!==i.kind&&(t||5===n))return void QH(e,100,!1);AH(e,i,r).done(),1!==i.kind&&n++}return TH(e),r}(t,n);er("SolutionBuilder::afterBuild"),tr("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),r&&uK(t,r)}function ZH(e,t,n,r){e.watch&&!e.allWatchedConfigFiles.has(n)&&e.allWatchedConfigFiles.set(n,jH(e,t,(()=>XH(e,n,2)),2e3,null==r?void 0:r.watchOptions,M$.ConfigFile,t))}function eK(e,t,n){jU(t,null==n?void 0:n.options,e.allWatchedExtendedConfigFiles,((t,r)=>jH(e,t,(()=>{var t;return null==(t=e.allWatchedExtendedConfigFiles.get(r))?void 0:t.projects.forEach((t=>XH(e,t,2)))}),2e3,null==n?void 0:n.watchOptions,M$.ExtendedConfigFile)),(t=>fH(e,t)))}function tK(e,t,n,r){e.watch&&JU(rH(e.allWatchedWildcardDirectories,n),r.wildcardDirectories,((i,o)=>e.watchDirectory(i,(o=>{var a;zU({watchedDirPath:fH(e,i),fileOrDirectory:o,fileOrDirectoryPath:fH(e,o),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:r.options,program:e.builderPrograms.get(n)||(null==(a=hH(e,n))?void 0:a.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:t=>e.writeLog(t),toPath:t=>fH(e,t)})||XH(e,n,1)}),o,null==r?void 0:r.watchOptions,M$.WildcardDirectory,t)))}function nK(e,t,n,r){e.watch&&mx(rH(e.allWatchedInputFiles,n),new Set(r.fileNames),{createNewValue:i=>jH(e,i,(()=>XH(e,n,0)),250,null==r?void 0:r.watchOptions,M$.SourceFile,t),onDeleteValue:ix})}function rK(e,t,n,r){e.watch&&e.lastCachedPackageJsonLookups&&mx(rH(e.allWatchedPackageJsonFiles,n),e.lastCachedPackageJsonLookups.get(n),{createNewValue:i=>jH(e,i,(()=>XH(e,n,0)),2e3,null==r?void 0:r.watchOptions,M$.PackageJson,t),onDeleteValue:ix})}function iK(e,t,n,r,i){const o=pH(e,t,n,r,i);return{build:(e,t,n,r)=>HH(o,e,t,n,r),clean:e=>KH(o,e),buildReferences:(e,t,n,r)=>HH(o,e,t,n,r,!0),cleanReferences:e=>KH(o,e,!0),getNextInvalidatedProject:e=>(DH(o,e),IH(o,xH(o),!1)),getBuildOrder:()=>xH(o),getUpToDateStatusOfProject:e=>{const t=vH(o,e),n=mH(o,t);return qH(o,yH(o,t,n),n)},invalidateProject:(e,t)=>GH(o,e,t||0),close:()=>function(e){px(e.allWatchedConfigFiles,ix),px(e.allWatchedExtendedConfigFiles,$U),px(e.allWatchedWildcardDirectories,(e=>px(e,$U))),px(e.allWatchedInputFiles,(e=>px(e,ix))),px(e.allWatchedPackageJsonFiles,(e=>px(e,ix)))}(o)}}function oK(e,t){return oa(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function aK(e,t,...n){e.host.reportSolutionBuilderStatus(Zx(t,...n))}function sK(e,t,...n){var r,i;null==(i=(r=e.hostWithWatch).onWatchStatusChange)||i.call(r,Zx(t,...n),e.host.getNewLine(),e.baseCompilerOptions)}function cK({host:e},t){t.forEach((t=>e.reportDiagnostic(t)))}function lK(e,t,n){cK(e,n),e.projectErrorsReported.set(t,!0),n.length&&e.diagnostics.set(t,n)}function _K(e,t){lK(e,t,[e.configFileCache.get(t)])}function uK(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const n=e.watch||!!e.host.reportErrorSummary,{diagnostics:r}=e;let i=0,o=[];oH(t)?(dK(e,t.buildOrder),cK(e,t.circularDiagnostics),n&&(i+=x$(t.circularDiagnostics)),n&&(o=[...o,...k$(t.circularDiagnostics)])):(t.forEach((t=>{const n=mH(e,t);e.projectErrorsReported.has(n)||cK(e,r.get(n)||s)})),n&&r.forEach((e=>i+=x$(e))),n&&r.forEach((e=>[...o,...k$(e)]))),e.watch?sK(e,S$(i),i):e.host.reportErrorSummary&&e.host.reportErrorSummary(i,o)}function dK(e,t){e.options.verbose&&aK(e,ua.Projects_in_this_build_Colon_0,t.map((t=>"\r\n * "+oK(e,t))).join(""))}function pK(e,t,n){e.options.verbose&&function(e,t,n){switch(n.type){case 5:return aK(e,ua.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,oK(e,t),oK(e,n.outOfDateOutputFileName),oK(e,n.newerInputFileName));case 6:return aK(e,ua.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,oK(e,t),oK(e,n.outOfDateOutputFileName),oK(e,n.newerProjectName));case 3:return aK(e,ua.Project_0_is_out_of_date_because_output_file_1_does_not_exist,oK(e,t),oK(e,n.missingOutputFileName));case 4:return aK(e,ua.Project_0_is_out_of_date_because_there_was_error_reading_file_1,oK(e,t),oK(e,n.fileName));case 7:return aK(e,ua.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,oK(e,t),oK(e,n.buildInfoFile));case 8:return aK(e,ua.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors,oK(e,t),oK(e,n.buildInfoFile));case 9:return aK(e,ua.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,oK(e,t),oK(e,n.buildInfoFile));case 10:return aK(e,ua.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,oK(e,t),oK(e,n.buildInfoFile),oK(e,n.inputFile));case 1:if(void 0!==n.newestInputFileTime)return aK(e,ua.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,oK(e,t),oK(e,n.newestInputFileName||""),oK(e,n.oldestOutputFileName||""));break;case 2:return aK(e,ua.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,oK(e,t));case 15:return aK(e,ua.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,oK(e,t));case 11:return aK(e,ua.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,oK(e,t),oK(e,n.upstreamProjectName));case 12:return aK(e,n.upstreamProjectBlocked?ua.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:ua.Project_0_can_t_be_built_because_its_dependency_1_has_errors,oK(e,t),oK(e,n.upstreamProjectName));case 0:return aK(e,ua.Project_0_is_out_of_date_because_1,oK(e,t),n.reason);case 14:return aK(e,ua.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,oK(e,t),n.version,o);case 17:aK(e,ua.Project_0_is_being_forcibly_rebuilt,oK(e,t))}}(e,t,n)}var fK=(e=>(e[e.time=0]="time",e[e.count=1]="count",e[e.memory=2]="memory",e))(fK||{});function mK(e){const t=function(){const e=new Map;return e.set("Library",0),e.set("Definitions",0),e.set("TypeScript",0),e.set("JavaScript",0),e.set("JSON",0),e.set("Other",0),e}();return _(e.getSourceFiles(),(n=>{const r=function(e,t){if(e.isSourceFileDefaultLibrary(t))return"Library";if(t.isDeclarationFile)return"Definitions";const n=t.path;return To(n,CS)?"TypeScript":To(n,NS)?"JavaScript":So(n,".json")?"JSON":"Other"}(e,n),i=Ma(n).length;t.set(r,t.get(r)+i)})),t}function gK(e,t,n){return yK(e,n)?m$(e,!0):t}function hK(e){return!e.getEnvironmentVariable("NO_COLOR")&&(!!e.getEnvironmentVariable("FORCE_COLOR")||!!e.writeOutputIsTTY&&e.writeOutputIsTTY())}function yK(e,t){return t&&void 0!==t.pretty?t.pretty:hK(e)}function vK(e){const t=C(JO.concat(YO),(e=>!1!==e.showInHelp));return e.options.all?le(t,((e,t)=>kt(e.name,t.name))):C(t,(e=>!!e.showInSimplifiedHelpView))}function bK(e){e.write(kL(ua.Version_0,o)+e.newLine)}function xK(e){if(!hK(e))return{bold:e=>e,blue:e=>e,blueBackground:e=>e,brightWhite:e=>e};const t=e.getEnvironmentVariable("OS")&&e.getEnvironmentVariable("OS").toLowerCase().includes("windows"),n=e.getEnvironmentVariable("WT_SESSION"),r=e.getEnvironmentVariable("TERM_PROGRAM")&&"vscode"===e.getEnvironmentVariable("TERM_PROGRAM");const i="truecolor"===e.getEnvironmentVariable("COLORTERM")||"xterm-256color"===e.getEnvironmentVariable("TERM");function o(e){return`${e}`}return{bold:function(e){return`${e}`},blue:function(e){return!t||n||r?`${e}`:o(e)},brightWhite:o,blueBackground:function(e){return i?`${e}`:`${e}`}}}function kK(e){return`--${e.name}${e.shortName?`, -${e.shortName}`:""}`}function SK(e,t,n,r){var i;const o=[],a=xK(e),s=kK(t),c=function(e){if("object"===e.type)return;return{valueType:function(e){switch(_n.assert("listOrElement"!==e.type),e.type){case"string":case"number":case"boolean":return kL(ua.type_Colon);case"list":return kL(ua.one_or_more_Colon);default:return kL(ua.one_of_Colon)}}(e),possibleValues:function e(t){let n;switch(t.type){case"string":case"number":case"boolean":n=t.type;break;case"list":case"listOrElement":n=e(t.element);break;case"object":n="";break;default:const r={};return t.type.forEach(((e,n)=>{var i;(null==(i=t.deprecatedKeys)?void 0:i.has(n))||(r[e]||(r[e]=[])).push(n)})),Object.entries(r).map((([,e])=>e.join("/"))).join(", ")}return n}(e)}}(t),l="object"==typeof t.defaultValueDescription?kL(t.defaultValueDescription):(_=t.defaultValueDescription,u="list"===t.type||"listOrElement"===t.type?t.element.type:t.type,void 0!==_&&"object"==typeof u?Ie(u.entries()).filter((([,e])=>e===_)).map((([e])=>e)).join("/"):String(_));var _,u;const d=(null==(i=e.getWidthOfTerminal)?void 0:i.call(e))??0;if(d>=80){let i="";t.description&&(i=kL(t.description)),o.push(...f(s,i,n,r,d,!0),e.newLine),p(c,t)&&(c&&o.push(...f(c.valueType,c.possibleValues,n,r,d,!1),e.newLine),l&&o.push(...f(kL(ua.default_Colon),l,n,r,d,!1),e.newLine)),o.push(e.newLine)}else{if(o.push(a.blue(s),e.newLine),t.description){const e=kL(t.description);o.push(e)}if(o.push(e.newLine),p(c,t)){if(c&&o.push(`${c.valueType} ${c.possibleValues}`),l){c&&o.push(e.newLine);const t=kL(ua.default_Colon);o.push(`${t} ${l}`)}o.push(e.newLine)}o.push(e.newLine)}return o;function p(e,t){const n=t.defaultValueDescription;return t.category!==ua.Command_line_Options&&(!k(["string"],null==e?void 0:e.possibleValues)||!k([void 0,"false","n/a"],n))}function f(e,t,n,r,i,o){const s=[];let c=!0,l=t;const _=i-r;for(;l.length>0;){let t="";c?(t=e.padStart(n),t=t.padEnd(r),t=o?a.blue(t):t):t="".padStart(r);const i=l.substr(0,_);l=l.slice(_),s.push(`${t}${i}`),c=!1}return s}}function TK(e,t){let n=0;for(const e of t){const t=kK(e).length;n=n>t?n:t}const r=n+2,i=r+2;let o=[];for(const n of t){const t=SK(e,n,r,i);o=[...o,...t]}return o[o.length-2]!==e.newLine&&o.push(e.newLine),o}function CK(e,t,n,r,i,o){let a=[];if(a.push(xK(e).bold(t)+e.newLine+e.newLine),i&&a.push(i+e.newLine+e.newLine),!r)return a=[...a,...TK(e,n)],o&&a.push(o+e.newLine+e.newLine),a;const s=new Map;for(const e of n){if(!e.category)continue;const t=kL(e.category),n=s.get(t)??[];n.push(e),s.set(t,n)}return s.forEach(((t,n)=>{a.push(`### ${n}${e.newLine}${e.newLine}`),a=[...a,...TK(e,t)]})),o&&a.push(o+e.newLine+e.newLine),a}function wK(e,t){let n=[...DK(e,`${kL(ua.tsc_Colon_The_TypeScript_Compiler)} - ${kL(ua.Version_0,o)}`)];n=[...n,...CK(e,kL(ua.BUILD_OPTIONS),C(t,(e=>e!==YO&&!1!==e.showInHelp)),!1,Yx(ua.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(const t of n)e.write(t)}function DK(e,t){var n;const r=xK(e),i=[],o=(null==(n=e.getWidthOfTerminal)?void 0:n.call(e))??0,a=r.blueBackground("".padStart(5)),s=r.blueBackground(r.brightWhite("TS ".padStart(5)));if(o>=t.length+5){const n=(o>120?120:o)-5;i.push(t.padEnd(n)+a+e.newLine),i.push("".padStart(n)+s+e.newLine)}else i.push(t+e.newLine),i.push(e.newLine);return i}function NK(e,t){t.options.all?function(e,t,n,r){let i=[...DK(e,`${kL(ua.tsc_Colon_The_TypeScript_Compiler)} - ${kL(ua.Version_0,o)}`)];i=[...i,...CK(e,kL(ua.ALL_COMPILER_OPTIONS),t,!0,void 0,Yx(ua.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))],i=[...i,...CK(e,kL(ua.WATCH_OPTIONS),C(r,(e=>!1!==e.showInHelp)),!1,kL(ua.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon))],i=[...i,...CK(e,kL(ua.BUILD_OPTIONS),C(n,(e=>e!==YO&&!1!==e.showInHelp)),!1,Yx(ua.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(const t of i)e.write(t)}(e,vK(t),ZO,LO):function(e,t){const n=xK(e);let r=[...DK(e,`${kL(ua.tsc_Colon_The_TypeScript_Compiler)} - ${kL(ua.Version_0,o)}`)];r.push(n.bold(kL(ua.COMMON_COMMANDS))+e.newLine+e.newLine),s("tsc",ua.Compiles_the_current_project_tsconfig_json_in_the_working_directory),s("tsc app.ts util.ts",ua.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options),s("tsc -b",ua.Build_a_composite_project_in_the_working_directory),s("tsc --init",ua.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory),s("tsc -p ./path/to/tsconfig.json",ua.Compiles_the_TypeScript_project_located_at_the_specified_path),s("tsc --help --all",ua.An_expanded_version_of_this_information_showing_all_possible_compiler_options),s(["tsc --noEmit","tsc --target esnext"],ua.Compiles_the_current_project_with_additional_settings);const i=t.filter((e=>e.isCommandLineOnly||e.category===ua.Command_line_Options)),a=t.filter((e=>!k(i,e)));r=[...r,...CK(e,kL(ua.COMMAND_LINE_FLAGS),i,!1,void 0,void 0),...CK(e,kL(ua.COMMON_COMPILER_OPTIONS),a,!1,void 0,Yx(ua.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))];for(const t of r)e.write(t);function s(t,i){const o="string"==typeof t?[t]:t;for(const t of o)r.push(" "+n.blue(t)+e.newLine);r.push(" "+kL(i)+e.newLine+e.newLine)}}(e,vK(t))}function FK(e,t,n){let r,i=m$(e);if(n.options.locale&&_c(n.options.locale,e,n.errors),n.errors.length>0)return n.errors.forEach(i),e.exit(1);if(n.options.init)return function(e,t,n){const r=e.getCurrentDirectory(),i=zo(Ro(r,"tsconfig.json"));if(e.fileExists(i))t(Zx(ua.A_tsconfig_json_file_is_already_defined_at_Colon_0,i));else{e.writeFile(i,rj(n,e.newLine));const t=[e.newLine,...DK(e,"Created a new tsconfig.json")];t.push("You can learn more at https://aka.ms/tsconfig"+e.newLine);for(const n of t)e.write(n)}}(e,i,n.options),e.exit(0);if(n.options.version)return bK(e),e.exit(0);if(n.options.help||n.options.all)return NK(e,n),e.exit(0);if(n.options.watch&&n.options.listFilesOnly)return i(Zx(ua.Options_0_and_1_cannot_be_combined,"watch","listFilesOnly")),e.exit(1);if(n.options.project){if(0!==n.fileNames.length)return i(Zx(ua.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)),e.exit(1);const t=zo(n.options.project);if(!t||e.directoryExists(t)){if(r=Ro(t,"tsconfig.json"),!e.fileExists(r))return i(Zx(ua.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0,n.options.project)),e.exit(1)}else if(r=t,!e.fileExists(r))return i(Zx(ua.The_specified_path_does_not_exist_Colon_0,n.options.project)),e.exit(1)}else if(!n.options.ignoreConfig||0===n.fileNames.length){if(r=HU(zo(e.getCurrentDirectory()),(t=>e.fileExists(t))),0!==n.fileNames.length){if(r)return i(Zx(ua.tsconfig_json_is_present_but_will_not_be_loaded_if_files_are_specified_on_commandline_Use_ignoreConfig_to_skip_this_error)),e.exit(1)}else if(!r)return n.options.showConfig?i(Zx(ua.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,zo(e.getCurrentDirectory()))):(bK(e),NK(e,n)),e.exit(1)}const o=e.getCurrentDirectory(),a=ij(n.options,(e=>Jo(e,o)));if(r){const o=new Map,s=b$(r,a,o,n.watchOptions,e,i);if(a.showConfig)return 0!==s.errors.length?(i=gK(e,i,s.options),s.errors.forEach(i),e.exit(1)):(e.write(JSON.stringify(GL(s,r,e),null,4)+e.newLine),e.exit(0));if(i=gK(e,i,s.options),rx(s.options)){if(AK(e,i))return;return function(e,t,n,r,i,o,a){const s=$$({configFileName:r.options.configFilePath,optionsToExtend:i,watchOptionsToExtend:o,system:e,reportDiagnostic:n,reportWatchStatus:zK(e,r.options)});return JK(e,t,s),s.configFileParsingResult=r,s.extendedConfigCache=a,Z$(s)}(e,t,i,s,a,n.watchOptions,o)}Ik(s.options)?RK(e,t,i,s):jK(e,t,i,s)}else{if(a.showConfig)return e.write(JSON.stringify(GL(n,Ro(o,"tsconfig.json"),e),null,4)+e.newLine),e.exit(0);if(i=gK(e,i,a),rx(a)){if(AK(e,i))return;return function(e,t,n,r,i,o){const a=H$({rootFiles:r,options:i,watchOptions:o,system:e,reportDiagnostic:n,reportWatchStatus:zK(e,i)});return JK(e,t,a),Z$(a)}(e,t,i,n.fileNames,a,n.watchOptions)}Ik(a)?RK(e,t,i,{...n,options:a}):jK(e,t,i,{...n,options:a})}}function EK(e){if(e.length>0&&45===e[0].charCodeAt(0)){const t=e[0].slice(45===e[0].charCodeAt(1)?2:1).toLowerCase();return t===YO.name||t===YO.shortName}return!1}function PK(e,t,n){if(EK(n)){const{buildOptions:r,watchOptions:i,projects:o,errors:a}=xL(n);if(!r.generateCpuProfile||!e.enableCPUProfiler)return OK(e,t,r,i,o,a);e.enableCPUProfiler(r.generateCpuProfile,(()=>OK(e,t,r,i,o,a)))}const r=gL(n,(t=>e.readFile(t)));if(!r.options.generateCpuProfile||!e.enableCPUProfiler)return FK(e,t,r);e.enableCPUProfiler(r.options.generateCpuProfile,(()=>FK(e,t,r)))}function AK(e,t){return(!e.watchFile||!e.watchDirectory)&&(t(Zx(ua.The_current_host_does_not_support_the_0_option,"--watch")),e.exit(1),!0)}var IK=2;function OK(e,t,n,r,i,o){const a=gK(e,m$(e),n);if(n.locale&&_c(n.locale,e,o),o.length>0)return o.forEach(a),e.exit(1);if(n.help)return bK(e),wK(e,eL),e.exit(0);if(0===i.length)return bK(e),wK(e,eL),e.exit(0);if(!e.getModifiedTime||!e.setModifiedTime||n.clean&&!e.deleteFile)return a(Zx(ua.The_current_host_does_not_support_the_0_option,"--build")),e.exit(1);if(n.watch){if(AK(e,a))return;const o=_H(e,void 0,a,sH(e,yK(e,n)),zK(e,n));o.jsDocParsingMode=IK;const s=qK(e,n);MK(e,t,o,s);const c=o.onWatchStatusChange;let l=!1;o.onWatchStatusChange=(e,t,n,r)=>{null==c||c(e,t,n,r),!l||e.code!==ua.Found_0_errors_Watching_for_file_changes.code&&e.code!==ua.Found_1_error_Watching_for_file_changes.code||UK(_,s)};const _=dH(o,i,n,r);return _.build(),UK(_,s),l=!0,_}const s=lH(e,void 0,a,sH(e,yK(e,n)),LK(e,n));s.jsDocParsingMode=IK;const c=qK(e,n);MK(e,t,s,c);const l=uH(s,i,n),_=n.clean?l.clean():l.build();return UK(l,c),dr(),e.exit(_)}function LK(e,t){return yK(e,t)?(t,n)=>e.write(C$(t,n,e.newLine,e)):void 0}function jK(e,t,n,r){const{fileNames:i,options:o,projectReferences:a}=r,s=ZU(o,void 0,e);s.jsDocParsingMode=IK;const c=s.getCurrentDirectory(),l=Vt(s.useCaseSensitiveFileNames());eV(s,(e=>Vo(e,c,l))),$K(e,o,!1);const _=UV({rootNames:i,options:o,projectReferences:a,host:s,configFileParsingDiagnostics:BV(r)}),u=O$(_,n,(t=>e.write(t+e.newLine)),LK(e,o));return KK(e,_,void 0),t(_),e.exit(u)}function RK(e,t,n,r){const{options:i,fileNames:o,projectReferences:a}=r;$K(e,i,!1);const s=X$(i,e);s.jsDocParsingMode=IK;const c=K$({host:s,system:e,rootNames:o,options:i,configFileParsingDiagnostics:BV(r),projectReferences:a,reportDiagnostic:n,reportErrorSummary:LK(e,i),afterProgramEmitAndDiagnostics:n=>{KK(e,n.getProgram(),void 0),t(n)}});return e.exit(c)}function MK(e,t,n,r){BK(e,n,!0),n.afterProgramEmitAndDiagnostics=n=>{KK(e,n.getProgram(),r),t(n)}}function BK(e,t,n){const r=t.createProgram;t.createProgram=(t,i,o,a,s,c)=>(_n.assert(void 0!==t||void 0===i&&!!a),void 0!==i&&$K(e,i,n),r(t,i,o,a,s,c))}function JK(e,t,n){n.jsDocParsingMode=IK,BK(e,n,!1);const r=n.afterProgramCreate;n.afterProgramCreate=n=>{r(n),KK(e,n.getProgram(),void 0),t(n)}}function zK(e,t){return v$(e,yK(e,t))}function qK(e,t){if(e===co&&t.extendedDiagnostics)return lr(),function(){let e;return{addAggregateStatistic:t,forEachAggregateStatistics:n,clear:r};function t(t){const n=null==e?void 0:e.get(t.name);n?2===n.type?n.value=Math.max(n.value,t.value):n.value+=t.value:(e??(e=new Map)).set(t.name,t)}function n(t){null==e||e.forEach(t)}function r(){e=void 0}}()}function UK(e,t){if(!t)return;if(!cr())return void co.write(ua.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+"\n");const n=[];function r(e){const t=nr(e);t&&n.push({name:i(e),value:t,type:1})}function i(e){return e.replace("SolutionBuilder::","")}n.push({name:"Projects in scope",value:aH(e.getBuildOrder()).length,type:1}),r("SolutionBuilder::Projects built"),r("SolutionBuilder::Timestamps only updates"),r("SolutionBuilder::Bundles updated"),t.forEachAggregateStatistics((e=>{e.name=`Aggregate ${e.name}`,n.push(e)})),ir(((e,t)=>{HK(e)&&n.push({name:`${i(e)} time`,value:t,type:0})})),_r(),lr(),t.clear(),GK(co,n)}function VK(e,t){return e===co&&(t.diagnostics||t.extendedDiagnostics)}function WK(e,t){return e===co&&t.generateTrace}function $K(e,t,n){VK(e,t)&&lr(e),WK(e,t)&&ur(n?"build":"project",t.generateTrace,t.configFilePath)}function HK(e){return Kt(e,"SolutionBuilder::")}function KK(e,t,n){var r;const i=t.getCompilerOptions();let o;if(WK(e,i)&&(null==(r=$n)||r.stopTracing()),VK(e,i)){o=[];const r=e.getMemoryUsage?e.getMemoryUsage():-1;s("Files",t.getSourceFiles().length);const l=mK(t);if(i.extendedDiagnostics)for(const[e,t]of l.entries())s("Lines of "+e,t);else s("Lines",f(l.values(),((e,t)=>e+t),0));s("Identifiers",t.getIdentifierCount()),s("Symbols",t.getSymbolCount()),s("Types",t.getTypeCount()),s("Instantiations",t.getInstantiationCount()),r>=0&&a({name:"Memory used",value:r,type:2},!0);const _=cr(),u=_?rr("Program"):0,d=_?rr("Bind"):0,p=_?rr("Check"):0,m=_?rr("Emit"):0;if(i.extendedDiagnostics){const e=t.getRelationCacheSizes();s("Assignability cache size",e.assignable),s("Identity cache size",e.identity),s("Subtype cache size",e.subtype),s("Strict subtype cache size",e.strictSubtype),_&&ir(((e,t)=>{HK(e)||c(`${e} time`,t,!0)}))}else _&&(c("I/O read",rr("I/O Read"),!0),c("I/O write",rr("I/O Write"),!0),c("Parse time",u,!0),c("Bind time",d,!0),c("Check time",p,!0),c("Emit time",m,!0));_&&c("Total time",u+d+p+m,!1),GK(e,o),_?n?(ir((e=>{HK(e)||ar(e)})),or((e=>{HK(e)||sr(e)}))):_r():e.write(ua.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+"\n")}function a(e,t){o.push(e),t&&(null==n||n.addAggregateStatistic(e))}function s(e,t){a({name:e,value:t,type:1},!0)}function c(e,t,n){a({name:e,value:t,type:0},n)}}function GK(e,t){let n=0,r=0;for(const e of t){e.name.length>n&&(n=e.name.length);const t=XK(e);t.length>r&&(r=t.length)}for(const i of t)e.write(`${i.name}:`.padEnd(n+2)+XK(i).toString().padStart(r)+e.newLine)}function XK(e){switch(e.type){case 1:return""+e.value;case 0:return(e.value/1e3).toFixed(2)+"s";case 2:return Math.round(e.value/1e3)+"K";default:_n.assertNever(e.type)}}function QK(e,t=!0){return{type:e,reportFallback:t}}var YK=QK(void 0,!1),ZK=QK(void 0,!1),eG=QK(void 0,!0);function tG(e,t){const n=qk(e,"strictNullChecks");return{serializeTypeOfDeclaration:function(e,n,r){switch(e.kind){case 170:case 342:return u(e,n,r);case 261:return function(e,n,r){var i;const o=mv(e);let s=eG;o?s=QK(a(o,r,e,n)):!e.initializer||1!==(null==(i=n.declarations)?void 0:i.length)&&1!==T(n.declarations,pE)||t.isExpandoFunctionDeclaration(e)||E(e)||(s=h(e.initializer,r,void 0,void 0,sf(e)));return void 0!==s.type?s.type:d(e,n,r,s.reportFallback)}(e,n,r);case 172:case 349:case 173:return function(e,n,r){const i=mv(e),o=t.requiresAddingImplicitUndefined(e,n,r.enclosingDeclaration);let s=eG;if(i)s=QK(a(i,r,e,n,o));else{const t=PN(e)?e.initializer:void 0;if(t&&!E(e)){s=h(t,r,void 0,o,nf(e))}}return void 0!==s.type?s.type:d(e,n,r,s.reportFallback)}(e,n,r);case 209:return d(e,n,r);case 278:return l(e.expression,r,void 0,!0);case 212:case 213:case 227:return function(e,t,n){const r=mv(e);let i;r&&(i=a(r,n,e,t));const o=n.suppressReportInferenceFallback;n.suppressReportInferenceFallback=!0;const s=i??d(e,t,n,!1);return n.suppressReportInferenceFallback=o,s}(e,n,r);case 304:case 305:return function(e,n,r){const i=mv(e);let a;i&&t.canReuseTypeNodeAnnotation(r,e,i,n)&&(a=o(i,r));if(!a&&304===e.kind){const i=e.initializer,s=NA(i)?FA(i):235===i.kind||217===i.kind?i.type:void 0;s&&!Sl(s)&&t.canReuseTypeNodeAnnotation(r,e,s,n)&&(a=o(s,r))}return a??d(e,n,r,!1)}(e,n,r);default:_n.assertNever(e,`Node needs to be an inferrable node, found ${_n.formatSyntaxKind(e.kind)}`)}},serializeReturnTypeForSignature:function(e,t,n){switch(e.kind){case 178:return c(e,t,n);case 175:case 263:case 181:case 174:case 180:case 177:case 179:case 182:case 185:case 186:case 219:case 220:case 318:case 324:return F(e,t,n);default:_n.assertNever(e,`Node needs to be an inferrable node, found ${_n.formatSyntaxKind(e.kind)}`)}},serializeTypeOfExpression:l,serializeTypeOfAccessor:c,tryReuseExistingTypeNode(e,n){if(t.canReuseTypeNode(e,n))return i(e,n)}};function r(e,n,r=n){return void 0===n?void 0:t.markNodeReuse(e,16&n.flags?n:vw.cloneNode(n),r??n)}function i(n,i){const{finalizeBoundary:o,startRecoveryScope:a,hadError:s,markError:c}=t.createRecoveryBoundary(n),l=yJ(i,_,x_);if(o())return n.approximateLength+=i.end-i.pos,l;function _(i){if(s())return i;const o=a(),l=AC(i)?t.enterNewScope(n,i):void 0,u=function(i){var o;if(pP(i))return yJ(i.type,_,x_);if(vP(i)||320===i.kind)return vw.createKeywordTypeNode(133);if(bP(i))return vw.createKeywordTypeNode(159);if(xP(i))return vw.createUnionTypeNode([yJ(i.type,_,x_),vw.createLiteralTypeNode(vw.createNull())]);if(SP(i))return vw.createUnionTypeNode([yJ(i.type,_,x_),vw.createKeywordTypeNode(157)]);if(kP(i))return yJ(i.type,_);if(CP(i))return vw.createArrayTypeNode(yJ(i.type,_,x_));if(NP(i))return vw.createTypeLiteralNode(N(i.jsDocPropertyTags,(e=>{const r=yJ(_N(e.name)?e.name:e.name.right,_,_N),o=t.getJsDocPropertyOverride(n,i,e);return vw.createPropertySignature(void 0,r,e.isBracketed||e.typeExpression&&SP(e.typeExpression.type)?vw.createToken(58):void 0,o||e.typeExpression&&yJ(e.typeExpression.type,_,x_)||vw.createKeywordTypeNode(133))})));if(qN(i)&&_N(i.typeName)&&""===i.typeName.escapedText)return xw(vw.createKeywordTypeNode(133),i);if((MF(i)||qN(i))&&Om(i))return vw.createTypeLiteralNode([vw.createIndexSignature(void 0,[vw.createParameterDeclaration(void 0,void 0,"x",void 0,yJ(i.typeArguments[0],_,x_))],yJ(i.typeArguments[1],_,x_))]);if(TP(i)){if(Ng(i)){let e;return vw.createConstructorTypeNode(void 0,vJ(i.typeParameters,_,DN),R(i.parameters,((r,i)=>r.name&&_N(r.name)&&"new"===r.name.escapedText?void(e=r.type):vw.createParameterDeclaration(void 0,l(r),t.markNodeReuse(n,vw.createIdentifier(u(r,i)),r),vw.cloneNode(r.questionToken),yJ(r.type,_,x_),void 0))),yJ(e||i.type,_,x_)||vw.createKeywordTypeNode(133))}return vw.createFunctionTypeNode(vJ(i.typeParameters,_,DN),N(i.parameters,((e,r)=>vw.createParameterDeclaration(void 0,l(e),t.markNodeReuse(n,vw.createIdentifier(u(e,r)),e),vw.cloneNode(e.questionToken),yJ(e.type,_,x_),void 0))),yJ(i.type,_,x_)||vw.createKeywordTypeNode(133))}if(rF(i))return t.canReuseTypeNode(n,i)||c(),i;if(DN(i)){const{node:e}=t.trackExistingEntityName(n,i.name);return vw.updateTypeParameterDeclaration(i,vJ(i.modifiers,_,e_),e,yJ(i.constraint,_,x_),yJ(i.default,_,x_))}if(oF(i)){const e=d(i);return e||(c(),i)}if(qN(i)){const e=m(i);return e||(c(),i)}if(df(i)){if(132===(null==(o=i.attributes)?void 0:o.token))return c(),i;if(!t.canReuseTypeNode(n,i))return t.serializeExistingTypeNode(n,i);const e=g(i,i.argument.literal),a=e===i.argument.literal?r(n,i.argument.literal):e;return vw.updateImportTypeNode(i,a===i.argument.literal?r(n,i.argument):vw.createLiteralTypeNode(a),yJ(i.attributes,_,EE),yJ(i.qualifier,_,t_),vJ(i.typeArguments,_,x_),i.isTypeOf)}if(Tc(i)&&168===i.name.kind&&!t.hasLateBindableName(i)){if(!Bh(i))return a(i,_);if(t.shouldRemoveDeclaration(n,i))return}if(i_(i)&&!i.type||PN(i)&&!i.type&&!i.initializer||EN(i)&&!i.type&&!i.initializer||NN(i)&&!i.type&&!i.initializer){let e=a(i,_);return e===i&&(e=t.markNodeReuse(n,vw.cloneNode(i),i)),e.type=vw.createKeywordTypeNode(133),NN(i)&&(e.modifiers=void 0),e}if(WN(i)){const e=f(i);return e||(c(),i)}if(wN(i)&&cb(i.expression)){const{node:r,introducesError:o}=t.trackExistingEntityName(n,i.expression);if(o){const r=t.serializeTypeOfExpression(n,i.expression);let o;if(sF(r))o=r.literal;else{const e=t.evaluateEntityNameExpression(i.expression),a="string"==typeof e.value?vw.createStringLiteral(e.value,void 0):"number"==typeof e.value?vw.createNumericLiteral(e.value,0):void 0;if(!a)return cF(r)&&t.trackComputedName(n,i.expression),i;o=a}return 11===o.kind&&gs(o.text,xk(e))?vw.createIdentifier(o.text):9!==o.kind||o.text.startsWith("-")?vw.updateComputedPropertyName(i,o):o}return vw.updateComputedPropertyName(i,r)}if(zN(i)){let e;if(_N(i.parameterName)){const{node:r,introducesError:o}=t.trackExistingEntityName(n,i.parameterName);o&&c(),e=r}else e=vw.cloneNode(i.parameterName);return vw.updateTypePredicateNode(i,vw.cloneNode(i.assertsModifier),e,yJ(i.type,_,x_))}if(KN(i)||$N(i)||aF(i)){const e=a(i,_),r=t.markNodeReuse(n,e===i?vw.cloneNode(i):e,i);return Cw(r,Zd(r)|(1024&n.flags&&$N(i)?0:1)),r}if(HD(i)&&268435456&n.flags&&!i.singleQuote){const e=vw.cloneNode(i);return e.singleQuote=!0,e}if(eF(i)){const e=yJ(i.checkType,_,x_),r=t.enterNewScope(n,i),o=yJ(i.extendsType,_,x_),a=yJ(i.trueType,_,x_);r();const s=yJ(i.falseType,_,x_);return vw.updateConditionalTypeNode(i,e,o,a,s)}if(iF(i))if(158===i.operator&&155===i.type.kind){if(!t.canReuseTypeNode(n,i))return c(),i}else if(143===i.operator){const e=p(i);return e||(c(),i)}return a(i,_);function a(e,t){return NJ(e,t,void 0,!n.enclosingFile||n.enclosingFile!==bd(e)?s:void 0)}function s(e,t,n,r,i){let o=vJ(e,t,n,r,i);return o&&(-1===o.pos&&-1===o.end||(o===e&&(o=vw.createNodeArray(e.slice(),e.hasTrailingComma)),DT(o,-1,-1))),o}function l(e){return e.dotDotDotToken||(e.type&&CP(e.type)?vw.createToken(26):void 0)}function u(e,t){return e.name&&_N(e.name)&&"this"===e.name.escapedText?"this":l(e)?"args":`arg${t}`}function g(e,r){const i=t.getModuleSpecifierOverride(n,e,r);return i?xw(vw.createStringLiteral(i),r):r}}(i);return null==l||l(),s()?x_(i)&&!zN(i)?(o(),t.serializeExistingTypeNode(n,i)):i:u?t.markNodeReuse(n,u,i):void 0}function u(e){const t=ah(e);switch(t.kind){case 184:return m(t);case 187:return f(t);case 200:return d(t);case 199:const e=t;if(143===e.operator)return p(e)}return yJ(e,_,x_)}function d(e){const t=u(e.objectType);if(void 0!==t)return vw.updateIndexedAccessTypeNode(e,t,yJ(e.indexType,_,x_))}function p(e){_n.assertEqual(e.operator,143);const t=u(e.type);if(void 0!==t)return vw.updateTypeOperatorNode(e,t)}function f(e){const{introducesError:r,node:i}=t.trackExistingEntityName(n,e.exprName);if(!r)return vw.updateTypeQueryNode(e,i,vJ(e.typeArguments,_,x_));const o=t.serializeTypeName(n,e.exprName,!0);return o?t.markNodeReuse(n,o,e.exprName):void 0}function m(e){if(t.canReuseTypeNode(n,e)){const{introducesError:r,node:i}=t.trackExistingEntityName(n,e.typeName),o=vJ(e.typeArguments,_,x_);if(!r){const r=vw.updateTypeReferenceNode(e,i,o);return t.markNodeReuse(n,r,e)}{const r=t.serializeTypeName(n,e.typeName,!1,o);if(r)return t.markNodeReuse(n,r,e.typeName)}}}}function o(e,n,r){if(!e)return;let o;return r&&!D(e)||!t.canReuseTypeNode(n,e)||(o=i(n,e),void 0!==o&&(o=w(o,r,void 0,n))),o}function a(e,n,r,i,a,s=void 0!==a){if(!e)return;if(!(t.canReuseTypeNodeAnnotation(n,r,e,i,a)||a&&t.canReuseTypeNodeAnnotation(n,r,e,i,!1)))return;let c;return a&&!D(e)||(c=o(e,n,a)),void 0===c&&s?(n.tracker.reportInferenceFallback(r),t.serializeExistingTypeNode(n,e,a)??vw.createKeywordTypeNode(133)):c}function s(e,n,r,i){if(!e)return;const a=o(e,n,r);return void 0!==a?a:(n.tracker.reportInferenceFallback(i??e),t.serializeExistingTypeNode(n,e,r)??vw.createKeywordTypeNode(133))}function c(e,n,r){return function(e,n,r){const i=t.getAllAccessorDeclarations(e),o=function(e,t){let n=_(e);n||e===t.firstAccessor||(n=_(t.firstAccessor));!n&&t.secondAccessor&&e!==t.secondAccessor&&(n=_(t.secondAccessor));return n}(e,i);if(o&&!zN(o))return m(r,e,(()=>a(o,r,e,n)??d(e,n,r)));if(i.getAccessor)return m(r,i.getAccessor,(()=>F(i.getAccessor,n,r)));return}(e,n,r)??f(e,t.getAllAccessorDeclarations(e),r,n)}function l(e,t,n,r){const i=h(e,t,!1,n,r);return void 0!==i.type?i.type:p(e,t,i.reportFallback)}function _(e){if(e)return 178===e.kind?Em(e)&&rl(e)||hv(e):vv(e)}function u(e,n,r){const i=e.parent;if(179===i.kind)return c(i,void 0,r);const o=mv(e),s=t.requiresAddingImplicitUndefined(e,n,r.enclosingDeclaration);let l=eG;return o?l=QK(a(o,r,e,n,s)):NN(e)&&e.initializer&&_N(e.name)&&!E(e)&&(l=h(e.initializer,r,void 0,s)),void 0!==l.type?l.type:d(e,n,r,l.reportFallback)}function d(e,n,r,i=!0){return i&&r.tracker.reportInferenceFallback(e),!0===r.noInferenceFallback?vw.createKeywordTypeNode(133):t.serializeTypeOfDeclaration(r,e,n)}function p(e,n,r=!0,i){return _n.assert(!i),r&&n.tracker.reportInferenceFallback(e),!0===n.noInferenceFallback?vw.createKeywordTypeNode(133):t.serializeTypeOfExpression(n,e)??vw.createKeywordTypeNode(133)}function f(e,n,r,i,o=!0){if(178===e.kind)return F(e,i,r,o);o&&r.tracker.reportInferenceFallback(e);return(n.getAccessor&&F(n.getAccessor,i,r,o))??t.serializeTypeOfDeclaration(r,e,i)??vw.createKeywordTypeNode(133)}function m(e,n,r){const i=t.enterNewScope(e,n),o=r();return i(),o}function g(e,t,n,r){return Sl(t)?h(e,n,!0,r):QK(s(t,n,r))}function h(e,r,i=!1,o=!1,a=!1){switch(e.kind){case 218:return NA(e)?g(e.expression,FA(e),r,o):h(e.expression,r,i,o);case 80:if(t.isUndefinedIdentifierExpression(e))return QK(S());break;case 106:return QK(n?w(vw.createLiteralTypeNode(vw.createNull()),o,e,r):vw.createKeywordTypeNode(133));case 220:case 219:return _n.type(e),m(r,e,(()=>function(e,t){const n=F(e,void 0,t),r=b(e.typeParameters,t),i=e.parameters.map((e=>v(e,t)));return QK(vw.createFunctionTypeNode(r,i,n))}(e,r)));case 217:case 235:const s=e;return g(s.expression,s.type,r,o);case 225:const c=e;if(kC(c))return C(40===c.operator?c.operand:c,10===c.operand.kind?163:150,r,i||a,o);break;case 210:return function(e,t,n,r){if(!function(e,t,n){if(!n)return t.tracker.reportInferenceFallback(e),!1;for(const n of e.elements)if(231===n.kind)return t.tracker.reportInferenceFallback(n),!1;return!0}(e,t,n))return r||uu(ih(e).parent)?ZK:QK(p(e,t,!1,r));const i=t.noInferenceFallback;t.noInferenceFallback=!0;const o=[];for(const r of e.elements)if(_n.assert(231!==r.kind),233===r.kind)o.push(S());else{const e=h(r,t,n),i=void 0!==e.type?e.type:p(r,t,e.reportFallback);o.push(i)}return vw.createTupleTypeNode(o).emitNode={flags:1,autoGenerate:void 0,internalFlags:0},t.noInferenceFallback=i,YK}(e,r,i,o);case 211:return function(e,n,r,i){if(!function(e,n){let r=!0;for(const i of e.properties){if(262144&i.flags){r=!1;break}if(305===i.kind||306===i.kind)n.tracker.reportInferenceFallback(i),r=!1;else{if(262144&i.name.flags){r=!1;break}if(81===i.name.kind)r=!1;else if(168===i.name.kind){const e=i.name.expression;kC(e,!1)||t.isDefinitelyReferenceToGlobalSymbolObject(e)||(n.tracker.reportInferenceFallback(i.name),r=!1)}}}return r}(e,n))return i||uu(ih(e).parent)?ZK:QK(p(e,n,!1,i));const o=n.noInferenceFallback;n.noInferenceFallback=!0;const a=[],s=n.flags;n.flags|=4194304;for(const t of e.properties){_n.assert(!cP(t)&&!lP(t));const e=t.name;let i;switch(t.kind){case 175:i=m(n,t,(()=>x(t,e,n,r)));break;case 304:i=y(t,e,n,r);break;case 179:case 178:i=k(t,e,n)}i&&(jw(i,t),a.push(i))}n.flags=s;const c=vw.createTypeLiteralNode(a);1024&n.flags||Cw(c,1);return n.noInferenceFallback=o,YK}(e,r,i,o);case 232:return QK(p(e,r,!0,o));case 229:if(!i&&!a)return QK(vw.createKeywordTypeNode(154));break;default:let l,_=e;switch(e.kind){case 9:l=150;break;case 15:_=vw.createStringLiteral(e.text),l=154;break;case 11:l=154;break;case 10:l=163;break;case 112:case 97:l=136}if(l)return C(_,l,r,i||a,o)}return eG}function y(e,t,n,i){const o=i?[vw.createModifier(148)]:[],a=h(e.initializer,n,i),s=void 0!==a.type?a.type:d(e,void 0,n,a.reportFallback);return vw.createPropertySignature(o,r(n,t),void 0,s)}function v(e,n){return vw.updateParameterDeclaration(e,void 0,r(n,e.dotDotDotToken),t.serializeNameOfParameter(n,e),t.isOptionalParameter(e)?vw.createToken(58):void 0,u(e,void 0,n),void 0)}function b(e,n){return null==e?void 0:e.map((e=>{var i;const{node:o}=t.trackExistingEntityName(n,e.name);return vw.updateTypeParameterDeclaration(e,null==(i=e.modifiers)?void 0:i.map((e=>r(n,e))),o,s(e.constraint,n),s(e.default,n))}))}function x(e,t,n,i){const o=F(e,void 0,n),a=b(e.typeParameters,n),s=e.parameters.map((e=>v(e,n)));return i?vw.createPropertySignature([vw.createModifier(148)],r(n,t),r(n,e.questionToken),vw.createFunctionTypeNode(a,s,o)):(_N(t)&&"new"===t.escapedText&&(t=vw.createStringLiteral("new")),vw.createMethodSignature([],r(n,t),r(n,e.questionToken),a,s,o))}function k(e,n,i){const o=t.getAllAccessorDeclarations(e),a=o.getAccessor&&_(o.getAccessor),c=o.setAccessor&&_(o.setAccessor);if(void 0!==a&&void 0!==c)return m(i,e,(()=>{const t=e.parameters.map((e=>v(e,i)));return Nu(e)?vw.updateGetAccessorDeclaration(e,[],r(i,n),t,s(a,i),void 0):vw.updateSetAccessorDeclaration(e,[],r(i,n),t,void 0)}));if(o.firstAccessor===e){const t=(a?m(i,o.getAccessor,(()=>s(a,i))):c?m(i,o.setAccessor,(()=>s(c,i))):void 0)??f(e,o,i,void 0);return vw.createPropertySignature(void 0===o.setAccessor?[vw.createModifier(148)]:[],r(i,n),void 0,t)}}function S(){return n?vw.createKeywordTypeNode(157):vw.createKeywordTypeNode(133)}function C(e,t,n,i,o){let a;return i?(225===e.kind&&40===e.operator&&(a=vw.createLiteralTypeNode(r(n,e.operand))),a=vw.createLiteralTypeNode(r(n,e))):a=vw.createKeywordTypeNode(t),QK(w(a,o,e,n))}function w(e,t,r,i){const o=r&&ih(r).parent,a=o&&uu(o)&&YT(o);return n&&(t||a)?(D(e)||i.tracker.reportInferenceFallback(e),YN(e)?vw.createUnionTypeNode([...e.types,vw.createKeywordTypeNode(157)]):vw.createUnionTypeNode([e,vw.createKeywordTypeNode(157)])):e}function D(e){return!n||(!(!wh(e.kind)&&202!==e.kind&&185!==e.kind&&186!==e.kind&&189!==e.kind&&190!==e.kind&&188!==e.kind&&204!==e.kind&&198!==e.kind)||(197===e.kind?D(e.type):(193===e.kind||194===e.kind)&&e.types.every(D)))}function F(e,n,r,i=!0){let s=eG;const c=Ng(e)?mv(e.parameters[0]):hv(e);return c?s=QK(a(c,r,e,n)):th(e)&&(s=function(e,t){let n;if(e&&!Nd(e.body)){if(3&Lh(e))return eG;const t=e.body;t&&KF(t)?Nf(t,(e=>e.parent!==t||n?(n=void 0,!0):void(n=e.expression))):n=t}if(n){if(!E(n))return h(n,t);{const e=NA(n)?FA(n):BF(n)||xF(n)?n.type:void 0;if(e&&!Sl(e))return QK(o(e,t))}}return eG}(e,r)),void 0!==s.type?s.type:function(e,n,r,i){return i&&n.tracker.reportInferenceFallback(e),!0===n.noInferenceFallback?vw.createKeywordTypeNode(133):t.serializeReturnTypeForSignature(n,e,r)??vw.createKeywordTypeNode(133)}(e,r,n,i&&s.reportFallback&&!c)}function E(e){return dc(e.parent,(e=>yF(e)||!a_(e)&&!!mv(e)||WE(e)||tP(e)))}}var nG={};n(nG,{NameValidationResult:()=>CG,discoverTypings:()=>SG,isTypingUpToDate:()=>vG,loadSafeList:()=>xG,loadTypesMap:()=>kG,nonRelativeModuleNameForTypingCache:()=>bG,renderPackageNameValidationFailure:()=>FG,validatePackageName:()=>DG});var rG,iG,oG="action::set",aG="action::invalidate",sG="action::packageInstalled",cG="event::typesRegistry",lG="event::beginInstallTypes",_G="event::endInstallTypes",uG="event::initializationFailed",dG="action::watchTypingLocations";function pG(e){return co.args.includes(e)}function fG(e){const t=co.args.indexOf(e);return t>=0&&te.readFile(t)));return new Map(Object.entries(n.config))}function kG(e,t){var n;const r=TL(t,(t=>e.readFile(t)));if(null==(n=r.config)?void 0:n.simpleMap)return new Map(Object.entries(r.config.simpleMap))}function SG(e,t,n,r,i,o,a,s,c,l){if(!a||!a.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const u=new Map;n=R(n,(e=>{const t=zo(e);if(jS(t))return t}));const d=[];a.include&&y(a.include,"Explicitly included types");const p=a.exclude||[];if(!l.types||hk(l)){const e=new Set(n.map(Fo));e.add(r),e.forEach((e=>{v(e,"bower.json","bower_components",d),v(e,"package.json","node_modules",d)}))}if(a.disableFilenameBasedTypeAcquisition||function(e){const n=R(e,(e=>{if(!jS(e))return;const t=Bt(WS(lt(Eo(e))));return i.get(t)}));n.length&&y(n,"Inferred typings from file names");V(e,(e=>So(e,".jsx")))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),h("react"))}(n),s){y(X(s.map(bG),gt,Tt),"Inferred typings from unresolved imports")}for(const e of p){u.delete(e)&&t&&t(`Typing for ${e} is in exclude list, will be ignored.`)}o.forEach(((e,t)=>{const n=c.get(t);!1===u.get(t)&&void 0!==n&&vG(e,n)&&u.set(t,e.typingLocation)}));const f=[],m=[];u.forEach(((e,t)=>{e?m.push(e):f.push(t)}));const g={cachedTypingPaths:m,newTypingNames:f,filesToWatch:d};return t&&t(`Finished typings discovery:${yG(g)}`),g;function h(e){u.has(e)||u.set(e,!1)}function y(e,n){t&&t(`${n}: ${JSON.stringify(e)}`),_(e,h)}function v(n,r,i,o){const a=Ro(n,r);let s,c;e.fileExists(a)&&(o.push(a),s=TL(a,(t=>e.readFile(t))).config,c=A([s.dependencies,s.devDependencies,s.optionalDependencies,s.peerDependencies],Fe),y(c,`Typing names in '${a}' dependencies`));const l=Ro(n,i);if(o.push(l),!e.directoryExists(l))return;const _=[],d=c?c.map((e=>Ro(l,e,r))):e.readDirectory(l,[".json"],void 0,void 0,3).filter((e=>{if(Eo(e)!==r)return!1;const t=Io(zo(e)),n="@"===t[t.length-3][0];return n&<(t[t.length-4])===i||!n&<(t[t.length-3])===i}));t&&t(`Searching for typing names in ${l}; all files: ${JSON.stringify(d)}`);for(const n of d){const r=zo(n),i=TL(r,(t=>e.readFile(t))).config;if(!i.name)continue;const o=i.types||i.typings;if(o){const n=Jo(o,Fo(r));e.fileExists(n)?(t&&t(` Package '${i.name}' provides its own types.`),u.set(i.name,n)):t&&t(` Package '${i.name}' provides its own types but they are missing.`)}else _.push(i.name)}y(_," Found package names")}}var TG,CG=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsInvalidCharacters=5]="NameContainsInvalidCharacters",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(CG||{}),wG=214;function DG(e){return NG(e,!0)}function NG(e,t){if(!e)return 1;if(e.length>wG)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){const t=/^@([^/]+)\/([^/]+)$/.exec(e);if(t){const e=NG(t[1],!1);if(0!==e)return{name:t[1],isScopeName:!0,result:e};const n=NG(t[2],!1);return 0!==n?{name:t[2],isScopeName:!1,result:n}:0}}return/^[\w.-]+$/.test(e)?0:5}function FG(e,t){return"object"==typeof e?EG(t,e.result,e.name,e.isScopeName):EG(t,e,t,!1)}function EG(e,t,n,r){const i=r?"Scope":"Package";switch(t){case 1:return`'${e}':: ${i} name '${n}' cannot be empty`;case 2:return`'${e}':: ${i} name '${n}' should be less than ${wG} characters`;case 3:return`'${e}':: ${i} name '${n}' cannot start with '.'`;case 4:return`'${e}':: ${i} name '${n}' cannot start with '_'`;case 5:return`'${e}':: ${i} name '${n}' contains invalid characters`;case 0:return _n.fail();default:_n.assertNever(t)}}(e=>{class t{constructor(e){this.text=e}getText(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)}getLength(){return this.text.length}getChangeRange(){}}e.fromString=function(e){return new t(e)}})(TG||(TG={}));var PG=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(PG||{}),AG=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(AG||{}),IG=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(IG||{}),OG={},LG=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(LG||{}),jG=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(jG||{}),RG=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(RG||{}),MG=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(MG||{}),BG=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(BG||{}),JG=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(JG||{}),zG=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(zG||{});function qG(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var UG=qG("\n"),VG=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(VG||{}),WG=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(WG||{}),$G=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))($G||{}),HG=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(HG||{}),KG=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(KG||{}),GG=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(GG||{}),XG=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(XG||{}),QG=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(QG||{}),YG=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(YG||{}),ZG=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(ZG||{}),eX=hs(99,!0),tX=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(tX||{});function nX(e){switch(e.kind){case 261:return Em(e)&&Qc(e)?7:1;case 170:case 209:case 173:case 172:case 304:case 305:case 175:case 174:case 177:case 178:case 179:case 263:case 219:case 220:case 300:case 292:return 1;case 169:case 265:case 266:case 188:return 2;case 347:return void 0===e.name?3:2;case 307:case 264:return 3;case 268:return cp(e)||1===ZM(e)?5:4;case 267:case 276:case 277:case 272:case 273:case 278:case 279:return 7;case 308:return 5}return 7}function rX(e){const t=(e=nQ(e)).parent;return 308===e.kind?1:jE(t)||BE(t)||VE(t)||LE(t)||wE(t)||TE(t)&&e===t.name?7:iX(e)?function(e){const t=167===e.kind?e:CN(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&272===t.parent.kind?7:4}(e):_h(e)?nX(t):t_(e)&&dc(e,Zt(fP,Mu,mP))?7:function(e){fb(e)&&(e=e.parent);switch(e.kind){case 110:return!bm(e);case 198:return!0}switch(e.parent.kind){case 184:return!0;case 206:return!e.parent.isTypeOf;case 234:return wf(e.parent)}return!1}(e)?2:function(e){return function(e){let t=e,n=!0;if(167===t.parent.kind){for(;t.parent&&167===t.parent.kind;)t=t.parent;n=t.right===e}return 184===t.parent.kind&&!n}(e)||function(e){let t=e,n=!0;if(212===t.parent.kind){for(;t.parent&&212===t.parent.kind;)t=t.parent;n=t.name===e}if(!n&&234===t.parent.kind&&299===t.parent.parent.kind){const e=t.parent.parent.parent;return 264===e.kind&&119===t.parent.parent.token||265===e.kind&&96===t.parent.parent.token}return!1}(e)}(e)?4:DN(t)?(_n.assert(HP(t.parent)),2):sF(t)?3:1}function iX(e){if(!e.parent)return!1;for(;167===e.parent.kind;)e=e.parent;return Dm(e.parent)&&e.parent.moduleReference===e}function oX(e,t=!1,n=!1){return fX(e,yF,uX,t,n)}function aX(e,t=!1,n=!1){return fX(e,vF,uX,t,n)}function sX(e,t=!1,n=!1){return fX(e,R_,uX,t,n)}function cX(e,t=!1,n=!1){return fX(e,bF,dX,t,n)}function lX(e,t=!1,n=!1){return fX(e,FN,uX,t,n)}function _X(e,t=!1,n=!1){return fX(e,xu,pX,t,n)}function uX(e){return e.expression}function dX(e){return e.tag}function pX(e){return e.tagName}function fX(e,t,n,r,i){let o=r?function(e){return SX(e)||TX(e)?e.parent:e}(e):mX(e);return i&&(o=PA(o)),!!o&&!!o.parent&&t(o.parent)&&n(o.parent)===o}function mX(e){return SX(e)?e.parent:e}function gX(e,t){for(;e;){if(257===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}}function hX(e,t){return!!gF(e.expression)&&e.expression.name.text===t}function yX(e){var t;return _N(e)&&(null==(t=et(e.parent,wl))?void 0:t.label)===e}function vX(e){var t;return _N(e)&&(null==(t=et(e.parent,lE))?void 0:t.label)===e}function bX(e){return vX(e)||yX(e)}function xX(e){var t;return(null==(t=et(e.parent,wu))?void 0:t.tagName)===e}function kX(e){var t;return(null==(t=et(e.parent,CN))?void 0:t.right)===e}function SX(e){var t;return(null==(t=et(e.parent,gF))?void 0:t.name)===e}function TX(e){var t;return(null==(t=et(e.parent,hF))?void 0:t.argumentExpression)===e}function CX(e){var t;return(null==(t=et(e.parent,bE))?void 0:t.name)===e}function wX(e){var t;return _N(e)&&(null==(t=et(e.parent,i_))?void 0:t.name)===e}function DX(e){switch(e.parent.kind){case 173:case 172:case 304:case 307:case 175:case 174:case 178:case 179:case 268:return wc(e.parent)===e;case 213:return e.parent.argumentExpression===e;case 168:return!0;case 202:return 200===e.parent.parent.kind;default:return!1}}function NX(e){return Tm(e.parent.parent)&&Cm(e.parent.parent)===e}function FX(e){for(Fg(e)&&(e=e.parent.parent);;){if(!(e=e.parent))return;switch(e.kind){case 308:case 175:case 174:case 263:case 219:case 178:case 179:case 264:case 265:case 267:case 268:return e}}}function EX(e){switch(e.kind){case 308:return _O(e)?"module":"script";case 268:return"module";case 264:case 232:return"class";case 265:return"interface";case 266:case 339:case 347:return"type";case 267:return"enum";case 261:return t(e);case 209:return t(Zh(e));case 220:case 263:case 219:return"function";case 178:return"getter";case 179:return"setter";case 175:case 174:return"method";case 304:const{initializer:n}=e;return i_(n)?"method":"property";case 173:case 172:case 305:case 306:return"property";case 182:return"index";case 181:return"construct";case 180:return"call";case 177:case 176:return"constructor";case 169:return"type parameter";case 307:return"enum member";case 170:return Fv(e,31)?"property":"parameter";case 272:case 277:case 282:case 275:case 281:return"alias";case 227:const r=ng(e),{right:i}=e;switch(r){case 7:case 8:case 9:case 0:default:return"";case 1:case 2:const e=EX(i);return""===e?"const":e;case 3:case 5:return SF(i)?"method":"property";case 4:return"property";case 6:return"local class"}case 80:return wE(e.parent)?"alias":"";case 278:const o=EX(e.expression);return""===o?"const":o;default:return""}function t(e){return af(e)?"const":cf(e)?"let":"var"}}function PX(e){switch(e.kind){case 110:return!0;case 80:return pv(e)&&170===e.parent.kind;default:return!1}}var AX=/^\/\/\/\s*=n}function MX(e,t,n){return JX(e.pos,e.end,t,n)}function BX(e,t,n,r){return JX(e.getStart(t),e.end,n,r)}function JX(e,t,n,r){return Math.max(e,n)e.kind===t))}function HX(e){const t=y(e.parent.getChildren(),(t=>tA(t)&&Yb(t,e)));return _n.assert(!t||k(t.getChildren(),e)),t}function KX(e){return 90===e.kind}function GX(e){return 86===e.kind}function XX(e){return 100===e.kind}function QX(e,t){if(16777216&e.flags)return;const n=bZ(e,t);if(n)return n;const r=function(e){let t;return dc(e,(e=>(x_(e)&&(t=e),!CN(e.parent)&&!x_(e.parent)&&!y_(e.parent)))),t}(e);return r&&t.getTypeAtLocation(r)}function YX(e,t){if(!t)switch(e.kind){case 264:case 232:return function(e){if(Tc(e))return e.name;if(gE(e)){const t=e.modifiers&&y(e.modifiers,KX);if(t)return t}if(jF(e)){const t=y(e.getChildren(),GX);if(t)return t}}(e);case 263:case 219:return function(e){if(Tc(e))return e.name;if(mE(e)){const t=y(e.modifiers,KX);if(t)return t}if(SF(e)){const t=y(e.getChildren(),XX);if(t)return t}}(e);case 177:return e}if(Tc(e))return e.name}function ZX(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(OE(e.importClause.namedBindings)){const t=ve(e.importClause.namedBindings.elements);if(!t)return;return t.name}if(AE(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function eQ(e,t){if(e.exportClause){if(ME(e.exportClause)){if(!ve(e.exportClause.elements))return;return e.exportClause.elements[0].name}if(IE(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function tQ(e,t){const{parent:n}=e;if(e_(e)&&(t||90!==e.kind)?FI(n)&&k(n.modifiers,e):86===e.kind?gE(n)||jF(e):100===e.kind?mE(n)||SF(e):120===e.kind?hE(n):94===e.kind?vE(n):156===e.kind?yE(n):145===e.kind||144===e.kind?bE(n):102===e.kind?TE(n):139===e.kind?jN(n):153===e.kind&&RN(n)){const e=YX(n,t);if(e)return e}if((115===e.kind||87===e.kind||121===e.kind)&&fE(n)&&1===n.declarations.length){const e=n.declarations[0];if(_N(e.name))return e.name}if(156===e.kind){if(wE(n)&&n.isTypeOnly){const e=ZX(n.parent,t);if(e)return e}if(RE(n)&&n.isTypeOnly){const e=eQ(n,t);if(e)return e}}if(130===e.kind){if(LE(n)&&n.propertyName||BE(n)&&n.propertyName||AE(n)||IE(n))return n.name;if(RE(n)&&n.exportClause&&IE(n.exportClause))return n.exportClause.name}if(102===e.kind&&CE(n)){const e=ZX(n,t);if(e)return e}if(95===e.kind){if(RE(n)){const e=eQ(n,t);if(e)return e}if(jE(n))return PA(n.expression)}if(149===e.kind&&VE(n))return n.expression;if(161===e.kind&&(CE(n)||RE(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((96===e.kind||119===e.kind)&&oP(n)&&n.token===e.kind){const e=function(e){if(1===e.types.length)return e.types[0].expression}(n);if(e)return e}if(96===e.kind){if(DN(n)&&n.constraint&&qN(n.constraint))return n.constraint.typeName;if(eF(n)&&qN(n.extendsType))return n.extendsType.typeName}if(140===e.kind&&tF(n))return n.typeParameter.name;if(103===e.kind&&DN(n)&&aF(n.parent))return n.name;if(143===e.kind&&iF(n)&&143===n.operator&&qN(n.type))return n.type.typeName;if(148===e.kind&&iF(n)&&148===n.operator&&HN(n.type)&&qN(n.type.elementType))return n.type.elementType.typeName;if(!t){if((105===e.kind&&vF(n)||116===e.kind&&DF(n)||114===e.kind&&wF(n)||135===e.kind&&NF(n)||127===e.kind&&OF(n)||91===e.kind&&CF(n))&&n.expression)return PA(n.expression);if((103===e.kind||104===e.kind)&&PF(n)&&n.operatorToken===e)return PA(n.right);if(130===e.kind&&BF(n)&&qN(n.type))return n.type.typeName;if(103===e.kind&&nE(n)||165===e.kind&&rE(n))return PA(n.expression)}return e}function nQ(e){return tQ(e,!1)}function rQ(e){return tQ(e,!0)}function iQ(e,t){return oQ(e,t,(e=>qh(e)||wh(e.kind)||uN(e)))}function oQ(e,t,n){return sQ(e,t,!1,n,!1)}function aQ(e,t){return sQ(e,t,!0,void 0,!1)}function sQ(e,t,n,r,i){let o,a=e;for(;;){const i=a.getChildren(e),c=Te(i,t,((e,t)=>t),((o,a)=>{const c=i[o].getEnd();if(ct?1:s(i[o],l,c)?i[o-1]&&s(i[o-1])?1:0:r&&l===t&&i[o-1]&&i[o-1].getEnd()===t&&s(i[o-1])?1:-1}));if(o)return o;if(!(c>=0&&i[c]))return a;a=i[c]}function s(a,s,c){if(c??(c=a.getEnd()),ct)return!1;if(tn.getStart(e)&&t(r.pos<=e.pos&&r.end>e.end||r.pos===e.end)&&DQ(r,n)?t(r):void 0))}(t)}function uQ(e,t,n,r){const i=function i(o){if(dQ(o)&&1!==o.kind)return o;const a=o.getChildren(t),s=Te(a,e,((e,t)=>t),((t,n)=>e=a[t-1].end?0:1:-1));if(s>=0&&a[s]){const n=a[s];if(e=e||!DQ(n,t)||hQ(n)){const e=fQ(a,s,t,o.kind);return e?!r&&Cu(e)&&e.getChildren(t).length?i(e):pQ(e,t):void 0}return i(n)}}_n.assert(void 0!==n||308===o.kind||1===o.kind||Cu(o));const c=fQ(a,a.length,t,o.kind);return c&&pQ(c,t)}(n||t);return _n.assert(!(i&&hQ(i))),i}function dQ(e){return Pl(e)&&!hQ(e)}function pQ(e,t){if(dQ(e))return e;const n=e.getChildren(t);if(0===n.length)return e;const r=fQ(n,n.length,t,e.kind);return r&&pQ(r,t)}function fQ(e,t,n,r){for(let i=t-1;i>=0;i--){if(hQ(e[i]))0!==i||12!==r&&286!==r||_n.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(DQ(e[i],n))return e[i]}}function mQ(e,t,n=uQ(t,e)){if(n&&Vl(n)){const r=n.getStart(e),i=n.getEnd();if(rn.getStart(e)}function vQ(e,t){const n=aQ(e,t);return!!KD(n)||(!(19!==n.kind||!tP(n.parent)||!WE(n.parent.parent))||!(30!==n.kind||!xu(n.parent)||!WE(n.parent.parent)))}function bQ(e,t){return function(n){for(;n;)if(n.kind>=286&&n.kind<=295||12===n.kind||30===n.kind||32===n.kind||80===n.kind||20===n.kind||19===n.kind||44===n.kind)n=n.parent;else{if(285!==n.kind)return!1;if(t>n.getStart(e))return!0;n=n.parent}return!1}(aQ(e,t))}function xQ(e,t,n){const r=Ea(e.kind),i=Ea(t),o=e.getFullStart(),a=n.text.lastIndexOf(i,o);if(-1===a)return;if(n.text.lastIndexOf(r,o-1)!!e.typeParameters&&e.typeParameters.length>=t))}function TQ(e,t){if(-1===t.text.lastIndexOf("<",e?e.pos:t.text.length))return;let n=e,r=0,i=0;for(;n;){switch(n.kind){case 30:if(n=uQ(n.getFullStart(),t),n&&29===n.kind&&(n=uQ(n.getFullStart(),t)),!n||!_N(n))return;if(!r)return _h(n)?void 0:{called:n,nTypeArguments:i};r--;break;case 50:r=3;break;case 49:r=2;break;case 32:r++;break;case 20:if(n=xQ(n,19,t),!n)return;break;case 22:if(n=xQ(n,21,t),!n)return;break;case 24:if(n=xQ(n,23,t),!n)return;break;case 28:i++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(x_(n))break;return}n=uQ(n.getFullStart(),t)}}function CQ(e,t,n){return Fde.getRangeOfEnclosingComment(e,t,void 0,n)}function wQ(e,t){return!!dc(aQ(e,t),DP)}function DQ(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function NQ(e,t=0){const n=[],r=uu(e)?ac(e)&~t:0;return 2&r&&n.push("private"),4&r&&n.push("protected"),1&r&&n.push("public"),(256&r||ON(e))&&n.push("static"),64&r&&n.push("abstract"),32&r&&n.push("export"),65536&r&&n.push("deprecated"),33554432&e.flags&&n.push("declare"),278===e.kind&&n.push("export"),n.length>0?n.join(","):""}function FQ(e){return 184===e.kind||214===e.kind?e.typeArguments:i_(e)||264===e.kind||265===e.kind?e.typeParameters:void 0}function EQ(e){return 2===e||3===e}function PQ(e){return!(11!==e&&14!==e&&!jl(e))}function AQ(e,t,n){return!!(32&t.flags)&&e.isEmptyAnonymousObjectType(n)}function IQ(e){if(!e.isIntersection())return!1;const{types:t,checker:n}=e;return 2===t.length&&(AQ(n,t[0],t[1])||AQ(n,t[1],t[0]))}function OQ(e,t,n){return jl(e.kind)&&e.getStart(n){const n=cJ(t);return!e[n]&&(e[n]=!0)}}function eY(e){return e.getText(0,e.getLength())}function tY(e,t){let n="";for(let r=0;r!(t.isDeclarationFile||e.isSourceFileFromExternalLibrary(t)||!t.externalModuleIndicator&&!t.commonJsModuleIndicator)))}function oY(e){return e.getSourceFiles().some((t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator))}function aY(e){return!!e.module||xk(e)>=2||!!e.noEmit}function sY(e,t){return{fileExists:t=>e.fileExists(t),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:Ve(t,t.readFile),useCaseSensitiveFileNames:Ve(t,t.useCaseSensitiveFileNames)||e.useCaseSensitiveFileNames,getSymlinkCache:Ve(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:Ve(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var t;return null==(t=e.getModuleResolutionCache())?void 0:t.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:Ve(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getRedirectFromSourceFile:t=>e.getRedirectFromSourceFile(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),getNearestAncestorDirectoryWithPackageJson:Ve(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory(),getDefaultResolutionModeForFile:t=>e.getDefaultResolutionModeForFile(t),getModeForResolutionAtIndex:(t,n)=>e.getModeForResolutionAtIndex(t,n)}}function cY(e,t){return{...sY(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function lY(e){return 2===e||e>=3&&e<=99||100===e}function _Y(e,t,n,r,i){return vw.createImportDeclaration(void 0,e||t?vw.createImportClause(i?156:void 0,e,t&&t.length?vw.createNamedImports(t):void 0):void 0,"string"==typeof n?uY(n,r):n,void 0)}function uY(e,t){return vw.createStringLiteral(e,0===t)}var dY=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(dY||{});function pY(e,t){return Um(e,t)?1:0}function fY(e,t){if(t.quotePreference&&"auto"!==t.quotePreference)return"single"===t.quotePreference?0:1;{const t=Nm(e)&&e.imports&&y(e.imports,(e=>HD(e)&&!ty(e.parent)));return t?pY(t,e):1}}function mY(e){switch(e){case 0:return"'";case 1:return'"';default:return _n.assertNever(e)}}function gY(e){const t=hY(e);return void 0===t?void 0:gc(t)}function hY(e){return"default"!==e.escapedName?e.escapedName:d(e.declarations,(e=>{const t=wc(e);return t&&80===t.kind?t.escapedText:void 0}))}function yY(e){return Ru(e)&&(VE(e.parent)||CE(e.parent)||eA(e.parent)||Lm(e.parent,!1)&&e.parent.arguments[0]===e||_f(e.parent)&&e.parent.arguments[0]===e)}function vY(e){return pF(e)&&uF(e.parent)&&_N(e.name)&&!e.propertyName}function bY(e,t){const n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)}function xY(e,t,n){if(e)for(;e.parent;){if(uP(e.parent)||!kY(n,e.parent,t))return e;e=e.parent}}function kY(e,t,n){return As(e,t.getStart(n))&&t.getEnd()<=Es(e)}function SY(e,t){return FI(e)?y(e.modifiers,(e=>e.kind===t)):void 0}function TY(e,t,n,r,i){var o;const a=244===(Xe(n)?n[0]:n).kind?zm:Sp,s=C(t.statements,a),{comparer:c,isSorted:l}=f_e.getOrganizeImportsStringComparerWithDetection(s,i),_=Xe(n)?le(n,((e,t)=>f_e.compareImportsOrRequireStatements(e,t,c))):[n];if(null==s?void 0:s.length)if(_n.assert(Nm(t)),s&&l)for(const n of _){const r=f_e.getImportDeclarationInsertionIndex(s,n,c);if(0===r){const r=s[0]===t.statements[0]?{leadingTriviaOption:ede.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,s[0],n,!1,r)}else{const i=s[r-1];e.insertNodeAfter(t,i,n)}}else{const n=he(s);n?e.insertNodesAfter(t,n,_):e.insertNodesAtTopOfFile(t,_,r)}else if(Nm(t))e.insertNodesAtTopOfFile(t,_,r);else for(const n of _)e.insertStatementsInNewFile(t.fileName,[n],null==(o=uc(n))?void 0:o.getSourceFile())}function CY(e,t){return _n.assert(e.isTypeOnly),tt(e.getChildAt(0,t),QQ)}function wY(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function DY(e,t,n){return(n?gt:mt)(e.fileName,t.fileName)&&wY(e.textSpan,t.textSpan)}function NY(e){return(t,n)=>DY(t,n,e)}function FY(e,t){if(e)for(let n=0;n!!NN(e)||!(pF(e)||uF(e)||dF(e))&&"quit"))}var LY=new Map;function jY(e){return e=e||Wu,LY.has(e)||LY.set(e,function(e){const t=10*e;let n,r,i,o;u();const a=e=>c(e,17);return{displayParts:()=>{const e=n.length&&n[n.length-1].text;return o>t&&e&&"..."!==e&&(Ua(e.charCodeAt(e.length-1))||n.push(RY(" ",16)),n.push(RY("...",15))),n},writeKeyword:e=>c(e,5),writeOperator:e=>c(e,12),writePunctuation:e=>c(e,15),writeTrailingSemicolon:e=>c(e,15),writeSpace:e=>c(e,16),writeStringLiteral:e=>c(e,8),writeParameter:e=>c(e,13),writeProperty:e=>c(e,14),writeLiteral:e=>c(e,8),writeSymbol:l,writeLine:_,write:a,writeComment:a,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:_t,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:u};function s(){if(!(o>t)&&r){const e=Iy(i);e&&(o+=e.length,n.push(RY(e,16))),r=!1}}function c(e,r){o>t||(s(),o+=e.length,n.push(RY(e,r)))}function l(e,r){o>t||(s(),o+=e.length,n.push(function(e,t){return RY(e,n(t));function n(e){const t=e.flags;return 3&t?OY(e)?13:9:4&t||32768&t||65536&t?14:8&t?19:16&t?20:32&t?1:64&t?4:384&t?2:1536&t?11:8192&t?10:262144&t?18:524288&t||2097152&t?0:17}}(e,r)))}function _(){o>t||(o+=1,n.push(ZY()),r=!0)}function u(){n=[],r=!0,i=0,o=0}}(e)),LY.get(e)}function RY(e,t){return{text:e,kind:VG[t]}}function MY(){return RY(" ",16)}function BY(e){return RY(Ea(e),5)}function JY(e){return RY(Ea(e),15)}function zY(e){return RY(Ea(e),12)}function qY(e){return RY(e,13)}function UY(e){return RY(e,14)}function VY(e){const t=Pa(e);return void 0===t?WY(e):BY(t)}function WY(e){return RY(e,17)}function $Y(e){return RY(e,0)}function HY(e){return RY(e,18)}function KY(e){return RY(e,24)}function GY(e){return RY(e,22)}function XY(e,t){var n;const r=[GY(`{@${gP(e)?"link":hP(e)?"linkcode":"linkplain"} `)];if(e.name){const i=null==t?void 0:t.getSymbolAtLocation(e.name),o=i&&t?aZ(i,t):void 0,a=function(e){let t=e.indexOf("://");if(0===t){for(;t"===e[n]&&t--,n++,!t)return n}return 0}(e.text),s=Xd(e.name)+e.text.slice(0,a),c=function(e){let t=0;if(124===e.charCodeAt(t++)){for(;t{e.writeType(t,n,17408|r,s,i,o,a)}),i)}function nZ(e,t,n,r,i=0){return eZ((o=>{e.writeSymbol(t,n,r,8|i,o)}))}function rZ(e,t,n,r=0,i,o,a){return r|=25632,eZ((s=>{e.writeSignature(t,n,r,void 0,s,i,o,a)}),i)}function iZ(e){return!!e.parent&&Bl(e.parent)&&e.parent.propertyName===e}function oZ(e,t){return kS(e,t.getScriptKind&&t.getScriptKind(e))}function aZ(e,t){let n=e;for(;sZ(n)||Qu(n)&&n.links.target;)n=Qu(n)&&n.links.target?n.links.target:sx(n,t);return n}function sZ(e){return!!(2097152&e.flags)}function cZ(e,t){return lJ(sx(e,t))}function lZ(e,t){for(;Ua(e.charCodeAt(t));)t+=1;return t}function _Z(e,t){for(;t>-1&&Va(e.charCodeAt(t));)t-=1;return t+1}function uZ(e,t){const n=e.getSourceFile();!function(e,t){const n=e.getFullStart(),r=e.getStart();for(let e=n;e=0),o}function fZ(e,t,n,r,i){as(n.text,e.pos,hZ(t,n,r,i,Bw))}function mZ(e,t,n,r,i){ss(n.text,e.end,hZ(t,n,r,i,qw))}function gZ(e,t,n,r,i){ss(n.text,e.pos,hZ(t,n,r,i,Bw))}function hZ(e,t,n,r,i){return(o,a,s,c)=>{3===s?(o+=2,a-=2):o+=2,i(e,n||s,t.text.slice(o,a),void 0!==r?r:c)}}function yZ(e,t){if(Kt(e,t))return 0;let n=e.indexOf(" "+t);return-1===n&&(n=e.indexOf("."+t)),-1===n&&(n=e.indexOf('"'+t)),-1===n?-1:n+1}function vZ(e){return PF(e)&&28===e.operatorToken.kind||mF(e)||(BF(e)||JF(e))&&mF(e.expression)}function bZ(e,t,n){const r=ih(e.parent);switch(r.kind){case 215:return t.getContextualType(r,n);case 227:{const{left:i,operatorToken:o,right:a}=r;return kZ(o.kind)?t.getTypeAtLocation(e===a?i:a):t.getContextualType(e,n)}case 297:return CZ(r,t);default:return t.getContextualType(e,n)}}function xZ(e,t,n){const r=fY(e,t),i=JSON.stringify(n);return 0===r?`'${Ey(i).replace(/'/g,(()=>"\\'")).replace(/\\"/g,'"')}'`:i}function kZ(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function SZ(e){switch(e.kind){case 11:case 15:case 229:case 216:return!0;default:return!1}}function TZ(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function CZ(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}var wZ="anonymous function";function DZ(e,t,n,r){const i=n.getTypeChecker();let o=!0;const a=()=>o=!1,s=i.typeToTypeNode(e,t,1,8,{trackSymbol:(e,t,n)=>(o=o&&0===i.isSymbolAccessible(e,t,n,!1).accessibility,!o),reportInaccessibleThisError:a,reportPrivateInBaseOfClassExpression:a,reportInaccessibleUniqueSymbolError:a,moduleResolverHost:cY(n,r)});return o?s:void 0}function NZ(e){return 180===e||181===e||182===e||172===e||174===e}function FZ(e){return 263===e||177===e||175===e||178===e||179===e}function EZ(e){return 268===e}function PZ(e){return 244===e||245===e||247===e||252===e||253===e||254===e||258===e||260===e||173===e||266===e||273===e||272===e||279===e||271===e||278===e}var AZ=Zt(NZ,FZ,EZ,PZ);function IZ(e,t,n){const r=dc(t,(t=>t.end!==e?"quit":AZ(t.kind)));return!!r&&function(e,t){const n=e.getLastToken(t);if(n&&27===n.kind)return!1;if(NZ(e.kind)){if(n&&28===n.kind)return!1}else if(EZ(e.kind)){const n=ye(e.getChildren(t));if(n&&xE(n))return!1}else if(FZ(e.kind)){const n=ye(e.getChildren(t));if(n&&Bf(n))return!1}else if(!PZ(e.kind))return!1;if(247===e.kind)return!0;const r=_Q(e,dc(e,(e=>!e.parent)),t);return!r||20===r.kind||t.getLineAndCharacterOfPosition(e.getEnd()).line!==t.getLineAndCharacterOfPosition(r.getStart(t)).line}(r,n)}function OZ(e){let t=0,n=0;return rO(e,(function r(i){if(PZ(i.kind)){const r=i.getLastToken(e);27===(null==r?void 0:r.kind)?t++:n++}else if(NZ(i.kind)){const r=i.getLastToken(e);if(27===(null==r?void 0:r.kind))t++;else if(r&&28!==r.kind){qa(e,r.getStart(e)).line!==qa(e,Gp(e,r.end).start).line&&n++}}return t+n>=5||rO(i,r)})),0===t&&n<=1||t/n>.2}function LZ(e,t){return JZ(e,e.getDirectories,t)||[]}function jZ(e,t,n,r,i){return JZ(e,e.readDirectory,t,n,r,i)||s}function RZ(e,t){return JZ(e,e.fileExists,t)}function MZ(e,t){return BZ((()=>Eb(t,e)))||!1}function BZ(e){try{return e()}catch{return}}function JZ(e,t,...n){return BZ((()=>t&&t.apply(e,n)))}function zZ(e,t){const n=[];return OM(t,e,(e=>{const r=Ro(e,"package.json");RZ(t,r)&&n.push(r)})),n}function qZ(e,t){let n;return OM(t,e,(e=>"node_modules"===e||(n=HU(e,(e=>RZ(t,e)),"package.json"),!!n||void 0))),n}function UZ(e,t){if(!t.readFile)return;const n=["dependencies","devDependencies","optionalDependencies","peerDependencies"],r=Fb(t.readFile(e)||""),i={};if(r)for(const e of n){const t=r[e];if(!t)continue;const n=new Map;for(const e in t)n.set(e,t[e]);i[e]=n}const o=[[1,i.dependencies],[2,i.devDependencies],[8,i.optionalDependencies],[4,i.peerDependencies]];return{...i,parseable:!!r,fileName:e,get:a,has:(e,t)=>!!a(e,t)};function a(e,t=15){for(const[n,r]of o)if(r&&t&n){const t=r.get(e);if(void 0!==t)return t}}}function VZ(e,t,n){const r=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(e.fileName)||function(e,t){if(!t.fileExists)return[];const n=[];return OM(t,Fo(e),(e=>{const r=Ro(e,"package.json");if(t.fileExists(r)){const e=UZ(r,t);e&&n.push(e)}})),n}(e.fileName,n)).filter((e=>e.parseable));let i,o,a;return{allowsImportingAmbientModule:function(e,t){if(!r.length||!e.valueDeclaration)return!0;if(o){const t=o.get(e);if(void 0!==t)return t}else o=new Map;const n=Ey(e.getName());if(c(n))return o.set(e,!0),!0;const i=l(e.valueDeclaration.getSourceFile().fileName,t);if(void 0===i)return o.set(e,!0),!0;const a=s(i)||s(n);return o.set(e,a),a},getSourceFileInfo:function(e,t){if(!r.length)return{importable:!0,packageName:void 0};if(a){const t=a.get(e);if(void 0!==t)return t}else a=new Map;const n=l(e.fileName,t);if(!n){const t={importable:!0,packageName:n};return a.set(e,t),t}const i={importable:s(n),packageName:n};return a.set(e,i),i},allowsImportingSpecifier:function(e){if(!r.length||c(e))return!0;if(bo(e)||ho(e))return!0;return s(e)}};function s(e){const t=_(e);for(const e of r)if(e.has(t)||e.has(JM(t)))return!0;return!1}function c(t){return!!(Nm(e)&&Fm(e)&&FC.has(t)&&(void 0===i&&(i=WZ(e)),i))}function l(r,i){if(!r.includes("node_modules"))return;const o=uB.getNodeModulesPackageName(n.getCompilationSettings(),e,r,i,t);return o?bo(o)||ho(o)?void 0:_(o):void 0}function _(e){const t=Io(qM(e)).slice(1);return Kt(t[0],"@")?`${t[0]}/${t[1]}`:t[0]}}function WZ(e){return V(e.imports,(({text:e})=>FC.has(e)))}function $Z(e){return k(Io(e),"node_modules")}function HZ(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function KZ(e,t){const n=Te(t,qQ(e),at,vt);if(n>=0){const r=t[n];return _n.assertEqual(r.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),tt(r,HZ)}}function GZ(e,t){var n;let r=Te(t,e.start,(e=>e.start),yt);for(r<0&&(r=~r);(null==(n=t[r-1])?void 0:n.start)===e.start;)r--;const i=[],o=Es(e);for(;;){const n=et(t[r],HZ);if(!n||n.start>o)break;Os(e,n)&&i.push(n),r++}return i}function XZ({startPosition:e,endPosition:t}){return Hs(e,void 0===t?e:t)}function QZ(e,t){return dc(aQ(e,t.start),(n=>n.getStart(e)Es(t)?"quit":W_(n)&&wY(t,qQ(n,e))))}function YZ(e,t,n=at){return e?Xe(e)?n(N(e,t)):t(e,0):void 0}function ZZ(e){return Xe(e)?me(e):e}function e0(e,t,n){return"export="===e.escapedName||"default"===e.escapedName?t0(e)||n0(function(e){var t;return _n.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${_n.formatSymbolFlags(e.flags)}. Declarations: ${null==(t=e.declarations)?void 0:t.map((e=>{const t=_n.formatSyntaxKind(e.kind),n=Em(e),{expression:r}=e;return(n?"[JS]":"")+t+(r?` (expression: ${_n.formatSyntaxKind(r.kind)})`:"")})).join(", ")}.`)}(e),t,!!n):e.name}function t0(e){return d(e.declarations,(t=>{var n,r,i;if(jE(t))return null==(n=et(PA(t.expression),_N))?void 0:n.text;if(BE(t)&&2097152===t.symbol.flags)return null==(r=et(t.propertyName,_N))?void 0:r.text;const o=null==(i=et(wc(t),_N))?void 0:i.text;return o||(e.parent&&!Yu(e.parent)?e.parent.getName():void 0)}))}function n0(e,t,n){return r0(WS(Ey(e.name)),t,n)}function r0(e,t,n){const r=Eo(Rt(WS(e),"/index"));let i="",o=!0;const a=r.charCodeAt(0);fs(a,t)?(i+=String.fromCharCode(a),n&&(i=i.toUpperCase())):o=!1;for(let e=1;ee.length)return!1;for(let i=0;i(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(h0||{}),y0=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e[e.Module=4]="Module",e))(y0||{});function v0(e){let t=1;const n=We(),r=new Map,i=new Map;let o;const a={isUsableByFile:e=>e===o,isEmpty:()=>!n.size,clear:()=>{n.clear(),r.clear(),o=void 0},add:(e,s,c,l,_,u,d,p)=>{let f;if(e!==o&&(a.clear(),o=e),_){const t=WT(_.fileName);if(t){const{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:o}=t;if(f=UM(qM(_.fileName.substring(r+1,o))),Kt(e,_.path.substring(0,n))){const e=i.get(f),t=_.fileName.substring(0,r+1);if(e){n>e.indexOf(iM)&&i.set(f,t)}else i.set(f,t)}}}const m=1===u&&xb(s)||s,g=0===u||Yu(m)?gc(c):function(e,t,n){let r;return E0(e,t,n,((e,t)=>(r=t?[e,t]:e,!0))),_n.checkDefined(r)}(m,p,void 0),h="string"==typeof g?g:g[0],y="string"==typeof g?void 0:g[1],v=Ey(l.name),b=t++,x=sx(s,p),k=33554432&s.flags?void 0:s,S=33554432&l.flags?void 0:l;k&&S||r.set(b,[s,l]),n.add(function(e,t,n,r){const i=n||"";return`${e.length} ${lJ(sx(t,r))} ${e} ${i}`}(h,s,ws(v)?void 0:v,p),{id:b,symbolTableKey:c,symbolName:h,capitalizedSymbolName:y,moduleName:v,moduleFile:_,moduleFileName:null==_?void 0:_.fileName,packageName:f,exportKind:u,targetFlags:x.flags,isFromPackageJson:d,symbol:k,moduleSymbol:S})},get:(e,t)=>{if(e!==o)return;const r=n.get(t);return null==r?void 0:r.map(c)},search:(t,r,a,s)=>{if(t===o)return id(n,((t,n)=>{const{symbolName:o,ambientModuleName:l}=function(e){const t=e.indexOf(" "),n=e.indexOf(" ",t+1),r=parseInt(e.substring(0,t),10),i=e.substring(n+1),o=i.substring(0,r),a=i.substring(r+1),s=""===a?void 0:a;return{symbolName:o,ambientModuleName:s}}(n),_=r&&t[0].capitalizedSymbolName||o;if(a(_,t[0].targetFlags)){const r=t.map(c).filter(((n,r)=>function(t,n){if(!n||!t.moduleFileName)return!0;const r=e.getGlobalTypingsCacheLocation();if(r&&Kt(t.moduleFileName,r))return!0;const o=i.get(n);return!o||Kt(t.moduleFileName,o)}(n,t[r].packageName)));if(r.length){const e=s(r,_,!!l,n);if(void 0!==e)return e}}}))},releaseSymbols:()=>{r.clear()},onFileChanged:(e,t,n)=>(!l(e)||!l(t))&&(o&&o!==t.path||n&&WZ(e)!==WZ(t)||!ee(e.moduleAugmentations,t.moduleAugmentations)||!function(e,t){if(!ee(e.ambientModuleNames,t.ambientModuleNames))return!1;let n=-1,r=-1;for(const i of t.ambientModuleNames){const o=e=>_p(e)&&e.name.text===i;if(n=b(e.statements,o,n+1),r=b(t.statements,o,r+1),e.statements[n]!==t.statements[r])return!1}return!0}(e,t)?(a.clear(),!0):(o=t.path,!1))};return _n.isDebugging&&Object.defineProperty(a,"__cache",{value:n}),a;function c(t){if(t.symbol&&t.moduleSymbol)return t;const{id:n,exportKind:i,targetFlags:o,isFromPackageJson:a,moduleFileName:c}=t,[l,_]=r.get(n)||s;if(l&&_)return{symbol:l,moduleSymbol:_,moduleFileName:c,exportKind:i,targetFlags:o,isFromPackageJson:a};const u=(a?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),d=t.moduleSymbol||_||_n.checkDefined(t.moduleFile?u.getMergedSymbol(t.moduleFile.symbol):u.tryFindAmbientModule(t.moduleName)),p=t.symbol||l||_n.checkDefined(2===i?u.resolveExternalModuleSymbol(d):u.tryGetMemberInModuleExportsAndProperties(gc(t.symbolTableKey),d),`Could not find symbol '${t.symbolName}' by key '${t.symbolTableKey}' in module ${d.name}`);return r.set(n,[p,d]),{symbol:p,moduleSymbol:d,moduleFileName:c,exportKind:i,targetFlags:o,isFromPackageJson:a}}function l(e){return!(e.commonJsModuleIndicator||e.externalModuleIndicator||e.moduleAugmentations||e.ambientModuleNames)}}function b0(e,t,n,r,i,o,a,s){var c;if(!n){let n;const i=Ey(r.name);return FC.has(i)&&void 0!==(n=s0(t,e))?n===Kt(i,"node:"):!o||o.allowsImportingAmbientModule(r,a)||x0(t,i)}if(_n.assertIsDefined(n),t===n)return!1;const l=null==s?void 0:s.get(t.path,n.path,i,{});if(void 0!==(null==l?void 0:l.isBlockedByPackageJsonDependencies))return!l.isBlockedByPackageJsonDependencies||!!l.packageName&&x0(t,l.packageName);const _=My(a),u=null==(c=a.getGlobalTypingsCacheLocation)?void 0:c.call(a),d=!!uB.forEachFileNameOfModule(t.fileName,n.fileName,a,!1,(r=>{const i=e.getSourceFile(r);return(i===n||!i)&&function(e,t,n,r,i){const o=OM(i,t,(e=>"node_modules"===Eo(e)?e:void 0)),a=o&&Fo(n(o));return void 0===a||Kt(n(e),a)||!!r&&Kt(n(r),a)}(t.fileName,r,_,u,a)}));if(o){const e=d?o.getSourceFileInfo(n,a):void 0;return null==s||s.setBlockedByPackageJsonDependencies(t.path,n.path,i,{},null==e?void 0:e.packageName,!(null==e?void 0:e.importable)),!!(null==e?void 0:e.importable)||d&&!!(null==e?void 0:e.packageName)&&x0(t,e.packageName)}return d}function x0(e,t){return e.imports&&e.imports.some((e=>e.text===t||e.text.startsWith(t+"/")))}function k0(e,t,n,r,i){var o,a;const s=Ry(t),c=n.autoImportFileExcludePatterns&&S0(n,s);T0(e.getTypeChecker(),e.getSourceFiles(),c,t,((t,n)=>i(t,n,e,!1)));const l=r&&(null==(o=t.getPackageJsonAutoImportProvider)?void 0:o.call(t));if(l){const n=qn(),r=e.getTypeChecker();T0(l.getTypeChecker(),l.getSourceFiles(),c,t,((t,n)=>{(n&&!e.getSourceFile(n.fileName)||!n&&!r.resolveName(t.name,void 0,1536,!1))&&i(t,n,l,!0)})),null==(a=t.log)||a.call(t,"forEachExternalModuleToImportFrom autoImportProvider: "+(qn()-n))}}function S0(e,t){return R(e.autoImportFileExcludePatterns,(e=>{const n=mS(e,"","exclude");return n?yS(n,t):void 0}))}function T0(e,t,n,r,i){var o;const a=n&&C0(n,r);for(const t of e.getAmbientModules())t.name.includes("*")||n&&(null==(o=t.declarations)?void 0:o.every((e=>a(e.getSourceFile()))))||i(t,void 0);for(const n of t)Zp(n)&&!(null==a?void 0:a(n))&&i(e.getMergedSymbol(n.symbol),n)}function C0(e,t){var n;const r=null==(n=t.getSymlinkCache)?void 0:n.call(t).getSymlinkedDirectoriesByRealpath();return({fileName:n,path:i})=>{if(e.some((e=>e.test(n))))return!0;if((null==r?void 0:r.size)&&oM(n)){let o=Fo(n);return OM(t,Fo(i),(t=>{const i=r.get($o(t));if(i)return i.some((t=>e.some((e=>e.test(n.replace(o,t))))));o=Fo(o)}))??!1}return!1}}function w0(e,t){return t.autoImportFileExcludePatterns?C0(S0(t,Ry(e)),e):()=>!1}function D0(e,t,n,r,i){var o,a,s,c,l;const _=qn();null==(o=t.getPackageJsonAutoImportProvider)||o.call(t);const u=(null==(a=t.getCachedExportInfoMap)?void 0:a.call(t))||v0({getCurrentProgram:()=>n,getPackageJsonAutoImportProvider:()=>{var e;return null==(e=t.getPackageJsonAutoImportProvider)?void 0:e.call(t)},getGlobalTypingsCacheLocation:()=>{var e;return null==(e=t.getGlobalTypingsCacheLocation)?void 0:e.call(t)}});if(u.isUsableByFile(e.path))return null==(s=t.log)||s.call(t,"getExportInfoMap: cache hit"),u;null==(c=t.log)||c.call(t,"getExportInfoMap: cache miss or empty; calculating new results");let d=0;try{k0(n,t,r,!0,((t,n,r,o)=>{++d%100==0&&(null==i||i.throwIfCancellationRequested());const a=new Set,s=r.getTypeChecker(),c=N0(t,s);c&&F0(c.symbol,s)&&u.add(e.path,c.symbol,1===c.exportKind?"default":"export=",t,n,c.exportKind,o,s),s.forEachExportAndPropertyOfModule(t,((r,i)=>{r!==(null==c?void 0:c.symbol)&&F0(r,s)&&kx(a,i)&&u.add(e.path,r,i,t,n,0,o,s)}))}))}catch(e){throw u.clear(),e}return null==(l=t.log)||l.call(t,`getExportInfoMap: done in ${qn()-_} ms`),u}function N0(e,t){const n=t.resolveExternalModuleSymbol(e);if(n!==e){const e=t.tryGetMemberInModuleExports("default",n);return e?{symbol:e,exportKind:1}:{symbol:n,exportKind:2}}const r=t.tryGetMemberInModuleExports("default",e);if(r)return{symbol:r,exportKind:1}}function F0(e,t){return!(t.isUndefinedSymbol(e)||t.isUnknownSymbol(e)||$h(e)||Hh(e))}function E0(e,t,n,r){let i,o=e;const a=new Set;for(;o;){const e=t0(o);if(e){const t=r(e);if(t)return t}if("default"!==o.escapedName&&"export="!==o.escapedName){const e=r(o.name);if(e)return e}if(i=re(i,o),!kx(a,o))break;o=2097152&o.flags?t.getImmediateAliasedSymbol(o):void 0}for(const e of i??s)if(e.parent&&Yu(e.parent)){const t=r(n0(e.parent,n,!1),n0(e.parent,n,!0));if(t)return t}}function P0(){const e=hs(99,!1);function t(t,n,r){let i=0,o=0;const a=[],{prefix:s,pushTemplate:c}=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 _n.assertNever(e)}}(n);t=s+t;const l=s.length;c&&a.push(16),e.setText(t);let _=0;const u=[];let d=0;do{i=e.scan(),Ih(i)||(p(),o=i);const n=e.getTokenEnd();if(L0(e.getTokenStart(),n,l,R0(i),u),n>=t.length){const t=O0(e,i,he(a));void 0!==t&&(_=t)}}while(1!==i);function p(){switch(i){case 44:case 69:I0[o]||14!==e.reScanSlashToken()||(i=14);break;case 30:80===o&&d++;break;case 32:d>0&&d--;break;case 133:case 154:case 150:case 136:case 155:d>0&&!r&&(i=80);break;case 16:a.push(i);break;case 19:a.length>0&&a.push(i);break;case 20:if(a.length>0){const t=he(a);16===t?(i=e.reScanTemplateToken(!1),18===i?a.pop():_n.assertEqual(i,17,"Should have been a template middle.")):(_n.assertEqual(t,19,"Should have been an open brace"),a.pop())}break;default:if(!wh(i))break;(25===o||wh(o)&&wh(i)&&!function(e,t){if(!LQ(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}(o,i))&&(i=80)}}return{endOfLineState:_,spans:u}}return{getClassificationsForLine:function(e,n,r){return function(e,t){const n=[],r=e.spans;let i=0;for(let e=0;e=0){const e=t-i;e>0&&n.push({length:e,classification:4})}n.push({length:o,classification:j0(a)}),i=t+o}const o=t.length-i;o>0&&n.push({length:o,classification:4});return{entries:n,finalLexState:e.endOfLineState}}(t(e,n,r),e)},getEncodedLexicalClassifications:t}}var A0,I0=Re([80,11,9,10,14,110,46,47,22,24,20,112,97],(e=>e),(()=>!0));function O0(e,t,n){switch(t){case 11:{if(!e.isUnterminated())return;const t=e.getTokenText(),n=t.length-1;let r=0;for(;92===t.charCodeAt(n-r);)r++;if(!(1&r))return;return 34===t.charCodeAt(0)?3:2}case 3:return e.isUnterminated()?1:void 0;default:if(jl(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return _n.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return 16===n?6:void 0}}function L0(e,t,n,r,i){if(8===r)return;0===e&&n>0&&(e+=n);const o=t-e;o>0&&i.push(e-n,o,r)}function j0(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function R0(e){if(wh(e))return 3;if(function(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}(e)||function(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;default:return jl(e)?6:2}}function M0(e,t,n,r,i){return U0(J0(e,t,n,r,i))}function B0(e,t){switch(t){case 268:case 264:case 265:case 263:case 232:case 219:case 220:e.throwIfCancellationRequested()}}function J0(e,t,n,r,i){const o=[];return n.forEachChild((function a(s){if(s&&Js(i,s.pos,s.getFullWidth())){if(B0(t,s.kind),_N(s)&&!Nd(s)&&r.has(s.escapedText)){const t=e.getSymbolAtLocation(s),r=t&&z0(t,rX(s),e);r&&function(e,t,n){const r=t-e;_n.assert(r>0,`Classification had non-positive length of ${r}`),o.push(e),o.push(r),o.push(n)}(s.getStart(n),s.getEnd(),r)}s.forEachChild(a)}})),{spans:o,endOfLineState:0}}function z0(e,t,n){const r=e.getFlags();return 2885600&r?32&r?11:384&r?12:524288&r?16:1536&r?4&t||1&t&&function(e){return V(e.declarations,(e=>bE(e)&&1===ZM(e)))}(e)?14:void 0:2097152&r?z0(n.getAliasedSymbol(e),t,n):2&t?64&r?13:262144&r?15:void 0:void 0:void 0}function q0(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function U0(e){_n.assert(e.spans.length%3==0);const t=e.spans,n=[];for(let e=0;e])*)(\/>)?)?/m,i=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/g,o=t.text.substr(e,n),a=r.exec(o);if(!a)return!1;if(!a[3]||!(a[3]in Oi))return!1;let s=e;_(s,a[1].length),s+=a[1].length,c(s,a[2].length,10),s+=a[2].length,c(s,a[3].length,21),s+=a[3].length;const l=a[4];let u=s;for(;;){const e=i.exec(l);if(!e)break;const t=s+e.index+e[1].length;t>u&&(_(u,t-u),u=t),c(u,e[2].length,22),u+=e[2].length,e[3].length&&(_(u,e[3].length),u+=e[3].length),c(u,e[4].length,5),u+=e[4].length,e[5].length&&(_(u,e[5].length),u+=e[5].length),c(u,e[6].length,24),u+=e[6].length}s+=a[4].length,s>u&&_(u,s-u);a[5]&&(c(s,a[5].length,10),s+=a[5].length);const d=e+n;s=0),i>0){const t=n||m(e.kind,e);t&&c(r,i,t)}return!0}function m(e,t){if(wh(e))return 3;if((30===e||32===e)&&t&&FQ(t.parent))return 10;if(Dh(e)){if(t){const n=t.parent;if(64===e&&(261===n.kind||173===n.kind||170===n.kind||292===n.kind))return 5;if(227===n.kind||225===n.kind||226===n.kind||228===n.kind)return 5}return 10}if(9===e)return 4;if(10===e)return 25;if(11===e)return t&&292===t.parent.kind?24:6;if(14===e)return 6;if(jl(e))return 6;if(12===e)return 23;if(80===e){if(t){switch(t.parent.kind){case 264:return t.parent.name===t?11:void 0;case 169:return t.parent.name===t?15:void 0;case 265:return t.parent.name===t?13:void 0;case 267:return t.parent.name===t?12:void 0;case 268:return t.parent.name===t?14:void 0;case 170:return t.parent.name===t?_v(t)?3:17:void 0}if(Sl(t.parent))return 3}return 2}}function g(n){if(n&&zs(r,i,n.pos,n.getFullWidth())){B0(e,n.kind);for(const e of n.getChildren(t))f(e)||g(e)}}}function $0(e){return!!e.sourceFile}function H0(e,t,n){return K0(e,t,n)}function K0(e,t="",n,r){const i=new Map,o=Vt(!!e);function a(e){return"function"==typeof e.getCompilationSettings?e.getCompilationSettings():e}function s(e,t,n,r,i,o,a,s){return _(e,t,n,r,i,o,!0,a,s)}function c(e,t,n,r,i,o,s,c){return _(e,t,a(n),r,i,o,!1,s,c)}function l(e,t){const n=$0(e)?e:e.get(_n.checkDefined(t,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return _n.assert(void 0===t||!n||n.sourceFile.scriptKind===t,`Script kind should match provided ScriptKind:${t} and sourceFile.scriptKind: ${null==n?void 0:n.sourceFile.scriptKind}, !entry: ${!n}`),n}function _(e,t,o,s,c,_,u,d,p){var f,m,g,h;d=kS(e,d);const y=a(o),v=o===y?void 0:o,b=6===d?100:xk(y),x="object"==typeof p?p:{languageVersion:b,impliedNodeFormat:v&&JV(t,null==(h=null==(g=null==(m=null==(f=v.getCompilerHost)?void 0:f.call(v))?void 0:m.getModuleResolutionCache)?void 0:g.call(m))?void 0:h.getPackageJsonInfoCache(),v,y),setExternalModuleIndicator:mk(y),jsDocParsingMode:n};x.languageVersion=b,_n.assertEqual(n,x.jsDocParsingMode);const k=i.size,S=X0(s,x.impliedNodeFormat),T=B(i,S,(()=>new Map));if($n){i.size>k&&$n.instant($n.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:y.configFilePath,key:S});const e=!yO(t)&&id(i,((e,n)=>n!==S&&e.has(t)&&n));e&&$n.instant($n.Phase.Session,"documentRegistryBucketOverlap",{path:t,key1:e,key2:S})}const C=T.get(t);let w=C&&l(C,d);if(!w&&r){const e=r.getDocument(S,t);e&&e.scriptKind===d&&e.text===eY(c)&&(_n.assert(u),w={sourceFile:e,languageServiceRefCount:0},D())}if(w)w.sourceFile.version!==_&&(w.sourceFile=r7(w.sourceFile,c,_,c.getChangeRange(w.sourceFile.scriptSnapshot)),r&&r.setDocument(S,t,w.sourceFile)),u&&w.languageServiceRefCount++;else{const n=n7(e,c,x,_,!1,d);r&&r.setDocument(S,t,n),w={sourceFile:n,languageServiceRefCount:1},D()}return _n.assert(0!==w.languageServiceRefCount),w.sourceFile;function D(){if(C)if($0(C)){const e=new Map;e.set(C.sourceFile.scriptKind,C),e.set(d,w),T.set(t,e)}else C.set(d,w);else T.set(t,w)}}function u(e,t,n,r){const o=_n.checkDefined(i.get(X0(t,r))),a=o.get(e),s=l(a,n);s.languageServiceRefCount--,_n.assert(s.languageServiceRefCount>=0),0===s.languageServiceRefCount&&($0(a)?o.delete(e):(a.delete(n),1===a.size&&o.set(e,p(a.values(),at))))}return{acquireDocument:function(e,n,r,i,c,l){return s(e,Vo(e,t,o),n,G0(a(n)),r,i,c,l)},acquireDocumentWithKey:s,updateDocument:function(e,n,r,i,s,l){return c(e,Vo(e,t,o),n,G0(a(n)),r,i,s,l)},updateDocumentWithKey:c,releaseDocument:function(e,n,r,i){return u(Vo(e,t,o),G0(n),r,i)},releaseDocumentWithKey:u,getKeyForCompilationSettings:G0,getDocumentRegistryBucketKeyWithMode:X0,reportStats:function(){const e=Ie(i.keys()).filter((e=>e&&"_"===e.charAt(0))).map((e=>{const t=i.get(e),n=[];return t.forEach(((e,t)=>{$0(e)?n.push({name:t,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach(((e,r)=>n.push({name:t,scriptKind:r,refCount:e.languageServiceRefCount})))})),n.sort(((e,t)=>t.refCount-e.refCount)),{bucket:e,sourceFiles:n}}));return JSON.stringify(e,void 0,2)},getBuckets:()=>i}}function G0(e){return AR(e,WO)}function X0(e,t){return t?`${e}|${t}`:e}function Q0(e,t,n,r,i,o,a){const s=Ry(r),c=Vt(s),l=Y0(t,n,c,a),_=Y0(n,t,c,a);return ede.ChangeTracker.with({host:r,formatContext:i,preferences:o},(i=>{!function(e,t,n,r,i,o,a){const{configFile:s}=e.getCompilerOptions();if(!s)return;const c=Fo(s.fileName),l=Wf(s);if(!l)return;function _(e){const t=fF(e.initializer)?e.initializer.elements:[e.initializer];let n=!1;for(const e of t)n=u(e)||n;return n}function u(e){if(!HD(e))return!1;const r=Z0(c,e.text),i=n(r);return void 0!==i&&(t.replaceRangeWithText(s,r1(e,s),d(i)),!0)}function d(e){return ia(c,e,!a)}i1(l,((e,n)=>{switch(n){case"files":case"include":case"exclude":{if(_(e)||"include"!==n||!fF(e.initializer))return;const l=R(e.initializer.elements,(e=>HD(e)?e.text:void 0));if(0===l.length)return;const u=hS(c,[],l,a,o);return void(yS(_n.checkDefined(u.includeFilePattern),a).test(r)&&!yS(_n.checkDefined(u.includeFilePattern),a).test(i)&&t.insertNodeAfter(s,ye(e.initializer.elements),vw.createStringLiteral(d(i))))}case"compilerOptions":return void i1(e.initializer,((e,t)=>{const n=hL(t);_n.assert("listOrElement"!==(null==n?void 0:n.type)),n&&(n.isFilePath||"list"===n.type&&n.element.isFilePath)?_(e):"paths"===t&&i1(e.initializer,(e=>{if(fF(e.initializer))for(const t of e.initializer.elements)u(t)}))}))}}))}(e,i,l,t,n,r.getCurrentDirectory(),s),function(e,t,n,r,i,o){const a=e.getSourceFiles();for(const s of a){const c=n(s.fileName),l=c??s.fileName,_=Fo(l),u=r(s.fileName),d=u||s.fileName,p=Fo(d),f=void 0!==c||void 0!==u;n1(s,t,(e=>{if(!bo(e))return;const t=Z0(p,e),r=n(t);return void 0===r?void 0:Ho(ia(_,r,o))}),(t=>{const r=e.getTypeChecker().getSymbolAtLocation(t);if((null==r?void 0:r.declarations)&&r.declarations.some((e=>cp(e))))return;const o=void 0!==u?t1(t,$R(t.text,d,e.getCompilerOptions(),i),n,a):e1(r,t,s,e,i,n);return void 0!==o&&(o.updated||f&&bo(t.text))?uB.updateModuleSpecifier(e.getCompilerOptions(),s,l,o.newFileName,sY(e,i),t.text):void 0}))}}(e,i,l,_,r,c)}))}function Y0(e,t,n,r){const i=n(e);return e=>{const o=r&&r.tryGetSourcePosition({fileName:e,pos:0}),a=function(e){if(n(e)===i)return t;const r=tS(e,i,n);return void 0===r?void 0:t+"/"+r}(o?o.fileName:e);return o?void 0===a?void 0:function(e,t,n,r){const i=aa(e,t,r);return Z0(Fo(n),i)}(o.fileName,a,e,n):a}}function Z0(e,t){return Ho(function(e,t){return zo(Ro(e,t))}(e,t))}function e1(e,t,n,r,i,o){if(e){const t=y(e.declarations,uP).fileName,n=o(t);return void 0===n?{newFileName:t,updated:!1}:{newFileName:n,updated:!0}}{const e=r.getModeForUsageLocation(n,t);return t1(t,i.resolveModuleNameLiterals||!i.resolveModuleNames?r.getResolvedModuleFromModuleSpecifier(t,n):i.getResolvedModuleWithFailedLookupLocationsFromCache&&i.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,n.fileName,e),o,r.getSourceFiles())}}function t1(e,t,n,r){if(!t)return;if(t.resolvedModule){const e=a(t.resolvedModule.resolvedFileName);if(e)return e}const i=_(t.failedLookupLocations,(function(e){const t=n(e);return t&&y(r,(e=>e.fileName===t))?o(e):void 0}))||bo(e.text)&&_(t.failedLookupLocations,o);return i||t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function o(e){return jt(e,"/package.json")?void 0:a(e)}function a(e){const t=n(e);return t&&{newFileName:t,updated:!0}}}function n1(e,t,n,r){for(const r of e.referencedFiles||s){const i=n(r.fileName);void 0!==i&&i!==e.text.slice(r.pos,r.end)&&t.replaceRangeWithText(e,r,i)}for(const n of e.imports){const i=r(n);void 0!==i&&i!==n.text&&t.replaceRangeWithText(e,r1(n,e),i)}}function r1(e,t){return Ob(e.getStart(t)+1,e.end-1)}function i1(e,t){if(mF(e))for(const n of e.properties)sP(n)&&HD(n.name)&&t(n,n.name.text)}(e=>{function t(e,t){return{fileName:t.fileName,textSpan:qQ(e,t),kind:"none"}}function n(e){return _E(e)?[e]:uE(e)?$(e.catchClause?n(e.catchClause):e.tryBlock&&n(e.tryBlock),e.finallyBlock&&n(e.finallyBlock)):i_(e)?void 0:i(e,n)}function r(e){return wl(e)?[e]:i_(e)?void 0:i(e,r)}function i(e,t){const n=[];return e.forEachChild((e=>{const r=t(e);void 0!==r&&n.push(...Qe(r))})),n}function o(e,t){const n=a(t);return!!n&&n===e}function a(e){return dc(e,(t=>{switch(t.kind){case 256:if(252===e.kind)return!1;case 249:case 250:case 251:case 248:case 247:return!e.label||function(e,t){return!!dc(e.parent,(e=>lE(e)?e.label.escapedText===t:"quit"))}(t,e.label.escapedText);default:return i_(t)&&"quit"}}))}function s(e,t,...n){return!(!t||!k(n,t.kind))&&(e.push(t),!0)}function c(e){const t=[];if(s(t,e.getFirstToken(),99,117,92)&&247===e.kind){const n=e.getChildren();for(let e=n.length-1;e>=0&&!s(t,n[e],117);e--);}return _(r(e.statement),(n=>{o(e,n)&&s(t,n.getFirstToken(),83,88)})),t}function l(e){const t=a(e);if(t)switch(t.kind){case 249:case 250:case 251:case 247:case 248:return c(t);case 256:return u(t)}}function u(e){const t=[];return s(t,e.getFirstToken(),109),_(e.caseBlock.clauses,(n=>{s(t,n.getFirstToken(),84,90),_(r(n),(n=>{o(e,n)&&s(t,n.getFirstToken(),83)}))})),t}function d(e,t){const n=[];if(s(n,e.getFirstToken(),113),e.catchClause&&s(n,e.catchClause.getFirstToken(),85),e.finallyBlock){s(n,$X(e,98,t),98)}return n}function p(e,t){const r=function(e){let t=e;for(;t.parent;){const e=t.parent;if(Bf(e)||308===e.kind)return e;if(uE(e)&&e.tryBlock===t&&e.catchClause)return t;t=e}}(e);if(!r)return;const i=[];return _(n(r),(e=>{i.push($X(e,111,t))})),Bf(r)&&Nf(r,(e=>{i.push($X(e,107,t))})),i}function f(e,t){const r=Kf(e);if(!r)return;const i=[];return Nf(tt(r.body,KF),(e=>{i.push($X(e,107,t))})),_(n(r.body),(e=>{i.push($X(e,111,t))})),i}function m(e){const t=Kf(e);if(!t)return;const n=[];return t.modifiers&&t.modifiers.forEach((e=>{s(n,e,134)})),rO(t,(e=>{g(e,(e=>{NF(e)&&s(n,e.getFirstToken(),135)}))})),n}function g(e,t){t(e),i_(e)||d_(e)||hE(e)||bE(e)||yE(e)||x_(e)||rO(e,(e=>g(e,t)))}e.getDocumentHighlights=function(e,n,r,i,o){const a=iQ(r,i);if(a.parent&&(HE(a.parent)&&a.parent.tagName===a||KE(a.parent))){const{openingElement:e,closingElement:n}=a.parent.parent,i=[e,n].map((({tagName:e})=>t(e,r)));return[{fileName:r.fileName,highlightSpans:i}]}return function(e,t,n,r,i){const o=new Set(i.map((e=>e.fileName))),a=Ace.getReferenceEntriesForNode(e,t,n,i,r,void 0,o);if(!a)return;const s=Me(a.map(Ace.toHighlightSpan),(e=>e.fileName),(e=>e.span)),c=Vt(n.useCaseSensitiveFileNames());return Ie(M(s.entries(),(([e,t])=>{if(!o.has(e)){if(!n.redirectTargetsMap.has(Vo(e,n.getCurrentDirectory(),c)))return;const t=n.getSourceFile(e);e=y(i,(e=>!!e.redirectInfo&&e.redirectInfo.redirectTarget===t)).fileName,_n.assert(o.has(e))}return{fileName:e,highlightSpans:t}})))}(i,a,e,n,o)||function(e,n){const r=function(e,n){switch(e.kind){case 101:case 93:return YF(e.parent)?function(e,n){const r=function(e,t){const n=[];for(;YF(e.parent)&&e.parent.elseStatement===e;)e=e.parent;for(;;){const r=e.getChildren(t);s(n,r[0],101);for(let e=r.length-1;e>=0&&!s(n,r[e],93);e--);if(!e.elseStatement||!YF(e.elseStatement))break;e=e.elseStatement}return n}(e,n),i=[];for(let e=0;e=t.end;e--)if(!Va(n.text.charCodeAt(e))){a=!1;break}if(a){i.push({fileName:n.fileName,textSpan:Hs(t.getStart(),o.end),kind:"reference"}),e++;continue}}i.push(t(r[e],n))}return i}(e.parent,n):void 0;case 107:return o(e.parent,aE,f);case 111:return o(e.parent,_E,p);case 113:case 85:case 98:return o(85===e.kind?e.parent.parent:e.parent,uE,d);case 109:return o(e.parent,cE,u);case 84:case 90:return iP(e.parent)||rP(e.parent)?o(e.parent.parent.parent,cE,u):void 0;case 83:case 88:return o(e.parent,wl,l);case 99:case 117:case 92:return o(e.parent,(e=>H_(e,!0)),c);case 137:return i(LN,[137]);case 139:case 153:return i(p_,[139,153]);case 135:return o(e.parent,NF,m);case 134:return a(m(e));case 127:return a(function(e){const t=Kf(e);if(!t)return;const n=[];return rO(t,(e=>{g(e,(e=>{OF(e)&&s(n,e.getFirstToken(),127)}))})),n}(e));case 103:case 147:return;default:return Ql(e.kind)&&(uu(e.parent)||GF(e.parent))?a((r=e.kind,R(function(e,t){const n=e.parent;switch(n.kind){case 269:case 308:case 242:case 297:case 298:return 64&t&&gE(e)?[...e.members,e]:n.statements;case 177:case 175:case 263:return[...n.parameters,...d_(n.parent)?n.parent.members:[]];case 264:case 232:case 265:case 188:const r=n.members;if(15&t){const e=y(n.members,LN);if(e)return[...r,...e.parameters]}else if(64&t)return[...r,n];return r;default:return}}(e.parent,Gv(r)),(e=>SY(e,r))))):void 0}var r;function i(t,r){return o(e.parent,t,(e=>{var i;return R(null==(i=et(e,su))?void 0:i.symbol.declarations,(e=>t(e)?y(e.getChildren(n),(e=>k(r,e.kind))):void 0))}))}function o(e,t,r){return t(e)?a(r(e,n)):void 0}function a(e){return e&&e.map((e=>t(e,n)))}}(e,n);return r&&[{fileName:n.fileName,highlightSpans:r}]}(a,r)}})(A0||(A0={}));var o1=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(o1||{});function a1(e,t){return{kind:e,isCaseSensitive:t}}function s1(e){const t=new Map,n=e.trim().split(".").map((e=>{return{totalTextChunk:x1(t=e.trim()),subWordTextChunks:b1(t)};var t}));return 1===n.length&&""===n[0].totalTextChunk.text?{getMatchForLastSegmentOfPattern:()=>a1(2,!0),getFullMatch:()=>a1(2,!0),patternContainsDots:!1}:n.some((e=>!e.subWordTextChunks.length))?void 0:{getFullMatch:(e,r)=>function(e,t,n,r){const i=_1(t,ye(n),r);if(!i)return;if(n.length-1>e.length)return;let o;for(let t=n.length-2,i=e.length-1;t>=0;t-=1,i-=1)o=u1(o,_1(e[i],n[t],r));return o}(e,r,n,t),getMatchForLastSegmentOfPattern:e=>_1(e,ye(n),t),patternContainsDots:n.length>1}}function c1(e,t){let n=t.get(e);return n||t.set(e,n=S1(e)),n}function l1(e,t,n){const r=function(e,t){const n=e.length-t.length;for(let r=0;r<=n;r++)if(E1(t,((t,n)=>h1(e.charCodeAt(n+r))===t)))return r;return-1}(e,t.textLowerCase);if(0===r)return a1(t.text.length===e.length?0:1,Kt(e,t.text));if(t.isLowerCase){if(-1===r)return;const i=c1(e,n);for(const n of i)if(p1(e,n,t.text,!0))return a1(2,p1(e,n,t.text,!1));if(t.text.length0)return a1(2,!0);if(t.characterSpans.length>0){const r=c1(e,n),i=!!f1(e,r,t,!1)||!f1(e,r,t,!0)&&void 0;if(void 0!==i)return a1(3,i)}}}function _1(e,t,n){if(E1(t.totalTextChunk.text,(e=>32!==e&&42!==e))){const r=l1(e,t.totalTextChunk,n);if(r)return r}const r=t.subWordTextChunks;let i;for(const t of r)i=u1(i,l1(e,t,n));return i}function u1(e,t){return xt([e,t],d1)}function d1(e,t){return void 0===e?1:void 0===t?-1:yt(e.kind,t.kind)||It(!e.isCaseSensitive,!t.isCaseSensitive)}function p1(e,t,n,r,i={start:0,length:n.length}){return i.length<=t.length&&F1(0,i.length,(o=>function(e,t,n){return n?h1(e)===h1(t):e===t}(n.charCodeAt(i.start+o),e.charCodeAt(t.start+o),r)))}function f1(e,t,n,r){const i=n.characterSpans;let o,a,s=0,c=0;for(;;){if(c===i.length)return!0;if(s===t.length)return!1;let l=t[s],_=!1;for(;c=65&&e<=90)return!0;if(e<127||!Da(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function g1(e){if(e>=97&&e<=122)return!0;if(e<127||!Da(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function h1(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function y1(e){return e>=48&&e<=57}function v1(e){return m1(e)||g1(e)||y1(e)||95===e||36===e}function b1(e){const t=[];let n=0,r=0;for(let i=0;i0&&(t.push(x1(e.substr(n,r))),r=0)}return r>0&&t.push(x1(e.substr(n,r))),t}function x1(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:k1(e)}}function k1(e){return T1(e,!1)}function S1(e){return T1(e,!0)}function T1(e,t){const n=[];let r=0;for(let i=1;iC1(e)&&95!==e),t,n)}function D1(e,t,n){return t!==n&&t+1t(e.charCodeAt(n),n)))}function P1(e,t=!0,n=!1){const r={languageVersion:12,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],moduleName:void 0},i=[];let o,a,s,c=0,_=!1;function u(){return a=s,s=eX.scan(),19===s?c++:20===s&&c--,s}function d(){const e=eX.getTokenValue(),t=eX.getTokenStart();return{fileName:e,pos:t,end:t+e.length}}function p(){i.push(d()),f()}function f(){0===c&&(_=!0)}function m(){let e=eX.getToken();return 138===e&&(e=u(),144===e&&(e=u(),11===e&&(o||(o=[]),o.push({ref:d(),depth:c}))),!0)}function g(){if(25===a)return!1;let e=eX.getToken();if(102===e){if(e=u(),21===e){if(e=u(),11===e||15===e)return p(),!0}else{if(11===e)return p(),!0;if(156===e){eX.lookAhead((()=>{const e=eX.scan();return 161!==e&&(42===e||19===e||80===e||wh(e))}))&&(e=u())}if(80===e||wh(e))if(e=u(),161===e){if(e=u(),11===e)return p(),!0}else if(64===e){if(y(!0))return!0}else{if(28!==e)return!0;e=u()}if(19===e){for(e=u();20!==e&&1!==e;)e=u();20===e&&(e=u(),161===e&&(e=u(),11===e&&p()))}else 42===e&&(e=u(),130===e&&(e=u(),(80===e||wh(e))&&(e=u(),161===e&&(e=u(),11===e&&p()))))}return!0}return!1}function h(){let e=eX.getToken();if(95===e){if(f(),e=u(),156===e){eX.lookAhead((()=>{const e=eX.scan();return 42===e||19===e}))&&(e=u())}if(19===e){for(e=u();20!==e&&1!==e;)e=u();20===e&&(e=u(),161===e&&(e=u(),11===e&&p()))}else if(42===e)e=u(),161===e&&(e=u(),11===e&&p());else if(102===e){if(e=u(),156===e){eX.lookAhead((()=>{const e=eX.scan();return 80===e||wh(e)}))&&(e=u())}if((80===e||wh(e))&&(e=u(),64===e&&y(!0)))return!0}return!0}return!1}function y(e,t=!1){let n=e?u():eX.getToken();return 149===n&&(n=u(),21===n&&(n=u(),(11===n||t&&15===n)&&p()),!0)}function v(){let e=eX.getToken();if(80===e&&"define"===eX.getTokenValue()){if(e=u(),21!==e)return!0;if(e=u(),11===e||15===e){if(e=u(),28!==e)return!0;e=u()}if(23!==e)return!0;for(e=u();24!==e&&1!==e;)11!==e&&15!==e||p(),e=u();return!0}return!1}if(t&&function(){for(eX.setText(e),u();1!==eX.getToken();){if(16===eX.getToken()){const e=[eX.getToken()];e:for(;l(e);){const t=eX.scan();switch(t){case 1:break e;case 102:g();break;case 16:e.push(t);break;case 19:l(e)&&e.push(t);break;case 20:l(e)&&(16===he(e)?18===eX.reScanTemplateToken(!1)&&e.pop():e.pop())}}u()}m()||g()||h()||n&&(y(!1,!0)||v())||u()}eX.setText(void 0)}(),bO(r,e),xO(r,nt),_){if(o)for(const e of o)i.push(e.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:i,isLibFile:!1,ambientExternalModules:void 0}}{let e;if(o)for(const t of o)0===t.depth?(e||(e=[]),e.push(t.ref.fileName)):i.push(t.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:i,isLibFile:!1,ambientExternalModules:e}}}var A1=/^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/;function I1(e){const t=Vt(e.useCaseSensitiveFileNames()),n=e.getCurrentDirectory(),r=new Map,i=new Map;return{tryGetSourcePosition:function e(t){if(!yO(t.fileName))return;if(!s(t.fileName))return;const n=a(t.fileName).getSourcePosition(t);return n&&n!==t?e(n)||n:void 0},tryGetGeneratedPosition:function(t){if(yO(t.fileName))return;const n=s(t.fileName);if(!n)return;const r=e.getProgram();if(r.isSourceOfProjectReferenceRedirect(n.fileName))return;const i=r.getCompilerOptions().outFile,o=i?WS(i)+".d.ts":Wy(t.fileName,r.getCompilerOptions(),r);if(void 0===o)return;const c=a(o,t.fileName).getGeneratedPosition(t);return c===t?void 0:c},toLineColumnOffset:function(e,t){return l(e).getLineAndCharacterOfPosition(t)},clearCache:function(){r.clear(),i.clear()},documentPositionMappers:i};function o(e){return Vo(e,n,t)}function a(n,r){const a=o(n),s=i.get(a);if(s)return s;let c;if(e.getDocumentPositionMapper)c=e.getDocumentPositionMapper(n,r);else if(e.readFile){const r=l(n);c=r&&O1({getSourceFileLike:l,getCanonicalFileName:t,log:t=>e.log(t)},n,LJ(r.text,Ma(r)),(t=>!e.fileExists||e.fileExists(t)?e.readFile(t):void 0))}return i.set(a,c||GJ),c||GJ}function s(t){const n=e.getProgram();if(!n)return;const r=o(t),i=n.getSourceFileByPath(r);return i&&i.resolvedPath===r?i:void 0}function c(t){const n=o(t),i=r.get(n);if(void 0!==i)return i||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(t))return void r.set(n,!1);const a=e.readFile(t),s=!!a&&function(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(e){return Ba(Ma(this),e)}}}(a);return r.set(n,s),s||void 0}function l(t){return e.getSourceFileLike?e.getSourceFileLike(t):s(t)||c(t)}}function O1(e,t,n,r){let i=jJ(n);if(i){const n=A1.exec(i);if(n){if(n[1]){const r=n[1];return L1(e,wb(co,r),t)}i=void 0}}const o=[];i&&o.push(i),o.push(t+".map");const a=i&&Jo(i,Fo(t));for(const n of o){const i=Jo(n,Fo(t)),o=r(i,a);if(Ye(o))return L1(e,o,i);if(void 0!==o)return o||void 0}}function L1(e,t,n){const r=MJ(t);if(r&&r.sources&&r.file&&r.mappings&&(!r.sourcesContent||!r.sourcesContent.some(Ye)))return KJ(e,r,n)}var j1=new Map;function R1(e,t,n){var r;t.getSemanticDiagnostics(e,n);const i=[],o=t.getTypeChecker();var a;!(1===t.getImpliedNodeFormatForEmit(e)||To(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(oY(t)||aY(t.getCompilerOptions()))&&function(e){return e.statements.some((e=>{switch(e.kind){case 244:return e.declarationList.declarations.some((e=>!!e.initializer&&Lm(M1(e.initializer),!0)));case 245:{const{expression:t}=e;if(!PF(t))return Lm(t,!0);const n=ng(t);return 1===n||2===n}default:return!1}}))}(e)&&i.push(Mp(PF(a=e.commonJsModuleIndicator)?a.left:a,ua.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const s=Fm(e);if(j1.clear(),function t(n){if(s)(function(e,t){var n,r,i,o;if(SF(e)){if(pE(e.parent)&&(null==(n=e.symbol.members)?void 0:n.size))return!0;const o=t.getSymbolOfExpando(e,!1);return!(!o||!(null==(r=o.exports)?void 0:r.size)&&!(null==(i=o.members)?void 0:i.size))}if(mE(e))return!!(null==(o=e.symbol.members)?void 0:o.size);return!1})(n,o)&&i.push(Mp(pE(n.parent)?n.parent.name:n,ua.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(GF(n)&&n.parent===e&&2&n.declarationList.flags&&1===n.declarationList.declarations.length){const e=n.declarationList.declarations[0].initializer;e&&Lm(e,!0)&&i.push(Mp(e,ua.require_call_may_be_converted_to_an_import))}const t=M7.getJSDocTypedefNodes(n);for(const e of t)i.push(Mp(e,ua.JSDoc_typedef_may_be_converted_to_TypeScript_type));M7.parameterShouldGetTypeFromJSDoc(n)&&i.push(Mp(n.name||n,ua.JSDoc_types_may_be_moved_to_TypeScript_types))}H1(n)&&function(e,t,n){(function(e,t){return!jh(e)&&e.body&&KF(e.body)&&function(e,t){return!!Nf(e,(e=>z1(e,t)))}(e.body,t)&&J1(e,t)})(e,t)&&!j1.has($1(e))&&n.push(Mp(!e.name&&pE(e.parent)&&_N(e.parent.name)?e.parent.name:e,ua.This_may_be_converted_to_an_async_function))}(n,o,i);n.forEachChild(t)}(e),Dk(t.getCompilerOptions()))for(const n of e.imports){const o=bg(n);if(TE(o)&&Fv(o,32))continue;const a=B1(o);if(!a)continue;const s=null==(r=t.getResolvedModuleFromModuleSpecifier(n,e))?void 0:r.resolvedModule,c=s&&t.getSourceFile(s.resolvedFileName);c&&c.externalModuleIndicator&&!0!==c.externalModuleIndicator&&jE(c.externalModuleIndicator)&&c.externalModuleIndicator.isExportEquals&&i.push(Mp(a,ua.Import_may_be_converted_to_a_default_import))}return ae(i,e.bindSuggestionDiagnostics),ae(i,t.getSuggestionDiagnostics(e,n)),i.sort(((e,t)=>e.start-t.start)),i}function M1(e){return gF(e)?M1(e.expression):e}function B1(e){switch(e.kind){case 273:const{importClause:t,moduleSpecifier:n}=e;return t&&!t.name&&t.namedBindings&&275===t.namedBindings.kind&&HD(n)?t.namedBindings.name:void 0;case 272:return e.name;default:return}}function J1(e,t){const n=t.getSignatureFromDeclaration(e),r=n?t.getReturnTypeOfSignature(n):void 0;return!!r&&!!t.getPromisedTypeOfPromise(r)}function z1(e,t){return aE(e)&&!!e.expression&&q1(e.expression,t)}function q1(e,t){if(!U1(e)||!V1(e)||!e.arguments.every((e=>W1(e,t))))return!1;let n=e.expression.expression;for(;U1(n)||gF(n);)if(yF(n)){if(!V1(n)||!n.arguments.every((e=>W1(e,t))))return!1;n=n.expression.expression}else n=n.expression;return!0}function U1(e){return yF(e)&&(hX(e,"then")||hX(e,"catch")||hX(e,"finally"))}function V1(e){const t=e.expression.name.text,n="then"===t?2:"catch"===t||"finally"===t?1:0;return!(e.arguments.length>n)&&(e.arguments.length106===e.kind||_N(e)&&"undefined"===e.text))))}function W1(e,t){switch(e.kind){case 263:case 219:if(1&Lh(e))return!1;case 220:j1.set($1(e),!0);case 106:return!0;case 80:case 212:{const n=t.getSymbolAtLocation(e);return!!n&&(t.isUndefinedSymbol(n)||V(sx(n,t).declarations,(e=>i_(e)||Pu(e)&&!!e.initializer&&i_(e.initializer))))}default:return!1}}function $1(e){return`${e.pos.toString()}:${e.end.toString()}`}function H1(e){switch(e.kind){case 263:case 175:case 219:case 220:return!0;default:return!1}}var K1=new Set(["isolatedModules"]);function G1(e,t){return t2(e,t,!1)}function X1(e,t){return t2(e,t,!0)}var Q1,Y1,Z1="interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number {}\ninterface Object {}\ninterface RegExp {}\ninterface String {}\ninterface Array { length: number; [n: number]: T; }\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}",e2="lib.d.ts";function t2(e,t,n){Q1??(Q1=sO(e2,Z1,{languageVersion:99}));const r=[],i=t.compilerOptions?r2(t.compilerOptions,r):{},o={target:12,jsx:1};for(const e in o)De(o,e)&&void 0===i[e]&&(i[e]=o[e]);for(const e of HO)i.verbatimModuleSyntax&&K1.has(e.name)||(i[e.name]=e.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0,n?(i.declaration=!0,i.emitDeclarationOnly=!0,i.isolatedDeclarations=!0):(i.declaration=!1,i.declarationMap=!1),i.noLib=!n;const a=Ib(i),s={getSourceFile:e=>e===zo(c)?l:e===zo(e2)?Q1:void 0,writeFile:(e,t)=>{So(e,".map")?(_n.assertEqual(u,void 0,"Unexpected multiple source map outputs, file:",e),u=t):(_n.assertEqual(_,void 0,"Unexpected multiple outputs, file:",e),_=t)},getDefaultLibFileName:()=>e2,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:e=>e,getCurrentDirectory:()=>"",getNewLine:()=>a,fileExists:e=>e===c||!!n&&e===e2,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},c=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),l=sO(c,e,{languageVersion:xk(i),impliedNodeFormat:JV(Vo(c,"",s.getCanonicalFileName),void 0,s,i),setExternalModuleIndicator:mk(i),jsDocParsingMode:t.jsDocParsingMode??0});let _,u;t.moduleName&&(l.moduleName=t.moduleName),t.renamedDependencies&&(l.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));const d=UV([c],i,s);t.reportDiagnostics&&(ae(r,d.getSyntacticDiagnostics(l)),ae(r,d.getOptionsDiagnostics()));return ae(r,d.emit(void 0,void 0,void 0,n,t.transformers,n).diagnostics),void 0===_?_n.fail("Output generation failed"):{outputText:_,diagnostics:r,sourceMapText:u}}function n2(e,t,n,r,i){const o=G1(e,{compilerOptions:t,fileName:n,reportDiagnostics:!!r,moduleName:i});return ae(r,o.diagnostics),o.outputText}function r2(e,t){Y1=Y1||C(JO,(e=>"object"==typeof e.type&&!id(e.type,(e=>"number"!=typeof e)))),e=jQ(e);for(const n of Y1){if(!De(e,n.name))continue;const r=e[n.name];Ye(r)?e[n.name]=cL(n,r,t):id(n.type,(e=>e===r))||t.push(aL(n))}return e}var i2={};function o2(e,t,n,r,i,o,a,c){const l=s1(r);if(!l)return s;const _=[],u=1===e.length?e[0]:void 0;for(const r of e)n.throwIfCancellationRequested(),o&&r.isDeclarationFile||a2(r,!!a,u,c)||r.getNamedDeclarations().forEach(((e,n)=>{s2(l,n,e,t,r.fileName,!!a,u,_,c)}));return _.sort(p2),(void 0===i?_:_.slice(0,i)).map(f2)}function a2(e,t,n,r){return e!==n&&t&&($Z(e.path)||r.isSourceFileDefaultLibrary(e))}function s2(e,t,n,r,i,o,a,s,c){const l=e.getMatchForLastSegmentOfPattern(t);if(l)for(const _ of n)if(c2(_,r,o,a,c))if(e.patternContainsDots){const n=e.getFullMatch(d2(_),t);n&&s.push({name:t,fileName:i,matchKind:n.kind,isCaseSensitive:n.isCaseSensitive,declaration:_})}else s.push({name:t,fileName:i,matchKind:l.kind,isCaseSensitive:l.isCaseSensitive,declaration:_})}function c2(e,t,n,r,i){var o;switch(e.kind){case 274:case 277:case 272:const a=t.getSymbolAtLocation(e.name),s=t.getAliasedSymbol(a);return a.escapedName!==s.escapedName&&!(null==(o=s.declarations)?void 0:o.every((e=>a2(e.getSourceFile(),n,r,i))));default:return!0}}function l2(e,t){const n=wc(e);return!!n&&(u2(n,t)||168===n.kind&&_2(n.expression,t))}function _2(e,t){return u2(e,t)||gF(e)&&(t.push(e.name.text),!0)&&_2(e.expression,t)}function u2(e,t){return qh(e)&&(t.push(Uh(e)),!0)}function d2(e){const t=[],n=wc(e);if(n&&168===n.kind&&!_2(n.expression,t))return s;t.shift();let r=FX(e);for(;r;){if(!l2(r,t))return s;r=FX(r)}return t.reverse(),t}function p2(e,t){return yt(e.matchKind,t.matchKind)||Pt(e.name,t.name)}function f2(e){const t=e.declaration,n=FX(t),r=n&&wc(n);return{name:e.name,kind:EX(t),kindModifiers:NQ(t),matchKind:o1[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:qQ(t),containerName:r?r.text:"",containerKind:r?EX(n):""}}n(i2,{getNavigateToItems:()=>o2});var m2={};n(m2,{getNavigationBarItems:()=>C2,getNavigationTree:()=>w2});var g2,h2,y2,v2,b2=/\s+/g,x2=150,k2=[],S2=[],T2=[];function C2(e,t){g2=t,h2=e;try{return N(function(e){const t=[];function n(e){if(r(e)&&(t.push(e),e.children))for(const t of e.children)n(t)}return n(e),t;function r(e){if(e.children)return!0;switch(F2(e)){case 264:case 232:case 267:case 265:case 268:case 308:case 266:case 347:case 339:return!0;case 220:case 263:case 219:return t(e);default:return!1}function t(e){if(!e.node.body)return!1;switch(F2(e.parent)){case 269:case 308:case 175:case 177:return!0;default:return!1}}}}(P2(e)),e3)}finally{D2()}}function w2(e,t){g2=t,h2=e;try{return Z2(P2(e))}finally{D2()}}function D2(){h2=void 0,g2=void 0,k2=[],y2=void 0,T2=[]}function N2(e){return _3(e.getText(h2))}function F2(e){return e.node.kind}function E2(e,t){e.children?e.children.push(t):e.children=[t]}function P2(e){_n.assert(!k2.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};y2=t;for(const t of e.statements)q2(t);return M2(),_n.assert(!y2&&!k2.length),t}function A2(e,t){E2(y2,I2(e,t))}function I2(e,t){return{node:e,name:t||(uu(e)||W_(e)?wc(e):void 0),additionalNodes:void 0,parent:y2,children:void 0,indent:y2.indent+1}}function O2(e){v2||(v2=new Map),v2.set(e,!0)}function L2(e){for(let t=0;t0;t--){R2(e,n[t])}return[n.length-1,n[0]]}function R2(e,t){const n=I2(e,t);E2(y2,n),k2.push(y2),S2.push(v2),v2=void 0,y2=n}function M2(){y2.children&&(U2(y2.children,y2),G2(y2.children)),y2=k2.pop(),v2=S2.pop()}function B2(e,t,n){R2(e,n),q2(t),M2()}function J2(e){e.initializer&&function(e){switch(e.kind){case 220:case 219:case 232:return!0;default:return!1}}(e.initializer)?(R2(e),rO(e.initializer,q2),M2()):B2(e,e.initializer)}function z2(e){const t=wc(e);if(void 0===t)return!1;if(wN(t)){const e=t.expression;return cb(e)||WD(e)||Rh(e)}return!!t}function q2(e){if(g2.throwIfCancellationRequested(),e&&!Pl(e))switch(e.kind){case 177:const t=e;B2(t,t.body);for(const e of t.parameters)ec(e,t)&&A2(e);break;case 175:case 178:case 179:case 174:z2(e)&&B2(e,e.body);break;case 173:z2(e)&&J2(e);break;case 172:z2(e)&&A2(e);break;case 274:const n=e;n.name&&A2(n.name);const{namedBindings:r}=n;if(r)if(275===r.kind)A2(r);else for(const e of r.elements)A2(e);break;case 305:B2(e,e.name);break;case 306:const{expression:i}=e;_N(i)?A2(e,i):A2(e);break;case 209:case 304:case 261:{const t=e;S_(t.name)?q2(t.name):J2(t);break}case 263:const o=e.name;o&&_N(o)&&O2(o.text),B2(e,e.body);break;case 220:case 219:B2(e,e.body);break;case 267:R2(e);for(const t of e.members)o3(t)||A2(t);M2();break;case 264:case 232:case 265:R2(e);for(const t of e.members)q2(t);M2();break;case 268:B2(e,i3(e).body);break;case 278:{const t=PA(e.expression),n=mF(t)||yF(t)||jF(t)?t:TF(t)||SF(t)?t.body:void 0;n?(R2(e),q2(n),M2()):A2(e);break}case 282:case 272:case 182:case 180:case 181:case 266:A2(e);break;case 214:case 227:{const t=ng(e);switch(t){case 1:case 2:return void B2(e,e.right);case 6:case 3:{const n=e,r=n.left,i=3===t?r.expression:r;let o,a=0;return _N(i.expression)?(O2(i.expression.text),o=i.expression):[a,o]=j2(n,i.expression),6===t?mF(n.right)&&n.right.properties.length>0&&(R2(n,o),rO(n.right,q2),M2()):SF(n.right)||TF(n.right)?B2(e,n.right,o):(R2(n,o),B2(e,n.right,r.name),M2()),void L2(a)}case 7:case 9:{const n=e,r=7===t?n.arguments[0]:n.arguments[0].expression,i=n.arguments[1],[o,a]=j2(e,r);return R2(e,a),R2(e,NI(vw.createIdentifier(i.text),i)),q2(e.arguments[2]),M2(),M2(),void L2(o)}case 5:{const t=e,n=t.left,r=n.expression;if(_N(r)&&"prototype"!==ug(n)&&v2&&v2.has(r.text))return void(SF(t.right)||TF(t.right)?B2(e,t.right,r):ag(n)&&(R2(t,r),B2(t.left,t.right,lg(n)),M2()));break}case 4:case 0:case 8:break;default:_n.assertNever(t)}}default:Fu(e)&&_(e.jsDoc,(e=>{_(e.tags,(e=>{Fg(e)&&A2(e)}))})),rO(e,q2)}}function U2(e,t){const n=new Map;w(e,((e,r)=>{const i=e.name||wc(e.node),o=i&&N2(i);if(!o)return!0;const a=n.get(o);if(!a)return n.set(o,e),!0;if(a instanceof Array){for(const n of a)if(W2(n,e,r,t))return!1;return a.push(e),!0}{const i=a;return!W2(i,e,r,t)&&(n.set(o,[i,e]),!0)}}))}var V2={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1};function W2(e,t,n,r){return!!function(e,t,n,r){function i(e){return SF(e)||mE(e)||pE(e)}const o=PF(t.node)||yF(t.node)?ng(t.node):0,a=PF(e.node)||yF(e.node)?ng(e.node):0;if(V2[o]&&V2[a]||i(e.node)&&V2[o]||i(t.node)&&V2[a]||gE(e.node)&&$2(e.node)&&V2[o]||gE(t.node)&&V2[a]||gE(e.node)&&$2(e.node)&&i(t.node)||gE(t.node)&&i(e.node)&&$2(e.node)){let o=e.additionalNodes&&he(e.additionalNodes)||e.node;if(!gE(e.node)&&!gE(t.node)||i(e.node)||i(t.node)){const n=i(e.node)?e.node:i(t.node)?t.node:void 0;if(void 0!==n){const r=I2(NI(vw.createConstructorDeclaration(void 0,[],void 0),n));r.indent=e.indent+1,r.children=e.node===n?e.children:t.children,e.children=e.node===n?$([r],t.children||[t]):$(e.children||[{...e}],[r])}else(e.children||t.children)&&(e.children=$(e.children||[{...e}],t.children||[t]),e.children&&(U2(e.children,e),G2(e.children)));o=e.node=NI(vw.createClassDeclaration(void 0,e.name||vw.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=$(e.children,t.children),e.children&&U2(e.children,e);const a=t.node;return r.children[n-1].node.end===o.end?NI(o,{pos:o.pos,end:a.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(NI(vw.createClassDeclaration(void 0,e.name||vw.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return 0!==o}(e,t,n,r)||!!function(e,t,n){if(e.kind!==t.kind||e.parent!==t.parent&&(!H2(e,n)||!H2(t,n)))return!1;switch(e.kind){case 173:case 175:case 178:case 179:return Ev(e)===Ev(t);case 268:return K2(e,t)&&r3(e)===r3(t);default:return!0}}(e.node,t.node,r)&&(function(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes);e.children=$(e.children,t.children),e.children&&(U2(e.children,e),G2(e.children))}(e,t),!0)}function $2(e){return!!(16&e.flags)}function H2(e,t){if(void 0===e.parent)return!1;const n=xE(e.parent)?e.parent.parent:e.parent;return n===t.node||k(t.additionalNodes,n)}function K2(e,t){return e.body&&t.body?e.body.kind===t.body.kind&&(268!==e.body.kind||K2(e.body,t.body)):e.body===t.body}function G2(e){e.sort(X2)}function X2(e,t){return Pt(Q2(e.node),Q2(t.node))||yt(F2(e),F2(t))}function Q2(e){if(268===e.kind)return n3(e);const t=wc(e);if(t&&n_(t)){const e=zh(t);return e&&gc(e)}switch(e.kind){case 219:case 220:case 232:return c3(e);default:return}}function Y2(e,t){if(268===e.kind)return _3(n3(e));if(t){const e=_N(t)?t.text:hF(t)?`[${N2(t.argumentExpression)}]`:N2(t);if(e.length>0)return _3(e)}switch(e.kind){case 308:const t=e;return _O(t)?`"${ky(Eo(WS(zo(t.fileName))))}"`:"";case 278:return jE(e)&&e.isExportEquals?"export=":"default";case 220:case 263:case 219:case 264:case 232:return 2048&Uv(e)?"default":c3(e);case 177:return"constructor";case 181:return"new()";case 180:return"()";case 182:return"[]";default:return""}}function Z2(e){return{text:Y2(e.node,e.name),kind:EX(e.node),kindModifiers:s3(e.node),spans:t3(e),nameSpan:e.name&&a3(e.name),childItems:N(e.children,Z2)}}function e3(e){return{text:Y2(e.node,e.name),kind:EX(e.node),kindModifiers:s3(e.node),spans:t3(e),childItems:N(e.children,(function(e){return{text:Y2(e.node,e.name),kind:EX(e.node),kindModifiers:NQ(e.node),spans:t3(e),childItems:T2,indent:0,bolded:!1,grayed:!1}}))||T2,indent:e.indent,bolded:!1,grayed:!1}}function t3(e){const t=[a3(e.node)];if(e.additionalNodes)for(const n of e.additionalNodes)t.push(a3(n));return t}function n3(e){return cp(e)?Xd(e.name):r3(e)}function r3(e){const t=[Uh(e.name)];for(;e.body&&268===e.body.kind;)e=e.body,t.push(Uh(e.name));return t.join(".")}function i3(e){return e.body&&bE(e.body)?i3(e.body):e}function o3(e){return!e.name||168===e.name.kind}function a3(e){return 308===e.kind?WQ(e):qQ(e,h2)}function s3(e){return e.parent&&261===e.parent.kind&&(e=e.parent),NQ(e)}function c3(e){const{parent:t}=e;if(e.name&&cd(e.name)>0)return _3(Ap(e.name));if(pE(t))return _3(Ap(t.name));if(PF(t)&&64===t.operatorToken.kind)return N2(t.left).replace(b2,"");if(sP(t))return N2(t.name);if(2048&Uv(e))return"default";if(d_(e))return"";if(yF(t)){let e=l3(t.expression);if(void 0!==e){if(e=_3(e),e.length>x2)return`${e} callback`;return`${e}(${_3(R(t.arguments,(e=>Ru(e)||M_(e)?e.getText(h2):void 0)).join(", "))}) callback`}}return""}function l3(e){if(_N(e))return e.text;if(gF(e)){const t=l3(e.expression),n=e.name.text;return void 0===t?n:`${t}.${n}`}}function _3(e){return(e=e.length>x2?e.substring(0,x2)+"...":e).replace(/\\?(?:\r?\n|[\r\u2028\u2029])/g,"")}var u3={};n(u3,{addExportsInOldFile:()=>V3,addImportsForMovedSymbols:()=>Q3,addNewFileToTsconfig:()=>U3,addOrRemoveBracesToArrowFunction:()=>j6,addTargetFileImports:()=>T6,containsJsx:()=>l6,convertArrowFunctionOrFunctionExpression:()=>H6,convertParamsToDestructuredObject:()=>r4,convertStringOrTemplateLiteral:()=>S4,convertToOptionalChainExpression:()=>R4,createNewFileName:()=>s6,doChangeNamedToNamespaceOrDefault:()=>D3,extractSymbol:()=>G4,generateGetAccessorAndSetAccessor:()=>f8,getApplicableRefactors:()=>f3,getEditsForRefactor:()=>m3,getExistingLocals:()=>b6,getIdentifierForNode:()=>S6,getNewStatementsAndRemoveFromOldFile:()=>q3,getStatementsToMove:()=>c6,getUsageInfo:()=>u6,inferFunctionReturnType:()=>y8,isInImport:()=>f6,isRefactorErrorInfo:()=>x6,refactorKindBeginsWith:()=>k6,registerRefactor:()=>p3});var d3=new Map;function p3(e,t){d3.set(e,t)}function f3(e,t){return Ie(O(d3.values(),(n=>{var r;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!(null==(r=n.kinds)?void 0:r.some((t=>k6(t,e.kind))))?void 0:n.getAvailableActions(e,t)})))}function m3(e,t,n,r){const i=d3.get(t);return i&&i.getEditsForAction(e,n,r)}var g3="Convert export",h3={name:"Convert default export to named export",description:$x(ua.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},y3={name:"Convert named export to default export",description:$x(ua.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"};function v3(e,t=!0){const{file:n,program:r}=e,i=XZ(e),o=aQ(n,i.start),a=o.parent&&32&Uv(o.parent)&&t?o.parent:xY(o,n,i);if(!(a&&(uP(a.parent)||xE(a.parent)&&cp(a.parent.parent))))return{error:$x(ua.Could_not_find_export_statement)};const s=r.getTypeChecker(),c=function(e,t){if(uP(e))return e.symbol;const n=e.parent.symbol;if(n.valueDeclaration&&fp(n.valueDeclaration))return t.getMergedSymbol(n);return n}(a.parent,s),l=Uv(a)||(jE(a)&&!a.isExportEquals?2080:0),_=!!(2048&l);if(!(32&l)||!_&&c.exports.has("default"))return{error:$x(ua.This_file_already_has_a_default_export)};const u=e=>_N(e)&&s.getSymbolAtLocation(e)?void 0:{error:$x(ua.Can_only_convert_named_export)};switch(a.kind){case 263:case 264:case 265:case 267:case 266:case 268:{const e=a;if(!e.name)return;return u(e.name)||{exportNode:e,exportName:e.name,wasDefault:_,exportingModuleSymbol:c}}case 244:{const e=a;if(!(2&e.declarationList.flags)||1!==e.declarationList.declarations.length)return;const t=me(e.declarationList.declarations);if(!t.initializer)return;return _n.assert(!_,"Can't have a default flag here"),u(t.name)||{exportNode:e,exportName:t.name,wasDefault:_,exportingModuleSymbol:c}}case 278:{const e=a;if(e.isExportEquals)return;return u(e.expression)||{exportNode:e,exportName:e.expression,wasDefault:_,exportingModuleSymbol:c}}default:return}}function b3(e,t){return vw.createImportSpecifier(!1,e===t?void 0:vw.createIdentifier(e),vw.createIdentifier(t))}function x3(e,t){return vw.createExportSpecifier(!1,e===t?void 0:vw.createIdentifier(e),vw.createIdentifier(t))}p3(g3,{kinds:[h3.kind,y3.kind],getAvailableActions:function(e){const t=v3(e,"invoked"===e.triggerReason);if(!t)return s;if(!x6(t)){const e=t.wasDefault?h3:y3;return[{name:g3,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:g3,description:$x(ua.Convert_default_export_to_named_export),actions:[{...h3,notApplicableReason:t.error},{...y3,notApplicableReason:t.error}]}]:s},getEditsForAction:function(e,t){_n.assert(t===h3.name||t===y3.name,"Unexpected action name");const n=v3(e);_n.assert(n&&!x6(n),"Expected applicable refactor info");const r=ede.ChangeTracker.with(e,(t=>function(e,t,n,r,i){(function(e,{wasDefault:t,exportNode:n,exportName:r},i,o){if(t)if(jE(n)&&!n.isExportEquals){const t=n.expression,r=x3(t.text,t.text);i.replaceNode(e,n,vw.createExportDeclaration(void 0,!1,vw.createNamedExports([r])))}else i.delete(e,_n.checkDefined(SY(n,90),"Should find a default keyword in modifier list"));else{const t=_n.checkDefined(SY(n,95),"Should find an export keyword in modifier list");switch(n.kind){case 263:case 264:case 265:i.insertNodeAfter(e,t,vw.createToken(90));break;case 244:const a=me(n.declarationList.declarations);if(!Ace.Core.isSymbolReferencedInFile(r,o,e)&&!a.type){i.replaceNode(e,n,vw.createExportDefault(_n.checkDefined(a.initializer,"Initializer was previously known to be present")));break}case 267:case 266:case 268:i.deleteModifier(e,t),i.insertNodeAfter(e,n,vw.createExportDefault(vw.createIdentifier(r.text)));break;default:_n.fail(`Unexpected exportNode kind ${n.kind}`)}}})(e,n,r,t.getTypeChecker()),function(e,{wasDefault:t,exportName:n,exportingModuleSymbol:r},i,o){const a=e.getTypeChecker(),s=_n.checkDefined(a.getSymbolAtLocation(n),"Export name should resolve to a symbol");Ace.Core.eachExportReference(e.getSourceFiles(),a,o,s,r,n.text,t,(e=>{if(n===e)return;const r=e.getSourceFile();t?function(e,t,n,r){const{parent:i}=t;switch(i.kind){case 212:n.replaceNode(e,t,vw.createIdentifier(r));break;case 277:case 282:{const t=i;n.replaceNode(e,t,b3(r,t.name.text));break}case 274:{const o=i;_n.assert(o.name===t,"Import clause name should match provided ref");const a=b3(r,t.text),{namedBindings:s}=o;if(s)if(275===s.kind){n.deleteRange(e,{pos:t.getStart(e),end:s.getStart(e)});const i=HD(o.parent.moduleSpecifier)?pY(o.parent.moduleSpecifier,e):1,a=_Y(void 0,[b3(r,t.text)],o.parent.moduleSpecifier,i);n.insertNodeAfter(e,o.parent,a)}else n.delete(e,t),n.insertNodeAtEndOfList(e,s.elements,a);else n.replaceNode(e,t,vw.createNamedImports([a]));break}case 206:const o=i;n.replaceNode(e,i,vw.createImportTypeNode(o.argument,o.attributes,vw.createIdentifier(r),o.typeArguments,o.isTypeOf));break;default:_n.failBadSyntaxKind(i)}}(r,e,i,n.text):function(e,t,n){const r=t.parent;switch(r.kind){case 212:n.replaceNode(e,t,vw.createIdentifier("default"));break;case 277:{const t=vw.createIdentifier(r.name.text);1===r.parent.elements.length?n.replaceNode(e,r.parent,t):(n.delete(e,r),n.insertNodeBefore(e,r.parent,t));break}case 282:n.replaceNode(e,r,x3("default",r.name.text));break;default:_n.assertNever(r,`Unexpected parent kind ${r.kind}`)}}(r,e,i)}))}(t,n,r,i)}(e.file,e.program,n,t,e.cancellationToken)));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var k3="Convert import",S3={0:{name:"Convert namespace import to named imports",description:$x(ua.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:$x(ua.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:$x(ua.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}};function T3(e,t=!0){const{file:n}=e,r=XZ(e),i=aQ(n,r.start),o=t?dc(i,Zt(CE,eA)):xY(i,n,r);if(void 0===o||!CE(o)&&!eA(o))return{error:"Selection is not an import declaration."};const a=r.start+r.length,s=_Q(o,o.parent,n);if(s&&a>s.getStart())return;const{importClause:c}=o;if(!c)return{error:$x(ua.Could_not_find_import_clause)};if(!c.namedBindings)return{error:$x(ua.Could_not_find_namespace_import_or_named_imports)};if(275===c.namedBindings.kind)return{convertTo:0,import:c.namedBindings};return C3(e.program,c)?{convertTo:1,import:c.namedBindings}:{convertTo:2,import:c.namedBindings}}function C3(e,t){return Dk(e.getCompilerOptions())&&function(e,t){const n=t.resolveExternalModuleName(e);if(!n)return!1;const r=t.resolveExternalModuleSymbol(n);return n!==r}(t.parent.moduleSpecifier,e.getTypeChecker())}function w3(e){return gF(e)?e.name:e.right}function D3(e,t,n,r,i=C3(t,r.parent)){const o=t.getTypeChecker(),a=r.parent.parent,{moduleSpecifier:s}=a,c=new Set;r.elements.forEach((e=>{const t=o.getSymbolAtLocation(e.name);t&&c.add(t)}));const l=s&&HD(s)?r0(s.text,99):"module";const _=r.elements.some((function(t){return!!Ace.Core.eachSymbolReferenceInFile(t.name,o,e,(e=>{const t=o.resolveName(l,e,-1,!0);return!!t&&(!c.has(t)||BE(e.parent))}))}))?dZ(l,e):l,u=new Set;for(const t of r.elements){const r=t.propertyName||t.name;Ace.Core.eachSymbolReferenceInFile(t.name,o,e,(i=>{const o=11===r.kind?vw.createElementAccessExpression(vw.createIdentifier(_),vw.cloneNode(r)):vw.createPropertyAccessExpression(vw.createIdentifier(_),vw.cloneNode(r));cP(i.parent)?n.replaceNode(e,i.parent,vw.createPropertyAssignment(i.text,o)):BE(i.parent)?u.add(t):n.replaceNode(e,i,o)}))}if(n.replaceNode(e,r,i?vw.createIdentifier(_):vw.createNamespaceImport(vw.createIdentifier(_))),u.size&&CE(a)){const t=Ie(u.values(),(e=>vw.createImportSpecifier(e.isTypeOnly,e.propertyName&&vw.cloneNode(e.propertyName),vw.cloneNode(e.name))));n.insertNodeAfter(e,r.parent.parent,N3(a,void 0,t))}}function N3(e,t,n){return vw.createImportDeclaration(void 0,F3(t,n),e.moduleSpecifier,void 0)}function F3(e,t){return vw.createImportClause(void 0,e,t&&t.length?vw.createNamedImports(t):void 0)}p3(k3,{kinds:Pe(S3).map((e=>e.kind)),getAvailableActions:function(e){const t=T3(e,"invoked"===e.triggerReason);if(!t)return s;if(!x6(t)){const e=S3[t.convertTo];return[{name:k3,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?Pe(S3).map((e=>({name:k3,description:e.description,actions:[{...e,notApplicableReason:t.error}]}))):s},getEditsForAction:function(e,t){_n.assert(V(Pe(S3),(e=>e.name===t)),"Unexpected action name");const n=T3(e);_n.assert(n&&!x6(n),"Expected applicable refactor info");const r=ede.ChangeTracker.with(e,(t=>function(e,t,n,r){const i=t.getTypeChecker();0===r.convertTo?function(e,t,n,r,i){let o=!1;const a=[],s=new Map;Ace.Core.eachSymbolReferenceInFile(r.name,t,e,(e=>{if(O_(e.parent)){const r=w3(e.parent).text;t.resolveName(r,e,-1,!0)&&s.set(r,!0),_n.assert((gF(n=e.parent)?n.expression:n.left)===e,"Parent expression should match id"),a.push(e.parent)}else o=!0;var n}));const c=new Map;for(const t of a){const r=w3(t).text;let i=c.get(r);void 0===i&&c.set(r,i=s.has(r)?dZ(r,e):r),n.replaceNode(e,t,vw.createIdentifier(i))}const l=[];c.forEach(((e,t)=>{l.push(vw.createImportSpecifier(!1,e===t?void 0:vw.createIdentifier(t),vw.createIdentifier(e)))}));const _=r.parent.parent;if(o&&!i&&CE(_))n.insertNodeAfter(e,_,N3(_,void 0,l));else{const t=o?vw.createIdentifier(r.name.text):void 0;n.replaceNode(e,r.parent,F3(t,l))}}(e,i,n,r.import,Dk(t.getCompilerOptions())):D3(e,t,n,r.import,1===r.convertTo)}(e.file,e.program,t,n)));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var E3="Extract type",P3={name:"Extract to type alias",description:$x(ua.Extract_to_type_alias),kind:"refactor.extract.type"},A3={name:"Extract to interface",description:$x(ua.Extract_to_interface),kind:"refactor.extract.interface"},I3={name:"Extract to typedef",description:$x(ua.Extract_to_typedef),kind:"refactor.extract.typedef"};function O3(e,t=!0){const{file:n,startPosition:r}=e,i=Fm(n),o=$Q(XZ(e)),a=o.pos===o.end&&t,c=function(e,t,n,r){const i=[()=>aQ(e,t),()=>oQ(e,t,(()=>!0))];for(const t of i){const i=t(),o=BX(i,e,n.pos,n.end),a=dc(i,(t=>t.parent&&x_(t)&&!j3(n,t.parent,e)&&(r||o)));if(a)return a}return}(n,r,o,a);if(!c||!x_(c))return{info:{error:$x(ua.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const l=e.program.getTypeChecker(),_=function(e,t){return dc(e,fu)||(t?dc(e,DP):void 0)}(c,i);if(void 0===_)return{info:{error:$x(ua.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};const u=function(e,t){return dc(e,(e=>e===t?"quit":!(!YN(e.parent)&&!ZN(e.parent))))??e}(c,_);if(!x_(u))return{info:{error:$x(ua.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const d=[];(YN(u.parent)||ZN(u.parent))&&o.end>c.end&&ae(d,u.parent.types.filter((e=>BX(e,n,o.pos,o.end))));const p=d.length>1?d:u,{typeParameters:f,affectedTextRange:m}=function(e,t,n,r){const i=[],o=Qe(t),a={pos:o[0].getStart(r),end:o[o.length-1].end};for(const e of o)if(c(e))return{typeParameters:void 0,affectedTextRange:void 0};return{typeParameters:i,affectedTextRange:a};function c(t){if(qN(t)){if(_N(t.typeName)){const o=t.typeName,c=e.resolveName(o.text,o,262144,!0);for(const e of(null==c?void 0:c.declarations)||s)if(DN(e)&&e.getSourceFile()===r){if(e.name.escapedText===o.escapedText&&j3(e,a,r))return!0;if(j3(n,e,r)&&!j3(a,e,r)){se(i,e);break}}}}else if(tF(t)){const e=dc(t,(e=>eF(e)&&j3(e.extendsType,t,r)));if(!e||!j3(a,e,r))return!0}else if(zN(t)||rF(t)){const e=dc(t.parent,i_);if(e&&e.type&&j3(e.type,t,r)&&!j3(a,e,r))return!0}else if(WN(t))if(_N(t.exprName)){const i=e.resolveName(t.exprName.text,t.exprName,111551,!1);if((null==i?void 0:i.valueDeclaration)&&j3(n,i.valueDeclaration,r)&&!j3(a,i.valueDeclaration,r))return!0}else if(_v(t.exprName.left)&&!j3(a,t.parent,r))return!0;return r&&KN(t)&&qa(r,t.pos).line===qa(r,t.end).line&&Cw(t,1),rO(t,c)}}(l,p,_,n);if(!f)return{info:{error:$x(ua.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};return{info:{isJS:i,selection:p,enclosingNode:_,typeParameters:f,typeElements:L3(l,p)},affectedTextRange:m}}function L3(e,t){if(t){if(Xe(t)){const n=[];for(const r of t){const t=L3(e,r);if(!t)return;ae(n,t)}return n}if(ZN(t)){const n=[],r=new Set;for(const i of t.types){const t=L3(e,i);if(!t||!t.every((e=>e.name&&kx(r,rY(e.name)))))return;ae(n,t)}return n}return nF(t)?L3(e,t.type):$N(t)?t.members:void 0}}function j3(e,t,n){return RX(e,Ya(n.text,t.pos),t.end)}function R3(e){return Xe(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:YN(e.selection[0].parent)?vw.createUnionTypeNode(e.selection):vw.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}p3(E3,{kinds:[P3.kind,A3.kind,I3.kind],getAvailableActions:function(e){const{info:t,affectedTextRange:n}=O3(e,"invoked"===e.triggerReason);if(!t)return s;if(!x6(t)){return[{name:E3,description:$x(ua.Extract_type),actions:t.isJS?[I3]:re([P3],t.typeElements&&A3)}].map((t=>({...t,actions:t.actions.map((t=>({...t,range:n?{start:{line:qa(e.file,n.pos).line,offset:qa(e.file,n.pos).character},end:{line:qa(e.file,n.end).line,offset:qa(e.file,n.end).character}}:void 0})))})))}return e.preferences.provideRefactorNotApplicableReason?[{name:E3,description:$x(ua.Extract_type),actions:[{...I3,notApplicableReason:t.error},{...P3,notApplicableReason:t.error},{...A3,notApplicableReason:t.error}]}]:s},getEditsForAction:function(e,t){const{file:n}=e,{info:r}=O3(e);_n.assert(r&&!x6(r),"Expected to find a range to extract");const i=dZ("NewType",n),o=ede.ChangeTracker.with(e,(o=>{switch(t){case P3.name:return _n.assert(!r.isJS,"Invalid actionName/JS combo"),function(e,t,n,r){const{enclosingNode:i,typeParameters:o}=r,{firstTypeNode:a,lastTypeNode:s,newTypeNode:c}=R3(r),l=vw.createTypeAliasDeclaration(void 0,n,o.map((e=>vw.updateTypeParameterDeclaration(e,e.modifiers,e.name,e.constraint,void 0))),c);e.insertNodeBefore(t,i,Zw(l),!0),e.replaceNodeRange(t,a,s,vw.createTypeReferenceNode(n,o.map((e=>vw.createTypeReferenceNode(e.name,void 0)))),{leadingTriviaOption:ede.LeadingTriviaOption.Exclude,trailingTriviaOption:ede.TrailingTriviaOption.ExcludeWhitespace})}(o,n,i,r);case I3.name:return _n.assert(r.isJS,"Invalid actionName/JS combo"),function(e,t,n,r,i){var o;Qe(i.selection).forEach((e=>{Cw(e,7168)}));const{enclosingNode:a,typeParameters:s}=i,{firstTypeNode:c,lastTypeNode:l,newTypeNode:u}=R3(i),d=vw.createJSDocTypedefTag(vw.createIdentifier("typedef"),vw.createJSDocTypeExpression(u),vw.createIdentifier(r)),p=[];_(s,(e=>{const t=dl(e),n=vw.createTypeParameterDeclaration(void 0,e.name),r=vw.createJSDocTemplateTag(vw.createIdentifier("template"),t&&tt(t,pP),[n]);p.push(r)}));const f=vw.createJSDocComment(void 0,vw.createNodeArray($(p,[d])));if(DP(a)){const r=a.getStart(n),i=YY(t.host,null==(o=t.formatContext)?void 0:o.options);e.insertNodeAt(n,a.getStart(n),f,{suffix:i+i+n.text.slice(_Z(n.text,r-1),r)})}else e.insertNodeBefore(n,a,f,!0);e.replaceNodeRange(n,c,l,vw.createTypeReferenceNode(r,s.map((e=>vw.createTypeReferenceNode(e.name,void 0)))))}(o,e,n,i,r);case A3.name:return _n.assert(!r.isJS&&!!r.typeElements,"Invalid actionName/JS combo"),function(e,t,n,r){var i;const{enclosingNode:o,typeParameters:a,typeElements:s}=r,c=vw.createInterfaceDeclaration(void 0,n,a,void 0,s);NI(c,null==(i=s[0])?void 0:i.parent),e.insertNodeBefore(t,o,Zw(c),!0);const{firstTypeNode:l,lastTypeNode:_}=R3(r);e.replaceNodeRange(t,l,_,vw.createTypeReferenceNode(n,a.map((e=>vw.createTypeReferenceNode(e.name,void 0)))),{leadingTriviaOption:ede.LeadingTriviaOption.Exclude,trailingTriviaOption:ede.TrailingTriviaOption.ExcludeWhitespace})}(o,n,i,r);default:_n.fail("Unexpected action name")}})),a=n.fileName;return{edits:o,renameFilename:a,renameLocation:pZ(o,a,i,!1)}}});var M3="Move to file",B3=$x(ua.Move_to_file),J3={name:"Move to file",description:B3,kind:"refactor.move.file"};function z3(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function q3(e,t,n,r,i,o,a,s,c,_){const u=o.getTypeChecker(),p=sn(e.statements,pf),f=!f0(t.fileName,o,a,!!e.commonJsModuleIndicator),m=fY(e,s);Q3(n.oldFileImportsFromTargetFile,t.fileName,_,o),function(e,t,n,r){for(const i of e.statements)k(t,i)||G3(i,(e=>{X3(e,(e=>{n.has(e.symbol)&&r.removeExistingImport(e)}))}))}(e,i.all,n.unusedImportsFromOldFile,_),_.writeFixes(r,m),function(e,t,n){for(const{first:r,afterLast:i}of t)n.deleteNodeRangeExcludingEnd(e,r,i)}(e,i.ranges,r),function(e,t,n,r,i,o,a){const s=t.getTypeChecker();for(const c of t.getSourceFiles())if(c!==r)for(const l of c.statements)G3(l,(_=>{if(s.getSymbolAtLocation(K3(_))!==r.symbol)return;const u=e=>{const t=pF(e.parent)?bY(s,e.parent):sx(s.getSymbolAtLocation(e),s);return!!t&&i.has(t)};Z3(c,_,e,u);const d=Mo(Fo(Jo(r.fileName,t.getCurrentDirectory())),o);if(0===Ct(!t.useCaseSensitiveFileNames())(d,c.fileName))return;const p=uB.getModuleSpecifier(t.getCompilerOptions(),c,c.fileName,d,sY(t,n)),f=i6(_,uY(p,a),u);f&&e.insertNodeAfter(c,l,f);const m=W3(_);m&&$3(e,c,s,i,p,m,_,a)}))}(r,o,a,e,n.movedSymbols,t.fileName,m),V3(e,n.targetFileImportsFromOldFile,r,f),T6(e,n.oldImportsNeededByTargetFile,n.targetFileImportsFromOldFile,u,o,c),!Nm(t)&&p.length&&r.insertStatementsInNewFile(t.fileName,p,e),c.writeFixes(r,m);const g=function(e,t,n,r){return A(t,(t=>{if(e6(t)&&!Y3(e,t,r)&&p6(t,(e=>{var t;return n.includes(_n.checkDefined(null==(t=et(e,su))?void 0:t.symbol))}))){const e=function(e,t){return t?[t6(e)]:function(e){return[e,...r6(e).map(n6)]}(e)}(JC(t),r);if(e)return e}return JC(t)}))}(e,i.all,Ie(n.oldFileImportsFromTargetFile.keys()),f);Nm(t)&&t.statements.length>0?function(e,t,n,r,i){var o;const a=new Set,s=null==(o=r.symbol)?void 0:o.exports;if(s){const n=t.getTypeChecker(),o=new Map;for(const e of i.all)e6(e)&&Fv(e,32)&&p6(e,(e=>{var t;const n=d(su(e)?null==(t=s.get(e.symbol.escapedName))?void 0:t.declarations:void 0,(e=>RE(e)?e:BE(e)?et(e.parent.parent,RE):void 0));n&&n.moduleSpecifier&&o.set(n,(o.get(n)||new Set).add(e))}));for(const[t,i]of Ie(o))if(t.exportClause&&ME(t.exportClause)&&l(t.exportClause.elements)){const o=t.exportClause.elements,s=C(o,(e=>void 0===y(sx(e.symbol,n).declarations,(e=>g6(e)&&i.has(e)))));if(0===l(s)){e.deleteNode(r,t),a.add(t);continue}l(s)RE(e)&&!!e.moduleSpecifier&&!a.has(e)));c?e.insertNodesBefore(r,c,n,!0):e.insertNodesAfter(r,r.statements[r.statements.length-1],n)}(r,o,g,t,i):Nm(t)?r.insertNodesAtEndOfFile(t,g,!1):r.insertStatementsInNewFile(t.fileName,c.hasFixes()?[4,...g]:g,e)}function U3(e,t,n,r,i){const o=e.getCompilerOptions().configFile;if(!o)return;const a=zo(Ro(n,"..",r)),s=aa(o.fileName,a,i),c=o.statements[0]&&et(o.statements[0].expression,mF),l=c&&y(c.properties,(e=>sP(e)&&HD(e.name)&&"files"===e.name.text));l&&fF(l.initializer)&&t.insertNodeInListAfter(o,ye(l.initializer.elements),vw.createStringLiteral(s),l.initializer.elements)}function V3(e,t,n,r){const i=ZQ();t.forEach(((t,o)=>{var a;if(o.declarations)for(const t of o.declarations){if(!g6(t))continue;const o=QF(a=t)?et(a.expression.left.name,_N):et(a.name,_N);if(!o)continue;const s=o6(t);i(s)&&a6(e,s,o,n,r)}}))}function W3(e){switch(e.kind){case 273:return e.importClause&&e.importClause.namedBindings&&275===e.importClause.namedBindings.kind?e.importClause.namedBindings.name:void 0;case 272:return e.name;case 261:return et(e.name,_N);default:return _n.assertNever(e,`Unexpected node kind ${e.kind}`)}}function $3(e,t,n,r,i,o,a,s){const c=r0(i,99);let l=!1;const _=[];if(Ace.Core.eachSymbolReferenceInFile(o,n,t,(e=>{gF(e.parent)&&(l=l||!!n.resolveName(c,e,-1,!0),r.has(n.getSymbolAtLocation(e.parent.name))&&_.push(e))})),_.length){const n=l?dZ(c,t):c;for(const r of _)e.replaceNode(t,r,vw.createIdentifier(n));e.insertNodeAfter(t,a,function(e,t,n,r){const i=vw.createIdentifier(t),o=uY(n,r);switch(e.kind){case 273:return vw.createImportDeclaration(void 0,vw.createImportClause(void 0,void 0,vw.createNamespaceImport(i)),o,void 0);case 272:return vw.createImportEqualsDeclaration(void 0,!1,i,vw.createExternalModuleReference(o));case 261:return vw.createVariableDeclaration(i,void 0,void 0,H3(o));default:return _n.assertNever(e,`Unexpected node kind ${e.kind}`)}}(a,c,i,s))}}function H3(e){return vw.createCallExpression(vw.createIdentifier("require"),void 0,[e])}function K3(e){return 273===e.kind?e.moduleSpecifier:272===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function G3(e,t){if(CE(e))HD(e.moduleSpecifier)&&t(e);else if(TE(e))VE(e.moduleReference)&&Ru(e.moduleReference.expression)&&t(e);else if(GF(e))for(const n of e.declarationList.declarations)n.initializer&&Lm(n.initializer,!0)&&t(n)}function X3(e,t){var n,r,i,o,a;if(273===e.kind){if((null==(n=e.importClause)?void 0:n.name)&&t(e.importClause),275===(null==(i=null==(r=e.importClause)?void 0:r.namedBindings)?void 0:i.kind)&&t(e.importClause.namedBindings),276===(null==(a=null==(o=e.importClause)?void 0:o.namedBindings)?void 0:a.kind))for(const n of e.importClause.namedBindings.elements)t(n)}else if(272===e.kind)t(e);else if(261===e.kind)if(80===e.name.kind)t(e);else if(207===e.name.kind)for(const n of e.name.elements)_N(n.name)&&t(n)}function Q3(e,t,n,r){for(const[i,o]of e){const e=e0(i,xk(r.getCompilerOptions())),a="default"===i.name&&i.parent?1:0;n.addImportForNonExistentExport(e,t,a,i.flags,o)}}function Y3(e,t,n,r){var i;return n?!QF(t)&&Fv(t,32)||!!(r&&e.symbol&&(null==(i=e.symbol.exports)?void 0:i.has(r.escapedText))):!!e.symbol&&!!e.symbol.exports&&r6(t).some((t=>e.symbol.exports.has(mc(t))))}function Z3(e,t,n,r){if(273===t.kind&&t.importClause){const{name:i,namedBindings:o}=t.importClause;if((!i||r(i))&&(!o||276===o.kind&&0!==o.elements.length&&o.elements.every((e=>r(e.name)))))return n.delete(e,t)}X3(t,(t=>{t.name&&_N(t.name)&&r(t.name)&&n.delete(e,t)}))}function e6(e){return _n.assert(uP(e.parent),"Node parent should be a SourceFile"),y6(e)||GF(e)}function t6(e){const t=FI(e)?$([vw.createModifier(95)],Fc(e)):void 0;switch(e.kind){case 263:return vw.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 264:const n=EI(e)?Nc(e):void 0;return vw.updateClassDeclaration(e,$(n,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 244:return vw.updateVariableStatement(e,t,e.declarationList);case 268:return vw.updateModuleDeclaration(e,t,e.name,e.body);case 267:return vw.updateEnumDeclaration(e,t,e.name,e.members);case 266:return vw.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 265:return vw.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 272:return vw.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 245:return _n.fail();default:return _n.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function n6(e){return vw.createExpressionStatement(vw.createBinaryExpression(vw.createPropertyAccessExpression(vw.createIdentifier("exports"),vw.createIdentifier(e)),64,vw.createIdentifier(e)))}function r6(e){switch(e.kind){case 263:case 264:return[e.name.text];case 244:return R(e.declarationList.declarations,(e=>_N(e.name)?e.name.text:void 0));case 268:case 267:case 266:case 265:case 272:return s;case 245:return _n.fail("Can't export an ExpressionStatement");default:return _n.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function i6(e,t,n){switch(e.kind){case 273:{const r=e.importClause;if(!r)return;const i=r.name&&n(r.name)?r.name:void 0,o=r.namedBindings&&function(e,t){if(275===e.kind)return t(e.name)?e:void 0;{const n=e.elements.filter((e=>t(e.name)));return n.length?vw.createNamedImports(n):void 0}}(r.namedBindings,n);return i||o?vw.createImportDeclaration(void 0,vw.createImportClause(r.phaseModifier,i,o),JC(t),void 0):void 0}case 272:return n(e.name)?e:void 0;case 261:{const r=function(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 208:return e;case 207:{const n=e.elements.filter((e=>e.propertyName||!_N(e.name)||t(e.name)));return n.length?vw.createObjectBindingPattern(n):void 0}}}(e.name,n);return r?function(e,t,n,r=2){return vw.createVariableStatement(void 0,vw.createVariableDeclarationList([vw.createVariableDeclaration(e,void 0,t,n)],r))}(r,e.type,H3(t),e.parent.flags):void 0}default:return _n.assertNever(e,`Unexpected import kind ${e.kind}`)}}function o6(e){switch(e.kind){case 261:return e.parent.parent;case 209:return o6(tt(e.parent.parent,(e=>pE(e)||pF(e))));default:return e}}function a6(e,t,n,r,i){if(!Y3(e,t,i,n))if(i)QF(t)||r.insertExportModifier(e,t);else{const n=r6(t);0!==n.length&&r.insertNodesAfter(e,t,n.map(n6))}}function s6(e,t,n,r){const i=t.getTypeChecker();if(r){const t=u6(e,r.all,i),s=Fo(e.fileName),c=tT(e.fileName),l=Ro(s,function(e,t,n,r){let i=e;for(let o=1;;o++){const a=Ro(n,i+t);if(!r.fileExists(a))return i;i=`${e}.${o}`}}((o=t.oldFileImportsFromTargetFile,a=t.movedSymbols,od(o,gY)||od(a,gY)||"newFile"),c,s,n))+c;return l}var o,a;return""}function c6(e){const t=function(e){const{file:t}=e,n=$Q(XZ(e)),{statements:r}=t;let i=b(r,(e=>e.end>n.pos));if(-1===i)return;const o=v6(t,r[i]);o&&(i=o.start);let a=b(r,(e=>e.end>=n.end),i);-1!==a&&n.end<=r[a].getStart()&&a--;const s=v6(t,r[a]);return s&&(a=s.end),{toMove:r.slice(i,-1===a?r.length:a+1),afterLast:-1===a?void 0:r[a+1]}}(e);if(void 0===t)return;const n=[],r=[],{toMove:i,afterLast:o}=t;return W(i,_6,((e,t)=>{for(let r=e;r!!(2&e.transformFlags)))}function _6(e){return!function(e){switch(e.kind){case 273:return!0;case 272:return!Fv(e,32);case 244:return e.declarationList.declarations.every((e=>!!e.initializer&&Lm(e.initializer,!0)));default:return!1}}(e)&&!pf(e)}function u6(e,t,n,r=new Set,i){var o;const a=new Set,s=new Map,c=new Map,l=function(e){if(void 0===e)return;const t=n.getJsxNamespace(e),r=n.resolveName(t,e,1920,!0);return r&&V(r.declarations,f6)?r:void 0}(l6(t));l&&s.set(l,[!1,et(null==(o=l.declarations)?void 0:o[0],(e=>LE(e)||wE(e)||AE(e)||TE(e)||pF(e)||pE(e)))]);for(const e of t)p6(e,(e=>{a.add(_n.checkDefined(QF(e)?n.getSymbolAtLocation(e.expression.left):e.symbol,"Need a symbol here"))}));const _=new Set;for(const o of t)d6(o,n,i,((t,i)=>{if(!V(t.declarations))return;if(r.has(sx(t,n)))return void _.add(t);const o=y(t.declarations,f6);if(o){const e=s.get(t);s.set(t,[(void 0===e||e)&&i,et(o,(e=>LE(e)||wE(e)||AE(e)||TE(e)||pF(e)||pE(e)))])}else!a.has(t)&&h(t.declarations,(t=>{return g6(t)&&(pE(n=t)?n.parent.parent.parent:n.parent)===e;var n}))&&c.set(t,i)}));for(const e of s.keys())_.add(e);const u=new Map;for(const r of e.statements)k(t,r)||(l&&2&r.transformFlags&&_.delete(l),d6(r,n,i,((e,t)=>{a.has(e)&&u.set(e,t),_.delete(e)})));return{movedSymbols:a,targetFileImportsFromOldFile:c,oldFileImportsFromTargetFile:u,oldImportsNeededByTargetFile:s,unusedImportsFromOldFile:_}}function d6(e,t,n,r){e.forEachChild((function e(i){if(_N(i)&&!_h(i)){if(n&&!Yb(n,i))return;const e=t.getSymbolAtLocation(i);e&&r(e,kT(i))}else i.forEachChild(e)}))}function p6(e,t){switch(e.kind){case 263:case 264:case 268:case 267:case 266:case 265:case 272:return t(e);case 244:return d(e.declarationList.declarations,(e=>h6(e.name,t)));case 245:{const{expression:n}=e;return PF(n)&&1===ng(n)?t(e):void 0}}}function f6(e){switch(e.kind){case 272:case 277:case 274:case 275:return!0;case 261:return m6(e);case 209:return pE(e.parent.parent)&&m6(e.parent.parent);default:return!1}}function m6(e){return uP(e.parent.parent.parent)&&!!e.initializer&&Lm(e.initializer,!0)}function g6(e){return y6(e)&&uP(e.parent)||pE(e)&&uP(e.parent.parent.parent)}function h6(e,t){switch(e.kind){case 80:return t(tt(e.parent,(e=>pE(e)||pF(e))));case 208:case 207:return d(e.elements,(e=>RF(e)?void 0:h6(e.name,t)));default:return _n.assertNever(e,`Unexpected name kind ${e.kind}`)}}function y6(e){switch(e.kind){case 263:case 264:case 268:case 267:case 266:case 265:case 272:return!0;default:return!1}}function v6(e,t){if(a_(t)){const n=t.symbol.declarations;if(void 0===n||l(n)<=1||!k(n,t))return;const r=n[0],i=n[l(n)-1],o=R(n,(t=>bd(t)===e&&fu(t)?t:void 0)),a=b(e.statements,(e=>e.end>=i.end));return{toMove:o,start:b(e.statements,(e=>e.end>=r.end)),end:a}}}function b6(e,t,n){const r=new Set;for(const t of e.imports){const e=bg(t);if(CE(e)&&e.importClause&&e.importClause.namedBindings&&OE(e.importClause.namedBindings))for(const t of e.importClause.namedBindings.elements){const e=n.getSymbolAtLocation(t.propertyName||t.name);e&&r.add(sx(e,n))}if(jm(e.parent)&&uF(e.parent.name))for(const t of e.parent.name.elements){const e=n.getSymbolAtLocation(t.propertyName||t.name);e&&r.add(sx(e,n))}}for(const i of t)d6(i,n,void 0,(t=>{const i=sx(t,n);i.valueDeclaration&&bd(i.valueDeclaration).path===e.path&&r.add(i)}));return r}function x6(e){return void 0!==e.error}function k6(e,t){return!t||e.substr(0,t.length)===t}function S6(e,t,n,r){return!gF(e)||d_(t)||n.resolveName(e.name.text,e,111551,!1)||uN(e.name)||yc(e.name)?dZ(d_(t)?"newProperty":"newLocal",r):e.name.text}function T6(e,t,n,r,i,o){t.forEach((([e,t],n)=>{var i;const a=sx(n,r);r.isUnknownSymbol(a)?o.addVerbatimImport(_n.checkDefined(t??dc(null==(i=n.declarations)?void 0:i[0],Cp))):void 0===a.parent?(_n.assert(void 0!==t,"expected module symbol to have a declaration"),o.addImportForModuleSymbol(n,e,t)):o.addImportFromExportedSymbol(a,e,t)})),Q3(n,e.fileName,o,i)}p3(M3,{kinds:[J3.kind],getAvailableActions:function(e,t){const n=e.file,r=c6(e);if(!t)return s;if("implicit"===e.triggerReason&&void 0!==e.endPosition){const t=dc(aQ(n,e.startPosition),m0),r=dc(aQ(n,e.endPosition),m0);if(t&&!uP(t)&&r&&!uP(r))return s}if(e.preferences.allowTextChangesInNewFiles&&r){const e={start:{line:qa(n,r.all[0].getStart(n)).line,offset:qa(n,r.all[0].getStart(n)).character},end:{line:qa(n,ye(r.all).end).line,offset:qa(n,ye(r.all).end).character}};return[{name:M3,description:B3,actions:[{...J3,range:e}]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:M3,description:B3,actions:[{...J3,notApplicableReason:$x(ua.Selection_is_not_a_valid_statement_or_statements)}]}]:s},getEditsForAction:function(e,t,n){_n.assert(t===M3,"Wrong refactor invoked");const r=_n.checkDefined(c6(e)),{host:i,program:o}=e;_n.assert(n,"No interactive refactor arguments available");const a=n.targetFile;if(jS(a)||RS(a)){if(i.fileExists(a)&&void 0===o.getSourceFile(a))return z3($x(ua.Cannot_move_statements_to_the_selected_file));const t=ede.ChangeTracker.with(e,(t=>function(e,t,n,r,i,o,a,s){const c=r.getTypeChecker(),l=!a.fileExists(n),_=l?g0(n,t.externalModuleIndicator?99:t.commonJsModuleIndicator?1:void 0,r,a):_n.checkDefined(r.getSourceFile(n)),u=M7.createImportAdder(t,e.program,e.preferences,e.host),d=M7.createImportAdder(_,e.program,e.preferences,e.host);q3(t,_,u6(t,i.all,c,l?void 0:b6(_,i.all,c)),o,i,r,a,s,d,u),l&&U3(r,o,t.fileName,n,My(a))}(e,e.file,n.targetFile,e.program,r,t,e.host,e.preferences)));return{edits:t,renameFilename:void 0,renameLocation:void 0}}return z3($x(ua.Cannot_move_to_file_selected_file_is_invalid))}});var C6="Inline variable",w6=$x(ua.Inline_variable),D6={name:C6,description:w6,kind:"refactor.inline.variable"};function N6(e,t,n,r){var i,o;const a=r.getTypeChecker(),s=iQ(e,t),c=s.parent;if(_N(s)){if(nx(c)&&If(c)&&_N(c.name)){if(1!==(null==(i=a.getMergedSymbol(c.symbol).declarations)?void 0:i.length))return{error:$x(ua.Variables_with_multiple_declarations_cannot_be_inlined)};if(F6(c))return;const t=E6(c,a,e);return t&&{references:t,declaration:c,replacement:c.initializer}}if(n){let t=a.resolveName(s.text,s,111551,!1);if(t=t&&a.getMergedSymbol(t),1!==(null==(o=null==t?void 0:t.declarations)?void 0:o.length))return{error:$x(ua.Variables_with_multiple_declarations_cannot_be_inlined)};const n=t.declarations[0];if(!nx(n)||!If(n)||!_N(n.name))return;if(F6(n))return;const r=E6(n,a,e);return r&&{references:r,declaration:n,replacement:n.initializer}}return{error:$x(ua.Could_not_find_variable_to_inline)}}}function F6(e){return V(tt(e.parent.parent,GF).modifiers,dN)}function E6(e,t,n){const r=[],i=Ace.Core.eachSymbolReferenceInFile(e.name,t,n,(t=>!(!Ace.isWriteAccessForReference(t)||cP(t.parent))||(!(!BE(t.parent)&&!jE(t.parent))||(!!WN(t.parent)||(!!Is(e,t.pos)||void r.push(t))))));return 0===r.length||i?void 0:r}function P6(e,t){t=JC(t);const{parent:n}=e;return W_(n)&&(oy(t){for(const t of a){const r=HD(c)&&_N(t)&&ih(t.parent);r&&$F(r)&&!bF(r.parent.parent)?A6(e,n,r,c):e.replaceNode(n,t,P6(t,c))}e.delete(n,s)}))}}});var I6="Move to a new file",O6=$x(ua.Move_to_a_new_file),L6={name:I6,description:O6,kind:"refactor.move.newFile"};p3(I6,{kinds:[L6.kind],getAvailableActions:function(e){const t=c6(e),n=e.file;if("implicit"===e.triggerReason&&void 0!==e.endPosition){const t=dc(aQ(n,e.startPosition),m0),r=dc(aQ(n,e.endPosition),m0);if(t&&!uP(t)&&r&&!uP(r))return s}if(e.preferences.allowTextChangesInNewFiles&&t){const n=e.file,r={start:{line:qa(n,t.all[0].getStart(n)).line,offset:qa(n,t.all[0].getStart(n)).character},end:{line:qa(n,ye(t.all).end).line,offset:qa(n,ye(t.all).end).character}};return[{name:I6,description:O6,actions:[{...L6,range:r}]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:I6,description:O6,actions:[{...L6,notApplicableReason:$x(ua.Selection_is_not_a_valid_statement_or_statements)}]}]:s},getEditsForAction:function(e,t){_n.assert(t===I6,"Wrong refactor invoked");const n=_n.checkDefined(c6(e)),r=ede.ChangeTracker.with(e,(t=>function(e,t,n,r,i,o,a){const s=t.getTypeChecker(),c=u6(e,n.all,s),l=s6(e,t,i,n),_=g0(l,e.externalModuleIndicator?99:e.commonJsModuleIndicator?1:void 0,t,i),u=M7.createImportAdder(e,o.program,o.preferences,o.host),d=M7.createImportAdder(_,o.program,o.preferences,o.host);q3(e,_,c,r,n,t,i,a,d,u),U3(t,r,e.fileName,l,My(i))}(e.file,e.program,n,t,e.host,e,e.preferences)));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var j6={},R6="Convert overload list to single signature",M6=$x(ua.Convert_overload_list_to_single_signature),B6={name:R6,description:M6,kind:"refactor.rewrite.function.overloadList"};function J6(e){switch(e.kind){case 174:case 175:case 180:case 177:case 181:case 263:return!0}return!1}function z6(e,t,n){const r=dc(aQ(e,t),J6);if(!r)return;if(a_(r)&&r.body&&LX(r.body,t))return;const i=n.getTypeChecker(),o=r.symbol;if(!o)return;const a=o.declarations;if(l(a)<=1)return;if(!h(a,(t=>bd(t)===e)))return;if(!J6(a[0]))return;const s=a[0].kind;if(!h(a,(e=>e.kind===s)))return;const c=a;if(V(c,(e=>!!e.typeParameters||V(e.parameters,(e=>!!e.modifiers||!_N(e.name))))))return;const _=R(c,(e=>i.getSignatureFromDeclaration(e)));if(l(_)!==l(a))return;const u=i.getReturnTypeOfSignature(_[0]);return h(_,(e=>i.getReturnTypeOfSignature(e)===u))?c:void 0}p3(R6,{kinds:[B6.kind],getEditsForAction:function(e){const{file:t,startPosition:n,program:r}=e,i=z6(t,n,r);if(!i)return;const o=r.getTypeChecker(),a=i[i.length-1];let s=a;switch(a.kind){case 174:s=vw.updateMethodSignature(a,a.modifiers,a.name,a.questionToken,a.typeParameters,c(i),a.type);break;case 175:s=vw.updateMethodDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.questionToken,a.typeParameters,c(i),a.type,a.body);break;case 180:s=vw.updateCallSignature(a,a.typeParameters,c(i),a.type);break;case 177:s=vw.updateConstructorDeclaration(a,a.modifiers,c(i),a.body);break;case 181:s=vw.updateConstructSignature(a,a.typeParameters,c(i),a.type);break;case 263:s=vw.updateFunctionDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.typeParameters,c(i),a.type,a.body);break;default:return _n.failBadSyntaxKind(a,"Unhandled signature kind in overload list conversion refactoring")}if(s===a)return;return{renameFilename:void 0,renameLocation:void 0,edits:ede.ChangeTracker.with(e,(e=>{e.replaceNodeRange(t,i[0],i[i.length-1],s)}))};function c(e){const t=e[e.length-1];return a_(t)&&t.body&&(e=e.slice(0,e.length-1)),vw.createNodeArray([vw.createParameterDeclaration(void 0,vw.createToken(26),"args",void 0,vw.createUnionTypeNode(N(e,_)))])}function _(e){const t=N(e.parameters,u);return Cw(vw.createTupleTypeNode(t),V(t,(e=>!!l(Rw(e))))?0:1)}function u(e){_n.assert(_N(e.name));const t=NI(vw.createNamedTupleMember(e.dotDotDotToken,e.name,e.questionToken,e.type||vw.createKeywordTypeNode(133)),e),n=e.symbol&&e.symbol.getDocumentationComment(o);if(n){const e=Q8(n);e.length&&Mw(t,[{text:`*\n${e.split("\n").map((e=>` * ${e}`)).join("\n")}\n `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return t}},getAvailableActions:function(e){const{file:t,startPosition:n,program:r}=e;return z6(t,n,r)?[{name:R6,description:M6,actions:[B6]}]:s}});var q6="Add or remove braces in an arrow function",U6=$x(ua.Add_or_remove_braces_in_an_arrow_function),V6={name:"Add braces to arrow function",description:$x(ua.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},W6={name:"Remove braces from arrow function",description:$x(ua.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"};function $6(e,t,n=!0,r){const i=aQ(e,t),o=Kf(i);if(!o)return{error:$x(ua.Could_not_find_a_containing_arrow_function)};if(!TF(o))return{error:$x(ua.Containing_function_is_not_an_arrow_function)};if(Yb(o,i)&&(!Yb(o.body,i)||n)){if(k6(V6.kind,r)&&W_(o.body))return{func:o,addBraces:!0,expression:o.body};if(k6(W6.kind,r)&&KF(o.body)&&1===o.body.statements.length){const e=me(o.body.statements);if(aE(e)){return{func:o,addBraces:!1,expression:e.expression&&mF(Ex(e.expression,!1))?vw.createParenthesizedExpression(e.expression):e.expression,returnStatement:e}}}}}p3(q6,{kinds:[W6.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r}=e,i=$6(n,r);_n.assert(i&&!x6(i),"Expected applicable refactor info");const{expression:o,returnStatement:a,func:s}=i;let c;if(t===V6.name){const e=vw.createReturnStatement(o);c=vw.createBlock([e],!0),fZ(o,e,n,3,!0)}else if(t===W6.name&&a){const e=o||vw.createVoidZero();c=vZ(e)?vw.createParenthesizedExpression(e):e,gZ(a,c,n,3,!1),fZ(a,c,n,3,!1),mZ(a,c,n,3,!1)}else _n.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:ede.ChangeTracker.with(e,(e=>{e.replaceNode(n,s.body,c)}))}},getAvailableActions:function(e){const{file:t,startPosition:n,triggerReason:r}=e,i=$6(t,n,"invoked"===r);if(!i)return s;if(!x6(i))return[{name:q6,description:U6,actions:[i.addBraces?V6:W6]}];if(e.preferences.provideRefactorNotApplicableReason)return[{name:q6,description:U6,actions:[{...V6,notApplicableReason:i.error},{...W6,notApplicableReason:i.error}]}];return s}});var H6={},K6="Convert arrow function or function expression",G6=$x(ua.Convert_arrow_function_or_function_expression),X6={name:"Convert to anonymous function",description:$x(ua.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},Q6={name:"Convert to named function",description:$x(ua.Convert_to_named_function),kind:"refactor.rewrite.function.named"},Y6={name:"Convert to arrow function",description:$x(ua.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};function Z6(e){let t=!1;return e.forEachChild((function e(n){PX(n)?t=!0:d_(n)||mE(n)||SF(n)||rO(n,e)})),t}function e4(e,t,n){const r=aQ(e,t),i=n.getTypeChecker(),o=function(e,t,n){if(!function(e){return pE(e)||fE(e)&&1===e.declarations.length}(n))return;const r=(pE(n)?n:me(n.declarations)).initializer;if(r&&(TF(r)||SF(r)&&!n4(e,t,r)))return r;return}(e,i,r.parent);if(o&&!Z6(o.body)&&!i.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};const a=Kf(r);if(a&&(SF(a)||TF(a))&&!Yb(a.body,r)&&!Z6(a.body)&&!i.containsArgumentsReference(a)){if(SF(a)&&n4(e,i,a))return;return{selectedVariableDeclaration:!1,func:a}}}function t4(e){if(W_(e)){const t=vw.createReturnStatement(e),n=e.getSourceFile();return NI(t,e),WC(t),gZ(e,t,n,void 0,!0),vw.createBlock([t],!0)}return e}function n4(e,t,n){return!!n.name&&Ace.Core.isSymbolReferencedInFile(n.name,t,e)}p3(K6,{kinds:[X6.kind,Q6.kind,Y6.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r,program:i}=e,o=e4(n,r,i);if(!o)return;const{func:a}=o,s=[];switch(t){case X6.name:s.push(...function(e,t){const{file:n}=e,r=t4(t.body),i=vw.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,r);return ede.ChangeTracker.with(e,(e=>e.replaceNode(n,t,i)))}(e,a));break;case Q6.name:const t=function(e){const t=e.parent;if(!pE(t)||!If(t))return;const n=t.parent,r=n.parent;return fE(n)&&GF(r)&&_N(t.name)?{variableDeclaration:t,variableDeclarationList:n,statement:r,name:t.name}:void 0}(a);if(!t)return;s.push(...function(e,t,n){const{file:r}=e,i=t4(t.body),{variableDeclaration:o,variableDeclarationList:a,statement:s,name:c}=n;$C(s);const _=32&oc(o)|zv(t),u=vw.createModifiersFromModifierFlags(_),d=vw.createFunctionDeclaration(l(u)?u:void 0,t.asteriskToken,c,t.typeParameters,t.parameters,t.type,i);return 1===a.declarations.length?ede.ChangeTracker.with(e,(e=>e.replaceNode(r,s,d))):ede.ChangeTracker.with(e,(e=>{e.delete(r,o),e.insertNodeAfter(r,s,d)}))}(e,a,t));break;case Y6.name:if(!SF(a))return;s.push(...function(e,t){const{file:n}=e,r=t.body.statements,i=r[0];let o;!function(e,t){return 1===e.statements.length&&aE(t)&&!!t.expression}(t.body,i)?o=t.body:(o=i.expression,WC(o),uZ(i,o));const a=vw.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,vw.createToken(39),o);return ede.ChangeTracker.with(e,(e=>e.replaceNode(n,t,a)))}(e,a));break;default:return _n.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:s}},getAvailableActions:function(e){const{file:t,startPosition:n,program:r,kind:i}=e,o=e4(t,n,r);if(!o)return s;const{selectedVariableDeclaration:a,func:c}=o,l=[],_=[];if(k6(Q6.kind,i)){const e=a||TF(c)&&pE(c.parent)?void 0:$x(ua.Could_not_convert_to_named_function);e?_.push({...Q6,notApplicableReason:e}):l.push(Q6)}if(k6(X6.kind,i)){const e=!a&&TF(c)?void 0:$x(ua.Could_not_convert_to_anonymous_function);e?_.push({...X6,notApplicableReason:e}):l.push(X6)}if(k6(Y6.kind,i)){const e=SF(c)?void 0:$x(ua.Could_not_convert_to_arrow_function);e?_.push({...Y6,notApplicableReason:e}):l.push(Y6)}return[{name:K6,description:G6,actions:0===l.length&&e.preferences.provideRefactorNotApplicableReason?_:l}]}});var r4={},i4="Convert parameters to destructured object",o4=$x(ua.Convert_parameters_to_destructured_object),a4={name:i4,description:o4,kind:"refactor.rewrite.parameters.toDestructured"};function s4(e,t){const n=u7(e);if(n){const e=t.getContextualTypeForObjectLiteralElement(n),r=null==e?void 0:e.getSymbol();if(r&&!(6&ox(r)))return r}}function c4(e){const t=e.node;return LE(t.parent)||wE(t.parent)||TE(t.parent)||AE(t.parent)||BE(t.parent)||jE(t.parent)?t:void 0}function l4(e){if(uu(e.node.parent))return e.node}function _4(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 214:case 215:const e=et(n,R_);if(e&&e.expression===t)return e;break;case 212:const r=et(n,gF);if(r&&r.parent&&r.name===t){const e=et(r.parent,R_);if(e&&e.expression===r)return e}break;case 213:const i=et(n,hF);if(i&&i.parent&&i.argumentExpression===t){const e=et(i.parent,R_);if(e&&e.expression===i)return e}}}}function u4(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 212:const e=et(n,gF);if(e&&e.expression===t)return e;break;case 213:const r=et(n,hF);if(r&&r.expression===t)return r}}}function d4(e){const t=e.node;if(2===rX(t)||sb(t.parent))return t}function p4(e,t,n){const r=oQ(e,t),i=Gf(r);if(!function(e){const t=dc(e,Tu);if(t){const e=dc(t,(e=>!Tu(e)));return!!e&&a_(e)}return!1}(r))return!(i&&function(e,t){var n;if(!function(e,t){return function(e){if(y4(e))return e.length-1;return e.length}(e)>=1&&h(e,(e=>function(e,t){if(Ju(e)){const n=t.getTypeAtLocation(e);if(!t.isArrayType(n)&&!t.isTupleType(n))return!1}return!e.modifiers&&_N(e.name)}(e,t)))}(e.parameters,t))return!1;switch(e.kind){case 263:return g4(e)&&m4(e,t);case 175:if(mF(e.parent)){const r=s4(e.name,t);return 1===(null==(n=null==r?void 0:r.declarations)?void 0:n.length)&&m4(e,t)}return m4(e,t);case 177:return gE(e.parent)?g4(e.parent)&&m4(e,t):h4(e.parent.parent)&&m4(e,t);case 219:case 220:return h4(e.parent)}return!1}(i,n)&&Yb(i,r))||i.body&&Yb(i.body,r)?void 0:i}function f4(e){return AN(e)&&(hE(e.parent)||$N(e.parent))}function m4(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function g4(e){if(!e.name){return!!SY(e,90)}return!0}function h4(e){return pE(e)&&af(e)&&_N(e.name)&&!e.type}function y4(e){return e.length>0&&PX(e[0].name)}function v4(e){return y4(e)&&(e=vw.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function b4(e,t){const n=v4(e.parameters),r=Ju(ye(n)),i=N(r?t.slice(0,n.length-1):t,((e,t)=>{const r=k4(n[t]),i=(o=r,_N(a=e)&&Uh(a)===o?vw.createShorthandPropertyAssignment(o):vw.createPropertyAssignment(o,a));var o,a;return WC(i.name),sP(i)&&WC(i.initializer),uZ(e,i),i}));if(r&&t.length>=n.length){const e=t.slice(n.length-1),r=vw.createPropertyAssignment(k4(ye(n)),vw.createArrayLiteralExpression(e));i.push(r)}return vw.createObjectLiteralExpression(i,!1)}function x4(e,t,n){const r=t.getTypeChecker(),i=v4(e.parameters),o=N(i,(function(e){const t=vw.createBindingElement(void 0,void 0,k4(e),Ju(e)&&u(e)?vw.createArrayLiteralExpression():e.initializer);WC(t),e.initializer&&t.initializer&&uZ(e.initializer,t.initializer);return t})),a=vw.createObjectBindingPattern(o),s=function(e){const t=N(e,_);return ww(vw.createTypeLiteralNode(t),1)}(i);let c;h(i,u)&&(c=vw.createObjectLiteralExpression());const l=vw.createParameterDeclaration(void 0,void 0,a,void 0,s,c);if(y4(e.parameters)){const t=e.parameters[0],n=vw.createParameterDeclaration(void 0,void 0,t.name,void 0,t.type);return WC(n.name),uZ(t.name,n.name),t.type&&(WC(n.type),uZ(t.type,n.type)),vw.createNodeArray([n,l])}return vw.createNodeArray([l]);function _(e){let i=e.type;var o;i||!e.initializer&&!Ju(e)||(o=e,i=DZ(r.getTypeAtLocation(o),o,t,n));const a=vw.createPropertySignature(void 0,k4(e),u(e)?vw.createToken(58):e.questionToken,i);return WC(a),uZ(e.name,a.name),e.type&&a.type&&uZ(e.type,a.type),a}function u(e){if(Ju(e)){const t=r.getTypeAtLocation(e);return!r.isTupleType(t)}return r.isOptionalParameter(e)}}function k4(e){return Uh(e.name)}p3(i4,{kinds:[a4.kind],getEditsForAction:function(e,t){_n.assert(t===i4,"Unexpected action name");const{file:n,startPosition:r,program:i,cancellationToken:o,host:a}=e,s=p4(n,r,i.getTypeChecker());if(!s||!o)return;const c=function(e,t,n){const r=function(e){switch(e.kind){case 263:if(e.name)return[e.name];return[_n.checkDefined(SY(e,90),"Nameless function declaration should be a default export")];case 175:return[e.name];case 177:const t=_n.checkDefined($X(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");if(232===e.parent.kind){return[e.parent.parent.name,t]}return[t];case 220:return[e.parent.name];case 219:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return _n.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}(e),i=LN(e)?function(e){switch(e.parent.kind){case 264:const t=e.parent;if(t.name)return[t.name];return[_n.checkDefined(SY(t,90),"Nameless class declaration should be a default export")];case 232:const n=e.parent,r=e.parent.parent,i=n.name;return i?[i,r.name]:[r.name]}}(e):[],o=X([...r,...i],ft),a=t.getTypeChecker(),s=A(o,(e=>Ace.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n))),c=l(s);h(c.declarations,(e=>k(o,e)))||(c.valid=!1);return c;function l(t){const n={accessExpressions:[],typeUsages:[]},o={functionCalls:[],declarations:[],classReferences:n,valid:!0},s=N(r,_),c=N(i,_),l=LN(e),u=N(r,(e=>s4(e,a)));for(const r of t){if(r.kind===Ace.EntryKind.Span){o.valid=!1;continue}if(k(u,_(r.node))){if(f4(r.node.parent)){o.signature=r.node.parent;continue}const e=_4(r);if(e){o.functionCalls.push(e);continue}}const t=s4(r.node,a);if(t&&k(u,t)){const e=l4(r);if(e){o.declarations.push(e);continue}}if(k(s,_(r.node))||aX(r.node)){if(c4(r))continue;const e=l4(r);if(e){o.declarations.push(e);continue}const t=_4(r);if(t){o.functionCalls.push(t);continue}}if(l&&k(c,_(r.node))){if(c4(r))continue;const t=l4(r);if(t){o.declarations.push(t);continue}const i=u4(r);if(i){n.accessExpressions.push(i);continue}if(gE(e.parent)){const e=d4(r);if(e){n.typeUsages.push(e);continue}}}o.valid=!1}return o}function _(e){const t=a.getSymbolAtLocation(e);return t&&aZ(t,a)}}(s,i,o);if(c.valid){const t=ede.ChangeTracker.with(e,(e=>function(e,t,n,r,i,o){const a=o.signature,s=N(x4(i,t,n),(e=>JC(e)));if(a){l(a,N(x4(a,t,n),(e=>JC(e))))}l(i,s);const c=Z(o.functionCalls,((e,t)=>yt(e.pos,t.pos)));for(const e of c)if(e.arguments&&e.arguments.length){const t=JC(b4(i,e.arguments),!0);r.replaceNodeRange(bd(e),me(e.arguments),ye(e.arguments),t,{leadingTriviaOption:ede.LeadingTriviaOption.IncludeAll,trailingTriviaOption:ede.TrailingTriviaOption.Include})}function l(t,n){r.replaceNodeRangeWithNodes(e,me(t.parameters),ye(t.parameters),n,{joiner:", ",indentation:0,leadingTriviaOption:ede.LeadingTriviaOption.IncludeAll,trailingTriviaOption:ede.TrailingTriviaOption.Include})}}(n,i,a,e,s,c)));return{renameFilename:void 0,renameLocation:void 0,edits:t}}return{edits:[]}},getAvailableActions:function(e){const{file:t,startPosition:n}=e;if(Fm(t))return s;return p4(t,n,e.program.getTypeChecker())?[{name:i4,description:o4,actions:[a4]}]:s}});var S4={},T4="Convert to template string",C4=$x(ua.Convert_to_template_string),w4={name:T4,description:C4,kind:"refactor.rewrite.string"};function D4(e,t){const n=aQ(e,t),r=F4(n);return!E4(r).isValidConcatenation&&kF(r.parent)&&PF(r.parent.parent)?r.parent.parent:n}function N4(e,t){const n=F4(t),r=e.file,i=function({nodes:e,operators:t},n){const r=P4(t,n),i=A4(e,n,r),[o,a,s,c]=O4(0,e);if(o===e.length){const e=vw.createNoSubstitutionTemplateLiteral(a,s);return i(c,e),e}const l=[],_=vw.createTemplateHead(a,s);i(c,_);for(let t=o;t{L4(e);const r=t===n.templateSpans.length-1,i=e.literal.text+(r?a:""),o=I4(e.literal)+(r?s:"");return vw.createTemplateSpan(e.expression,_&&r?vw.createTemplateTail(i,o):vw.createTemplateMiddle(i,o))}));l.push(...e)}else{const e=_?vw.createTemplateTail(a,s):vw.createTemplateMiddle(a,s);i(c,e),l.push(vw.createTemplateSpan(n,e))}}return vw.createTemplateExpression(_,l)}(E4(n),r),o=ds(r.text,n.end);if(o){const t=o[o.length-1],a={pos:o[0].pos,end:t.end};return ede.ChangeTracker.with(e,(e=>{e.deleteRange(r,a),e.replaceNode(r,n,i)}))}return ede.ChangeTracker.with(e,(e=>e.replaceNode(r,n,i)))}function F4(e){return dc(e.parent,(e=>{switch(e.kind){case 212:case 213:return!1;case 229:case 227:return!(PF(e.parent)&&(t=e.parent,64!==t.operatorToken.kind&&65!==t.operatorToken.kind));default:return"quit"}var t}))||e}function E4(e){const t=e=>{if(!PF(e))return{nodes:[e],operators:[],validOperators:!0,hasString:HD(e)||XD(e)};const{nodes:n,operators:r,hasString:i,validOperators:o}=t(e.left);if(!(i||HD(e.right)||IF(e.right)))return{nodes:[e],operators:[],hasString:!1,validOperators:!0};const a=40===e.operatorToken.kind,s=o&&a;return n.push(e.right),r.push(e.operatorToken),{nodes:n,operators:r,hasString:!0,validOperators:s}},{nodes:n,operators:r,validOperators:i,hasString:o}=t(e);return{nodes:n,operators:r,isValidConcatenation:i&&o}}p3(T4,{kinds:[w4.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r}=e,i=D4(n,r);if(t===C4)return{edits:N4(e,i)};return _n.fail("invalid action")},getAvailableActions:function(e){const{file:t,startPosition:n}=e,r=F4(D4(t,n)),i=HD(r),o={name:T4,description:C4,actions:[]};if(i&&"invoked"!==e.triggerReason)return s;if(bm(r)&&(i||PF(r)&&E4(r).isValidConcatenation))return o.actions.push(w4),[o];if(e.preferences.provideRefactorNotApplicableReason)return o.actions.push({...w4,notApplicableReason:$x(ua.Can_only_convert_string_concatenations_and_string_literals)}),[o];return s}});var P4=(e,t)=>(n,r)=>{n(r,i)=>{for(;r.length>0;){const o=r.shift();mZ(e[o],i,t,3,!1),n(o,i)}};function I4(e){const t=QD(e)||YD(e)?-2:-1;return Xd(e).slice(1,t)}function O4(e,t){const n=[];let r="",i="";for(;e"\\"===e[0]?e:"\\"+e)),n.push(e),e++}return[e,r,i,n]}function L4(e){const t=e.getSourceFile();mZ(e,e.expression,t,3,!1),gZ(e.expression,e.expression,t,3,!1)}function j4(e){return kF(e)&&(L4(e),e=e.expression),e}var R4={},M4="Convert to optional chain expression",B4=$x(ua.Convert_to_optional_chain_expression),J4={name:M4,description:B4,kind:"refactor.rewrite.expression.optionalChain"};function z4(e){return PF(e)||AF(e)}function q4(e){return z4(e)||function(e){return QF(e)||aE(e)||GF(e)}(e)}function U4(e,t=!0){const{file:n,program:r}=e,i=XZ(e),o=0===i.length;if(o&&!t)return;const a=aQ(n,i.start),s=lQ(n,i.start+i.length),c=Hs(a.pos,s&&s.end>=a.pos?s.getEnd():a.getEnd()),l=o?function(e){for(;e.parent;){if(q4(e)&&!q4(e.parent))return e;e=e.parent}return}(a):function(e,t){for(;e.parent;){if(q4(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}return}(a,c),_=l&&q4(l)?function(e){if(z4(e))return e;if(GF(e)){const t=Ig(e),n=null==t?void 0:t.initializer;return n&&z4(n)?n:void 0}return e.expression&&z4(e.expression)?e.expression:void 0}(l):void 0;if(!_)return{error:$x(ua.Could_not_find_convertible_access_expression)};const u=r.getTypeChecker();return AF(_)?function(e,t){const n=e.condition,r=H4(e.whenTrue);if(!r||t.isNullableType(t.getTypeAtLocation(r)))return{error:$x(ua.Could_not_find_convertible_access_expression)};if((gF(n)||_N(n))&&W4(n,r.expression))return{finalExpression:r,occurrences:[n],expression:e};if(PF(n)){const t=V4(r.expression,n);return t?{finalExpression:r,occurrences:t,expression:e}:{error:$x(ua.Could_not_find_matching_access_expressions)}}}(_,u):function(e){if(56!==e.operatorToken.kind)return{error:$x(ua.Can_only_convert_logical_AND_access_chains)};const t=H4(e.right);if(!t)return{error:$x(ua.Could_not_find_convertible_access_expression)};const n=V4(t.expression,e.left);return n?{finalExpression:t,occurrences:n,expression:e}:{error:$x(ua.Could_not_find_matching_access_expressions)}}(_)}function V4(e,t){const n=[];for(;PF(t)&&56===t.operatorToken.kind;){const r=W4(sh(e),sh(t.right));if(!r)break;n.push(r),e=r,t=t.left}const r=W4(e,t);return r&&n.push(r),n.length>0?n:void 0}function W4(e,t){if(_N(t)||gF(t)||hF(t))return function(e,t){for(;(yF(e)||gF(e)||hF(e))&&$4(e)!==$4(t);)e=e.expression;for(;gF(e)&&gF(t)||hF(e)&&hF(t);){if($4(e)!==$4(t))return!1;e=e.expression,t=t.expression}return _N(e)&&_N(t)&&e.getText()===t.getText()}(e,t)?t:void 0}function $4(e){return _N(e)||Rh(e)?e.getText():gF(e)?$4(e.name):hF(e)?$4(e.argumentExpression):void 0}function H4(e){return PF(e=sh(e))?H4(e.left):(gF(e)||hF(e)||yF(e))&&!yl(e)?e:void 0}function K4(e,t,n){if(gF(t)||hF(t)||yF(t)){const r=K4(e,t.expression,n),i=n.length>0?n[n.length-1]:void 0,o=(null==i?void 0:i.getText())===t.expression.getText();if(o&&n.pop(),yF(t))return o?vw.createCallChain(r,vw.createToken(29),t.typeArguments,t.arguments):vw.createCallChain(r,t.questionDotToken,t.typeArguments,t.arguments);if(gF(t))return o?vw.createPropertyAccessChain(r,vw.createToken(29),t.name):vw.createPropertyAccessChain(r,t.questionDotToken,t.name);if(hF(t))return o?vw.createElementAccessChain(r,vw.createToken(29),t.argumentExpression):vw.createElementAccessChain(r,t.questionDotToken,t.argumentExpression)}return t}p3(M4,{kinds:[J4.kind],getEditsForAction:function(e,t){const n=U4(e);_n.assert(n&&!x6(n),"Expected applicable refactor info");return{edits:ede.ChangeTracker.with(e,(t=>function(e,t,n,r){const{finalExpression:i,occurrences:o,expression:a}=r,s=o[o.length-1],c=K4(t,i,o);c&&(gF(c)||hF(c)||yF(c))&&(PF(a)?n.replaceNodeRange(e,s,i,c):AF(a)&&n.replaceNode(e,a,vw.createBinaryExpression(c,vw.createToken(61),a.whenFalse)))}(e.file,e.program.getTypeChecker(),t,n))),renameFilename:void 0,renameLocation:void 0}},getAvailableActions:function(e){const t=U4(e,"invoked"===e.triggerReason);if(!t)return s;if(!x6(t))return[{name:M4,description:B4,actions:[J4]}];if(e.preferences.provideRefactorNotApplicableReason)return[{name:M4,description:B4,actions:[{...J4,notApplicableReason:t.error}]}];return s}});var G4={};n(G4,{Messages:()=>X4,RangeFacts:()=>n8,getRangeToExtract:()=>r8,getRefactorActionsToExtractSymbol:()=>e8,getRefactorEditsToExtractSymbol:()=>t8});var X4,Q4="Extract Symbol",Y4={name:"Extract Constant",description:$x(ua.Extract_constant),kind:"refactor.extract.constant"},Z4={name:"Extract Function",description:$x(ua.Extract_function),kind:"refactor.extract.function"};function e8(e){const t=e.kind,n=r8(e.file,XZ(e),"invoked"===e.triggerReason),r=n.targetRange;if(void 0===r){if(!n.errors||0===n.errors.length||!e.preferences.provideRefactorNotApplicableReason)return s;const r=[];return k6(Z4.kind,t)&&r.push({name:Q4,description:Z4.description,actions:[{...Z4,notApplicableReason:m(n.errors)}]}),k6(Y4.kind,t)&&r.push({name:Q4,description:Y4.description,actions:[{...Y4,notApplicableReason:m(n.errors)}]}),r}const{affectedTextRange:i,extractions:o}=function(e,t){const{scopes:n,affectedTextRange:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=a8(e,t),a=n.map(((e,t)=>{const n=function(e){return a_(e)?"inner function":d_(e)?"method":"function"}(e),r=function(e){return d_(e)?"readonly field":"constant"}(e),a=a_(e)?function(e){switch(e.kind){case 177:return"constructor";case 219:case 263:return e.name?`function '${e.name.text}'`:wZ;case 220:return"arrow function";case 175:return`method '${e.name.getText()}'`;case 178:return`'get ${e.name.getText()}'`;case 179:return`'set ${e.name.getText()}'`;default:_n.assertNever(e,`Unexpected scope kind ${e.kind}`)}}(e):d_(e)?function(e){return 264===e.kind?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}(e):function(e){return 269===e.kind?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}(e);let s,c;return 1===a?(s=Ux($x(ua.Extract_to_0_in_1_scope),[n,"global"]),c=Ux($x(ua.Extract_to_0_in_1_scope),[r,"global"])):0===a?(s=Ux($x(ua.Extract_to_0_in_1_scope),[n,"module"]),c=Ux($x(ua.Extract_to_0_in_1_scope),[r,"module"])):(s=Ux($x(ua.Extract_to_0_in_1),[n,a]),c=Ux($x(ua.Extract_to_0_in_1),[r,a])),0!==t||d_(e)||(c=Ux($x(ua.Extract_to_0_in_enclosing_scope),[r])),{functionExtraction:{description:s,errors:i[t]},constantExtraction:{description:c,errors:o[t]}}}));return{affectedTextRange:r,extractions:a}}(r,e);if(void 0===o)return s;const a=[],c=new Map;let l;const _=[],u=new Map;let d,p=0;for(const{functionExtraction:n,constantExtraction:r}of o){if(k6(Z4.kind,t)){const t=n.description;0===n.errors.length?c.has(t)||(c.set(t,!0),a.push({description:t,name:`function_scope_${p}`,kind:Z4.kind,range:{start:{line:qa(e.file,i.pos).line,offset:qa(e.file,i.pos).character},end:{line:qa(e.file,i.end).line,offset:qa(e.file,i.end).character}}})):l||(l={description:t,name:`function_scope_${p}`,notApplicableReason:m(n.errors),kind:Z4.kind})}if(k6(Y4.kind,t)){const t=r.description;0===r.errors.length?u.has(t)||(u.set(t,!0),_.push({description:t,name:`constant_scope_${p}`,kind:Y4.kind,range:{start:{line:qa(e.file,i.pos).line,offset:qa(e.file,i.pos).character},end:{line:qa(e.file,i.end).line,offset:qa(e.file,i.end).character}}})):d||(d={description:t,name:`constant_scope_${p}`,notApplicableReason:m(r.errors),kind:Y4.kind})}p++}const f=[];return a.length?f.push({name:Q4,description:$x(ua.Extract_function),actions:a}):e.preferences.provideRefactorNotApplicableReason&&l&&f.push({name:Q4,description:$x(ua.Extract_function),actions:[l]}),_.length?f.push({name:Q4,description:$x(ua.Extract_constant),actions:_}):e.preferences.provideRefactorNotApplicableReason&&d&&f.push({name:Q4,description:$x(ua.Extract_constant),actions:[d]}),f.length?f:s;function m(e){let t=e[0].messageText;return"string"!=typeof t&&(t=t.messageText),t}}function t8(e,t){const n=r8(e.file,XZ(e)).targetRange,r=/^function_scope_(\d+)$/.exec(t);if(r){const t=+r[1];return _n.assert(isFinite(t),"Expected to parse a finite number from the function scope index"),function(e,t,n){const{scopes:r,readsAndWrites:{target:i,usagesPerScope:o,functionErrorsPerScope:a,exposedVariableDeclarations:c}}=a8(e,t);return _n.assert(!a[n].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),function(e,t,{usages:n,typeParameterUsages:r,substitutions:i},o,a,c){const l=c.program.getTypeChecker(),_=xk(c.program.getCompilerOptions()),u=M7.createImportAdder(c.file,c.program,c.preferences,c.host),d=t.getSourceFile(),p=dZ(d_(t)?"newMethod":"newFunction",d),f=Em(t),m=vw.createIdentifier(p);let g;const h=[],v=[];let b;n.forEach(((e,n)=>{let r;if(!f){let n=l.getTypeOfSymbolAtLocation(e.symbol,e.node);n=l.getBaseTypeOfLiteralType(n),r=M7.typeToAutoImportableTypeNode(l,u,n,t,_,1,8)}const i=vw.createParameterDeclaration(void 0,void 0,n,void 0,r);h.push(i),2===e.usage&&(b||(b=[])).push(e),v.push(vw.createIdentifier(n))}));const x=Ie(r.values(),(e=>({type:e,declaration:s8(e,c.startPosition)})));x.sort(c8);const k=0===x.length?void 0:R(x,(({declaration:e})=>e)),S=void 0!==k?k.map((e=>vw.createTypeReferenceNode(e.name,void 0))):void 0;if(W_(e)&&!f){const n=l.getContextualType(e);g=l.typeToTypeNode(n,t,1,8)}const{body:T,returnValueProperty:C}=function(e,t,n,r,i){const o=void 0!==n||t.length>0;if(KF(e)&&!o&&0===r.size)return{body:vw.createBlock(e.statements,!0),returnValueProperty:void 0};let a,s=!1;const c=vw.createNodeArray(KF(e)?e.statements.slice(0):[fu(e)?e:vw.createReturnStatement(sh(e))]);if(o||r.size){const r=vJ(c,l,fu).slice();if(o&&!i&&fu(e)){const e=l8(t,n);1===e.length?r.push(vw.createReturnStatement(e[0].name)):r.push(vw.createReturnStatement(vw.createObjectLiteralExpression(e)))}return{body:vw.createBlock(r,!0),returnValueProperty:a}}return{body:vw.createBlock(c,!0),returnValueProperty:void 0};function l(e){if(!s&&aE(e)&&o){const r=l8(t,n);return e.expression&&(a||(a="__return"),r.unshift(vw.createPropertyAssignment(a,yJ(e.expression,l,W_)))),1===r.length?vw.createReturnStatement(r[0].name):vw.createReturnStatement(vw.createObjectLiteralExpression(r))}{const t=s;s=s||a_(e)||d_(e);const n=r.get(cJ(e).toString()),i=n?JC(n):NJ(e,l,void 0);return s=t,i}}}(e,o,b,i,!!(1&a.facts));let w;WC(T);const D=!!(16&a.facts);if(d_(t)){const e=f?[]:[vw.createModifier(123)];32&a.facts&&e.push(vw.createModifier(126)),4&a.facts&&e.push(vw.createModifier(134)),w=vw.createMethodDeclaration(e.length?e:void 0,2&a.facts?vw.createToken(42):void 0,m,void 0,k,h,g,T)}else D&&h.unshift(vw.createParameterDeclaration(void 0,void 0,"this",void 0,l.typeToTypeNode(l.getTypeAtLocation(a.thisNode),t,1,8),void 0)),w=vw.createFunctionDeclaration(4&a.facts?[vw.createToken(134)]:void 0,2&a.facts?vw.createToken(42):void 0,m,k,h,g,T);const N=ede.ChangeTracker.fromContext(c),F=function(e,t){return y(function(e){if(a_(e)){const t=e.body;if(KF(t))return t.statements}else{if(xE(e)||uP(e))return e.statements;if(d_(e))return e.members}return s}(t),(t=>t.pos>=e&&a_(t)&&!LN(t)))}((_8(a.range)?ye(a.range):a.range).end,t);F?N.insertNodeBefore(c.file,F,w,!0):N.insertNodeAtEndOfScope(c.file,t,w);u.writeFixes(N);const E=[],P=function(e,t,n){const r=vw.createIdentifier(n);if(d_(e)){const n=32&t.facts?vw.createIdentifier(e.name.text):vw.createThis();return vw.createPropertyAccessExpression(n,r)}return r}(t,a,p);D&&v.unshift(vw.createIdentifier("this"));let A=vw.createCallExpression(D?vw.createPropertyAccessExpression(P,"call"):P,S,v);2&a.facts&&(A=vw.createYieldExpression(vw.createToken(42),A));4&a.facts&&(A=vw.createAwaitExpression(A));d8(e)&&(A=vw.createJsxExpression(void 0,A));if(o.length&&!b)if(_n.assert(!C,"Expected no returnValueProperty"),_n.assert(!(1&a.facts),"Expected RangeFacts.HasReturn flag to be unset"),1===o.length){const e=o[0];E.push(vw.createVariableStatement(void 0,vw.createVariableDeclarationList([vw.createVariableDeclaration(JC(e.name),void 0,JC(e.type),A)],e.parent.flags)))}else{const e=[],n=[];let r=o[0].parent.flags,i=!1;for(const a of o){e.push(vw.createBindingElement(void 0,void 0,JC(a.name)));const o=l.typeToTypeNode(l.getBaseTypeOfLiteralType(l.getTypeAtLocation(a)),t,1,8);n.push(vw.createPropertySignature(void 0,a.symbol.name,void 0,o)),i=i||void 0!==a.type,r&=a.parent.flags}const a=i?vw.createTypeLiteralNode(n):void 0;a&&Cw(a,1),E.push(vw.createVariableStatement(void 0,vw.createVariableDeclarationList([vw.createVariableDeclaration(vw.createObjectBindingPattern(e),void 0,a,A)],r)))}else if(o.length||b){if(o.length)for(const e of o){let t=e.parent.flags;2&t&&(t=-3&t|1),E.push(vw.createVariableStatement(void 0,vw.createVariableDeclarationList([vw.createVariableDeclaration(e.symbol.name,void 0,j(e.type))],t)))}C&&E.push(vw.createVariableStatement(void 0,vw.createVariableDeclarationList([vw.createVariableDeclaration(C,void 0,j(g))],1)));const e=l8(o,b);C&&e.unshift(vw.createShorthandPropertyAssignment(C)),1===e.length?(_n.assert(!C,"Shouldn't have returnValueProperty here"),E.push(vw.createExpressionStatement(vw.createAssignment(e[0].name,A))),1&a.facts&&E.push(vw.createReturnStatement())):(E.push(vw.createExpressionStatement(vw.createAssignment(vw.createObjectLiteralExpression(e),A))),C&&E.push(vw.createReturnStatement(vw.createIdentifier(C))))}else 1&a.facts?E.push(vw.createReturnStatement(A)):_8(a.range)?E.push(vw.createExpressionStatement(A)):E.push(A);_8(a.range)?N.replaceNodeRangeWithNodes(c.file,me(a.range),ye(a.range),E):N.replaceNodeWithNodes(c.file,a.range,E);const I=N.getChanges(),O=(_8(a.range)?me(a.range):a.range).getSourceFile().fileName,L=pZ(I,O,p,!1);return{renameFilename:O,renameLocation:L,edits:I};function j(e){if(void 0===e)return;const t=JC(e);let n=t;for(;nF(n);)n=n.type;return YN(n)&&y(n.types,(e=>157===e.kind))?t:vw.createUnionTypeNode([t,vw.createKeywordTypeNode(157)])}}(i,r[n],o[n],c,e,t)}(n,e,t)}const i=/^constant_scope_(\d+)$/.exec(t);if(i){const t=+i[1];return _n.assert(isFinite(t),"Expected to parse a finite number from the constant scope index"),function(e,t,n){const{scopes:r,readsAndWrites:{target:i,usagesPerScope:o,constantErrorsPerScope:a,exposedVariableDeclarations:s}}=a8(e,t);_n.assert(!a[n].length,"The extraction went missing? How?"),_n.assert(0===s.length,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();return function(e,t,{substitutions:n},r,i){const o=i.program.getTypeChecker(),a=t.getSourceFile(),s=S6(e,t,o,a),c=Em(t);let l=c||!o.isContextSensitive(e)?void 0:o.typeToTypeNode(o.getContextualType(e),t,1,8),_=function(e,t){return t.size?n(e):e;function n(e){const r=t.get(cJ(e).toString());return r?JC(r):NJ(e,n,void 0)}}(sh(e),n);({variableType:l,initializer:_}=m(l,_)),WC(_);const u=ede.ChangeTracker.fromContext(i);if(d_(t)){_n.assert(!c,"Cannot extract to a JS class");const n=[];n.push(vw.createModifier(123)),32&r&&n.push(vw.createModifier(126)),n.push(vw.createModifier(148));const o=vw.createPropertyDeclaration(n,s,void 0,l,_);let a=vw.createPropertyAccessExpression(32&r?vw.createIdentifier(t.name.getText()):vw.createThis(),vw.createIdentifier(s));d8(e)&&(a=vw.createJsxExpression(void 0,a));const d=function(e,t){const n=t.members;let r;_n.assert(n.length>0,"Found no members");let i=!0;for(const t of n){if(t.pos>e)return r||n[0];if(i&&!PN(t)){if(void 0!==r)return t;i=!1}r=t}return void 0===r?_n.fail():r}(e.pos,t);u.insertNodeBefore(i.file,d,o,!0),u.replaceNode(i.file,e,a)}else{const n=vw.createVariableDeclaration(s,void 0,l,_),r=function(e,t){let n;for(;void 0!==e&&e!==t;){if(pE(e)&&e.initializer===n&&fE(e.parent)&&e.parent.declarations.length>1)return e;n=e,e=e.parent}}(e,t);if(r){u.insertNodeBefore(i.file,r,n);const t=vw.createIdentifier(s);u.replaceNode(i.file,e,t)}else if(245===e.parent.kind&&t===dc(e,o8)){const t=vw.createVariableStatement(void 0,vw.createVariableDeclarationList([n],2));u.replaceNode(i.file,e.parent,t)}else{const r=vw.createVariableStatement(void 0,vw.createVariableDeclarationList([n],2)),o=function(e,t){let n;_n.assert(!d_(t));for(let r=e;r!==t;r=r.parent)o8(r)&&(n=r);for(let r=(n||e).parent;;r=r.parent){if(m0(r)){let t;for(const n of r.statements){if(n.pos>e.pos)break;t=n}return!t&&rP(r)?(_n.assert(cE(r.parent.parent),"Grandparent isn't a switch statement"),r.parent.parent):_n.checkDefined(t,"prevStatement failed to get set")}_n.assert(r!==t,"Didn't encounter a block-like before encountering scope")}}(e,t);if(0===o.pos?u.insertNodeAtTopOfFile(i.file,r,!1):u.insertNodeBefore(i.file,o,r,!1),245===e.parent.kind)u.delete(i.file,e.parent);else{let t=vw.createIdentifier(s);d8(e)&&(t=vw.createJsxExpression(void 0,t)),u.replaceNode(i.file,e,t)}}}const d=u.getChanges(),p=e.getSourceFile().fileName,f=pZ(d,p,s,!0);return{renameFilename:p,renameLocation:f,edits:d};function m(n,r){if(void 0===n)return{variableType:n,initializer:r};if(!SF(r)&&!TF(r)||r.typeParameters)return{variableType:n,initializer:r};const i=o.getTypeAtLocation(e),a=ve(o.getSignaturesOfType(i,0));if(!a)return{variableType:n,initializer:r};if(a.getTypeParameters())return{variableType:n,initializer:r};const s=[];let c=!1;for(const e of r.parameters)if(e.type)s.push(e);else{const n=o.getTypeAtLocation(e);n===o.getAnyType()&&(c=!0),s.push(vw.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type||o.typeToTypeNode(n,t,1,8),e.initializer))}if(c)return{variableType:n,initializer:r};if(n=void 0,TF(r))r=vw.updateArrowFunction(r,FI(e)?Fc(e):void 0,r.typeParameters,s,r.type||o.typeToTypeNode(a.getReturnType(),t,1,8),r.equalsGreaterThanToken,r.body);else{if(a&&a.thisParameter){const n=pe(s);if(!n||_N(n.name)&&"this"!==n.name.escapedText){const n=o.getTypeOfSymbolAtLocation(a.thisParameter,e);s.splice(0,0,vw.createParameterDeclaration(void 0,void 0,"this",void 0,o.typeToTypeNode(n,t,1,8)))}}r=vw.updateFunctionExpression(r,FI(e)?Fc(e):void 0,r.asteriskToken,r.name,r.typeParameters,s,r.type||o.typeToTypeNode(a.getReturnType(),t,1),r.body)}return{variableType:n,initializer:r}}}(W_(i)?i:i.statements[0].expression,r[n],o[n],e.facts,t)}(n,e,t)}_n.fail("Unrecognized action name")}p3(Q4,{kinds:[Y4.kind,Z4.kind],getEditsForAction:t8,getAvailableActions:e8}),(e=>{function t(e){return{message:e,code:0,category:3,key:e}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),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.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(X4||(X4={}));var n8=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(n8||{});function r8(e,t,n=!0){const{length:r}=t;if(0===r&&!n)return{errors:[Qx(e,t.start,r,X4.cannotExtractEmpty)]};const i=0===r&&n,o=cQ(e,t.start),a=lQ(e,Es(t)),s=o&&a&&n?function(e,t,n){const r=e.getStart(n);let i=t.getEnd();59===n.text.charCodeAt(i)&&i++;return{start:r,length:i-r}}(o,a,e):t,c=i?function(e){return dc(e,(e=>e.parent&&u8(e)&&!PF(e.parent)))}(o):xY(o,e,s),l=i?c:xY(a,e,s);let _,u=0;if(!c||!l)return{errors:[Qx(e,t.start,r,X4.cannotExtractRange)]};if(16777216&c.flags)return{errors:[Qx(e,t.start,r,X4.cannotExtractJSDoc)]};if(c.parent!==l.parent)return{errors:[Qx(e,t.start,r,X4.cannotExtractRange)]};if(c!==l){if(!m0(c.parent))return{errors:[Qx(e,t.start,r,X4.cannotExtractRange)]};const n=[];for(const e of c.parent.statements){if(e===c||n.length){const t=f(e);if(t)return{errors:t};n.push(e)}if(e===l)break}return n.length?{targetRange:{range:n,facts:u,thisNode:_}}:{errors:[Qx(e,t.start,r,X4.cannotExtractRange)]}}if(aE(c)&&!c.expression)return{errors:[Qx(e,t.start,r,X4.cannotExtractRange)]};const d=function(e){if(aE(e)){if(e.expression)return e.expression}else if(GF(e)||fE(e)){const t=GF(e)?e.declarationList.declarations:e.declarations;let n,r=0;for(const e of t)e.initializer&&(r++,n=e.initializer);if(1===r)return n}else if(pE(e)&&e.initializer)return e.initializer;return e}(c),p=function(e){if(_N(QF(e)?e.expression:e))return[Mp(e,X4.cannotExtractIdentifier)];return}(d)||f(d);return p?{errors:p}:{targetRange:{range:i8(d),facts:u,thisNode:_}};function f(e){let n;var r;if((r=n||(n={}))[r.None=0]="None",r[r.Break=1]="Break",r[r.Continue=2]="Continue",r[r.Return=4]="Return",_n.assert(e.pos<=e.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),_n.assert(!YS(e.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!(fu(e)||bm(e)&&u8(e)||p8(e)))return[Mp(e,X4.statementOrExpressionExpected)];if(33554432&e.flags)return[Mp(e,X4.cannotExtractAmbientBlock)];const i=Xf(e);let o;i&&function(e,t){let n=e;for(;n!==t;){if(173===n.kind){Ev(n)&&(u|=32);break}if(170===n.kind){177===Kf(n).kind&&(u|=32);break}175===n.kind&&Ev(n)&&(u|=32),n=n.parent}}(e,i);let a,s=4;if(function e(n){if(o)return!0;if(uu(n)){if(Fv(261===n.kind?n.parent.parent:n,32))return(o||(o=[])).push(Mp(n,X4.cannotExtractExportedEntity)),!0}switch(n.kind){case 273:return(o||(o=[])).push(Mp(n,X4.cannotExtractImport)),!0;case 278:return(o||(o=[])).push(Mp(n,X4.cannotExtractExportedEntity)),!0;case 108:if(214===n.parent.kind){const e=Xf(n);if(void 0===e||e.pos=t.start+t.length)return(o||(o=[])).push(Mp(n,X4.cannotExtractSuper)),!0}else u|=8,_=n;break;case 220:rO(n,(function e(t){if(PX(t))u|=8,_=n;else{if(d_(t)||i_(t)&&!TF(t))return!1;rO(t,e)}}));case 264:case 263:uP(n.parent)&&void 0===n.parent.externalModuleIndicator&&(o||(o=[])).push(Mp(n,X4.functionWillNotBeVisibleInTheNewScope));case 232:case 219:case 175:case 177:case 178:case 179:return!1}const r=s;switch(n.kind){case 246:s&=-5;break;case 259:s=0;break;case 242:n.parent&&259===n.parent.kind&&n.parent.finallyBlock===n&&(s=4);break;case 298:case 297:s|=1;break;default:H_(n,!1)&&(s|=3)}switch(n.kind){case 198:case 110:u|=8,_=n;break;case 257:{const t=n.label;(a||(a=[])).push(t.escapedText),rO(n,e),a.pop();break}case 253:case 252:{const e=n.label;e?k(a,e.escapedText)||(o||(o=[])).push(Mp(n,X4.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):s&(253===n.kind?1:2)||(o||(o=[])).push(Mp(n,X4.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 224:u|=4;break;case 230:u|=2;break;case 254:4&s?u|=1:(o||(o=[])).push(Mp(n,X4.cannotExtractRangeContainingConditionalReturnStatement));break;default:rO(n,e)}s=r}(e),8&u){const t=em(e,!1,!1);(263===t.kind||175===t.kind&&211===t.parent.kind||219===t.kind)&&(u|=16)}return o}}function i8(e){return fu(e)?[e]:bm(e)?QF(e.parent)?[e.parent]:e:p8(e)?e:void 0}function o8(e){return TF(e)?eu(e.body):a_(e)||uP(e)||xE(e)||d_(e)}function a8(e,t){const{file:n}=t,r=function(e){let t=_8(e.range)?me(e.range):e.range;if(8&e.facts&&!(16&e.facts)){const e=Xf(t);if(e){const n=dc(t,a_);return n?[n,e]:[e]}}const n=[];for(;;)if(t=t.parent,170===t.kind&&(t=dc(t,(e=>a_(e))).parent),o8(t)&&(n.push(t),308===t.kind))return n}(e),i=function(e,t){return _8(e.range)?{pos:me(e.range).getStart(t),end:ye(e.range).getEnd()}:e.range}(e,n),o=function(e,t,n,r,i,o){const a=new Map,s=[],c=[],l=[],_=[],u=[],d=new Map,p=[];let f;const m=_8(e.range)?1===e.range.length&&QF(e.range[0])?e.range[0].expression:void 0:e.range;let g;if(void 0===m){const t=e.range,n=me(t).getStart(),i=ye(t).end;g=Qx(r,n,i-n,X4.expressionExpected)}else 262160&i.getTypeAtLocation(m).flags&&(g=Mp(m,X4.uselessConstantType));for(const e of t){s.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),c.push(new Map),l.push([]);const t=[];g&&t.push(g),d_(e)&&Em(e)&&t.push(Mp(e,X4.cannotExtractToJSClass)),TF(e)&&!KF(e.body)&&t.push(Mp(e,X4.cannotExtractToExpressionArrowFunction)),_.push(t)}const h=new Map,v=_8(e.range)?vw.createBlock(e.range):e.range,b=_8(e.range)?me(e.range):e.range,x=k(b);if(T(v),x&&!_8(e.range)&&!YE(e.range)){S(i.getContextualType(e.range))}if(a.size>0){const e=new Map;let n=0;for(let r=b;void 0!==r&&n{s[n].typeParameterUsages.set(t,e)})),n++),xp(r))for(const t of ul(r)){const n=i.getTypeAtLocation(t);a.has(n.id.toString())&&e.set(n.id.toString(),n)}_n.assert(n===t.length,"Should have iterated all scopes")}if(u.length){rO(bp(t[0],t[0].parent)?t[0]:Ep(t[0]),D)}for(let n=0;n0&&(r.usages.size>0||r.typeParameterUsages.size>0)){const t=_8(e.range)?e.range[0]:e.range;_[n].push(Mp(t,X4.cannotAccessVariablesFromNestedScopes))}16&e.facts&&d_(t[n])&&l[n].push(Mp(e.thisNode,X4.cannotExtractFunctionsContainingThisToMethod));let i,o=!1;if(s[n].usages.forEach((e=>{2===e.usage&&(o=!0,106500&e.symbol.flags&&e.symbol.valueDeclaration&&Nv(e.symbol.valueDeclaration,8)&&(i=e.symbol.valueDeclaration))})),_n.assert(_8(e.range)||0===p.length,"No variable declarations expected if something was extracted"),o&&!_8(e.range)){const t=Mp(e.range,X4.cannotWriteInExpression);l[n].push(t),_[n].push(t)}else if(i&&n>0){const e=Mp(i,X4.cannotExtractReadonlyPropertyInitializerOutsideConstructor);l[n].push(e),_[n].push(e)}else if(f){const e=Mp(f,X4.cannotExtractExportedEntity);l[n].push(e),_[n].push(e)}}return{target:v,usagesPerScope:s,functionErrorsPerScope:l,constantErrorsPerScope:_,exposedVariableDeclarations:p};function k(e){return!!dc(e,(e=>xp(e)&&0!==ul(e).length))}function S(e){const t=i.getSymbolWalker((()=>(o.throwIfCancellationRequested(),!0))),{visitedTypes:n}=t.walkType(e);for(const e of n)e.isTypeParameter()&&a.set(e.id.toString(),e)}function T(e,t=1){if(x){S(i.getTypeAtLocation(e))}if(uu(e)&&e.symbol&&u.push(e),ob(e))T(e.left,2),T(e.right);else if(U_(e))T(e.operand,2);else if(gF(e)||hF(e))rO(e,T);else if(_N(e)){if(!e.parent)return;if(CN(e.parent)&&e!==e.parent.left)return;if(gF(e.parent)&&e!==e.parent.expression)return;C(e,t,wf(e))}else rO(e,T)}function C(e,n,r){const i=w(e,n,r);if(i)for(let n=0;n=a)return p;if(h.set(p,a),f){for(const e of s){e.usages.get(o.text)&&e.usages.set(o.text,{usage:a,symbol:d,node:o})}return p}const m=d.getDeclarations(),g=m&&y(m,(e=>e.getSourceFile()===r));if(g&&!RX(n,g.getStart(),g.end)){if(2&e.facts&&2===a){const e=Mp(o,X4.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const t of l)t.push(e);for(const t of _)t.push(e)}for(let e=0;ee.symbol===n));if(e)if(pE(e)){const t=e.symbol.id.toString();d.has(t)||(p.push(e),d.set(t,!0))}else f=f||e}rO(t,D)}function N(e){return e.parent&&cP(e.parent)&&e.parent.name===e?i.getShorthandAssignmentValueSymbol(e.parent):i.getSymbolAtLocation(e)}function F(e,t,n){if(!e)return;const r=e.getDeclarations();if(r&&r.some((e=>e.parent===t)))return vw.createIdentifier(e.name);const i=F(e.parent,t,n);return void 0!==i?n?vw.createQualifiedName(i,vw.createIdentifier(e.name)):vw.createPropertyAccessExpression(i,e.name):void 0}}(e,r,i,n,t.program.getTypeChecker(),t.cancellationToken);return{scopes:r,affectedTextRange:i,readsAndWrites:o}}function s8(e,t){let n;const r=e.symbol;if(r&&r.declarations)for(const e of r.declarations)(void 0===n||e.posvw.createShorthandPropertyAssignment(e.symbol.name))),r=N(t,(e=>vw.createShorthandPropertyAssignment(e.symbol.name)));return void 0===n?r:void 0===r?n:n.concat(r)}function _8(e){return Xe(e)}function u8(e){const{parent:t}=e;if(307===t.kind)return!1;switch(e.kind){case 11:return 273!==t.kind&&277!==t.kind;case 231:case 207:case 209:return!1;case 80:return 209!==t.kind&&277!==t.kind&&282!==t.kind}return!0}function d8(e){return p8(e)||(WE(e)||$E(e)||GE(e))&&(WE(e.parent)||GE(e.parent))}function p8(e){return HD(e)&&e.parent&&YE(e.parent)}var f8={},m8="Generate 'get' and 'set' accessors",g8=$x(ua.Generate_get_and_set_accessors),h8={name:m8,description:g8,kind:"refactor.rewrite.property.generateAccessors"};p3(m8,{kinds:[h8.kind],getEditsForAction:function(e,t){if(!e.endPosition)return;const n=M7.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition);_n.assert(n&&!x6(n),"Expected applicable refactor info");const r=M7.generateAccessorFromProperty(e.file,e.program,e.startPosition,e.endPosition,e,t);if(!r)return;const i=e.file.fileName,o=n.renameAccessor?n.accessorName:n.fieldName;return{renameFilename:i,renameLocation:(_N(o)?0:-1)+pZ(r,i,o.text,NN(n.declaration)),edits:r}},getAvailableActions(e){if(!e.endPosition)return s;const t=M7.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,"invoked"===e.triggerReason);return t?x6(t)?e.preferences.provideRefactorNotApplicableReason?[{name:m8,description:g8,actions:[{...h8,notApplicableReason:t.error}]}]:s:[{name:m8,description:g8,actions:[h8]}]:s}});var y8={},v8="Infer function return type",b8=$x(ua.Infer_function_return_type),x8={name:v8,description:b8,kind:"refactor.rewrite.function.returnType"};function k8(e){if(Em(e.file)||!k6(x8.kind,e.kind))return;const t=dc(iQ(e.file,e.startPosition),(e=>KF(e)||e.parent&&TF(e.parent)&&(39===e.kind||e.parent.body===e)?"quit":function(e){switch(e.kind){case 263:case 219:case 220:case 175:return!0;default:return!1}}(e)));if(!t||!t.body||t.type)return{error:$x(ua.Return_type_must_be_inferred_from_a_function)};const n=e.program.getTypeChecker();let r;if(n.isImplementationOfOverload(t)){const e=n.getTypeAtLocation(t).getCallSignatures();e.length>1&&(r=n.getUnionType(R(e,(e=>e.getReturnType()))))}if(!r){const e=n.getSignatureFromDeclaration(t);if(e){const i=n.getTypePredicateOfSignature(e);if(i&&i.type){const e=n.typePredicateToTypePredicateNode(i,t,1,8);if(e)return{declaration:t,returnTypeNode:e}}else r=n.getReturnTypeOfSignature(e)}}if(!r)return{error:$x(ua.Could_not_determine_function_return_type)};const i=n.typeToTypeNode(r,t,1,8);return i?{declaration:t,returnTypeNode:i}:void 0}p3(v8,{kinds:[x8.kind],getEditsForAction:function(e){const t=k8(e);if(t&&!x6(t)){return{renameFilename:void 0,renameLocation:void 0,edits:ede.ChangeTracker.with(e,(n=>function(e,t,n,r){const i=$X(n,22,e),o=TF(n)&&void 0===i,a=o?me(n.parameters):i;a&&(o&&(t.insertNodeBefore(e,a,vw.createToken(21)),t.insertNodeAfter(e,a,vw.createToken(22))),t.insertNodeAt(e,a.end,r,{prefix:": "}))}(e.file,n,t.declaration,t.returnTypeNode)))}}return},getAvailableActions:function(e){const t=k8(e);if(!t)return s;if(!x6(t))return[{name:v8,description:b8,actions:[x8]}];if(e.preferences.provideRefactorNotApplicableReason)return[{name:v8,description:b8,actions:[{...x8,notApplicableReason:t.error}]}];return s}});var S8=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(S8||{}),T8=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(T8||{}),C8=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(C8||{});function w8(e,t,n,r){const i=D8(e,t,n,r);_n.assert(i.spans.length%3==0);const o=i.spans,a=[];for(let e=0;ee(r)||r.isUnion()&&r.types.some(e);if(6!==n&&e((e=>e.getConstructSignatures().length>0)))return 0;if(e((e=>e.getCallSignatures().length>0))&&!e((e=>e.getProperties().length>0))||function(e){for(;E8(e);)e=e.parent;return yF(e.parent)&&e.parent.expression===e}(t))return 9===n?11:10}}return n}(o,c,i);const s=n.valueDeclaration;if(s){const r=oc(s),o=sc(s);256&r&&(a|=2),1024&r&&(a|=4),0!==i&&2!==i&&(8&r||2&o||8&n.getFlags())&&(a|=8),7!==i&&10!==i||!function(e,t){pF(e)&&(e=F8(e));if(pE(e))return(!uP(e.parent.parent.parent)||aP(e.parent))&&e.getSourceFile()===t;if(mE(e))return!uP(e.parent)&&e.getSourceFile()===t;return!1}(s,t)||(a|=32),e.isSourceFileDefaultLibrary(s.getSourceFile())&&(a|=16)}else n.declarations&&n.declarations.some((t=>e.isSourceFileDefaultLibrary(t.getSourceFile())))&&(a|=16);r(c,i,a)}}}rO(c,s),a=l}s(t)}(e,t,n,((e,n,r)=>{i.push(e.getStart(t),e.getWidth(t),(n+1<<8)+r)}),r),i}function F8(e){for(;;){if(!pF(e.parent.parent))return e.parent.parent;e=e.parent.parent}}function E8(e){return CN(e.parent)&&e.parent.right===e||gF(e.parent)&&e.parent.name===e}var P8=new Map([[261,7],[170,6],[173,9],[268,3],[267,1],[307,8],[264,0],[175,11],[263,10],[219,10],[174,11],[178,9],[179,9],[172,9],[265,2],[266,5],[169,4],[304,9],[305,9]]),A8="0.8";function I8(e,t,n,r){const i=Fl(e)?new O8(e,t,n):80===e?new B8(80,t,n):81===e?new J8(81,t,n):new M8(e,t,n);return i.parent=r,i.flags=101441536&r.flags,i}var O8=class{constructor(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}assertHasRealPosition(e){_n.assert(!YS(this.pos)&&!YS(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return bd(this)}getStart(e,t){return this.assertHasRealPosition(),qd(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e=bd(this)){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"),iA(this,e)??oA(this,e,function(e,t){const n=[];if(Cu(e))return e.forEachChild((e=>{n.push(e)})),n;eX.setText((t||e.getSourceFile()).text);let r=e.pos;const i=t=>{L8(n,r,t.pos,e),n.push(t),r=t.end},o=t=>{L8(n,r,t.pos,e),n.push(function(e,t){const n=I8(353,e.pos,e.end,t),r=[];let i=e.pos;for(const n of e)L8(r,i,n.pos,t),r.push(n),i=n.end;return L8(r,i,e.end,t),n._children=r,n}(t,e)),r=t.end};return _(e.jsDoc,i),r=e.pos,e.forEachChild(i,o),L8(n,r,e.end,e),eX.setText(void 0),n}(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const n=y(t,(e=>e.kind<310||e.kind>352));return n.kind<167?n:n.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=he(this.getChildren(e));if(t)return t.kind<167?t:t.getLastToken(e)}forEachChild(e,t){return rO(this,e,t)}};function L8(e,t,n,r){for(eX.resetTokenState(t);t"inheritDoc"===e.tagName.text||"inheritdoc"===e.tagName.text))}function V8(e,t){if(!e)return s;let n=qle.getJsDocTagsFromDeclarations(e,t);if(t&&(0===n.length||e.some(U8))){const r=new Set;for(const i of e){const e=$8(t,i,(e=>{var n;if(!r.has(e))return r.add(e),178===i.kind||179===i.kind?e.getContextualJsDocTags(i,t):1===(null==(n=e.declarations)?void 0:n.length)?e.getJsDocTags(t):void 0}));e&&(n=[...e,...n])}}return n}function W8(e,t){if(!e)return s;let n=qle.getJsDocCommentsFromDeclarations(e,t);if(t&&(0===n.length||e.some(U8))){const r=new Set;for(const i of e){const e=$8(t,i,(e=>{if(!r.has(e))return r.add(e),178===i.kind||179===i.kind?e.getContextualDocumentationComment(i,t):e.getDocumentationComment(t)}));e&&(n=0===n.length?e.slice():e.concat(ZY(),n))}}return n}function $8(e,t,n){var r;const i=177===(null==(r=t.parent)?void 0:r.kind)?t.parent.parent:t.parent;if(!i)return;const o=Pv(t);return d(kh(i),(r=>{const i=e.getTypeAtLocation(r),a=o&&i.symbol?e.getTypeOfSymbol(i.symbol):i,s=e.getPropertyOfType(a,t.symbol.name);return s?n(s):void 0}))}var H8=class extends O8{constructor(e,t,n){super(e,t,n)}update(e,t){return uO(this,e,t)}getLineAndCharacterOfPosition(e){return qa(this,e)}getLineStarts(){return Ma(this)}getPositionOfLineAndCharacter(e,t,n){return Ra(Ma(this),e,t,this.text,n)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),n=this.getLineStarts();let r;t+1>=n.length&&(r=this.getEnd()),r||(r=n[t+1]-1);const i=this.getFullText();return"\n"===i[r]&&"\r"===i[r-1]?r-1:r}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=We();return this.forEachChild((function r(i){switch(i.kind){case 263:case 219:case 175:case 174:const o=i,a=n(o);if(a){const t=function(t){let n=e.get(t);n||e.set(t,n=[]);return n}(a),n=he(t);n&&o.parent===n.parent&&o.symbol===n.symbol?o.body&&!n.body&&(t[t.length-1]=o):t.push(o)}rO(i,r);break;case 264:case 232:case 265:case 266:case 267:case 268:case 272:case 282:case 277:case 274:case 275:case 178:case 179:case 188:t(i),rO(i,r);break;case 170:if(!Fv(i,31))break;case 261:case 209:{const e=i;if(S_(e.name)){rO(e.name,r);break}e.initializer&&r(e.initializer)}case 307:case 173:case 172:t(i);break;case 279:const s=i;s.exportClause&&(ME(s.exportClause)?_(s.exportClause.elements,r):r(s.exportClause.name));break;case 273:const c=i.importClause;c&&(c.name&&t(c.name),c.namedBindings&&(275===c.namedBindings.kind?t(c.namedBindings):_(c.namedBindings.elements,r)));break;case 227:0!==ng(i)&&t(i);default:rO(i,r)}})),e;function t(t){const r=n(t);r&&e.add(r,t)}function n(e){const t=Cc(e);return t&&(wN(t)&&gF(t.expression)?t.expression.name.text:n_(t)?rY(t):void 0)}}},K8=class{constructor(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}getLineAndCharacterOfPosition(e){return qa(this,e)}};function G8(e){let t=!0;for(const n in e)if(De(e,n)&&!X8(n)){t=!1;break}if(t)return e;const n={};for(const t in e)if(De(e,t)){n[X8(t)?t:t.charAt(0).toLowerCase()+t.substr(1)]=e[t]}return n}function X8(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function Q8(e){return e?N(e,(e=>e.text)).join(""):""}function Y8(){return{target:12,jsx:1}}function Z8(){return M7.getSupportedErrorCodes()}var e7=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,n,r,i,o,a,s,c;const l=this.host.getScriptSnapshot(e);if(!l)throw new Error("Could not find file: '"+e+"'.");const _=oZ(e,this.host),u=this.host.getScriptVersion(e);let d;if(this.currentFileName!==e){d=n7(e,l,{languageVersion:99,impliedNodeFormat:JV(Vo(e,this.host.getCurrentDirectory(),(null==(r=null==(n=(t=this.host).getCompilerHost)?void 0:n.call(t))?void 0:r.getCanonicalFileName)||My(this.host)),null==(c=null==(s=null==(a=null==(o=(i=this.host).getCompilerHost)?void 0:o.call(i))?void 0:a.getModuleResolutionCache)?void 0:s.call(a))?void 0:c.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:mk(this.host.getCompilationSettings()),jsDocParsingMode:0},u,!0,_)}else if(this.currentFileVersion!==u){const e=l.getChangeRange(this.currentFileScriptSnapshot);d=r7(this.currentSourceFile,l,u,e)}return d&&(this.currentFileVersion=u,this.currentFileName=e,this.currentFileScriptSnapshot=l,this.currentSourceFile=d),this.currentSourceFile}};function t7(e,t,n){e.version=n,e.scriptSnapshot=t}function n7(e,t,n,r,i,o){const a=sO(e,eY(t),n,i,o);return t7(a,t,r),a}function r7(e,t,n,r,i){if(r&&n!==e.version){let o;const a=0!==r.span.start?e.text.substr(0,r.span.start):"",s=Es(r.span)!==e.text.length?e.text.substr(Es(r.span)):"";if(0===r.newLength)o=a&&s?a+s:a||s;else{const e=t.getText(r.span.start,r.span.start+r.newLength);o=a&&s?a+e+s:a?a+e:e+s}const c=uO(e,o,r,i);return t7(c,t,n),c.nameTable=void 0,e!==c&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),c}const o={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return n7(e.fileName,t,o,n,!0,e.scriptKind)}var i7={isCancellationRequested:rt,throwIfCancellationRequested:nt},o7=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=$n)||e.instant($n.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Tr}},a7=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=qn();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested())}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=$n)||e.instant($n.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Tr}},s7=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],c7=[...s7,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];function l7(e,t=H0(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory(),e.jsDocParsingMode),n){var r;let i;i=void 0===n?0:"boolean"==typeof n?n?2:0:n;const o=new e7(e);let a,c,l=0;const u=e.getCancellationToken?new o7(e.getCancellationToken()):i7,d=e.getCurrentDirectory();function p(t){e.log&&e.log(t)}Wx(null==(r=e.getLocalizedDiagnosticMessages)?void 0:r.bind(e));const f=Ry(e),m=Vt(f),g=I1({useCaseSensitiveFileNames:()=>f,getCurrentDirectory:()=>d,getProgram:v,fileExists:Ve(e,e.fileExists),readFile:Ve(e,e.readFile),getDocumentPositionMapper:Ve(e,e.getDocumentPositionMapper),getSourceFileLike:Ve(e,e.getSourceFileLike),log:p});function h(e){const t=a.getSourceFile(e);if(!t){const t=new Error(`Could not find source file: '${e}'.`);throw t.ProgramFiles=a.getSourceFiles().map((e=>e.fileName)),t}return t}function y(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():function(){var n,r,o;if(_n.assert(2!==i),e.getProjectVersion){const t=e.getProjectVersion();if(t){if(c===t&&!(null==(n=e.hasChangedAutomaticTypeDirectiveNames)?void 0:n.call(e)))return;c=t}}const s=e.getTypeRootsVersion?e.getTypeRootsVersion():0;l!==s&&(p("TypeRoots version has changed; provide new program"),a=void 0,l=s);const _=e.getScriptFileNames().slice(),h=e.getCompilationSettings()||{target:12,jsx:1},y=e.hasInvalidatedResolutions||rt,v=Ve(e,e.hasInvalidatedLibResolutions)||rt,b=Ve(e,e.hasChangedAutomaticTypeDirectiveNames),x=null==(r=e.getProjectReferences)?void 0:r.call(e);let k,S={getSourceFile:O,getSourceFileByPath:L,getCancellationToken:()=>u,getCanonicalFileName:m,useCaseSensitiveFileNames:()=>f,getNewLine:()=>Ib(h),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:nt,getCurrentDirectory:()=>d,fileExists:t=>e.fileExists(t),readFile:t=>e.readFile&&e.readFile(t),getSymlinkCache:Ve(e,e.getSymlinkCache),realpath:Ve(e,e.realpath),directoryExists:t=>Eb(t,e),getDirectories:t=>e.getDirectories?e.getDirectories(t):[],readDirectory:(t,n,r,i,o)=>(_n.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(t,n,r,i,o)),onReleaseOldSourceFile:I,onReleaseParsedCommandLine:P,hasInvalidatedResolutions:y,hasInvalidatedLibResolutions:v,hasChangedAutomaticTypeDirectiveNames:b,trace:Ve(e,e.trace),resolveModuleNames:Ve(e,e.resolveModuleNames),getModuleResolutionCache:Ve(e,e.getModuleResolutionCache),createHash:Ve(e,e.createHash),resolveTypeReferenceDirectives:Ve(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:Ve(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:Ve(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:Ve(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:Ve(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:F,jsDocParsingMode:e.jsDocParsingMode,getGlobalTypingsCacheLocation:Ve(e,e.getGlobalTypingsCacheLocation)};const T=S.getSourceFile,{getSourceFileWithCache:C}=eV(S,(e=>Vo(e,d,m)),((...e)=>T.call(S,...e)));S.getSourceFile=C,null==(o=e.setCompilerHost)||o.call(e,S);const w={useCaseSensitiveFileNames:f,fileExists:e=>S.fileExists(e),readFile:e=>S.readFile(e),directoryExists:e=>S.directoryExists(e),getDirectories:e=>S.getDirectories(e),realpath:S.realpath,readDirectory:(...e)=>S.readDirectory(...e),trace:S.trace,getCurrentDirectory:S.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:nt},D=t.getKeyForCompilationSettings(h);let N=new Set;if(MV(a,_,h,((t,n)=>e.getScriptVersion(n)),(e=>S.fileExists(e)),y,v,b,F,x))return S=void 0,k=void 0,void(N=void 0);return a=UV({rootNames:_,options:h,host:S,oldProgram:a,projectReferences:x}),S=void 0,k=void 0,N=void 0,g.clearCache(),void a.getTypeChecker();function F(t){const n=Vo(t,d,m),r=null==k?void 0:k.get(n);if(void 0!==r)return r||void 0;const i=e.getParsedCommandLine?e.getParsedCommandLine(t):E(t);return(k||(k=new Map)).set(n,i||!1),i}function E(e){const t=O(e,100);if(t)return t.path=Vo(e,d,m),t.resolvedPath=t.path,t.originalFileName=t.fileName,sj(t,w,Jo(Fo(e),d),void 0,Jo(e,d))}function P(t,n,r){var i;e.getParsedCommandLine?null==(i=e.onReleaseParsedCommandLine)||i.call(e,t,n,r):n&&A(n.sourceFile,r)}function A(e,n){const r=t.getKeyForCompilationSettings(n);t.releaseDocumentWithKey(e.resolvedPath,r,e.scriptKind,e.impliedNodeFormat)}function I(t,n,r,i){var o;A(t,n),null==(o=e.onReleaseOldSourceFile)||o.call(e,t,n,r,i)}function O(e,t,n,r){return L(e,Vo(e,d,m),t,n,r)}function L(n,r,i,o,s){_n.assert(S,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const c=e.getScriptSnapshot(n);if(!c)return;const l=oZ(n,e),_=e.getScriptVersion(n);if(!s){const o=a&&a.getSourceFileByPath(r);if(o){if(l===o.scriptKind||N.has(o.resolvedPath))return t.updateDocumentWithKey(n,r,e,D,c,_,l,i);t.releaseDocumentWithKey(o.resolvedPath,t.getKeyForCompilationSettings(a.getCompilerOptions()),o.scriptKind,o.impliedNodeFormat),N.add(o.resolvedPath)}}return t.acquireDocumentWithKey(n,r,e,D,c,_,l,i)}}()}function v(){if(2!==i)return y(),a;_n.assert(void 0===a)}function b(){if(a){const e=t.getKeyForCompilationSettings(a.getCompilerOptions());_(a.getSourceFiles(),(n=>t.releaseDocumentWithKey(n.resolvedPath,e,n.scriptKind,n.impliedNodeFormat))),a=void 0}}function x(e,t){if(Ls(t,e))return;const n=dc(lQ(e,Es(t))||e,(e=>js(e,t))),r=[];return k(t,n,r),e.end===t.start+t.length&&r.push(e.endOfFileToken),V(r,uP)?void 0:r}function k(e,t,n){return!!function(e,t){const n=t.start+t.length;return e.post.start}(t,e)&&(Ls(e,t)?(S(t,n),!0):m0(t)?function(e,t,n){const r=[],i=t.statements.filter((t=>k(e,t,r)));if(i.length===t.statements.length)return S(t,n),!0;return n.push(...r),!1}(e,t,n):d_(t)?function(e,t,n){var r,i,o;const a=t=>Us(t,e);if((null==(r=t.modifiers)?void 0:r.some(a))||t.name&&a(t.name)||(null==(i=t.typeParameters)?void 0:i.some(a))||(null==(o=t.heritageClauses)?void 0:o.some(a)))return S(t,n),!0;const s=[],c=t.members.filter((t=>k(e,t,s)));if(c.length===t.members.length)return S(t,n),!0;return n.push(...s),!1}(e,t,n):(S(t,n),!0))}function S(e,t){for(;e.parent&&!gC(e);)e=e.parent;t.push(e)}function T(e,t,n,r){y();const i=n&&n.use===Ace.FindReferencesUse.Rename?a.getSourceFiles().filter((e=>!a.isSourceFileDefaultLibrary(e))):a.getSourceFiles();return Ace.findReferenceOrRenameEntries(a,u,i,e,t,n,r)}const C=new Map(Object.entries({19:20,21:22,23:24,32:30}));function w(t){return _n.assertEqual(t.type,"install package"),e.installPackage?e.installPackage({fileName:(n=t.file,Vo(n,d,m)),packageName:t.packageName}):Promise.reject("Host does not implement `installPackage`");var n}function D(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function F(e,t,n){const r=o.getCurrentSourceFile(e),i=[],{lineStarts:a,firstLine:s,lastLine:c}=D(r,t);let l=n||!1,_=Number.MAX_VALUE;const u=new Map,d=new RegExp(/\S/),p=bQ(r,a[s]),f=p?"{/*":"//";for(let e=s;e<=c;e++){const t=r.text.substring(a[e],r.getLineEndOfPosition(a[e])),i=d.exec(t);i&&(_=Math.min(_,i.index),u.set(e.toString(),i.index),t.substr(i.index,f.length)!==f&&(l=void 0===n||n))}for(let n=s;n<=c;n++){if(s!==c&&a[n]===t.end)continue;const o=u.get(n.toString());void 0!==o&&(p?i.push(...E(e,{pos:a[n]+_,end:r.getLineEndOfPosition(a[n])},l,p)):l?i.push({newText:f,span:{length:0,start:a[n]+_}}):r.text.substr(a[n]+o,f.length)===f&&i.push({newText:"",span:{length:f.length,start:a[n]+o}}))}return i}function E(e,t,n,r){var i;const a=o.getCurrentSourceFile(e),s=[],{text:c}=a;let l=!1,_=n||!1;const u=[];let{pos:d}=t;const p=void 0!==r?r:bQ(a,d),f=p?"{/*":"/*",m=p?"*/}":"*/",g=p?"\\{\\/\\*":"\\/\\*",h=p?"\\*\\/\\}":"\\*\\/";for(;d<=t.end;){const e=CQ(a,d+(c.substr(d,f.length)===f?f.length:0));if(e)p&&(e.pos--,e.end++),u.push(e.pos),3===e.kind&&u.push(e.end),l=!0,d=e.end+1;else{const e=c.substring(d,t.end).search(`(${g})|(${h})`);_=void 0!==n?n:_||!EY(c,d,-1===e?t.end:d+e),d=-1===e?t.end+1:d+e+m.length}}if(_||!l){2!==(null==(i=CQ(a,t.pos))?void 0:i.kind)&&Y(u,t.pos,yt),Y(u,t.end,yt);const e=u[0];c.substr(e,f.length)!==f&&s.push({newText:f,span:{length:0,start:e}});for(let e=1;e0?e-m.length:0,n=c.substr(t,m.length)===m?m.length:0;s.push({newText:"",span:{length:f.length,start:e-n}})}return s}function P({openingElement:e,closingElement:t,parent:n}){return!NO(e.tagName,t.tagName)||WE(n)&&NO(e.tagName,n.openingElement.tagName)&&P(n)}function I({closingFragment:e,parent:t}){return!!(262144&e.flags)||GE(t)&&I(t)}function O(t,n,r,i,o,a){const[s,c]="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:t,startPosition:s,endPosition:c,program:v(),host:e,formatContext:Fde.getFormatContext(i,e),cancellationToken:u,preferences:r,triggerReason:o,kind:a}}C.forEach(((e,t)=>C.set(e.toString(),Number(t))));const L={dispose:function(){b(),e=void 0},cleanupSemanticCache:b,getSyntacticDiagnostics:function(e){return y(),a.getSyntacticDiagnostics(h(e),u).slice()},getSemanticDiagnostics:function(e){y();const t=h(e),n=a.getSemanticDiagnostics(t,u);if(!Pk(a.getCompilerOptions()))return n.slice();const r=a.getDeclarationDiagnostics(t,u);return[...n,...r]},getRegionSemanticDiagnostics:function(e,t){y();const n=h(e),r=a.getCompilerOptions();if(dT(n,r,a)||!mT(n,r)||a.getCachedSemanticDiagnostics(n))return;const i=function(e,t){const n=[],r=Ws(t.map((e=>WQ(e))));for(const t of r){const r=x(e,t);if(!r)return;n.push(...r)}if(!n.length)return;return n}(n,t);if(!i)return;const o=Ws(i.map((e=>Hs(e.getFullStart(),e.getEnd()))));return{diagnostics:a.getSemanticDiagnostics(n,u,i).slice(),spans:o}},getSuggestionDiagnostics:function(e){return y(),R1(h(e),a,u)},getCompilerOptionsDiagnostics:function(){return y(),[...a.getOptionsDiagnostics(u),...a.getGlobalDiagnostics(u)]},getSyntacticClassifications:function(e,t){return V0(u,o.getCurrentSourceFile(e),t)},getSemanticClassifications:function(e,t,n){return y(),"2020"===(n||"original")?w8(a,u,h(e),t):M0(a.getTypeChecker(),u,h(e),a.getClassifiableNames(),t)},getEncodedSyntacticClassifications:function(e,t){return W0(u,o.getCurrentSourceFile(e),t)},getEncodedSemanticClassifications:function(e,t,n){return y(),"original"===(n||"original")?J0(a.getTypeChecker(),u,h(e),a.getClassifiableNames(),t):D8(a,u,h(e),t)},getCompletionsAtPosition:function(t,n,r=OG,i){const o={...r,includeCompletionsForModuleExports:r.includeCompletionsForModuleExports||r.includeExternalModuleExports,includeCompletionsWithInsertText:r.includeCompletionsWithInsertText||r.includeInsertTextCompletions};return y(),Fae.getCompletionsAtPosition(e,a,p,h(t),n,o,r.triggerCharacter,r.triggerKind,u,i&&Fde.getFormatContext(i,e),r.includeSymbol)},getCompletionEntryDetails:function(t,n,r,i,o,s=OG,c){return y(),Fae.getCompletionEntryDetails(a,p,h(t),n,{name:r,source:o,data:c},e,i&&Fde.getFormatContext(i,e),s,u)},getCompletionEntrySymbol:function(t,n,r,i,o=OG){return y(),Fae.getCompletionEntrySymbol(a,p,h(t),n,{name:r,source:i},e,o)},getSignatureHelpItems:function(e,t,{triggerReason:n}=OG){y();const r=h(e);return cue.getSignatureHelpItems(a,r,t,n,u)},getQuickInfoAtPosition:function(e,t,n,r){y();const i=h(e),o=iQ(i,t);if(o===i)return;const s=a.getTypeChecker(),c=function(e){if(vF(e.parent)&&e.pos===e.parent.pos)return e.parent.expression;if(GN(e.parent)&&e.pos===e.parent.pos)return e.parent;if(uf(e.parent)&&e.parent.name===e)return e.parent;if(nP(e.parent))return e.parent;return e}(o),l=function(e,t){const n=u7(e);if(n){const e=t.getContextualType(n.parent),r=e&&d7(n,t,e,!1);if(r&&1===r.length)return me(r)}return t.getSymbolAtLocation(e)}(c,s);if(!l||s.isUnknownSymbol(l)){const e=function(e,t,n){switch(t.kind){case 80:return!(16777216&t.flags&&!Em(t)&&(172===t.parent.kind&&t.parent.name===t||dc(t,(e=>170===e.kind))))&&(!bX(t)&&!xX(t)&&!Sl(t.parent));case 212:case 167:return!CQ(e,n);case 110:case 198:case 108:case 203:return!0;case 237:return uf(t);default:return!1}}(i,c,t)?s.getTypeAtLocation(c):void 0;return e&&{kind:"",kindModifiers:"",textSpan:qQ(c,i),displayParts:s.runWithCancellationToken(u,(t=>tZ(t,e,FX(c),void 0,r))),documentation:e.symbol?e.symbol.getDocumentationComment(s):void 0,tags:e.symbol?e.symbol.getJsDocTags(s):void 0}}const{symbolKind:_,displayParts:d,documentation:p,tags:f,canIncreaseVerbosityLevel:m}=s.runWithCancellationToken(u,(e=>Wue.getSymbolDisplayPartsDocumentationAndSymbolKind(e,l,i,FX(c),c,void 0,void 0,n??Hu,r)));return{kind:_,kindModifiers:Wue.getSymbolModifiers(s,l),textSpan:qQ(c,i),displayParts:d,documentation:p,tags:f,canIncreaseVerbosityLevel:m}},getDefinitionAtPosition:function(e,t,n,r){return y(),vle.getDefinitionAtPosition(a,h(e),t,n,r)},getDefinitionAndBoundSpan:function(e,t){return y(),vle.getDefinitionAndBoundSpan(a,h(e),t)},getImplementationAtPosition:function(e,t){return y(),Ace.getImplementationsAtPosition(a,u,a.getSourceFiles(),h(e),t)},getTypeDefinitionAtPosition:function(e,t){return y(),vle.getTypeDefinitionAtPosition(a.getTypeChecker(),h(e),t)},getReferencesAtPosition:function(e,t){return y(),T(iQ(h(e),t),t,{use:Ace.FindReferencesUse.References},Ace.toReferenceEntry)},findReferences:function(e,t){return y(),Ace.findReferencedSymbols(a,u,a.getSourceFiles(),h(e),t)},getFileReferences:function(e){return y(),Ace.Core.getReferencesForFileName(e,a,a.getSourceFiles()).map(Ace.toReferenceEntry)},getDocumentHighlights:function(e,t,n){const r=zo(e);_n.assert(n.some((e=>zo(e)===r))),y();const i=R(n,(e=>a.getSourceFile(e))),o=h(e);return A0.getDocumentHighlights(a,u,o,t,i)},getNameOrDottedNameSpan:function(e,t,n){const r=o.getCurrentSourceFile(e),i=iQ(r,t);if(i===r)return;switch(i.kind){case 212:case 167:case 11:case 97:case 112:case 106:case 108:case 110:case 198:case 80:break;default:return}let a=i;for(;;)if(SX(a)||kX(a))a=a.parent;else{if(!CX(a))break;if(268!==a.parent.parent.kind||a.parent.parent.body!==a.parent)break;a=a.parent.parent.name}return Hs(a.getStart(),i.getEnd())},getBreakpointStatementAtPosition:function(e,t){const n=o.getCurrentSourceFile(e);return m7.spanInSourceFileAtLocation(n,t)},getNavigateToItems:function(e,t,n,r=!1,i=!1){return y(),o2(n?[h(n)]:a.getSourceFiles(),a.getTypeChecker(),u,e,t,r,i,a)},getRenameInfo:function(e,t,n){return y(),tue.getRenameInfo(a,h(e),t,n||{})},getSmartSelectionRange:function(e,t){return Oue.getSmartSelectionRange(t,o.getCurrentSourceFile(e))},findRenameLocations:function(e,t,n,r,i){y();const o=h(e),a=rQ(iQ(o,t));if(tue.nodeIsEligibleForRename(a)){if(_N(a)&&(HE(a.parent)||KE(a.parent))&&Py(a.escapedText)){const{openingElement:e,closingElement:t}=a.parent.parent;return[e,t].map((e=>{const t=qQ(e.tagName,o);return{fileName:o.fileName,textSpan:t,...Ace.toContextSpan(t,o,e.parent)}}))}{const e=fY(o,i??OG),s="boolean"==typeof i?i:null==i?void 0:i.providePrefixAndSuffixTextForRename;return T(a,t,{findInStrings:n,findInComments:r,providePrefixAndSuffixTextForRename:s,use:Ace.FindReferencesUse.Rename},((t,n,r)=>Ace.toRenameLocation(t,n,r,s||!1,e)))}}},getNavigationBarItems:function(e){return C2(o.getCurrentSourceFile(e),u)},getNavigationTree:function(e){return w2(o.getCurrentSourceFile(e),u)},getOutliningSpans:function(e){const t=o.getCurrentSourceFile(e);return $_e.collectElements(t,u)},getTodoComments:function(e,t){y();const n=h(e);u.throwIfCancellationRequested();const r=n.text,i=[];if(t.length>0&&!n.fileName.includes("/node_modules/")){const e=function(){const e="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/{2,}\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+N(t,(e=>"("+(e.text.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")+")"))).join("|")+")";return new RegExp(e+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}();let a;for(;a=e.exec(r);){u.throwIfCancellationRequested();const e=3;_n.assert(a.length===t.length+e);const s=a[1],c=a.index+s.length;if(!CQ(n,c))continue;let l;for(let n=0;n=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57)continue;const _=a[2];i.push({descriptor:l,message:_,position:c})}}var o;return i},getBraceMatchingAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=oQ(n,t),i=r.getStart(n)===t?C.get(r.kind.toString()):void 0,a=i&&$X(r.parent,i,n);return a?[qQ(r,n),qQ(a,n)].sort(((e,t)=>e.start-t.start)):s},getIndentationAtPosition:function(e,t,n){let r=qn();const i=G8(n),a=o.getCurrentSourceFile(e);p("getIndentationAtPosition: getCurrentSourceFile: "+(qn()-r)),r=qn();const s=Fde.SmartIndenter.getIndentation(t,a,i);return p("getIndentationAtPosition: computeIndentation : "+(qn()-r)),s},getFormattingEditsForRange:function(t,n,r,i){const a=o.getCurrentSourceFile(t);return Fde.formatSelection(n,r,a,Fde.getFormatContext(G8(i),e))},getFormattingEditsForDocument:function(t,n){return Fde.formatDocument(o.getCurrentSourceFile(t),Fde.getFormatContext(G8(n),e))},getFormattingEditsAfterKeystroke:function(t,n,r,i){const a=o.getCurrentSourceFile(t),s=Fde.getFormatContext(G8(i),e);if(!CQ(a,n))switch(r){case"{":return Fde.formatOnOpeningCurly(n,a,s);case"}":return Fde.formatOnClosingCurly(n,a,s);case";":return Fde.formatOnSemicolon(n,a,s);case"\n":return Fde.formatOnEnter(n,a,s)}return[]},getDocCommentTemplateAtPosition:function(t,n,r,i){const a=i?Fde.getFormatContext(i,e).options:void 0;return qle.getDocCommentTemplateAtPosition(YY(e,a),o.getCurrentSourceFile(t),n,r)},isValidBraceCompletionAtPosition:function(e,t,n){if(60===n)return!1;const r=o.getCurrentSourceFile(e);if(mQ(r,t))return!1;if(gQ(r,t))return 123===n;if(yQ(r,t))return!1;switch(n){case 39:case 34:case 96:return!CQ(r,t)}return!0},getJsxClosingTagAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=uQ(t,n);if(!r)return;const i=32===r.kind&&HE(r.parent)?r.parent.parent:KD(r)&&WE(r.parent)?r.parent:void 0;if(i&&P(i))return{newText:``};const a=32===r.kind&&XE(r.parent)?r.parent.parent:KD(r)&&GE(r.parent)?r.parent:void 0;return a&&I(a)?{newText:""}:void 0},getLinkedEditingRangeAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=uQ(t,n);if(!r||308===r.parent.kind)return;const i="[a-zA-Z0-9:\\-\\._$]*";if(GE(r.parent.parent)){const e=r.parent.parent.openingFragment,o=r.parent.parent.closingFragment;if(vd(e)||vd(o))return;const a=e.getStart(n)+1,s=o.getStart(n)+2;if(t!==a&&t!==s)return;return{ranges:[{start:a,length:0},{start:s,length:0}],wordPattern:i}}{const e=dc(r.parent,(e=>!(!HE(e)&&!KE(e))));if(!e)return;_n.assert(HE(e)||KE(e),"tag should be opening or closing element");const o=e.parent.openingElement,a=e.parent.closingElement,s=o.tagName.getStart(n),c=o.tagName.end,l=a.tagName.getStart(n),_=a.tagName.end;if(s===o.getStart(n)||l===a.getStart(n)||c===o.getEnd()||_===a.getEnd())return;if(!(s<=t&&t<=c||l<=t&&t<=_))return;if(o.tagName.getText(n)!==a.tagName.getText(n))return;return{ranges:[{start:s,length:c-s},{start:l,length:_-l}],wordPattern:i}}},getSpanOfEnclosingComment:function(e,t,n){const r=o.getCurrentSourceFile(e),i=Fde.getRangeOfEnclosingComment(r,t);return!i||n&&3!==i.kind?void 0:WQ(i)},getCodeFixesAtPosition:function(t,n,r,i,o,s=OG){y();const c=h(t),l=Hs(n,r),_=Fde.getFormatContext(o,e);return A(X(i,ft,yt),(t=>(u.throwIfCancellationRequested(),M7.getFixes({errorCode:t,sourceFile:c,span:l,program:a,host:e,cancellationToken:u,formatContext:_,preferences:s}))))},getCombinedCodeFix:function(t,n,r,i=OG){y(),_n.assert("file"===t.type);const o=h(t.fileName),s=Fde.getFormatContext(r,e);return M7.getAllFixes({fixId:n,sourceFile:o,program:a,host:e,cancellationToken:u,formatContext:s,preferences:i})},applyCodeActionCommand:function(e,t){const n="string"==typeof e?t:e;return Xe(n)?Promise.all(n.map((e=>w(e)))):w(n)},organizeImports:function(t,n,r=OG){y(),_n.assert("file"===t.type);const i=h(t.fileName);if(vd(i))return s;const o=Fde.getFormatContext(n,e),c=t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":"All");return f_e.organizeImports(i,o,e,a,r,c)},getEditsForFileRename:function(t,n,r,i=OG){return Q0(v(),t,n,e,Fde.getFormatContext(r,e),i,g)},getEmitOutput:function(t,n,r){y();const i=h(t),o=e.getCustomTransformers&&e.getCustomTransformers();return rW(a,i,!!n,u,o,r)},getNonBoundSourceFile:function(e){return o.getCurrentSourceFile(e)},getProgram:v,getCurrentProgram:()=>a,getAutoImportProvider:function(){var t;return null==(t=e.getPackageJsonAutoImportProvider)?void 0:t.call(e)},updateIsDefinitionOfReferencedSymbols:function(t,n){const r=a.getTypeChecker(),i=function(){for(const i of t)for(const t of i.references){if(n.has(t)){const e=o(t);return _n.assertIsDefined(e),r.getSymbolAtLocation(e)}const i=AY(t,g,Ve(e,e.fileExists));if(i&&n.has(i)){const e=o(i);if(e)return r.getSymbolAtLocation(e)}}return}();if(!i)return!1;for(const r of t)for(const t of r.references){const r=o(t);if(_n.assertIsDefined(r),n.has(t)||Ace.isDeclarationOfSymbol(r,i)){n.add(t),t.isDefinition=!0;const r=AY(t,g,Ve(e,e.fileExists));r&&n.add(r)}else t.isDefinition=!1}return!0;function o(e){const t=a.getSourceFile(e.fileName);if(!t)return;const n=iQ(t,e.textSpan.start);return Ace.Core.getAdjustedNode(n,{use:Ace.FindReferencesUse.References})}},getApplicableRefactors:function(e,t,n=OG,r,i,o){y();const a=h(e);return u3.getApplicableRefactors(O(a,t,n,OG,r,i),o)},getEditsForRefactor:function(e,t,n,r,i,o=OG,a){y();const s=h(e);return u3.getEditsForRefactor(O(s,n,o,t),r,i,a)},getMoveToRefactoringFileSuggestions:function(t,n,r=OG){y();const i=h(t),o=_n.checkDefined(a.getSourceFiles()),s=tT(t),c=c6(O(i,n,r,OG)),l=l6(null==c?void 0:c.all),_=R(o,(e=>{const t=tT(e.fileName);return!(null==a?void 0:a.isSourceFileFromExternalLibrary(i))&&!(i===h(e.fileName)||".ts"===s&&".d.ts"===t||".d.ts"===s&&Kt(Eo(e.fileName),"lib.")&&".d.ts"===t)&&(s===t||(".tsx"===s&&".ts"===t||".jsx"===s&&".js"===t)&&!l)?e.fileName:void 0}));return{newFileName:s6(i,a,e,c),files:_}},toLineColumnOffset:function(e,t){return 0===t?{line:0,character:0}:g.toLineColumnOffset(e,t)},getSourceMapper:()=>g,clearSourceMapperCache:()=>g.clearCache(),prepareCallHierarchy:function(e,t){y();const n=h7.resolveCallHierarchyDeclaration(a,iQ(h(e),t));return n&&YZ(n,(e=>h7.createCallHierarchyItem(a,e)))},provideCallHierarchyIncomingCalls:function(e,t){y();const n=h(e),r=ZZ(h7.resolveCallHierarchyDeclaration(a,0===t?n:iQ(n,t)));return r?h7.getIncomingCalls(a,r,u):[]},provideCallHierarchyOutgoingCalls:function(e,t){y();const n=h(e),r=ZZ(h7.resolveCallHierarchyDeclaration(a,0===t?n:iQ(n,t)));return r?h7.getOutgoingCalls(a,r):[]},toggleLineComment:F,toggleMultilineComment:E,commentSelection:function(e,t){const n=o.getCurrentSourceFile(e),{firstLine:r,lastLine:i}=D(n,t);return r===i&&t.pos!==t.end?E(e,t,!0):F(e,t,!0)},uncommentSelection:function(e,t){const n=o.getCurrentSourceFile(e),r=[],{pos:i}=t;let{end:a}=t;i===a&&(a+=bQ(n,i)?2:1);for(let t=i;t<=a;t++){const i=CQ(n,t);if(i){switch(i.kind){case 2:r.push(...F(e,{end:i.end,pos:i.pos+1},!1));break;case 3:r.push(...E(e,{end:i.end,pos:i.pos+1},!1))}t=i.end+1}}return r},provideInlayHints:function(t,n,r=OG){y();const i=h(t);return Rle.provideInlayHints(function(t,n,r){return{file:t,program:v(),host:e,span:n,preferences:r,cancellationToken:u}}(i,n,r))},getSupportedCodeFixes:Z8,preparePasteEditsForFile:function(e,t){return y(),Ffe.preparePasteEdits(h(e),t,a.getTypeChecker())},getPasteEdits:function(t,n){return y(),Pfe.pasteEditsProvider(h(t.targetFile),t.pastedText,t.pasteLocations,t.copiedFrom?{file:h(t.copiedFrom.file),range:t.copiedFrom.range}:void 0,e,t.preferences,Fde.getFormatContext(n,e),u)},mapCode:function(t,n,r,i,a){return c_e.mapCode(o.getCurrentSourceFile(t),n,r,e,Fde.getFormatContext(i,e),a)}};switch(i){case 0:break;case 1:s7.forEach((e=>L[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:c7.forEach((e=>L[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.Syntactic`)}));break;default:_n.assertNever(i)}return L}function _7(e){return e.nameTable||function(e){const t=e.nameTable=new Map;e.forEachChild((function e(n){if(_N(n)&&!xX(n)&&n.escapedText||Rh(n)&&function(e){return _h(e)||284===e.parent.kind||function(e){return e&&e.parent&&213===e.parent.kind&&e.parent.argumentExpression===e}(e)||dh(e)}(n)){const e=Vh(n);t.set(e,void 0===t.get(e)?n.pos:-1)}else if(uN(n)){const e=n.escapedText;t.set(e,void 0===t.get(e)?n.pos:-1)}if(rO(n,e),Fu(n))for(const t of n.jsDoc)rO(t,e)}))}(e),e.nameTable}function u7(e){const t=function(e){switch(e.kind){case 11:case 15:case 9:if(168===e.parent.kind)return Iu(e.parent.parent)?e.parent.parent:void 0;case 80:case 296:return!Iu(e.parent)||211!==e.parent.parent.kind&&293!==e.parent.parent.kind||e.parent.name!==e?void 0:e.parent}return}(e);return t&&(mF(t.parent)||ZE(t.parent))?t:void 0}function d7(e,t,n,r){n=n.getNonNullableType();const i=rY(e.name);if(!i)return s;if(!n.isUnion()){const e=n.getProperty(i);return e?[e]:s}const o=mF(e.parent)||ZE(e.parent)?C(n.types,(n=>!t.isTypeInvalidDueToUnionDiscriminant(n,e.parent))):n.types,a=R(o,(e=>e.getProperty(i)));if(r&&(0===a.length||a.length===n.types.length)){const e=n.getProperty(i);if(e)return[e]}return o.length||a.length?X(a,ft):R(n.types,(e=>e.getProperty(i)))}function p7(e){if(co)return Ro(Fo(zo(co.getExecutingFilePath())),Fs(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}function f7(e,t,n){const r=[];n=r2(n,r);const i=Xe(e)?e:[e],o=Qq(void 0,void 0,vw,n,i,t,!0);return o.diagnostics=$(o.diagnostics,r),o}qx({getNodeConstructor:()=>O8,getTokenConstructor:()=>M8,getIdentifierConstructor:()=>B8,getPrivateIdentifierConstructor:()=>J8,getSourceFileConstructor:()=>H8,getSymbolConstructor:()=>R8,getTypeConstructor:()=>z8,getSignatureConstructor:()=>q8,getSourceMapSourceConstructor:()=>K8});var m7={};function g7(e,t){if(e.isDeclarationFile)return;let n=aQ(e,t);const r=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(n.getStart(e)).line>r){const t=uQ(n.pos,e);if(!t||e.getLineAndCharacterOfPosition(t.getEnd()).line!==r)return;n=t}if(!(33554432&n.flags))return l(n);function i(t,n){const r=EI(t)?v(t.modifiers,FN):void 0;return Hs(r?Ya(e.text,r.end):t.getStart(e),(n||t).getEnd())}function o(t,n){return i(t,_Q(n,n.parent,e))}function a(t,n){return t&&r===e.getLineAndCharacterOfPosition(t.getStart(e)).line?l(t):l(n)}function s(t){return l(uQ(t.pos,e))}function c(t){return l(_Q(t,t.parent,e))}function l(t){if(t){const{parent:n}=t;switch(t.kind){case 244:return r(t.declarationList.declarations[0]);case 261:case 173:case 172:return r(t);case 170:return function e(t){if(S_(t.name))return f(t.name);if(function(e){return!!e.initializer||void 0!==e.dotDotDotToken||Fv(e,3)}(t))return i(t);{const n=t.parent,r=n.parameters.indexOf(t);return _n.assert(-1!==r),0!==r?e(n.parameters[r-1]):l(n.body)}}(t);case 263:case 175:case 174:case 178:case 179:case 177:case 219:case 220:return function(e){if(!e.body)return;if(u(e))return i(e);return l(e.body)}(t);case 242:if(Bf(t))return function(e){const t=e.statements.length?e.statements[0]:e.getLastToken();if(u(e.parent))return a(e.parent,t);return l(t)}(t);case 269:return d(t);case 300:return d(t.block);case 245:return i(t.expression);case 254:return i(t.getChildAt(0),t.expression);case 248:return o(t,t.expression);case 247:return l(t.statement);case 260:return i(t.getChildAt(0));case 246:return o(t,t.expression);case 257:return l(t.statement);case 253:case 252:return i(t.getChildAt(0),t.label);case 249:return function(e){if(e.initializer)return p(e);if(e.condition)return i(e.condition);if(e.incrementor)return i(e.incrementor)}(t);case 250:return o(t,t.expression);case 251:return p(t);case 256:return o(t,t.expression);case 297:case 298:return l(t.statements[0]);case 259:return d(t.tryBlock);case 258:case 278:return i(t,t.expression);case 272:return i(t,t.moduleReference);case 273:case 279:return i(t,t.moduleSpecifier);case 268:if(1!==ZM(t))return;case 264:case 267:case 307:case 209:return i(t);case 255:return l(t.statement);case 171:return function(t,n,r){if(t){const i=t.indexOf(n);if(i>=0){let n=i,o=i+1;for(;n>0&&r(t[n-1]);)n--;for(;o0)return l(t.declarations[0])}}function f(e){const t=_(e.elements,(e=>233!==e.kind?e:void 0));return t?l(t):209===e.parent.kind?i(e.parent):n(e.parent)}function m(e){_n.assert(208!==e.kind&&207!==e.kind);const t=_(210===e.kind?e.elements:e.properties,(e=>233!==e.kind?e:void 0));return t?l(t):i(227===e.parent.kind?e.parent:e)}}}n(m7,{spanInSourceFileAtLocation:()=>g7});var h7={};function y7(e){return PN(e)||pE(e)}function v7(e){return(SF(e)||TF(e)||jF(e))&&y7(e.parent)&&e===e.parent.initializer&&_N(e.parent.name)&&(!!(2&sc(e.parent))||PN(e.parent))}function b7(e){return uP(e)||bE(e)||mE(e)||SF(e)||gE(e)||jF(e)||ON(e)||IN(e)||AN(e)||jN(e)||RN(e)}function x7(e){return uP(e)||bE(e)&&_N(e.name)||mE(e)||gE(e)||ON(e)||IN(e)||AN(e)||jN(e)||RN(e)||function(e){return(SF(e)||jF(e))&&Tc(e)}(e)||v7(e)}function k7(e){return uP(e)?e:Tc(e)?e.name:v7(e)?e.parent.name:_n.checkDefined(e.modifiers&&y(e.modifiers,S7))}function S7(e){return 90===e.kind}function T7(e,t){const n=k7(t);return n&&e.getSymbolAtLocation(n)}function C7(e,t){if(t.body)return t;if(LN(t))return ov(t.parent);if(mE(t)||IN(t)){const n=T7(e,t);return n&&n.valueDeclaration&&a_(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return t}function w7(e,t){const n=T7(e,t);let r;if(n&&n.declarations){const e=K(n.declarations),t=N(n.declarations,(e=>({file:e.getSourceFile().fileName,pos:e.pos})));e.sort(((e,n)=>Tt(t[e].file,t[n].file)||t[e].pos-t[n].pos));const i=N(e,(e=>n.declarations[e]));let o;for(const e of i)x7(e)&&(o&&o.parent===e.parent&&o.end===e.pos||(r=re(r,e)),o=e)}return r}function D7(e,t){return ON(t)?t:a_(t)?C7(e,t)??w7(e,t)??t:w7(e,t)??t}function N7(e,t){const n=e.getTypeChecker();let r=!1;for(;;){if(x7(t))return D7(n,t);if(b7(t)){const e=dc(t,x7);return e&&D7(n,e)}if(_h(t)){if(x7(t.parent))return D7(n,t.parent);if(b7(t.parent)){const e=dc(t.parent,x7);return e&&D7(n,e)}return y7(t.parent)&&t.parent.initializer&&v7(t.parent.initializer)?t.parent.initializer:void 0}if(LN(t))return x7(t.parent)?t.parent:void 0;if(126!==t.kind||!ON(t.parent)){if(pE(t)&&t.initializer&&v7(t.initializer))return t.initializer;if(!r){let e=n.getSymbolAtLocation(t);if(e&&(2097152&e.flags&&(e=n.getAliasedSymbol(e)),e.valueDeclaration)){r=!0,t=e.valueDeclaration;continue}}return}t=t.parent}}function F7(e,t){const n=t.getSourceFile(),r=function(e,t){if(uP(t))return{text:t.fileName,pos:0,end:0};if((mE(t)||gE(t))&&!Tc(t)){const e=t.modifiers&&y(t.modifiers,S7);if(e)return{text:"default",pos:e.getStart(),end:e.getEnd()}}if(ON(t)){const n=Ya(t.getSourceFile().text,Mb(t).pos),r=n+6,i=e.getTypeChecker(),o=i.getSymbolAtLocation(t.parent);return{text:(o?`${i.symbolToString(o,t.parent)} `:"")+"static {}",pos:n,end:r}}const n=v7(t)?t.parent.name:_n.checkDefined(wc(t),"Expected call hierarchy item to have a name");let r=_N(n)?hc(n):Rh(n)?n.text:wN(n)&&Rh(n.expression)?n.expression.text:void 0;if(void 0===r){const i=e.getTypeChecker(),o=i.getSymbolAtLocation(n);o&&(r=i.symbolToString(o,t))}if(void 0===r){const e=FU();r=sd((n=>e.writeNode(4,t,t.getSourceFile(),n)))}return{text:r,pos:n.getStart(),end:n.getEnd()}}(e,t),i=function(e){var t,n,r,i;if(v7(e))return PN(e.parent)&&d_(e.parent.parent)?jF(e.parent.parent)?null==(t=Dc(e.parent.parent))?void 0:t.getText():null==(n=e.parent.parent.name)?void 0:n.getText():xE(e.parent.parent.parent.parent)&&_N(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 178:case 179:case 175:return 211===e.parent.kind?null==(r=Dc(e.parent))?void 0:r.getText():null==(i=wc(e.parent))?void 0:i.getText();case 263:case 264:case 268:if(xE(e.parent)&&_N(e.parent.parent.name))return e.parent.parent.name.getText()}}(t),o=EX(t),a=NQ(t),s=Hs(Ya(n.text,t.getFullStart(),!1,!0),t.getEnd()),c=Hs(r.pos,r.end);return{file:n.fileName,kind:o,kindModifiers:a,name:r.text,containerName:i,span:s,selectionSpan:c}}function E7(e){return void 0!==e}function P7(e){if(e.kind===Ace.EntryKind.Node){const{node:t}=e;if(sX(t,!0,!0)||cX(t,!0,!0)||lX(t,!0,!0)||_X(t,!0,!0)||SX(t)||TX(t)){const e=t.getSourceFile();return{declaration:dc(t,x7)||e,range:VQ(t,e)}}}}function A7(e){return cJ(e.declaration)}function I7(e,t,n){if(uP(t)||bE(t)||ON(t))return[];const r=k7(t),i=C(Ace.findReferenceOrRenameEntries(e,n,e.getSourceFiles(),r,0,{use:Ace.FindReferencesUse.References},P7),E7);return i?Be(i,A7,(t=>function(e,t){return n=F7(e,t[0].declaration),r=N(t,(e=>WQ(e.range))),{from:n,fromSpans:r};var n,r}(e,t))):[]}function O7(e,t){const n=[],r=function(e,t){function n(n){const r=bF(n)?n.tag:xu(n)?n.tagName:Cx(n)||ON(n)?n:n.expression,i=N7(e,r);if(i){const e=VQ(r,n.getSourceFile());if(Xe(i))for(const n of i)t.push({declaration:n,range:e});else t.push({declaration:i,range:e})}}return function e(t){if(t&&!(33554432&t.flags))if(x7(t)){if(d_(t))for(const n of t.members)n.name&&wN(n.name)&&e(n.name.expression)}else{switch(t.kind){case 80:case 272:case 273:case 279:case 265:case 266:return;case 176:return void n(t);case 217:case 235:case 239:return void e(t.expression);case 261:case 170:return e(t.name),void e(t.initializer);case 214:case 215:return n(t),e(t.expression),void _(t.arguments,e);case 216:return n(t),e(t.tag),void e(t.template);case 287:case 286:return n(t),e(t.tagName),void e(t.attributes);case 171:return n(t),void e(t.expression);case 212:case 213:n(t),rO(t,e)}wf(t)||rO(t,e)}}}(e,n);switch(t.kind){case 308:!function(e,t){_(e.statements,t)}(t,r);break;case 268:!function(e,t){!Fv(e,128)&&e.body&&xE(e.body)&&_(e.body.statements,t)}(t,r);break;case 263:case 219:case 220:case 175:case 178:case 179:!function(e,t,n){const r=C7(e,t);r&&(_(r.parameters,n),n(r.body))}(e.getTypeChecker(),t,r);break;case 264:case 232:!function(e,t){_(e.modifiers,t);const n=bh(e);n&&t(n.expression);for(const n of e.members)FI(n)&&_(n.modifiers,t),PN(n)?t(n.initializer):LN(n)&&n.body?(_(n.parameters,t),t(n.body)):ON(n)&&t(n)}(t,r);break;case 176:!function(e,t){t(e.body)}(t,r);break;default:_n.assertNever(t)}return n}function L7(e,t){return 33554432&t.flags||AN(t)?[]:Be(O7(e,t),A7,(t=>function(e,t){return n=F7(e,t[0].declaration),r=N(t,(e=>WQ(e.range))),{to:n,fromSpans:r};var n,r}(e,t)))}n(h7,{createCallHierarchyItem:()=>F7,getIncomingCalls:()=>I7,getOutgoingCalls:()=>L7,resolveCallHierarchyDeclaration:()=>N7});var j7={};n(j7,{v2020:()=>R7});var R7={};n(R7,{TokenEncodingConsts:()=>S8,TokenModifier:()=>C8,TokenType:()=>T8,getEncodedSemanticClassifications:()=>D8,getSemanticClassifications:()=>w8});var M7={};n(M7,{PreserveOptionalFlags:()=>Kie,addNewNodeForMemberSymbol:()=>Gie,codeFixAll:()=>Y7,createCodeFixAction:()=>U7,createCodeFixActionMaybeFixAll:()=>V7,createCodeFixActionWithoutFixAll:()=>q7,createCombinedCodeActions:()=>X7,createFileTextChanges:()=>Q7,createImportAdder:()=>See,createImportSpecifierResolver:()=>Cee,createMissingMemberNodes:()=>$ie,createSignatureDeclarationFromCallExpression:()=>Qie,createSignatureDeclarationFromSignature:()=>Xie,createStubbedBody:()=>coe,eachDiagnostic:()=>Z7,findAncestorMatchingSpan:()=>goe,generateAccessorFromProperty:()=>hoe,getAccessorConvertiblePropertyAtPosition:()=>xoe,getAllFixes:()=>G7,getFixes:()=>K7,getImportCompletionAction:()=>wee,getImportKind:()=>qee,getJSDocTypedefNodes:()=>_ee,getNoopSymbolTrackerWithResolver:()=>Hie,getPromoteTypeOnlyCompletionAction:()=>Dee,getSupportedErrorCodes:()=>H7,importFixName:()=>bee,importSymbols:()=>moe,parameterShouldGetTypeFromJSDoc:()=>U5,registerCodeFix:()=>$7,setJsonCompilerOptionValue:()=>_oe,setJsonCompilerOptionValues:()=>loe,tryGetAutoImportableReferenceFromTypeNode:()=>poe,typeNodeToAutoImportableTypeNode:()=>eoe,typePredicateToAutoImportableTypeNode:()=>noe,typeToAutoImportableTypeNode:()=>Zie,typeToMinimizedReferenceType:()=>toe});var B7,J7=We(),z7=new Map;function q7(e,t,n){return W7(e,l0(n),t,void 0,void 0)}function U7(e,t,n,r,i,o){return W7(e,l0(n),t,r,l0(i),o)}function V7(e,t,n,r,i,o){return W7(e,l0(n),t,r,i&&l0(i),o)}function W7(e,t,n,r,i,o){return{fixName:e,description:t,changes:n,fixId:r,fixAllDescription:i,commands:o?[o]:void 0}}function $7(e){for(const t of e.errorCodes)B7=void 0,J7.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)_n.assert(!z7.has(t)),z7.set(t,e)}function H7(){return B7??(B7=Ie(J7.keys()))}function K7(e){const t=e5(e);return A(J7.get(String(e.errorCode)),(n=>N(n.getCodeActions(e),function(e,t){const{errorCodes:n}=e;let r=0;for(const e of t)if(k(n,e.code)&&r++,r>1)break;const i=r<2;return({fixId:e,fixAllDescription:t,...n})=>i?n:{...n,fixId:e,fixAllDescription:t}}(n,t))))}function G7(e){return z7.get(tt(e.fixId,Ye)).getAllCodeActions(e)}function X7(e,t){return{changes:e,commands:t}}function Q7(e,t){return{fileName:e,textChanges:t}}function Y7(e,t,n){const r=[];return X7(ede.ChangeTracker.with(e,(i=>Z7(e,t,(e=>n(i,e,r))))),0===r.length?void 0:r)}function Z7(e,t,n){for(const r of e5(e))k(t,r.code)&&n(r)}function e5({program:e,sourceFile:t,cancellationToken:n}){const r=[...e.getSemanticDiagnostics(t,n),...e.getSyntacticDiagnostics(t,n),...R1(t,e,n)];return Pk(e.getCompilerOptions())&&r.push(...e.getDeclarationDiagnostics(t,n)),r}var t5="addConvertToUnknownForNonOverlappingTypes",n5=[ua.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function r5(e,t,n){const r=BF(n)?vw.createAsExpression(n.expression,vw.createKeywordTypeNode(159)):vw.createTypeAssertion(vw.createKeywordTypeNode(159),n.expression);e.replaceNode(t,n.expression,r)}function i5(e,t){if(!Em(e))return dc(aQ(e,t),(e=>BF(e)||xF(e)))}$7({errorCodes:n5,getCodeActions:function(e){const t=i5(e.sourceFile,e.span.start);if(void 0===t)return;const n=ede.ChangeTracker.with(e,(n=>r5(n,e.sourceFile,t)));return[U7(t5,n,ua.Add_unknown_conversion_for_non_overlapping_types,t5,ua.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[t5],getAllCodeActions:e=>Y7(e,n5,((e,t)=>{const n=i5(t.file,t.start);n&&r5(e,t.file,n)}))}),$7({errorCodes:[ua.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,ua.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,ua.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(e){const{sourceFile:t}=e;return[q7("addEmptyExportDeclaration",ede.ChangeTracker.with(e,(e=>{const n=vw.createExportDeclaration(void 0,!1,vw.createNamedExports([]),void 0);e.insertNodeAtEndOfScope(t,t,n)})),ua.Add_export_to_make_this_file_into_a_module)]}});var o5="addMissingAsync",a5=[ua.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,ua.Type_0_is_not_assignable_to_type_1.code,ua.Type_0_is_not_comparable_to_type_1.code];function s5(e,t,n,r){const i=n((n=>function(e,t,n,r){if(r&&r.has(cJ(n)))return;null==r||r.add(cJ(n));const i=vw.replaceModifiers(JC(n,!0),vw.createNodeArray(vw.createModifiersFromModifierFlags(1024|Uv(n))));e.replaceNode(t,n,i)}(n,e.sourceFile,t,r)));return U7(o5,i,ua.Add_async_modifier_to_containing_function,o5,ua.Add_all_missing_async_modifiers)}function c5(e,t){if(!t)return;return dc(aQ(e,t.start),(n=>n.getStart(e)Es(t)?"quit":(TF(n)||IN(n)||SF(n)||mE(n))&&wY(t,qQ(n,e))))}$7({fixIds:[o5],errorCodes:a5,getCodeActions:function(e){const{sourceFile:t,errorCode:n,cancellationToken:r,program:i,span:o}=e,a=y(i.getTypeChecker().getDiagnostics(t,r),function(e,t){return({start:n,length:r,relatedInformation:i,code:o})=>Ze(n)&&Ze(r)&&wY({start:n,length:r},e)&&o===t&&!!i&&V(i,(e=>e.code===ua.Did_you_mean_to_mark_this_function_as_async.code))}(o,n)),s=c5(t,a&&a.relatedInformation&&y(a.relatedInformation,(e=>e.code===ua.Did_you_mean_to_mark_this_function_as_async.code)));if(!s)return;return[s5(e,s,(t=>ede.ChangeTracker.with(e,t)))]},getAllCodeActions:e=>{const{sourceFile:t}=e,n=new Set;return Y7(e,a5,((r,i)=>{const o=i.relatedInformation&&y(i.relatedInformation,(e=>e.code===ua.Did_you_mean_to_mark_this_function_as_async.code)),a=c5(t,o);if(!a)return;return s5(e,a,(e=>(e(r),[])),n)}))}});var l5="addMissingAwait",_5=ua.Property_0_does_not_exist_on_type_1.code,u5=[ua.This_expression_is_not_callable.code,ua.This_expression_is_not_constructable.code],d5=[ua.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,ua.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,ua.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,ua.Operator_0_cannot_be_applied_to_type_1.code,ua.Operator_0_cannot_be_applied_to_types_1_and_2.code,ua.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,ua.This_condition_will_always_return_true_since_this_0_is_always_defined.code,ua.Type_0_is_not_an_array_type.code,ua.Type_0_is_not_an_array_type_or_a_string_type.code,ua.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,ua.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,ua.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,ua.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,ua.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,ua.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_5,...u5];function p5(e,t,n,r,i){const o=QZ(e,n);return o&&function(e,t,n,r,i){const o=i.getTypeChecker(),a=o.getDiagnostics(e,r);return V(a,(({start:e,length:r,relatedInformation:i,code:o})=>Ze(e)&&Ze(r)&&wY({start:e,length:r},n)&&o===t&&!!i&&V(i,(e=>e.code===ua.Did_you_forget_to_use_await.code))))}(e,t,n,r,i)&&h5(o)?o:void 0}function f5(e,t,n,r,i,o){const{sourceFile:a,program:s,cancellationToken:c}=e,l=function(e,t,n,r,i){const o=function(e,t){if(gF(e.parent)&&_N(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(_N(e))return{identifiers:[e],isCompleteFix:!0};if(PF(e)){let n,r=!0;for(const i of[e.left,e.right]){const e=t.getTypeAtLocation(i);if(t.getPromisedTypeOfPromise(e)){if(!_N(i)){r=!1;continue}(n||(n=[])).push(i)}}return n&&{identifiers:n,isCompleteFix:r}}}(e,i);if(!o)return;let a,s=o.isCompleteFix;for(const e of o.identifiers){const o=i.getSymbolAtLocation(e);if(!o)continue;const c=et(o.valueDeclaration,pE),l=c&&et(c.name,_N),_=Ch(c,244);if(!c||!_||c.type||!c.initializer||_.getSourceFile()!==t||Fv(_,32)||!l||!h5(c.initializer)){s=!1;continue}const u=r.getSemanticDiagnostics(t,n);Ace.Core.eachSymbolReferenceInFile(l,i,t,(n=>e!==n&&!g5(n,u,t,i)))?s=!1:(a||(a=[])).push({expression:c.initializer,declarationSymbol:o})}return a&&{initializers:a,needsSecondPassForFixAll:!s}}(t,a,c,s,r);if(l){return q7("addMissingAwaitToInitializer",i((e=>{_(l.initializers,(({expression:t})=>y5(e,n,a,r,t,o))),o&&l.needsSecondPassForFixAll&&y5(e,n,a,r,t,o)})),1===l.initializers.length?[ua.Add_await_to_initializer_for_0,l.initializers[0].declarationSymbol.name]:ua.Add_await_to_initializers)}}function m5(e,t,n,r,i,o){const a=i((i=>y5(i,n,e.sourceFile,r,t,o)));return U7(l5,a,ua.Add_await,l5,ua.Fix_all_expressions_possibly_missing_await)}function g5(e,t,n,r){const i=gF(e.parent)?e.parent.name:PF(e.parent)?e.parent:e,o=y(t,(e=>e.start===i.getStart(n)&&e.start+e.length===i.getEnd()));return o&&k(d5,o.code)||1&r.getTypeAtLocation(i).flags}function h5(e){return 65536&e.flags||!!dc(e,(e=>e.parent&&TF(e.parent)&&e.parent.body===e||KF(e)&&(263===e.parent.kind||219===e.parent.kind||220===e.parent.kind||175===e.parent.kind)))}function y5(e,t,n,r,i,o){if(rE(i.parent)&&!i.parent.awaitModifier){const t=r.getTypeAtLocation(i),o=r.getAnyAsyncIterableType();if(o&&r.isTypeAssignableTo(t,o)){const t=i.parent;return void e.replaceNode(n,t,vw.updateForOfStatement(t,vw.createToken(135),t.initializer,t.expression,t.statement))}}if(PF(i))for(const t of[i.left,i.right]){if(o&&_N(t)){const e=r.getSymbolAtLocation(t);if(e&&o.has(lJ(e)))continue}const i=r.getTypeAtLocation(t),a=r.getPromisedTypeOfPromise(i)?vw.createAwaitExpression(t):t;e.replaceNode(n,t,a)}else if(t===_5&&gF(i.parent)){if(o&&_N(i.parent.expression)){const e=r.getSymbolAtLocation(i.parent.expression);if(e&&o.has(lJ(e)))return}e.replaceNode(n,i.parent.expression,vw.createParenthesizedExpression(vw.createAwaitExpression(i.parent.expression))),v5(e,i.parent.expression,n)}else if(k(u5,t)&&R_(i.parent)){if(o&&_N(i)){const e=r.getSymbolAtLocation(i);if(e&&o.has(lJ(e)))return}e.replaceNode(n,i,vw.createParenthesizedExpression(vw.createAwaitExpression(i))),v5(e,i,n)}else{if(o&&pE(i.parent)&&_N(i.parent.name)){const e=r.getSymbolAtLocation(i.parent.name);if(e&&!J(o,lJ(e)))return}e.replaceNode(n,i,vw.createAwaitExpression(i))}}function v5(e,t,n){const r=uQ(t.pos,n);r&&IZ(r.end,r.parent,n)&&e.insertText(n,t.getStart(n),";")}$7({fixIds:[l5],errorCodes:d5,getCodeActions:function(e){const{sourceFile:t,errorCode:n,span:r,cancellationToken:i,program:o}=e,a=p5(t,n,r,i,o);if(!a)return;const s=e.program.getTypeChecker(),c=t=>ede.ChangeTracker.with(e,t);return te([f5(e,a,n,s,c),m5(e,a,n,s,c)])},getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}=e,i=e.program.getTypeChecker(),o=new Set;return Y7(e,d5,((a,s)=>{const c=p5(t,s.code,s,r,n);if(!c)return;const l=e=>(e(a),[]);return f5(e,c,s.code,i,l,o)||m5(e,c,s.code,i,l,o)}))}});var b5="addMissingConst",x5=[ua.Cannot_find_name_0.code,ua.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];function k5(e,t,n,r,i){const o=aQ(t,n),a=dc(o,(e=>Y_(e.parent)?e.parent.initializer===e:!function(e){switch(e.kind){case 80:case 210:case 211:case 304:case 305:return!0;default:return!1}}(e)&&"quit"));if(a)return S5(e,a,t,i);const s=o.parent;if(PF(s)&&64===s.operatorToken.kind&&QF(s.parent))return S5(e,o,t,i);if(fF(s)){const n=r.getTypeChecker();if(!h(s.elements,(e=>function(e,t){const n=_N(e)?e:ob(e,!0)&&_N(e.left)?e.left:void 0;return!!n&&!t.getSymbolAtLocation(n)}(e,n))))return;return S5(e,s,t,i)}const c=dc(o,(e=>!!QF(e.parent)||!function(e){switch(e.kind){case 80:case 227:case 28:return!0;default:return!1}}(e)&&"quit"));if(c){if(!T5(c,r.getTypeChecker()))return;return S5(e,c,t,i)}}function S5(e,t,n,r){r&&!J(r,t)||e.insertModifierBefore(n,87,t)}function T5(e,t){return!!PF(e)&&(28===e.operatorToken.kind?h([e.left,e.right],(e=>T5(e,t))):64===e.operatorToken.kind&&_N(e.left)&&!t.getSymbolAtLocation(e.left))}$7({errorCodes:x5,getCodeActions:function(e){const t=ede.ChangeTracker.with(e,(t=>k5(t,e.sourceFile,e.span.start,e.program)));if(t.length>0)return[U7(b5,t,ua.Add_const_to_unresolved_variable,b5,ua.Add_const_to_all_unresolved_variables)]},fixIds:[b5],getAllCodeActions:e=>{const t=new Set;return Y7(e,x5,((n,r)=>k5(n,r.file,r.start,e.program,t)))}});var C5="addMissingDeclareProperty",w5=[ua.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];function D5(e,t,n,r){const i=aQ(t,n);if(!_N(i))return;const o=i.parent;173!==o.kind||r&&!J(r,o)||e.insertModifierBefore(t,138,o)}$7({errorCodes:w5,getCodeActions:function(e){const t=ede.ChangeTracker.with(e,(t=>D5(t,e.sourceFile,e.span.start)));if(t.length>0)return[U7(C5,t,ua.Prefix_with_declare,C5,ua.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[C5],getAllCodeActions:e=>{const t=new Set;return Y7(e,w5,((e,n)=>D5(e,n.file,n.start,t)))}});var N5="addMissingInvocationForDecorator",F5=[ua._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function E5(e,t,n){const r=dc(aQ(t,n),FN);_n.assert(!!r,"Expected position to be owned by a decorator.");const i=vw.createCallExpression(r.expression,void 0,void 0);e.replaceNode(t,r.expression,i)}$7({errorCodes:F5,getCodeActions:function(e){const t=ede.ChangeTracker.with(e,(t=>E5(t,e.sourceFile,e.span.start)));return[U7(N5,t,ua.Call_decorator_expression,N5,ua.Add_to_all_uncalled_decorators)]},fixIds:[N5],getAllCodeActions:e=>Y7(e,F5,((e,t)=>E5(e,t.file,t.start)))});var P5="addMissingResolutionModeImportAttribute",A5=[ua.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code,ua.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code];function I5(e,t,n,r,i,o){var a,s,c;const l=dc(aQ(t,n),Zt(CE,cF));_n.assert(!!l,"Expected position to be owned by an ImportDeclaration or ImportType.");const _=0===fY(t,o),u=vg(l),d=!u||(null==(a=$R(u.text,t.fileName,r.getCompilerOptions(),i,r.getModuleResolutionCache(),void 0,99).resolvedModule)?void 0:a.resolvedFileName)===(null==(c=null==(s=r.getResolvedModuleFromModuleSpecifier(u,t))?void 0:s.resolvedModule)?void 0:c.resolvedFileName),p=l.attributes?vw.updateImportAttributes(l.attributes,vw.createNodeArray([...l.attributes.elements,vw.createImportAttribute(vw.createStringLiteral("resolution-mode",_),vw.createStringLiteral(d?"import":"require",_))],l.attributes.elements.hasTrailingComma),l.attributes.multiLine):vw.createImportAttributes(vw.createNodeArray([vw.createImportAttribute(vw.createStringLiteral("resolution-mode",_),vw.createStringLiteral(d?"import":"require",_))]));273===l.kind?e.replaceNode(t,l,vw.updateImportDeclaration(l,l.modifiers,l.importClause,l.moduleSpecifier,p)):e.replaceNode(t,l,vw.updateImportTypeNode(l,l.argument,p,l.qualifier,l.typeArguments))}$7({errorCodes:A5,getCodeActions:function(e){const t=ede.ChangeTracker.with(e,(t=>I5(t,e.sourceFile,e.span.start,e.program,e.host,e.preferences)));return[U7(P5,t,ua.Add_resolution_mode_import_attribute,P5,ua.Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it)]},fixIds:[P5],getAllCodeActions:e=>Y7(e,A5,((t,n)=>I5(t,n.file,n.start,e.program,e.host,e.preferences)))});var O5="addNameToNamelessParameter",L5=[ua.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function j5(e,t,n){const r=aQ(t,n),i=r.parent;if(!NN(i))return _n.fail("Tried to add a parameter name to a non-parameter: "+_n.formatSyntaxKind(r.kind));const o=i.parent.parameters.indexOf(i);_n.assert(!i.type,"Tried to add a parameter name to a parameter that already had one."),_n.assert(o>-1,"Parameter not found in parent parameter list.");let a=i.name.getEnd(),s=vw.createTypeReferenceNode(i.name,void 0),c=R5(t,i);for(;c;)s=vw.createArrayTypeNode(s),a=c.getEnd(),c=R5(t,c);const l=vw.createParameterDeclaration(i.modifiers,i.dotDotDotToken,"arg"+o,i.questionToken,i.dotDotDotToken&&!HN(s)?vw.createArrayTypeNode(s):s,i.initializer);e.replaceRange(t,Ob(i.getStart(t),a),l)}function R5(e,t){const n=_Q(t.name,t.parent,e);if(n&&23===n.kind&&dF(n.parent)&&NN(n.parent.parent))return n.parent.parent}$7({errorCodes:L5,getCodeActions:function(e){const t=ede.ChangeTracker.with(e,(t=>j5(t,e.sourceFile,e.span.start)));return[U7(O5,t,ua.Add_parameter_name,O5,ua.Add_names_to_all_parameters_without_names)]},fixIds:[O5],getAllCodeActions:e=>Y7(e,L5,((e,t)=>j5(e,t.file,t.start)))});var M5="addOptionalPropertyUndefined";function B5(e,t){var n;if(e){if(PF(e.parent)&&64===e.parent.operatorToken.kind)return{source:e.parent.right,target:e.parent.left};if(pE(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(yF(e.parent)){const n=t.getSymbolAtLocation(e.parent.expression);if(!(null==n?void 0:n.valueDeclaration)||!l_(n.valueDeclaration.kind))return;if(!W_(e))return;const r=e.parent.arguments.indexOf(e);if(-1===r)return;const i=n.valueDeclaration.parameters[r].name;if(_N(i))return{source:e,target:i}}else if(sP(e.parent)&&_N(e.parent.name)||cP(e.parent)){const r=B5(e.parent.parent,t);if(!r)return;const i=t.getPropertyOfType(t.getTypeAtLocation(r.target),e.parent.name.text),o=null==(n=null==i?void 0:i.declarations)?void 0:n[0];if(!o)return;return{source:sP(e.parent)?e.parent.initializer:e.parent.name,target:o}}}}$7({errorCodes:[ua.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,ua.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,ua.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],getCodeActions(e){const t=e.program.getTypeChecker(),n=function(e,t,n){var r,i;const o=B5(QZ(e,t),n);if(!o)return s;const{source:a,target:c}=o,l=function(e,t,n){return gF(t)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(t.expression)).length&&n.getTypeAtLocation(e)===n.getUndefinedType()}(a,c,n)?n.getTypeAtLocation(c.expression):n.getTypeAtLocation(c);if(null==(i=null==(r=l.symbol)?void 0:r.declarations)?void 0:i.some((e=>bd(e).fileName.match(/\.d\.ts$/))))return s;return n.getExactOptionalProperties(l)}(e.sourceFile,e.span,t);if(!n.length)return;const r=ede.ChangeTracker.with(e,(e=>function(e,t){for(const n of t){const t=n.valueDeclaration;if(t&&(EN(t)||PN(t))&&t.type){const n=vw.createUnionTypeNode([...193===t.type.kind?t.type.types:[t.type],vw.createTypeReferenceNode("undefined")]);e.replaceNode(t.getSourceFile(),t.type,n)}}}(e,n)));return[q7(M5,r,ua.Add_undefined_to_optional_property_type)]},fixIds:[M5]});var J5="annotateWithTypeFromJSDoc",z5=[ua.JSDoc_types_may_be_moved_to_TypeScript_types.code];function q5(e,t){const n=aQ(e,t);return et(NN(n.parent)?n.parent.parent:n.parent,U5)}function U5(e){return function(e){return a_(e)||261===e.kind||172===e.kind||173===e.kind}(e)&&V5(e)}function V5(e){return a_(e)?e.parameters.some(V5)||!e.type&&!!il(e):!e.type&&!!rl(e)}function W5(e,t,n){if(a_(n)&&(il(n)||n.parameters.some((e=>!!rl(e))))){if(!n.typeParameters){const r=yv(n);r.length&&e.insertTypeParameters(t,n,r)}const r=TF(n)&&!$X(n,21,t);r&&e.insertNodeBefore(t,me(n.parameters),vw.createToken(21));for(const r of n.parameters)if(!r.type){const n=rl(r);n&&e.tryInsertTypeAnnotation(t,r,yJ(n,$5,x_))}if(r&&e.insertNodeAfter(t,ye(n.parameters),vw.createToken(22)),!n.type){const r=il(n);r&&e.tryInsertTypeAnnotation(t,n,yJ(r,$5,x_))}}else{const r=_n.checkDefined(rl(n),"A JSDocType for this declaration should exist");_n.assert(!n.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,n,yJ(r,$5,x_))}}function $5(e){switch(e.kind){case 313:case 314:return vw.createTypeReferenceNode("any",s);case 317:return function(e){return vw.createUnionTypeNode([yJ(e.type,$5,x_),vw.createTypeReferenceNode("undefined",s)])}(e);case 316:return $5(e.type);case 315:return function(e){return vw.createUnionTypeNode([yJ(e.type,$5,x_),vw.createTypeReferenceNode("null",s)])}(e);case 319:return function(e){return vw.createArrayTypeNode(yJ(e.type,$5,x_))}(e);case 318:return function(e){return vw.createFunctionTypeNode(s,e.parameters.map(H5),e.type??vw.createKeywordTypeNode(133))}(e);case 184:return function(e){let t=e.typeName,n=e.typeArguments;if(_N(e.typeName)){if(Om(e))return function(e){const t=vw.createParameterDeclaration(void 0,void 0,150===e.typeArguments[0].kind?"n":"s",void 0,vw.createTypeReferenceNode(150===e.typeArguments[0].kind?"number":"string",[]),void 0),n=vw.createTypeLiteralNode([vw.createIndexSignature(void 0,[t],e.typeArguments[1])]);return Cw(n,1),n}(e);let r=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":r=r.toLowerCase();break;case"array":case"date":case"promise":r=r[0].toUpperCase()+r.slice(1)}t=vw.createIdentifier(r),n="Array"!==r&&"Promise"!==r||e.typeArguments?vJ(e.typeArguments,$5,x_):vw.createNodeArray([vw.createTypeReferenceNode("any",s)])}return vw.createTypeReferenceNode(t,n)}(e);case 323:return function(e){const t=vw.createTypeLiteralNode(N(e.jsDocPropertyTags,(e=>vw.createPropertySignature(void 0,_N(e.name)?e.name:e.name.right,KT(e)?vw.createToken(58):void 0,e.typeExpression&&yJ(e.typeExpression.type,$5,x_)||vw.createKeywordTypeNode(133)))));return Cw(t,1),t}(e);default:const t=NJ(e,$5,void 0);return Cw(t,1),t}}function H5(e){const t=e.parent.parameters.indexOf(e),n=319===e.type.kind&&t===e.parent.parameters.length-1,r=e.name||(n?"rest":"arg"+t),i=n?vw.createToken(26):e.dotDotDotToken;return vw.createParameterDeclaration(e.modifiers,i,r,e.questionToken,yJ(e.type,$5,x_),e.initializer)}$7({errorCodes:z5,getCodeActions(e){const t=q5(e.sourceFile,e.span.start);if(!t)return;const n=ede.ChangeTracker.with(e,(n=>W5(n,e.sourceFile,t)));return[U7(J5,n,ua.Annotate_with_type_from_JSDoc,J5,ua.Annotate_everything_with_types_from_JSDoc)]},fixIds:[J5],getAllCodeActions:e=>Y7(e,z5,((e,t)=>{const n=q5(t.file,t.start);n&&W5(e,t.file,n)}))});var K5="convertFunctionToEs6Class",G5=[ua.This_constructor_function_may_be_converted_to_a_class_declaration.code];function X5(e,t,n,r,i,o){const a=r.getSymbolAtLocation(aQ(t,n));if(!(a&&a.valueDeclaration&&19&a.flags))return;const s=a.valueDeclaration;if(mE(s)||SF(s))e.replaceNode(t,s,function(e){const t=c(a);e.body&&t.unshift(vw.createConstructorDeclaration(void 0,e.parameters,e.body));const n=Q5(e,95);return vw.createClassDeclaration(n,e.name,void 0,void 0,t)}(s));else if(pE(s)){const n=function(e){const t=e.initializer;if(!t||!SF(t)||!_N(e.name))return;const n=c(e.symbol);t.body&&n.unshift(vw.createConstructorDeclaration(void 0,t.parameters,t.body));const r=Q5(e.parent.parent,95);return vw.createClassDeclaration(r,e.name,void 0,void 0,n)}(s);if(!n)return;const r=s.parent.parent;fE(s.parent)&&s.parent.declarations.length>1?(e.delete(t,s),e.insertNodeAfter(t,r,n)):e.replaceNode(t,r,n)}function c(n){const r=[];return n.exports&&n.exports.forEach((e=>{if("prototype"===e.name&&e.declarations){const t=e.declarations[0];if(1===e.declarations.length&&gF(t)&&PF(t.parent)&&64===t.parent.operatorToken.kind&&mF(t.parent.right)){a(t.parent.right.symbol,void 0,r)}}else a(e,[vw.createToken(126)],r)})),n.members&&n.members.forEach(((i,o)=>{var s,c,l,_;if("constructor"===o&&i.valueDeclaration){const r=null==(_=null==(l=null==(c=null==(s=n.exports)?void 0:s.get("prototype"))?void 0:c.declarations)?void 0:l[0])?void 0:_.parent;r&&PF(r)&&mF(r.right)&&V(r.right.properties,Y5)||e.delete(t,i.valueDeclaration.parent)}else a(i,void 0,r)})),r;function a(n,r,a){if(!(8192&n.flags||4096&n.flags))return;const s=n.valueDeclaration,c=s.parent,l=c.right;if(d=l,!(Cx(u=s)?gF(u)&&Y5(u)||i_(d):h(u.properties,(e=>!!(IN(e)||fl(e)||sP(e)&&SF(e.initializer)&&e.name||Y5(e))))))return;var u,d;if(V(a,(e=>{const t=wc(e);return!(!t||!_N(t)||hc(t)!==vc(n))})))return;const p=c.parent&&245===c.parent.kind?c.parent:c;if(e.delete(t,p),l)if(Cx(s)&&(SF(l)||TF(l))){const e=fY(t,i),n=function(e,t,n){if(gF(e))return e.name;const r=e.argumentExpression;if(WD(r))return r;if(Ru(r))return gs(r.text,xk(t))?vw.createIdentifier(r.text):XD(r)?vw.createStringLiteral(r.text,0===n):r;return}(s,o,e);n&&f(a,l,n)}else{if(!mF(l)){if(Fm(t))return;if(!gF(s))return;const e=vw.createPropertyDeclaration(r,s.name,void 0,void 0,l);return fZ(c.parent,e,t),void a.push(e)}_(l.properties,(e=>{(IN(e)||fl(e))&&a.push(e),sP(e)&&SF(e.initializer)&&f(a,e.initializer,e.name),Y5(e)}))}else a.push(vw.createPropertyDeclaration(r,n.name,void 0,void 0,void 0));function f(e,n,i){return SF(n)?function(e,n,i){const o=$(r,Q5(n,134)),a=vw.createMethodDeclaration(o,void 0,i,void 0,void 0,n.parameters,void 0,n.body);return fZ(c,a,t),void e.push(a)}(e,n,i):function(e,n,i){const o=n.body;let a;a=242===o.kind?o:vw.createBlock([vw.createReturnStatement(o)]);const s=$(r,Q5(n,134)),l=vw.createMethodDeclaration(s,void 0,i,void 0,void 0,n.parameters,void 0,a);fZ(c,l,t),e.push(l)}(e,n,i)}}}}function Q5(e,t){return FI(e)?C(e.modifiers,(e=>e.kind===t)):void 0}function Y5(e){return!!e.name&&!(!_N(e.name)||"constructor"!==e.name.text)}$7({errorCodes:G5,getCodeActions(e){const t=ede.ChangeTracker.with(e,(t=>X5(t,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())));return[U7(K5,t,ua.Convert_function_to_an_ES2015_class,K5,ua.Convert_all_constructor_functions_to_classes)]},fixIds:[K5],getAllCodeActions:e=>Y7(e,G5,((t,n)=>X5(t,n.file,n.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())))});var Z5="convertToAsyncFunction",e9=[ua.This_may_be_converted_to_an_async_function.code],t9=!0;function n9(e,t,n,r){const i=aQ(t,n);let o;if(o=_N(i)&&pE(i.parent)&&i.parent.initializer&&a_(i.parent.initializer)?i.parent.initializer:et(Kf(aQ(t,n)),H1),!o)return;const a=new Map,c=Em(o),l=function(e,t){if(!e.body)return new Set;const n=new Set;return rO(e.body,(function e(r){r9(r,t,"then")?(n.add(cJ(r)),_(r.arguments,e)):r9(r,t,"catch")||r9(r,t,"finally")?(n.add(cJ(r)),rO(r,e)):a9(r,t)?n.add(cJ(r)):rO(r,e)})),n}(o,r),u=function(e,t,n){const r=new Map,i=We();return rO(e,(function e(o){if(!_N(o))return void rO(o,e);const a=t.getSymbolAtLocation(o);if(a){const e=v9(t.getTypeAtLocation(o),t),s=lJ(a).toString();if(!e||NN(o.parent)||a_(o.parent)||n.has(s)){if(o.parent&&(NN(o.parent)||pE(o.parent)||pF(o.parent))){const e=o.text,t=i.get(e);if(t&&t.some((e=>e!==a))){const t=s9(o,i);r.set(s,t.identifier),n.set(s,t),i.add(e,a)}else{const t=JC(o);n.set(s,S9(t)),i.add(e,a)}}}else{const t=pe(e.parameters),r=(null==t?void 0:t.valueDeclaration)&&NN(t.valueDeclaration)&&et(t.valueDeclaration.name,_N)||vw.createUniqueName("result",16),o=s9(r,i);n.set(s,o),i.add(r.text,a)}}})),zC(e,!0,(e=>{if(pF(e)&&_N(e.name)&&uF(e.parent)){const n=t.getSymbolAtLocation(e.name),i=n&&r.get(String(lJ(n)));if(i&&i.text!==(e.name||e.propertyName).getText())return vw.createBindingElement(e.dotDotDotToken,e.propertyName||e.name,i,e.initializer)}else if(_N(e)){const n=t.getSymbolAtLocation(e),i=n&&r.get(String(lJ(n)));if(i)return vw.createIdentifier(i.text)}}))}(o,r,a);if(!J1(u,r))return;const d=u.body&&KF(u.body)?function(e,t){const n=[];return Nf(e,(e=>{z1(e,t)&&n.push(e)})),n}(u.body,r):s,p={checker:r,synthNamesMap:a,setOfExpressionsToReturn:l,isInJSFile:c};if(!d.length)return;const f=Ya(t.text,Mb(o).pos);e.insertModifierAt(t,f,134,{suffix:" "});for(const n of d)if(rO(n,(function r(i){if(yF(i)){const r=_9(i,i,p,!1);if(c9())return!0;e.replaceNodeWithNodes(t,n,r)}else if(!i_(i)&&(rO(i,r),c9()))return!0})),c9())return}function r9(e,t,n){if(!yF(e))return!1;const r=hX(e,n)&&t.getTypeAtLocation(e);return!(!r||!t.getPromisedTypeOfPromise(r))}function i9(e,t){return!!(4&yx(e))&&e.target===t}function o9(e,t,n){if("finally"===e.expression.name.escapedText)return;const r=n.getTypeAtLocation(e.expression.expression);if(i9(r,n.getPromiseType())||i9(r,n.getPromiseLikeType())){if("then"!==e.expression.name.escapedText)return de(e.typeArguments,0);if(t===de(e.arguments,0))return de(e.typeArguments,0);if(t===de(e.arguments,1))return de(e.typeArguments,1)}}function a9(e,t){return!!W_(e)&&!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e))}function s9(e,t){const n=(t.get(e.text)||s).length;return S9(0===n?e:vw.createIdentifier(e.text+"_"+n))}function c9(){return!t9}function l9(){return t9=!1,s}function _9(e,t,n,r,i){if(r9(t,n.checker,"then"))return function(e,t,n,r,i,o){if(!t||u9(r,t))return f9(e,n,r,i,o);if(n&&!u9(r,n))return l9();const a=x9(t,r),s=_9(e.expression.expression,e.expression.expression,r,!0,a);if(c9())return l9();const c=h9(t,i,o,a,e,r);return c9()?l9():$(s,c)}(t,de(t.arguments,0),de(t.arguments,1),n,r,i);if(r9(t,n.checker,"catch"))return f9(t,de(t.arguments,0),n,r,i);if(r9(t,n.checker,"finally"))return function(e,t,n,r,i){if(!t||u9(n,t))return _9(e,e.expression.expression,n,r,i);const o=d9(e,n,i),a=_9(e,e.expression.expression,n,!0,o);if(c9())return l9();const s=h9(t,r,void 0,void 0,e,n);if(c9())return l9();const c=vw.createBlock(a),l=vw.createBlock(s),_=vw.createTryStatement(c,void 0,l);return p9(e,n,_,o,i)}(t,de(t.arguments,0),n,r,i);if(gF(t))return _9(e,t.expression,n,r,i);const o=n.checker.getTypeAtLocation(t);return o&&n.checker.getPromisedTypeOfPromise(o)?(_n.assertNode(uc(t).parent,gF),function(e,t,n,r,i){if(F9(e,n)){let e=JC(t);return r&&(e=vw.createAwaitExpression(e)),[vw.createReturnStatement(e)]}return m9(i,vw.createAwaitExpression(t),void 0)}(e,t,n,r,i)):l9()}function u9({checker:e},t){if(106===t.kind)return!0;if(_N(t)&&!$l(t)&&"undefined"===hc(t)){const n=e.getSymbolAtLocation(t);return!n||e.isUndefinedSymbol(n)}return!1}function d9(e,t,n){let r;return n&&!F9(e,t)&&(N9(n)?(r=n,t.synthNamesMap.forEach(((e,r)=>{if(e.identifier.text===n.identifier.text){const e=(i=n,S9(vw.createUniqueName(i.identifier.text,16)));t.synthNamesMap.set(r,e)}var i}))):r=S9(vw.createUniqueName("result",16),n.types),D9(r)),r}function p9(e,t,n,r,i){const o=[];let a;if(r&&!F9(e,t)){a=JC(D9(r));const e=r.types,n=t.checker.getUnionType(e,2),i=t.isInJSFile?void 0:t.checker.typeToTypeNode(n,void 0,void 0),s=[vw.createVariableDeclaration(a,void 0,i)],c=vw.createVariableStatement(void 0,vw.createVariableDeclarationList(s,1));o.push(c)}return o.push(n),i&&a&&1===i.kind&&o.push(vw.createVariableStatement(void 0,vw.createVariableDeclarationList([vw.createVariableDeclaration(JC(w9(i)),void 0,void 0,a)],2))),o}function f9(e,t,n,r,i){if(!t||u9(n,t))return _9(e,e.expression.expression,n,r,i);const o=x9(t,n),a=d9(e,n,i),s=_9(e,e.expression.expression,n,!0,a);if(c9())return l9();const c=h9(t,r,a,o,e,n);if(c9())return l9();const l=vw.createBlock(s),_=vw.createCatchClause(o&&JC(C9(o)),vw.createBlock(c));return p9(e,n,vw.createTryStatement(l,_,void 0),a,i)}function m9(e,t,n){return!e||k9(e)?[vw.createExpressionStatement(t)]:N9(e)&&e.hasBeenDeclared?[vw.createExpressionStatement(vw.createAssignment(JC(T9(e)),t))]:[vw.createVariableStatement(void 0,vw.createVariableDeclarationList([vw.createVariableDeclaration(JC(C9(e)),void 0,n,t)],2))]}function g9(e,t){if(t&&e){const n=vw.createUniqueName("result",16);return[...m9(S9(n),e,t),vw.createReturnStatement(n)]}return[vw.createReturnStatement(e)]}function h9(e,t,n,r,i,o){var a;switch(e.kind){case 106:break;case 212:case 80:if(!r)break;const c=vw.createCallExpression(JC(e),void 0,N9(r)?[T9(r)]:[]);if(F9(i,o))return g9(c,o9(i,e,o.checker));const l=o.checker.getTypeAtLocation(e),_=o.checker.getSignaturesOfType(l,0);if(!_.length)return l9();const u=_[0].getReturnType(),d=m9(n,vw.createAwaitExpression(c),o9(i,e,o.checker));return n&&n.types.push(o.checker.getAwaitedType(u)||u),d;case 219:case 220:{const r=e.body,c=null==(a=v9(o.checker.getTypeAtLocation(e),o.checker))?void 0:a.getReturnType();if(KF(r)){let a=[],s=!1;for(const l of r.statements)if(aE(l))if(s=!0,z1(l,o.checker))a=a.concat(b9(o,l,t,n));else{const t=c&&l.expression?y9(o.checker,c,l.expression):l.expression;a.push(...g9(t,o9(i,e,o.checker)))}else{if(t&&Nf(l,it))return l9();a.push(l)}return F9(i,o)?a.map((e=>JC(e))):function(e,t,n,r){const i=[];for(const r of e)if(aE(r)){if(r.expression){const e=a9(r.expression,n.checker)?vw.createAwaitExpression(r.expression):r.expression;void 0===t?i.push(vw.createExpressionStatement(e)):N9(t)&&t.hasBeenDeclared?i.push(vw.createExpressionStatement(vw.createAssignment(T9(t),e))):i.push(vw.createVariableStatement(void 0,vw.createVariableDeclarationList([vw.createVariableDeclaration(C9(t),void 0,void 0,e)],2)))}}else i.push(JC(r));r||void 0===t||i.push(vw.createVariableStatement(void 0,vw.createVariableDeclarationList([vw.createVariableDeclaration(C9(t),void 0,void 0,vw.createIdentifier("undefined"))],2)));return i}(a,n,o,s)}{const a=q1(r,o.checker)?b9(o,vw.createReturnStatement(r),t,n):s;if(a.length>0)return a;if(c){const t=y9(o.checker,c,r);if(F9(i,o))return g9(t,o9(i,e,o.checker));{const e=m9(n,t,void 0);return n&&n.types.push(o.checker.getAwaitedType(c)||c),e}}return l9()}}default:return l9()}return s}function y9(e,t,n){const r=JC(n);return e.getPromisedTypeOfPromise(t)?vw.createAwaitExpression(r):r}function v9(e,t){return he(t.getSignaturesOfType(e,0))}function b9(e,t,n,r){let i=[];return rO(t,(function t(o){if(yF(o)){const t=_9(o,o,e,n,r);if(i=i.concat(t),i.length>0)return}else i_(o)||rO(o,t)})),i}function x9(e,t){const n=[];let r;if(a_(e)){if(e.parameters.length>0){r=function e(t){if(_N(t))return i(t);const n=A(t.elements,(t=>RF(t)?[]:[e(t.name)]));return function(e,t=s,n=[]){return{kind:1,bindingPattern:e,elements:t,types:n}}(t,n)}(e.parameters[0].name)}}else _N(e)?r=i(e):gF(e)&&_N(e.name)&&(r=i(e.name));if(r&&(!("identifier"in r)||"undefined"!==r.identifier.text))return r;function i(e){var r;const i=function(e){var n;return(null==(n=et(e,su))?void 0:n.symbol)??t.checker.getSymbolAtLocation(e)}((r=e).original?r.original:r);if(!i)return S9(e,n);return t.synthNamesMap.get(lJ(i).toString())||S9(e,n)}}function k9(e){return!e||(N9(e)?!e.identifier.text:h(e.elements,k9))}function S9(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function T9(e){return e.hasBeenReferenced=!0,e.identifier}function C9(e){return N9(e)?D9(e):w9(e)}function w9(e){for(const t of e.elements)C9(t);return e.bindingPattern}function D9(e){return e.hasBeenDeclared=!0,e.identifier}function N9(e){return 0===e.kind}function F9(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(cJ(e.original))}function E9(e,t,n,r,i){var o;for(const a of e.imports){const s=null==(o=n.getResolvedModuleFromModuleSpecifier(a,e))?void 0:o.resolvedModule;if(!s||s.resolvedFileName!==t.fileName)continue;const c=bg(a);switch(c.kind){case 272:r.replaceNode(e,c,_Y(c.name,void 0,a,i));break;case 214:Lm(c,!1)&&r.replaceNode(e,c,vw.createPropertyAccessExpression(JC(c),"default"))}}}function P9(e,t){e.forEachChild((function n(r){if(gF(r)&&sB(e,r.expression)&&_N(r.name)){const{parent:e}=r;t(r,PF(e)&&e.left===r&&64===e.operatorToken.kind)}r.forEachChild(n)}))}function A9(e,t,n,r,i,o,a,s,l){switch(t.kind){case 244:return I9(e,t,r,n,i,o,l),!1;case 245:{const{expression:i}=t;switch(i.kind){case 214:return Lm(i,!0)&&r.replaceNode(e,t,_Y(void 0,void 0,i.arguments[0],l)),!1;case 227:{const{operatorToken:t}=i;return 64===t.kind&&function(e,t,n,r,i,o){const{left:a,right:s}=n;if(!gF(a))return!1;if(sB(e,a)){if(!sB(e,s)){const i=mF(s)?function(e,t){const n=j(e.properties,(e=>{switch(e.kind){case 178:case 179:case 305:case 306:return;case 304:return _N(e.name)?function(e,t,n){const r=[vw.createToken(95)];switch(t.kind){case 219:{const{name:n}=t;if(n&&n.text!==e)return i()}case 220:return J9(e,r,t,n);case 232:return function(e,t,n,r){return vw.createClassDeclaration($(t,UC(n.modifiers)),e,UC(n.typeParameters),UC(n.heritageClauses),j9(n.members,r))}(e,r,t,n);default:return i()}function i(){return U9(r,vw.createIdentifier(e),j9(t,n))}}(e.name.text,e.initializer,t):void 0;case 175:return _N(e.name)?J9(e.name.text,[vw.createToken(95)],e,t):void 0;default:_n.assertNever(e,`Convert to ES6 got invalid prop kind ${e.kind}`)}}));return n&&[n,!1]}(s,o):Lm(s,!0)?function(e,t){const n=e.text,r=t.getSymbolAtLocation(e),i=r?r.exports:c;return i.has("export=")?[[L9(n)],!0]:i.has("default")?i.size>1?[[O9(n),L9(n)],!0]:[[L9(n)],!0]:[[O9(n)],!1]}(s.arguments[0],t):void 0;return i?(r.replaceNodeWithNodes(e,n.parent,i[0]),i[1]):(r.replaceRangeWithText(e,Ob(a.getStart(e),s.pos),"export default"),!0)}r.delete(e,n.parent)}else sB(e,a.expression)&&function(e,t,n,r){const{text:i}=t.left.name,o=r.get(i);if(void 0!==o){const r=[U9(void 0,o,t.right),V9([vw.createExportSpecifier(!1,o,i)])];n.replaceNodeWithNodes(e,t.parent,r)}else!function({left:e,right:t,parent:n},r,i){const o=e.name.text;if(!(SF(t)||TF(t)||jF(t))||t.name&&t.name.text!==o)i.replaceNodeRangeWithNodes(r,e.expression,$X(e,25,r),[vw.createToken(95),vw.createToken(87)],{joiner:" ",suffix:" "});else{i.replaceRange(r,{pos:e.getStart(r),end:t.getStart(r)},vw.createToken(95),{suffix:" "}),t.name||i.insertName(r,t,o);const a=$X(n,27,r);a&&i.delete(r,a)}}(t,e,n)}(e,n,r,i);return!1}(e,n,i,r,a,s)}}}default:return!1}}function I9(e,t,n,r,i,o,a){const{declarationList:s}=t;let c=!1;const l=N(s.declarations,(t=>{const{name:n,initializer:l}=t;if(l){if(sB(e,l))return c=!0,W9([]);if(Lm(l,!0))return c=!0,function(e,t,n,r,i,o){switch(e.kind){case 207:{const n=j(e.elements,(e=>e.dotDotDotToken||e.initializer||e.propertyName&&!_N(e.propertyName)||!_N(e.name)?void 0:q9(e.propertyName&&e.propertyName.text,e.name.text)));if(n)return W9([_Y(void 0,n,t,o)])}case 208:{const n=R9(r0(t.text,i),r);return W9([_Y(vw.createIdentifier(n),void 0,t,o),U9(void 0,JC(e),vw.createIdentifier(n))])}case 80:return function(e,t,n,r,i){const o=n.getSymbolAtLocation(e),a=new Map;let s,c=!1;for(const t of r.original.get(e.text)){if(n.getSymbolAtLocation(t)!==o||t===e)continue;const{parent:i}=t;if(gF(i)){const{name:{text:e}}=i;if("default"===e){c=!0;const e=t.getText();(s??(s=new Map)).set(i,vw.createIdentifier(e))}else{_n.assert(i.expression===t,"Didn't expect expression === use");let n=a.get(e);void 0===n&&(n=R9(e,r),a.set(e,n)),(s??(s=new Map)).set(i,vw.createIdentifier(n))}}else c=!0}const l=0===a.size?void 0:Ie(F(a.entries(),(([e,t])=>vw.createImportSpecifier(!1,e===t?void 0:vw.createIdentifier(e),vw.createIdentifier(t)))));l||(c=!0);return W9([_Y(c?JC(e):void 0,l,t,i)],s)}(e,t,n,r,o);default:return _n.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}(n,l.arguments[0],r,i,o,a);if(gF(l)&&Lm(l.expression,!0))return c=!0,function(e,t,n,r,i){switch(e.kind){case 207:case 208:{const o=R9(t,r);return W9([z9(o,t,n,i),U9(void 0,e,vw.createIdentifier(o))])}case 80:return W9([z9(e.text,t,n,i)]);default:return _n.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}(n,l.name.text,l.expression.arguments[0],i,a)}return W9([vw.createVariableStatement(void 0,vw.createVariableDeclarationList([t],s.flags))])}));if(c){let r;return n.replaceNodeWithNodes(e,t,A(l,(e=>e.newImports))),_(l,(e=>{e.useSitesToUnqualify&&ad(e.useSitesToUnqualify,r??(r=new Map))})),r}}function O9(e){return V9(void 0,e)}function L9(e){return V9([vw.createExportSpecifier(!1,void 0,"default")],e)}function j9(e,t){return t&&V(Ie(t.keys()),(t=>Yb(e,t)))?Xe(e)?VC(e,!0,n):zC(e,!0,n):e;function n(e){if(212===e.kind){const n=t.get(e);return t.delete(e),n}}}function R9(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function M9(e){const t=We();return B9(e,(e=>t.add(e.text,e))),t}function B9(e,t){_N(e)&&function(e){const{parent:t}=e;switch(t.kind){case 212:return t.name!==e;case 209:case 277:return t.propertyName!==e;default:return!0}}(e)&&t(e),e.forEachChild((e=>B9(e,t)))}function J9(e,t,n,r){return vw.createFunctionDeclaration($(t,UC(n.modifiers)),JC(n.asteriskToken),e,UC(n.typeParameters),UC(n.parameters),JC(n.type),vw.converters.convertToFunctionBlock(j9(n.body,r)))}function z9(e,t,n,r){return"default"===t?_Y(vw.createIdentifier(e),void 0,n,r):_Y(void 0,[q9(t,e)],n,r)}function q9(e,t){return vw.createImportSpecifier(!1,void 0!==e&&e!==t?vw.createIdentifier(e):void 0,vw.createIdentifier(t))}function U9(e,t,n){return vw.createVariableStatement(e,vw.createVariableDeclarationList([vw.createVariableDeclaration(t,void 0,void 0,n)],2))}function V9(e,t){return vw.createExportDeclaration(void 0,!1,e&&vw.createNamedExports(e),void 0===t?void 0:vw.createStringLiteral(t))}function W9(e,t){return{newImports:e,useSitesToUnqualify:t}}$7({errorCodes:e9,getCodeActions(e){t9=!0;const t=ede.ChangeTracker.with(e,(t=>n9(t,e.sourceFile,e.span.start,e.program.getTypeChecker())));return t9?[U7(Z5,t,ua.Convert_to_async_function,Z5,ua.Convert_all_to_async_functions)]:[]},fixIds:[Z5],getAllCodeActions:e=>Y7(e,e9,((t,n)=>n9(t,n.file,n.start,e.program.getTypeChecker())))}),$7({errorCodes:[ua.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:n,preferences:r}=e;return[q7("convertToEsModule",ede.ChangeTracker.with(e,(e=>{const i=function(e,t,n,r,i){const o={original:M9(e),additional:new Set},a=function(e,t,n){const r=new Map;return P9(e,(e=>{const{text:i}=e.name;r.has(i)||!Ah(e.name)&&!t.resolveName(i,e,111551,!0)||r.set(i,R9(`_${i}`,n))})),r}(e,t,o);!function(e,t,n){P9(e,((r,i)=>{if(i)return;const{text:o}=r.name;n.replaceNode(e,r,vw.createIdentifier(t.get(o)||o))}))}(e,a,n);let s,c=!1;for(const a of C(e.statements,GF)){const c=I9(e,a,n,t,o,r,i);c&&ad(c,s??(s=new Map))}for(const l of C(e.statements,(e=>!GF(e)))){const _=A9(e,l,t,n,o,r,a,s,i);c=c||_}return null==s||s.forEach(((t,r)=>{n.replaceNode(e,r,t)})),c}(t,n.getTypeChecker(),e,xk(n.getCompilerOptions()),fY(t,r));if(i)for(const i of n.getSourceFiles())E9(i,t,n,e,fY(i,r))})),ua.Convert_to_ES_module)]}});var $9="correctQualifiedNameToIndexedAccessType",H9=[ua.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 K9(e,t){const n=dc(aQ(e,t),CN);return _n.assert(!!n,"Expected position to be owned by a qualified name."),_N(n.left)?n:void 0}function G9(e,t,n){const r=n.right.text,i=vw.createIndexedAccessTypeNode(vw.createTypeReferenceNode(n.left,void 0),vw.createLiteralTypeNode(vw.createStringLiteral(r)));e.replaceNode(t,n,i)}$7({errorCodes:H9,getCodeActions(e){const t=K9(e.sourceFile,e.span.start);if(!t)return;const n=ede.ChangeTracker.with(e,(n=>G9(n,e.sourceFile,t))),r=`${t.left.text}["${t.right.text}"]`;return[U7($9,n,[ua.Rewrite_as_the_indexed_access_type_0,r],$9,ua.Rewrite_all_as_indexed_access_types)]},fixIds:[$9],getAllCodeActions:e=>Y7(e,H9,((e,t)=>{const n=K9(t.file,t.start);n&&G9(e,t.file,n)}))});var X9=[ua.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],Q9="convertToTypeOnlyExport";function Y9(e,t){return et(aQ(t,e.start).parent,BE)}function Z9(e,t,n){if(!t)return;const r=t.parent,i=r.parent,o=function(e,t){const n=e.parent;if(1===n.elements.length)return n.elements;const r=GZ(qQ(n),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return C(n.elements,(t=>{var n;return t===e||(null==(n=KZ(t,r))?void 0:n.code)===X9[0]}))}(t,n);if(o.length===r.elements.length)e.insertModifierBefore(n.sourceFile,156,r);else{const t=vw.updateExportDeclaration(i,i.modifiers,!1,vw.updateNamedExports(r,C(r.elements,(e=>!k(o,e)))),i.moduleSpecifier,void 0),a=vw.createExportDeclaration(void 0,!0,vw.createNamedExports(o),i.moduleSpecifier,void 0);e.replaceNode(n.sourceFile,i,t,{leadingTriviaOption:ede.LeadingTriviaOption.IncludeAll,trailingTriviaOption:ede.TrailingTriviaOption.Exclude}),e.insertNodeAfter(n.sourceFile,i,a)}}$7({errorCodes:X9,getCodeActions:function(e){const t=ede.ChangeTracker.with(e,(t=>Z9(t,Y9(e.span,e.sourceFile),e)));if(t.length)return[U7(Q9,t,ua.Convert_to_type_only_export,Q9,ua.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[Q9],getAllCodeActions:function(e){const t=new Set;return Y7(e,X9,((n,r)=>{const i=Y9(r,e.sourceFile);i&&kx(t,cJ(i.parent.parent))&&Z9(n,i,e)}))}});var eee=[ua._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,ua._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],tee="convertToTypeOnlyImport";function nee(e,t){const{parent:n}=aQ(e,t);return LE(n)||CE(n)&&n.importClause?n:void 0}function ree(e,t,n){if(e.parent.parent.name)return!1;const r=e.parent.elements.filter((e=>!e.isTypeOnly));if(1===r.length)return!0;const i=n.getTypeChecker();for(const e of r){if(Ace.Core.eachSymbolReferenceInFile(e.name,i,t,(e=>{const t=i.getSymbolAtLocation(e);return!!t&&i.symbolIsValue(t)||!kT(e)})))return!1}return!0}function iee(e,t,n){var r;if(LE(n))e.replaceNode(t,n,vw.updateImportSpecifier(n,!0,n.propertyName,n.name));else{const i=n.importClause;if(i.name&&i.namedBindings)e.replaceNodeWithNodes(t,n,[vw.createImportDeclaration(UC(n.modifiers,!0),vw.createImportClause(156,JC(i.name,!0),void 0),JC(n.moduleSpecifier,!0),JC(n.attributes,!0)),vw.createImportDeclaration(UC(n.modifiers,!0),vw.createImportClause(156,void 0,JC(i.namedBindings,!0)),JC(n.moduleSpecifier,!0),JC(n.attributes,!0))]);else{const o=276===(null==(r=i.namedBindings)?void 0:r.kind)?vw.updateNamedImports(i.namedBindings,E(i.namedBindings.elements,(e=>vw.updateImportSpecifier(e,!1,e.propertyName,e.name)))):i.namedBindings,a=vw.updateImportDeclaration(n,n.modifiers,vw.updateImportClause(i,156,i.name,o),n.moduleSpecifier,n.attributes);e.replaceNode(t,n,a)}}}$7({errorCodes:eee,getCodeActions:function(e){var t;const n=nee(e.sourceFile,e.span.start);if(n){const r=ede.ChangeTracker.with(e,(t=>iee(t,e.sourceFile,n))),i=277===n.kind&&CE(n.parent.parent.parent)&&ree(n,e.sourceFile,e.program)?ede.ChangeTracker.with(e,(t=>iee(t,e.sourceFile,n.parent.parent.parent))):void 0,o=U7(tee,r,277===n.kind?[ua.Use_type_0,(null==(t=n.propertyName)?void 0:t.text)??n.name.text]:ua.Use_import_type,tee,ua.Fix_all_with_type_only_imports);return V(i)?[q7(tee,i,ua.Use_import_type),o]:[o]}},fixIds:[tee],getAllCodeActions:function(e){const t=new Set;return Y7(e,eee,((n,r)=>{const i=nee(r.file,r.start);273!==(null==i?void 0:i.kind)||t.has(i)?277===(null==i?void 0:i.kind)&&CE(i.parent.parent.parent)&&!t.has(i.parent.parent.parent)&&ree(i,r.file,e.program)?(iee(n,r.file,i.parent.parent.parent),t.add(i.parent.parent.parent)):277===(null==i?void 0:i.kind)&&iee(n,r.file,i):(iee(n,r.file,i),t.add(i))}))}});var oee="convertTypedefToType",aee=[ua.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];function see(e,t,n,r,i=!1){if(!KP(t))return;const o=function(e){var t;const{typeExpression:n}=e;if(!n)return;const r=null==(t=e.name)?void 0:t.getText();if(!r)return;if(323===n.kind)return function(e,t){const n=lee(t);if(!V(n))return;return vw.createInterfaceDeclaration(void 0,e,void 0,void 0,n)}(r,n);if(310===n.kind)return function(e,t){const n=JC(t.type);if(!n)return;return vw.createTypeAliasDeclaration(void 0,vw.createIdentifier(e),void 0,n)}(r,n)}(t);if(!o)return;const a=t.parent,{leftSibling:s,rightSibling:c}=function(e){const t=e.parent,n=t.getChildCount()-1,r=t.getChildren().findIndex((t=>t.getStart()===e.getStart()&&t.getEnd()===e.getEnd())),i=r>0?t.getChildAt(r-1):void 0,o=r0;e--)if(!/[*/\s]/.test(r.substring(e-1,e)))return t+e;return n}function lee(e){const t=e.jsDocPropertyTags;if(!V(t))return;return R(t,(e=>{var t;const n=function(e){return 80===e.name.kind?e.name.text:e.name.right.text}(e),r=null==(t=e.typeExpression)?void 0:t.type,i=e.isBracketed;let o;if(r&&NP(r)){const e=lee(r);o=vw.createTypeLiteralNode(e)}else r&&(o=JC(r));if(o&&n){const e=i?vw.createToken(58):void 0;return vw.createPropertySignature(void 0,n,e,o)}}))}function _ee(e){return Fu(e)?A(e.jsDoc,(e=>{var t;return null==(t=e.tags)?void 0:t.filter((e=>KP(e)))})):[]}$7({fixIds:[oee],errorCodes:aee,getCodeActions(e){const t=YY(e.host,e.formatContext.options),n=aQ(e.sourceFile,e.span.start);if(!n)return;const r=ede.ChangeTracker.with(e,(r=>see(r,n,e.sourceFile,t)));return r.length>0?[U7(oee,r,ua.Convert_typedef_to_TypeScript_type,oee,ua.Convert_all_typedef_to_TypeScript_types)]:void 0},getAllCodeActions:e=>Y7(e,aee,((t,n)=>{const r=YY(e.host,e.formatContext.options),i=aQ(n.file,n.start);i&&see(t,i,n.file,r,!0)}))});var uee="convertLiteralTypeToMappedType",dee=[ua._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];function pee(e,t){const n=aQ(e,t);if(_N(n)){const t=tt(n.parent.parent,EN),r=n.getText(e);return{container:tt(t.parent,$N),typeNode:t.type,constraint:r,name:"K"===r?"P":"K"}}}function fee(e,t,{container:n,typeNode:r,constraint:i,name:o}){e.replaceNode(t,n,vw.createMappedTypeNode(void 0,vw.createTypeParameterDeclaration(void 0,o,vw.createTypeReferenceNode(i)),void 0,void 0,r,void 0))}$7({errorCodes:dee,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=pee(t,n.start);if(!r)return;const{name:i,constraint:o}=r,a=ede.ChangeTracker.with(e,(e=>fee(e,t,r)));return[U7(uee,a,[ua.Convert_0_to_1_in_0,o,i],uee,ua.Convert_all_type_literals_to_mapped_type)]},fixIds:[uee],getAllCodeActions:e=>Y7(e,dee,((e,t)=>{const n=pee(t.file,t.start);n&&fee(e,t.file,n)}))});var mee=[ua.Class_0_incorrectly_implements_interface_1.code,ua.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],gee="fixClassIncorrectlyImplementsInterface";function hee(e,t){return _n.checkDefined(Xf(aQ(e,t)),"There should be a containing class")}function yee(e){return!(e.valueDeclaration&&2&zv(e.valueDeclaration))}function vee(e,t,n,r,i,o){const a=e.program.getTypeChecker(),s=function(e,t){const n=vh(e);if(!n)return Xu();const r=t.getTypeAtLocation(n),i=t.getPropertiesOfType(r);return Xu(i.filter(yee))}(r,a),c=a.getTypeAtLocation(t),l=a.getPropertiesOfType(c).filter(Yt(yee,(e=>!s.has(e.escapedName)))),_=a.getTypeAtLocation(r),u=y(r.members,(e=>LN(e)));_.getNumberIndexType()||p(c,1),_.getStringIndexType()||p(c,0);const d=See(n,e.program,o,e.host);function p(t,i){const o=a.getIndexInfoOfType(t,i);o&&f(n,r,a.indexInfoToIndexSignatureDeclaration(o,r,void 0,void 0,Hie(e)))}function f(e,t,n){u?i.insertNodeAfter(e,u,n):i.insertMemberAtStart(e,t,n)}$ie(r,l,n,e,o,d,(e=>f(n,r,e))),d.writeFixes(i)}$7({errorCodes:mee,getCodeActions(e){const{sourceFile:t,span:n}=e,r=hee(t,n.start);return R(xh(r),(n=>{const i=ede.ChangeTracker.with(e,(i=>vee(e,n,t,r,i,e.preferences)));return 0===i.length?void 0:U7(gee,i,[ua.Implement_interface_0,n.getText(t)],gee,ua.Implement_all_unimplemented_interfaces)}))},fixIds:[gee],getAllCodeActions(e){const t=new Set;return Y7(e,mee,((n,r)=>{const i=hee(r.file,r.start);if(kx(t,cJ(i)))for(const t of xh(i))vee(e,t,r.file,i,n,e.preferences)}))}});var bee="import",xee="fixMissingImport",kee=[ua.Cannot_find_name_0.code,ua.Cannot_find_name_0_Did_you_mean_1.code,ua.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,ua.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,ua.Cannot_find_namespace_0.code,ua._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,ua._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,ua.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,ua._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,ua.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,ua.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,ua.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,ua.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig.code,ua.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,ua.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig.code,ua.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha.code,ua.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,ua.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig.code,ua.Cannot_find_namespace_0_Did_you_mean_1.code,ua.Cannot_extend_an_interface_0_Did_you_mean_implements.code,ua.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found.code];function See(e,t,n,r,i){return Tee(e,t,!1,n,r,i)}function Tee(e,t,n,r,i,o){const a=t.getCompilerOptions(),s=[],c=[],l=new Map,_=new Set,u=new Set,d=new Map;return{addImportFromDiagnostic:function(e,t){const r=Ree(t,e.code,e.start,n);if(!r||!r.length)return;p(me(r))},addImportFromExportedSymbol:function(n,s,c){var l,_;const u=_n.checkDefined(n.parent,"Expected exported symbol to have module symbol as parent"),d=e0(n,xk(a)),f=t.getTypeChecker(),m=f.getMergedSymbol(sx(n,f)),g=Eee(e,m,d,u,!1,t,i,r,o);if(!g)return void _n.assert(null==(l=r.autoImportFileExcludePatterns)?void 0:l.length);const h=Lee(e,t);let y=Nee(e,g,t,void 0,!!s,h,i,r);if(y){const e=(null==(_=et(null==c?void 0:c.name,_N))?void 0:_.text)??d;let t,r;c&&Jl(c)&&(3===y.kind||2===y.kind)&&1===y.addAsTypeOnly&&(t=2),n.name!==e&&(r=n.name),y={...y,...void 0===t?{}:{addAsTypeOnly:t},...void 0===r?{}:{propertyName:r}},p({fix:y,symbolName:e??d,errorIdentifierText:void 0})}},addImportForModuleSymbol:function(n,o,s){var c,l,_;const u=t.getTypeChecker(),d=u.getAliasedSymbol(n);_n.assert(1536&d.flags,"Expected symbol to be a module");const f=sY(t,i),m=uB.getModuleSpecifiersWithCacheInfo(d,u,a,e,f,r,void 0,!0),g=Lee(e,t);let h=Iee(o,!0,void 0,n.flags,t.getTypeChecker(),a);h=1===h&&Jl(s)?2:1;const y=CE(s)?Cg(s)?1:2:LE(s)?0:wE(s)&&s.name?1:2,v=[{symbol:n,moduleSymbol:d,moduleFileName:null==(_=null==(l=null==(c=d.declarations)?void 0:c[0])?void 0:l.getSourceFile())?void 0:_.fileName,exportKind:4,targetFlags:n.flags,isFromPackageJson:!1}],b=Nee(e,v,t,void 0,!!o,g,i,r);let x;x=b&&2!==y&&0!==b.kind&&1!==b.kind?{...b,addAsTypeOnly:h,importKind:y}:{kind:3,moduleSpecifierKind:void 0!==b?b.moduleSpecifierKind:m.kind,moduleSpecifier:void 0!==b?b.moduleSpecifier:me(m.moduleSpecifiers),importKind:y,addAsTypeOnly:h,useRequire:g};p({fix:x,symbolName:n.name,errorIdentifierText:void 0})},writeFixes:function(t,n){var i,o;let u,p,m;u=void 0!==e.imports&&0===e.imports.length&&void 0!==n?n:fY(e,r);for(const n of s)Gee(t,e,n);for(const n of c)Xee(t,e,n,u);if(_.size){_n.assert(Nm(e),"Cannot remove imports from a future source file");const n=new Set(R([..._],(e=>dc(e,CE)))),r=new Set(R([..._],(e=>dc(e,jm)))),a=[...n].filter((e=>{var t,n,r;return!l.has(e.importClause)&&(!(null==(t=e.importClause)?void 0:t.name)||_.has(e.importClause))&&(!et(null==(n=e.importClause)?void 0:n.namedBindings,AE)||_.has(e.importClause.namedBindings))&&(!et(null==(r=e.importClause)?void 0:r.namedBindings,OE)||h(e.importClause.namedBindings.elements,(e=>_.has(e))))})),s=[...r].filter((e=>(207!==e.name.kind||!l.has(e.name))&&(207!==e.name.kind||h(e.name.elements,(e=>_.has(e)))))),c=[...n].filter((e=>{var t,n;return(null==(t=e.importClause)?void 0:t.namedBindings)&&-1===a.indexOf(e)&&!(null==(n=l.get(e.importClause))?void 0:n.namedImports)&&(275===e.importClause.namedBindings.kind||h(e.importClause.namedBindings.elements,(e=>_.has(e))))}));for(const n of[...a,...s])t.delete(e,n);for(const n of c)t.replaceNode(e,n.importClause,vw.updateImportClause(n.importClause,n.importClause.phaseModifier,n.importClause.name,void 0));for(const n of _){const r=dc(n,CE);r&&-1===a.indexOf(r)&&-1===c.indexOf(r)?274===n.kind?t.delete(e,n.name):(_n.assert(277===n.kind,"NamespaceImport should have been handled earlier"),(null==(i=l.get(r.importClause))?void 0:i.namedImports)?(p??(p=new Set)).add(n):t.delete(e,n)):209===n.kind?(null==(o=l.get(n.parent))?void 0:o.namedImports)?(p??(p=new Set)).add(n):t.delete(e,n):272===n.kind&&t.delete(e,n)}}l.forEach((({importClauseOrBindingPattern:n,defaultImport:i,namedImports:o})=>{Kee(t,e,n,i,Ie(o.entries(),(([e,{addAsTypeOnly:t,propertyName:n}])=>({addAsTypeOnly:t,propertyName:n,name:e}))),p,r)})),d.forEach((({useRequire:e,defaultImport:t,namedImports:n,namespaceLikeImport:i},o)=>{const s=(e?tte:ete)(o.slice(2),u,t,n&&Ie(n.entries(),(([e,[t,n]])=>({addAsTypeOnly:t,propertyName:n,name:e}))),i,a,r);m=ie(m,s)})),m=ie(m,f()),m&&TY(t,e,m,!0,r)},hasFixes:function(){return s.length>0||c.length>0||l.size>0||d.size>0||u.size>0||_.size>0},addImportForUnresolvedIdentifier:function(e,t,n){const r=function(e,t,n){const r=Uee(e,t,n),i=VZ(e.sourceFile,e.preferences,e.host);return r&&Mee(r,e.sourceFile,e.program,i,e.host,e.preferences)}(e,t,n);if(!r||!r.length)return;p(me(r))},addImportForNonExistentExport:function(n,o,s,c,l){const _=t.getSourceFile(o),u=Lee(e,t);if(_&&_.symbol){const{fixes:a}=Aee([{exportKind:s,isFromPackageJson:!1,moduleFileName:o,moduleSymbol:_.symbol,targetFlags:c}],void 0,l,u,t,e,i,r);a.length&&p({fix:a[0],symbolName:n,errorIdentifierText:n})}else{const _=g0(o,99,t,i);p({fix:{kind:3,moduleSpecifierKind:"relative",moduleSpecifier:uB.getLocalModuleSpecifierBetweenFileNames(e,o,a,sY(t,i),r),importKind:qee(_,s,t),addAsTypeOnly:Iee(l,!0,void 0,c,t.getTypeChecker(),a),useRequire:u},symbolName:n,errorIdentifierText:n})}},removeExistingImport:function(e){274===e.kind&&_n.assertIsDefined(e.name,"ImportClause should have a name if it's being removed");_.add(e)},addVerbatimImport:function(e){u.add(e)}};function p(e){var t,n,r;const{fix:i,symbolName:o}=e;switch(i.kind){case 0:s.push(i);break;case 1:c.push(i);break;case 2:{const{importClauseOrBindingPattern:e,importKind:r,addAsTypeOnly:a,propertyName:s}=i;let c=l.get(e);if(c||l.set(e,c={importClauseOrBindingPattern:e,defaultImport:void 0,namedImports:new Map}),0===r){const e=null==(t=null==c?void 0:c.namedImports.get(o))?void 0:t.addAsTypeOnly;c.namedImports.set(o,{addAsTypeOnly:_(e,a),propertyName:s})}else _n.assert(void 0===c.defaultImport||c.defaultImport.name===o,"(Add to Existing) Default import should be missing or match symbolName"),c.defaultImport={name:o,addAsTypeOnly:_(null==(n=c.defaultImport)?void 0:n.addAsTypeOnly,a)};break}case 3:{const{moduleSpecifier:e,importKind:t,useRequire:n,addAsTypeOnly:s,propertyName:c}=i,l=function(e,t,n,r){const i=u(e,!0),o=u(e,!1),a=d.get(i),s=d.get(o),c={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:n};if(1===t&&2===r)return a||(d.set(i,c),c);if(1===r&&(a||s))return a||s;if(s)return s;return d.set(o,c),c}(e,t,n,s);switch(_n.assert(l.useRequire===n,"(Add new) Tried to add an `import` and a `require` for the same module"),t){case 1:_n.assert(void 0===l.defaultImport||l.defaultImport.name===o,"(Add new) Default import should be missing or match symbolName"),l.defaultImport={name:o,addAsTypeOnly:_(null==(r=l.defaultImport)?void 0:r.addAsTypeOnly,s)};break;case 0:const e=(l.namedImports||(l.namedImports=new Map)).get(o);l.namedImports.set(o,[_(e,s),c]);break;case 3:if(a.verbatimModuleSyntax){const e=(l.namedImports||(l.namedImports=new Map)).get(o);l.namedImports.set(o,[_(e,s),c])}else _n.assert(void 0===l.namespaceLikeImport||l.namespaceLikeImport.name===o,"Namespacelike import shoudl be missing or match symbolName"),l.namespaceLikeImport={importKind:t,name:o,addAsTypeOnly:s};break;case 2:_n.assert(void 0===l.namespaceLikeImport||l.namespaceLikeImport.name===o,"Namespacelike import shoudl be missing or match symbolName"),l.namespaceLikeImport={importKind:t,name:o,addAsTypeOnly:s}}break}case 4:break;default:_n.assertNever(i,`fix wasn't never - got kind ${i.kind}`)}function _(e,t){return Math.max(e??0,t)}function u(e,t){return`${t?1:0}|${e}`}}function f(){if(!u.size)return;const e=new Set(R([...u],(e=>dc(e,CE)))),t=new Set(R([...u],(e=>dc(e,zm))));return[...R([...u],(e=>272===e.kind?JC(e,!0):void 0)),...[...e].map((e=>{var t;return u.has(e)?JC(e,!0):JC(vw.updateImportDeclaration(e,e.modifiers,e.importClause&&vw.updateImportClause(e.importClause,e.importClause.phaseModifier,u.has(e.importClause)?e.importClause.name:void 0,u.has(e.importClause.namedBindings)?e.importClause.namedBindings:(null==(t=et(e.importClause.namedBindings,OE))?void 0:t.elements.some((e=>u.has(e))))?vw.updateNamedImports(e.importClause.namedBindings,e.importClause.namedBindings.elements.filter((e=>u.has(e)))):void 0),e.moduleSpecifier,e.attributes),!0)})),...[...t].map((e=>u.has(e)?JC(e,!0):JC(vw.updateVariableStatement(e,e.modifiers,vw.updateVariableDeclarationList(e.declarationList,R(e.declarationList.declarations,(e=>u.has(e)?e:vw.updateVariableDeclaration(e,207===e.name.kind?vw.updateObjectBindingPattern(e.name,e.name.elements.filter((e=>u.has(e)))):e.name,e.exclamationToken,e.type,e.initializer))))),!0)))]}}function Cee(e,t,n,r){const i=VZ(e,r,n),o=Oee(e,t);return{getModuleSpecifierForBestExportInfo:function(a,s,c,l){const{fixes:_,computedWithoutCacheCount:u}=Aee(a,s,c,!1,t,e,n,r,o,l),d=Bee(_,e,t,i,n,r);return d&&{...d,computedWithoutCacheCount:u}}}}function wee(e,t,n,r,i,o,a,s,c,l,_,u){let d;n?(d=D0(r,a,s,_,u).get(r.path,n),_n.assertIsDefined(d,"Some exportInfo should match the specified exportMapKey")):(d=xo(Ey(t.name))?[Pee(e,i,t,s,a)]:Eee(r,e,i,t,o,s,a,_,u),_n.assertIsDefined(d,"Some exportInfo should match the specified symbol / moduleSymbol"));const p=Lee(r,s),f=kT(aQ(r,l)),m=_n.checkDefined(Nee(r,d,s,l,f,p,a,_));return{moduleSpecifier:m.moduleSpecifier,codeAction:Fee($ee({host:a,formatContext:c,preferences:_},r,i,m,!1,s,_))}}function Dee(e,t,n,r,i,o){const a=n.getCompilerOptions(),s=be(Wee(e,n.getTypeChecker(),t,a)),c=Vee(e,t,s,n),l=s!==t.text;return c&&Fee($ee({host:r,formatContext:i,preferences:o},e,s,c,l,n,o))}function Nee(e,t,n,r,i,o,a,s){const c=VZ(e,s,a);return Bee(Aee(t,r,i,o,n,e,a,s).fixes,e,n,c,a,s)}function Fee({description:e,changes:t,commands:n}){return{description:e,changes:t,commands:n}}function Eee(e,t,n,r,i,o,a,s,c){const l=jee(o,a),_=s.autoImportFileExcludePatterns&&w0(a,s),u=o.getTypeChecker().getMergedSymbol(r),d=_&&u.declarations&&Ku(u,308),p=d&&_(d);return D0(e,a,o,s,c).search(e.path,i,(e=>e===n),(e=>{const n=l(e[0].isFromPackageJson);if(n.getMergedSymbol(sx(e[0].symbol,n))===t&&(p||e.some((e=>n.getMergedSymbol(e.moduleSymbol)===r||e.symbol.parent===r))))return e}))}function Pee(e,t,n,r,i){var o,a;const s=l(r.getTypeChecker(),!1);if(s)return s;const c=null==(a=null==(o=i.getPackageJsonAutoImportProvider)?void 0:o.call(i))?void 0:a.getTypeChecker();return _n.checkDefined(c&&l(c,!0),"Could not find symbol in specified module for code actions");function l(r,i){const o=N0(n,r);if(o&&sx(o.symbol,r)===e)return{symbol:o.symbol,moduleSymbol:n,moduleFileName:void 0,exportKind:o.exportKind,targetFlags:sx(e,r).flags,isFromPackageJson:i};const a=r.tryGetMemberInModuleExportsAndProperties(t,n);return a&&sx(a,r)===e?{symbol:a,moduleSymbol:n,moduleFileName:void 0,exportKind:0,targetFlags:sx(e,r).flags,isFromPackageJson:i}:void 0}}function Aee(e,t,n,r,i,o,a,c,l=(Nm(o)?Oee(o,i):void 0),_){const u=i.getTypeChecker(),p=l?A(e,l.getImportsForExportInfo):s,f=void 0!==t&&function(e,t){return d(e,(({declaration:e,importKind:n})=>{var r;if(0!==n)return;const i=function(e){var t,n,r;switch(e.kind){case 261:return null==(t=et(e.name,_N))?void 0:t.text;case 272:return e.name.text;case 352:case 273:return null==(r=et(null==(n=e.importClause)?void 0:n.namedBindings,AE))?void 0:r.name.text;default:return _n.assertNever(e)}}(e),o=i&&(null==(r=vg(e))?void 0:r.text);return o?{kind:0,namespacePrefix:i,usagePosition:t,moduleSpecifierKind:void 0,moduleSpecifier:o}:void 0}))}(p,t),m=function(e,t,n,r){let i;for(const t of e){const e=o(t);if(!e)continue;const n=Jl(e.importClauseOrBindingPattern);if(4!==e.addAsTypeOnly&&n||4===e.addAsTypeOnly&&!n)return e;i??(i=e)}return i;function o({declaration:e,importKind:i,symbol:o,targetFlags:a}){if(3===i||2===i||272===e.kind)return;if(261===e.kind)return 0!==i&&1!==i||207!==e.name.kind?void 0:{kind:2,importClauseOrBindingPattern:e.name,importKind:i,moduleSpecifierKind:void 0,moduleSpecifier:e.initializer.arguments[0].text,addAsTypeOnly:4};const{importClause:s}=e;if(!s||!Ru(e.moduleSpecifier))return;const{name:c,namedBindings:l}=s;if(s.isTypeOnly&&(0!==i||!l))return;const _=Iee(t,!1,o,a,n,r);return 1===i&&(c||2===_&&l)||0===i&&275===(null==l?void 0:l.kind)?void 0:{kind:2,importClauseOrBindingPattern:s,importKind:i,moduleSpecifierKind:void 0,moduleSpecifier:e.moduleSpecifier.text,addAsTypeOnly:_}}}(p,n,u,i.getCompilerOptions());if(m)return{computedWithoutCacheCount:0,fixes:[...f?[f]:s,m]};const{fixes:g,computedWithoutCacheCount:h=0}=function(e,t,n,r,i,o,a,s,c,l){const _=d(t,(e=>function({declaration:e,importKind:t,symbol:n,targetFlags:r},i,o,a,s){var c;const l=null==(c=vg(e))?void 0:c.text;if(l){return{kind:3,moduleSpecifierKind:void 0,moduleSpecifier:l,importKind:t,addAsTypeOnly:o?4:Iee(i,!0,n,r,a,s),useRequire:o}}}(e,o,a,n.getTypeChecker(),n.getCompilerOptions())));return _?{fixes:[_]}:function(e,t,n,r,i,o,a,s,c){const l=jS(t.fileName),_=e.getCompilerOptions(),u=sY(e,a),d=jee(e,a),p=lY(Sk(_)),f=c?e=>uB.tryGetModuleSpecifiersFromCache(e.moduleSymbol,t,u,s):(e,n)=>uB.getModuleSpecifiersWithCacheInfo(e.moduleSymbol,n,_,t,u,s,void 0,!0);let m=0;const g=A(o,((o,a)=>{const s=d(o.isFromPackageJson),{computedWithoutCache:c,moduleSpecifiers:u,kind:g}=f(o,s)??{},h=!!(111551&o.targetFlags),y=Iee(r,!0,o.symbol,o.targetFlags,s,_);return m+=c?1:0,R(u,(r=>{if(p&&oM(r))return;if(!h&&l&&void 0!==n)return{kind:1,moduleSpecifierKind:g,moduleSpecifier:r,usagePosition:n,exportInfo:o,isReExport:a>0};const c=qee(t,o.exportKind,e);let u;if(void 0!==n&&3===c&&0===o.exportKind){const e=s.resolveExternalModuleSymbol(o.moduleSymbol);let t;e!==o.moduleSymbol&&(t=E0(e,s,xk(_),at)),t||(t=n0(o.moduleSymbol,xk(_),!1)),u={namespacePrefix:t,usagePosition:n}}return{kind:3,moduleSpecifierKind:g,moduleSpecifier:r,importKind:c,useRequire:i,addAsTypeOnly:y,exportInfo:o,isReExport:a>0,qualification:u}}))}));return{computedWithoutCacheCount:m,fixes:g}}(n,r,i,o,a,e,s,c,l)}(e,p,i,o,t,n,r,a,c,_);return{computedWithoutCacheCount:h,fixes:[...f?[f]:s,...g]}}function Iee(e,t,n,r,i,o){return e?!n||!o.verbatimModuleSyntax||111551&r&&!i.getTypeOnlyAliasDeclaration(n)?1:2:4}function Oee(e,t){const n=t.getTypeChecker();let r;for(const t of e.imports){const e=bg(t);if(jm(e.parent)){const i=n.resolveExternalModuleName(t);i&&(r||(r=We())).add(lJ(i),e.parent)}else if(273===e.kind||272===e.kind||352===e.kind){const i=n.getSymbolAtLocation(t);i&&(r||(r=We())).add(lJ(i),e)}}return{getImportsForExportInfo:({moduleSymbol:n,exportKind:i,targetFlags:o,symbol:a})=>{const c=null==r?void 0:r.get(lJ(n));if(!c)return s;if(Fm(e)&&!(111551&o)&&!h(c,eA))return s;const l=qee(e,i,t);return c.map((e=>({declaration:e,importKind:l,symbol:a,targetFlags:o})))}}}function Lee(e,t){if(!jS(e.fileName))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const n=t.getCompilerOptions();if(n.configFile)return kk(n)<5;if(1===ite(e,t))return!0;if(99===ite(e,t))return!1;for(const n of t.getSourceFiles())if(n!==e&&Fm(n)&&!t.isSourceFileFromExternalLibrary(n)){if(n.commonJsModuleIndicator&&!n.externalModuleIndicator)return!0;if(n.externalModuleIndicator&&!n.commonJsModuleIndicator)return!1}return!0}function jee(e,t){return dt((n=>n?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker()))}function Ree(e,t,n,r){const i=aQ(e.sourceFile,n);let o;if(t===ua._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)o=function({sourceFile:e,program:t,host:n,preferences:r},i){const o=t.getTypeChecker(),a=function(e,t){const n=_N(e)?t.getSymbolAtLocation(e):void 0;if(vx(n))return n;const{parent:r}=e;if(xu(r)&&r.tagName===e||XE(r)){const n=t.resolveName(t.getJsxNamespace(r),xu(r)?e:r,111551,!1);if(vx(n))return n}return}(i,o);if(!a)return;const s=o.getAliasedSymbol(a),c=a.name,l=[{symbol:a,moduleSymbol:s,moduleFileName:void 0,exportKind:3,targetFlags:s.flags,isFromPackageJson:!1}],_=Lee(e,t);return Aee(l,void 0,!1,_,t,e,n,r).fixes.map((e=>{var t;return{fix:e,symbolName:c,errorIdentifierText:null==(t=et(i,_N))?void 0:t.text}}))}(e,i);else{if(!_N(i))return;if(t===ua._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const t=be(Wee(e.sourceFile,e.program.getTypeChecker(),i,e.program.getCompilerOptions())),n=Vee(e.sourceFile,i,t,e.program);return n&&[{fix:n,symbolName:t,errorIdentifierText:i.text}]}o=Uee(e,i,r)}const a=VZ(e.sourceFile,e.preferences,e.host);return o&&Mee(o,e.sourceFile,e.program,a,e.host,e.preferences)}function Mee(e,t,n,r,i,o){const a=e=>Vo(e,i.getCurrentDirectory(),My(i));return le(e,((e,i)=>It(!!e.isJsxNamespaceFix,!!i.isJsxNamespaceFix)||yt(e.fix.kind,i.fix.kind)||Jee(e.fix,i.fix,t,n,o,r.allowsImportingSpecifier,a)))}function Bee(e,t,n,r,i,o){if(V(e))return 0===e[0].kind||2===e[0].kind?e[0]:e.reduce(((e,a)=>-1===Jee(a,e,t,n,o,r.allowsImportingSpecifier,(e=>Vo(e,i.getCurrentDirectory(),My(i))))?a:e))}function Jee(e,t,n,r,i,o,a){return 0!==e.kind&&0!==t.kind?It("node_modules"!==t.moduleSpecifierKind||o(t.moduleSpecifier),"node_modules"!==e.moduleSpecifierKind||o(e.moduleSpecifier))||function(e,t,n){if("non-relative"===n.importModuleSpecifierPreference||"project-relative"===n.importModuleSpecifierPreference)return It("relative"===e.moduleSpecifierKind,"relative"===t.moduleSpecifierKind);return 0}(e,t,i)||function(e,t,n,r){return Kt(e,"node:")&&!Kt(t,"node:")?s0(n,r)?-1:1:Kt(t,"node:")&&!Kt(e,"node:")?s0(n,r)?1:-1:0}(e.moduleSpecifier,t.moduleSpecifier,n,r)||It(zee(e,n.path,a),zee(t,n.path,a))||US(e.moduleSpecifier,t.moduleSpecifier):0}function zee(e,t,n){var r;if(e.isReExport&&(null==(r=e.exportInfo)?void 0:r.moduleFileName)&&"index"===Eo(e.exportInfo.moduleFileName,[".js",".jsx",".d.ts",".ts",".tsx"],!0)){return Kt(t,n(Fo(e.exportInfo.moduleFileName)))}return!1}function qee(e,t,n,r){if(n.getCompilerOptions().verbatimModuleSyntax&&1===function(e,t){return Nm(e)?t.getEmitModuleFormatOfFile(e):WV(e,t.getCompilerOptions())}(e,n))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return function(e,t,n){const r=Dk(t),i=jS(e.fileName);if(!i&&kk(t)>=5)return r?1:2;if(i)return e.externalModuleIndicator||n?r?1:2:3;for(const t of e.statements??s)if(TE(t)&&!Nd(t.moduleReference))return 3;return r?1:3}(e,n.getCompilerOptions(),!!r);case 3:return function(e,t,n){if(Dk(t.getCompilerOptions()))return 1;const r=kk(t.getCompilerOptions());switch(r){case 2:case 1:case 3:return jS(e.fileName)&&(e.externalModuleIndicator||n)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 101:case 102:case 199:return 99===ite(e,t)?2:3;default:return _n.assertNever(r,`Unexpected moduleKind ${r}`)}}(e,n,!!r);case 4:return 2;default:return _n.assertNever(t)}}function Uee({sourceFile:e,program:t,cancellationToken:n,host:r,preferences:i},o,a){const s=t.getTypeChecker(),c=t.getCompilerOptions();return A(Wee(e,s,o,c),(s=>{if("default"===s)return;const c=kT(o),l=Lee(e,t),_=function(e,t,n,r,i,o,a,s,c){var l;const _=We(),u=VZ(i,c,s),d=null==(l=s.getModuleSpecifierCache)?void 0:l.call(s),p=dt((e=>sY(e?s.getPackageJsonAutoImportProvider():o,s)));function f(e,t,n,r,o,a){const s=p(a);if(b0(o,i,t,e,c,u,s,d)){const i=o.getTypeChecker();_.add(cZ(n,i).toString(),{symbol:n,moduleSymbol:e,moduleFileName:null==t?void 0:t.fileName,exportKind:r,targetFlags:sx(n,i).flags,isFromPackageJson:a})}}return k0(o,s,c,a,((i,o,a,s)=>{const c=a.getTypeChecker();r.throwIfCancellationRequested();const l=a.getCompilerOptions(),_=N0(i,c);_&&rte(c.getSymbolFlags(_.symbol),n)&&E0(_.symbol,c,xk(l),((n,r)=>(t?r??n:n)===e))&&f(i,o,_.symbol,_.exportKind,a,s);const u=c.tryGetMemberInModuleExportsAndProperties(e,i);u&&rte(c.getSymbolFlags(u),n)&&f(i,o,u,0,a,s)})),_}(s,vm(o),rX(o),n,e,t,a,r,i);return Ie(O(_.values(),(n=>Aee(n,o.getStart(e),c,l,t,e,r,i).fixes)),(e=>({fix:e,symbolName:s,errorIdentifierText:o.text,isJsxNamespaceFix:s!==o.text})))}))}function Vee(e,t,n,r){const i=r.getTypeChecker(),o=i.resolveName(n,t,111551,!0);if(!o)return;const a=i.getTypeOnlyAliasDeclaration(o);return a&&bd(a)===e?{kind:4,typeOnlyAliasDeclaration:a}:void 0}function Wee(e,t,n,r){const i=n.parent;if((xu(i)||KE(i))&&i.tagName===n&&u0(r.jsx)){const r=t.getJsxNamespace(e);if(function(e,t,n){if(Py(t.text))return!0;const r=n.resolveName(e,t,111551,!0);return!r||V(r.declarations,ql)&&!(111551&r.flags)}(r,n,t)){return!Py(n.text)&&!t.resolveName(n.text,n,111551,!1)?[n.text,r]:[r]}}return[n.text]}function $ee(e,t,n,r,i,o,a){let c;const l=ede.ChangeTracker.with(e,(e=>{c=function(e,t,n,r,i,o,a){const c=fY(t,a);switch(r.kind){case 0:return Gee(e,t,r),[ua.Change_0_to_1,n,`${r.namespacePrefix}.${n}`];case 1:return Xee(e,t,r,c),[ua.Change_0_to_1,n,Qee(r.moduleSpecifier,c)+n];case 2:{const{importClauseOrBindingPattern:o,importKind:c,addAsTypeOnly:l,moduleSpecifier:_}=r;Kee(e,t,o,1===c?{name:n,addAsTypeOnly:l}:void 0,0===c?[{name:n,addAsTypeOnly:l}]:s,void 0,a);const u=Ey(_);return i?[ua.Import_0_from_1,n,u]:[ua.Update_import_from_0,u]}case 3:{const{importKind:s,moduleSpecifier:l,addAsTypeOnly:_,useRequire:u,qualification:d}=r;return TY(e,t,(u?tte:ete)(l,c,1===s?{name:n,addAsTypeOnly:_}:void 0,0===s?[{name:n,addAsTypeOnly:_}]:void 0,2===s||3===s?{importKind:s,name:(null==d?void 0:d.namespacePrefix)||n,addAsTypeOnly:_}:void 0,o.getCompilerOptions(),a),!0,a),d&&Gee(e,t,d),i?[ua.Import_0_from_1,n,l]:[ua.Add_import_from_0,l]}case 4:{const{typeOnlyAliasDeclaration:i}=r,s=function(e,t,n,r,i){const o=n.getCompilerOptions(),a=o.verbatimModuleSyntax;switch(t.kind){case 277:if(t.isTypeOnly){if(t.parent.elements.length>1){const n=vw.updateImportSpecifier(t,!1,t.propertyName,t.name),{specifierComparer:o}=f_e.getNamedImportSpecifierComparerWithDetection(t.parent.parent.parent,i,r),a=f_e.getImportSpecifierInsertionIndex(t.parent.elements,n,o);if(a!==t.parent.elements.indexOf(t))return e.delete(r,t),e.insertImportSpecifierAtIndex(r,n,t.parent,a),t}return e.deleteRange(r,{pos:qd(t.getFirstToken()),end:qd(t.propertyName??t.name)}),t}return _n.assert(t.parent.parent.isTypeOnly),s(t.parent.parent),t.parent.parent;case 274:return s(t),t;case 275:return s(t.parent),t.parent;case 272:return e.deleteRange(r,t.getChildAt(1)),t;default:_n.failBadSyntaxKind(t)}function s(s){var c;if(e.delete(r,CY(s,r)),!o.allowImportingTsExtensions){const t=vg(s.parent),i=t&&(null==(c=n.getResolvedModuleFromModuleSpecifier(t,r))?void 0:c.resolvedModule);if(null==i?void 0:i.resolvedUsingTsExtension){const n=Ko(t.text,aU(t.text,o));e.replaceNode(r,t,vw.createStringLiteral(n))}}if(a){const n=et(s.namedBindings,OE);if(n&&n.elements.length>1){!1!==f_e.getNamedImportSpecifierComparerWithDetection(s.parent,i,r).isSorted&&277===t.kind&&0!==n.elements.indexOf(t)&&(e.delete(r,t),e.insertImportSpecifierAtIndex(r,t,n,0));for(const i of n.elements)i===t||i.isTypeOnly||e.insertModifierBefore(r,156,i)}}}}(e,i,o,t,a);return 277===s.kind?[ua.Remove_type_from_import_of_0_from_1,n,Hee(s.parent.parent)]:[ua.Remove_type_from_import_declaration_from_0,Hee(s)]}default:return _n.assertNever(r,`Unexpected fix kind ${r.kind}`)}}(e,t,n,r,i,o,a)}));return U7(bee,l,c,xee,ua.Add_all_missing_imports)}function Hee(e){var t,n;return 272===e.kind?(null==(n=et(null==(t=et(e.moduleReference,VE))?void 0:t.expression,Ru))?void 0:n.text)||e.moduleReference.getText():tt(e.parent.moduleSpecifier,HD).text}function Kee(e,t,n,r,i,o,a){var c;if(207===n.kind){if(o&&n.elements.some((e=>o.has(e))))return void e.replaceNode(t,n,vw.createObjectBindingPattern([...n.elements.filter((e=>!o.has(e))),...r?[vw.createBindingElement(void 0,"default",r.name)]:s,...i.map((e=>vw.createBindingElement(void 0,e.propertyName,e.name)))]));r&&u(n,r.name,"default");for(const e of i)u(n,e.name,e.propertyName);return}const l=n.isTypeOnly&&V([r,...i],(e=>4===(null==e?void 0:e.addAsTypeOnly))),_=n.namedBindings&&(null==(c=et(n.namedBindings,OE))?void 0:c.elements);if(r&&(_n.assert(!n.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,n.getStart(t),vw.createIdentifier(r.name),{suffix:", "})),i.length){const{specifierComparer:r,isSorted:s}=f_e.getNamedImportSpecifierComparerWithDetection(n.parent,a,t),c=le(i.map((e=>vw.createImportSpecifier((!n.isTypeOnly||l)&&Zee(e,a),void 0===e.propertyName?void 0:vw.createIdentifier(e.propertyName),vw.createIdentifier(e.name)))),r);if(o)e.replaceNode(t,n.namedBindings,vw.updateNamedImports(n.namedBindings,le([..._.filter((e=>!o.has(e))),...c],r)));else if((null==_?void 0:_.length)&&!1!==s){const i=l&&_?vw.updateNamedImports(n.namedBindings,E(_,(e=>vw.updateImportSpecifier(e,!0,e.propertyName,e.name)))).elements:_;for(const o of c){const a=f_e.getImportSpecifierInsertionIndex(i,o,r);e.insertImportSpecifierAtIndex(t,o,n.namedBindings,a)}}else if(null==_?void 0:_.length)for(const n of c)e.insertNodeInListAfter(t,ye(_),n,_);else if(c.length){const r=vw.createNamedImports(c);n.namedBindings?e.replaceNode(t,n.namedBindings,r):e.insertNodeAfter(t,_n.checkDefined(n.name,"Import clause must have either named imports or a default import"),r)}}if(l&&(e.delete(t,CY(n,t)),_))for(const n of _)e.insertModifierBefore(t,156,n);function u(n,r,i){const o=vw.createBindingElement(void 0,i,r);n.elements.length?e.insertNodeInListAfter(t,ye(n.elements),o):e.replaceNode(t,n,vw.createObjectBindingPattern([o]))}}function Gee(e,t,{namespacePrefix:n,usagePosition:r}){e.insertText(t,r,n+".")}function Xee(e,t,{moduleSpecifier:n,usagePosition:r},i){e.insertText(t,r,Qee(n,i))}function Qee(e,t){const n=mY(t);return`import(${n}${e}${n}).`}function Yee({addAsTypeOnly:e}){return 2===e}function Zee(e,t){return Yee(e)||!!t.preferTypeOnlyAutoImports&&4!==e.addAsTypeOnly}function ete(e,t,n,r,i,o,a){const s=uY(e,t);let c;if(void 0!==n||(null==r?void 0:r.length)){const i=(!n||Yee(n))&&h(r,Yee)||(o.verbatimModuleSyntax||a.preferTypeOnlyAutoImports)&&4!==(null==n?void 0:n.addAsTypeOnly)&&!V(r,(e=>4===e.addAsTypeOnly));c=ie(c,_Y(n&&vw.createIdentifier(n.name),null==r?void 0:r.map((e=>vw.createImportSpecifier(!i&&Zee(e,a),void 0===e.propertyName?void 0:vw.createIdentifier(e.propertyName),vw.createIdentifier(e.name)))),e,t,i))}if(i){c=ie(c,3===i.importKind?vw.createImportEqualsDeclaration(void 0,Zee(i,a),vw.createIdentifier(i.name),vw.createExternalModuleReference(s)):vw.createImportDeclaration(void 0,vw.createImportClause(Zee(i,a)?156:void 0,void 0,vw.createNamespaceImport(vw.createIdentifier(i.name))),s,void 0))}return _n.checkDefined(c)}function tte(e,t,n,r,i){const o=uY(e,t);let a;if(n||(null==r?void 0:r.length)){const e=(null==r?void 0:r.map((({name:e,propertyName:t})=>vw.createBindingElement(void 0,t,e))))||[];n&&e.unshift(vw.createBindingElement(void 0,"default",n.name));a=ie(a,nte(vw.createObjectBindingPattern(e),o))}if(i){a=ie(a,nte(i.name,o))}return _n.checkDefined(a)}function nte(e,t){return vw.createVariableStatement(void 0,vw.createVariableDeclarationList([vw.createVariableDeclaration("string"==typeof e?vw.createIdentifier(e):e,void 0,void 0,vw.createCallExpression(vw.createIdentifier("require"),void 0,[t]))],2))}function rte(e,t){return 7===t||(1&t?!!(111551&e):2&t?!!(788968&e):!!(4&t)&&!!(1920&e))}function ite(e,t){return Nm(e)?t.getImpliedNodeFormatForEmit(e):$V(e,t.getCompilerOptions())}$7({errorCodes:kee,getCodeActions(e){const{errorCode:t,preferences:n,sourceFile:r,span:i,program:o}=e,a=Ree(e,t,i.start,!0);if(a)return a.map((({fix:t,symbolName:i,errorIdentifierText:a})=>$ee(e,r,i,t,i!==a,o,n)))},fixIds:[xee],getAllCodeActions:e=>{const{sourceFile:t,program:n,preferences:r,host:i,cancellationToken:o}=e,a=Tee(t,n,!0,r,i,o);return Z7(e,kee,(t=>a.addImportFromDiagnostic(t,e))),X7(ede.ChangeTracker.with(e,a.writeFixes))}});var ote="addMissingConstraint",ate=[ua.Type_0_is_not_comparable_to_type_1.code,ua.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,ua.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,ua.Type_0_is_not_assignable_to_type_1.code,ua.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,ua.Property_0_is_incompatible_with_index_signature.code,ua.Property_0_in_type_1_is_not_assignable_to_type_2.code,ua.Type_0_does_not_satisfy_the_constraint_1.code];function ste(e,t,n){const r=y(e.getSemanticDiagnostics(t),(e=>e.start===n.start&&e.length===n.length));if(void 0===r||void 0===r.relatedInformation)return;const i=y(r.relatedInformation,(e=>e.code===ua.This_type_parameter_might_need_an_extends_0_constraint.code));if(void 0===i||void 0===i.file||void 0===i.start||void 0===i.length)return;let o=goe(i.file,$s(i.start,i.length));if(void 0!==o&&(_N(o)&&DN(o.parent)&&(o=o.parent),DN(o))){if(aF(o.parent))return;const r=aQ(t,n.start),a=function(e,t){if(x_(t.parent))return e.getTypeArgumentConstraint(t.parent);const n=W_(t)?e.getContextualType(t):void 0;return n||e.getTypeAtLocation(t)}(e.getTypeChecker(),r)||function(e){const[,t]=gV(e,"\n",0).match(/`extends (.*)`/)||[];return t}(i.messageText);return{constraint:a,declaration:o,token:r}}}function cte(e,t,n,r,i,o){const{declaration:a,constraint:s}=o,c=t.getTypeChecker();if(Ye(s))e.insertText(i,a.name.end,` extends ${s}`);else{const o=xk(t.getCompilerOptions()),l=Hie({program:t,host:r}),_=See(i,t,n,r),u=Zie(c,_,s,void 0,o,void 0,void 0,l);u&&(e.replaceNode(i,a,vw.updateTypeParameterDeclaration(a,void 0,a.name,u,a.default)),_.writeFixes(e))}}$7({errorCodes:ate,getCodeActions(e){const{sourceFile:t,span:n,program:r,preferences:i,host:o}=e,a=ste(r,t,n);if(void 0===a)return;const s=ede.ChangeTracker.with(e,(e=>cte(e,r,i,o,t,a)));return[U7(ote,s,ua.Add_extends_constraint,ote,ua.Add_extends_constraint_to_all_type_parameters)]},fixIds:[ote],getAllCodeActions:e=>{const{program:t,preferences:n,host:r}=e,i=new Set;return X7(ede.ChangeTracker.with(e,(o=>{Z7(e,ate,(e=>{const a=ste(t,e.file,$s(e.start,e.length));if(a&&kx(i,cJ(a.declaration)))return cte(o,t,n,r,e.file,a)}))})))}});var lte="fixOverrideModifier",_te="fixAddOverrideModifier",ute="fixRemoveOverrideModifier",dte=[ua.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,ua.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,ua.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,ua.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,ua.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,ua.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,ua.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,ua.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,ua.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],pte={[ua.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:ua.Add_override_modifier,fixId:_te,fixAllDescriptions:ua.Add_all_missing_override_modifiers},[ua.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:ua.Add_override_modifier,fixId:_te,fixAllDescriptions:ua.Add_all_missing_override_modifiers},[ua.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:ua.Remove_override_modifier,fixId:ute,fixAllDescriptions:ua.Remove_all_unnecessary_override_modifiers},[ua.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:ua.Remove_override_modifier,fixId:ute,fixAllDescriptions:ua.Remove_override_modifier},[ua.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:ua.Add_override_modifier,fixId:_te,fixAllDescriptions:ua.Add_all_missing_override_modifiers},[ua.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:ua.Add_override_modifier,fixId:_te,fixAllDescriptions:ua.Add_all_missing_override_modifiers},[ua.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:ua.Add_override_modifier,fixId:_te,fixAllDescriptions:ua.Remove_all_unnecessary_override_modifiers},[ua.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:ua.Remove_override_modifier,fixId:ute,fixAllDescriptions:ua.Remove_all_unnecessary_override_modifiers},[ua.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:ua.Remove_override_modifier,fixId:ute,fixAllDescriptions:ua.Remove_all_unnecessary_override_modifiers}};function fte(e,t,n,r){switch(n){case ua.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case ua.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case ua.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case ua.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case ua.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return function(e,t,n){const r=gte(t,n);if(Fm(t))return void e.addJSDocTags(t,r,[vw.createJSDocOverrideTag(vw.createIdentifier("override"))]);const i=r.modifiers||s,o=y(i,yN),a=y(i,vN),c=y(i,(e=>LQ(e.kind))),l=v(i,FN),_=a?a.end:o?o.end:c?c.end:l?Ya(t.text,l.end):r.getStart(t),u=c||o||a?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,_,164,u)}(e,t.sourceFile,r);case ua.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case ua.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case ua.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case ua.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return function(e,t,n){const r=gte(t,n);if(Fm(t))return void e.filterJSDocTags(t,r,en(MP));const i=y(r.modifiers,bN);_n.assertIsDefined(i),e.deleteModifier(t,i)}(e,t.sourceFile,r);default:_n.fail("Unexpected error code: "+n)}}function mte(e){switch(e.kind){case 177:case 173:case 175:case 178:case 179:return!0;case 170:return ec(e,e.parent);default:return!1}}function gte(e,t){const n=dc(aQ(e,t),(e=>d_(e)?"quit":mte(e)));return _n.assert(n&&mte(n)),n}$7({errorCodes:dte,getCodeActions:function(e){const{errorCode:t,span:n}=e,r=pte[t];if(!r)return s;const{descriptions:i,fixId:o,fixAllDescriptions:a}=r,c=ede.ChangeTracker.with(e,(r=>fte(r,e,t,n.start)));return[V7(lte,c,i,o,a)]},fixIds:[lte,_te,ute],getAllCodeActions:e=>Y7(e,dte,((t,n)=>{const{code:r,start:i}=n,o=pte[r];o&&o.fixId===e.fixId&&fte(t,e,r,i)}))});var hte="fixNoPropertyAccessFromIndexSignature",yte=[ua.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];function vte(e,t,n,r){const i=fY(t,r),o=vw.createStringLiteral(n.name.text,0===i);e.replaceNode(t,n,ml(n)?vw.createElementAccessChain(n.expression,n.questionDotToken,o):vw.createElementAccessExpression(n.expression,o))}function bte(e,t){return tt(aQ(e,t).parent,gF)}$7({errorCodes:yte,fixIds:[hte],getCodeActions(e){const{sourceFile:t,span:n,preferences:r}=e,i=bte(t,n.start),o=ede.ChangeTracker.with(e,(t=>vte(t,e.sourceFile,i,r)));return[U7(hte,o,[ua.Use_element_access_for_0,i.name.text],hte,ua.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>Y7(e,yte,((t,n)=>vte(t,n.file,bte(n.file,n.start),e.preferences)))});var xte="fixImplicitThis",kte=[ua.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function Ste(e,t,n,r){const i=aQ(t,n);if(!PX(i))return;const o=em(i,!1,!1);if((mE(o)||SF(o))&&!uP(em(o,!1,!1))){const n=_n.checkDefined($X(o,100,t)),{name:i}=o,a=_n.checkDefined(o.body);if(SF(o)){if(i&&Ace.Core.isSymbolReferencedInFile(i,r,t,a))return;return e.delete(t,n),i&&e.delete(t,i),e.insertText(t,a.pos," =>"),[ua.Convert_function_expression_0_to_arrow_function,i?i.text:wZ]}return e.replaceNode(t,n,vw.createToken(87)),e.insertText(t,i.end," = "),e.insertText(t,a.pos," =>"),[ua.Convert_function_declaration_0_to_arrow_function,i.text]}}$7({errorCodes:kte,getCodeActions:function(e){const{sourceFile:t,program:n,span:r}=e;let i;const o=ede.ChangeTracker.with(e,(e=>{i=Ste(e,t,r.start,n.getTypeChecker())}));return i?[U7(xte,o,i,xte,ua.Fix_all_implicit_this_errors)]:s},fixIds:[xte],getAllCodeActions:e=>Y7(e,kte,((t,n)=>{Ste(t,n.file,n.start,e.program.getTypeChecker())}))});var Tte="fixImportNonExportedMember",Cte=[ua.Module_0_declares_1_locally_but_it_is_not_exported.code];function wte(e,t,n){var r,i;const o=aQ(e,t);if(_N(o)){const t=dc(o,CE);if(void 0===t)return;const a=HD(t.moduleSpecifier)?t.moduleSpecifier:void 0;if(void 0===a)return;const s=null==(r=n.getResolvedModuleFromModuleSpecifier(a,e))?void 0:r.resolvedModule;if(void 0===s)return;const c=n.getSourceFile(s.resolvedFileName);if(void 0===c||d0(n,c))return;const _=null==(i=et(c.symbol.valueDeclaration,cu))?void 0:i.locals;if(void 0===_)return;const u=_.get(o.escapedText);if(void 0===u)return;const d=function(e){if(void 0===e.valueDeclaration)return pe(e.declarations);const t=e.valueDeclaration,n=pE(t)?et(t.parent.parent,GF):void 0;return n&&1===l(n.declarationList.declarations)?n:t}(u);if(void 0===d)return;return{exportName:{node:o,isTypeOnly:$T(d)},node:d,moduleSourceFile:c,moduleSpecifier:a.text}}}function Dte(e,t,n,r,i){l(r)&&(i?Fte(e,t,n,i,r):Ete(e,t,n,r))}function Nte(e,t){return v(e.statements,(e=>RE(e)&&(t&&e.isTypeOnly||!e.isTypeOnly)))}function Fte(e,t,n,r,i){const o=r.exportClause&&ME(r.exportClause)?r.exportClause.elements:vw.createNodeArray([]),a=!(r.isTypeOnly||!Ck(t.getCompilerOptions())&&!y(o,(e=>e.isTypeOnly)));e.replaceNode(n,r,vw.updateExportDeclaration(r,r.modifiers,r.isTypeOnly,vw.createNamedExports(vw.createNodeArray([...o,...Pte(i,a)],o.hasTrailingComma)),r.moduleSpecifier,r.attributes))}function Ete(e,t,n,r){e.insertNodeAtEndOfScope(n,n,vw.createExportDeclaration(void 0,!1,vw.createNamedExports(Pte(r,Ck(t.getCompilerOptions()))),void 0,void 0))}function Pte(e,t){return vw.createNodeArray(N(e,(e=>vw.createExportSpecifier(t&&e.isTypeOnly,void 0,e.node))))}$7({errorCodes:Cte,fixIds:[Tte],getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,i=wte(t,n.start,r);if(void 0===i)return;const o=ede.ChangeTracker.with(e,(e=>function(e,t,{exportName:n,node:r,moduleSourceFile:i}){const o=Nte(i,n.isTypeOnly);o?Fte(e,t,i,o,[n]):HT(r)?e.insertExportModifier(i,r):Ete(e,t,i,[n])}(e,r,i)));return[U7(Tte,o,[ua.Export_0_from_module_1,i.exportName.node.text,i.moduleSpecifier],Tte,ua.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return X7(ede.ChangeTracker.with(e,(n=>{const r=new Map;Z7(e,Cte,(e=>{const i=wte(e.file,e.start,t);if(void 0===i)return;const{exportName:o,node:a,moduleSourceFile:s}=i;if(void 0===Nte(s,o.isTypeOnly)&&HT(a))n.insertExportModifier(s,a);else{const e=r.get(s)||{typeOnlyExports:[],exports:[]};o.isTypeOnly?e.typeOnlyExports.push(o):e.exports.push(o),r.set(s,e)}})),r.forEach(((e,r)=>{const i=Nte(r,!0);i&&i.isTypeOnly?(Dte(n,t,r,e.typeOnlyExports,i),Dte(n,t,r,e.exports,Nte(r,!1))):Dte(n,t,r,[...e.exports,...e.typeOnlyExports],i)}))})))}});var Ate="fixIncorrectNamedTupleSyntax";$7({errorCodes:[ua.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,ua.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=function(e,t){const n=aQ(e,t);return dc(n,(e=>203===e.kind))}(t,n.start),i=ede.ChangeTracker.with(e,(e=>function(e,t,n){if(!n)return;let r=n.type,i=!1,o=!1;for(;191===r.kind||192===r.kind||197===r.kind;)191===r.kind?i=!0:192===r.kind&&(o=!0),r=r.type;const a=vw.updateNamedTupleMember(n,n.dotDotDotToken||(o?vw.createToken(26):void 0),n.name,n.questionToken||(i?vw.createToken(58):void 0),r);if(a===n)return;e.replaceNode(t,n,a)}(e,t,r)));return[U7(Ate,i,ua.Move_labeled_tuple_element_modifiers_to_labels,Ate,ua.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[Ate]});var Ite="fixSpelling",Ote=[ua.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,ua.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,ua.Cannot_find_name_0_Did_you_mean_1.code,ua.Could_not_find_name_0_Did_you_mean_1.code,ua.Cannot_find_namespace_0_Did_you_mean_1.code,ua.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,ua.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,ua._0_has_no_exported_member_named_1_Did_you_mean_2.code,ua.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,ua.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,ua.No_overload_matches_this_call.code,ua.Type_0_is_not_assignable_to_type_1.code];function Lte(e,t,n,r){const i=aQ(e,t),o=i.parent;if((r===ua.No_overload_matches_this_call.code||r===ua.Type_0_is_not_assignable_to_type_1.code)&&!YE(o))return;const a=n.program.getTypeChecker();let s;if(gF(o)&&o.name===i){_n.assert(pl(i),"Expected an identifier for spelling (property access)");let e=a.getTypeAtLocation(o.expression);64&o.flags&&(e=a.getNonNullableType(e)),s=a.getSuggestedSymbolForNonexistentProperty(i,e)}else if(PF(o)&&103===o.operatorToken.kind&&o.left===i&&uN(i)){const e=a.getTypeAtLocation(o.right);s=a.getSuggestedSymbolForNonexistentProperty(i,e)}else if(CN(o)&&o.right===i){const e=a.getSymbolAtLocation(o.left);e&&1536&e.flags&&(s=a.getSuggestedSymbolForNonexistentModule(o.right,e))}else if(LE(o)&&o.name===i){_n.assertNode(i,_N,"Expected an identifier for spelling (import)");const t=function(e,t,n){var r;if(!t||!Ru(t.moduleSpecifier))return;const i=null==(r=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier,n))?void 0:r.resolvedModule;return i?e.program.getSourceFile(i.resolvedFileName):void 0}(n,dc(i,CE),e);t&&t.symbol&&(s=a.getSuggestedSymbolForNonexistentModule(i,t.symbol))}else if(YE(o)&&o.name===i){_n.assertNode(i,_N,"Expected an identifier for JSX attribute");const e=dc(i,xu),t=a.getContextualTypeForArgumentAtIndex(e,0);s=a.getSuggestedSymbolForNonexistentJSXAttribute(i,t)}else if(Av(o)&&u_(o)&&o.name===i){const e=dc(i,d_),t=e?vh(e):void 0,n=t?a.getTypeAtLocation(t):void 0;n&&(s=a.getSuggestedSymbolForNonexistentClassMember(Xd(i),n))}else{const e=rX(i),t=Xd(i);_n.assert(void 0!==t,"name should be defined"),s=a.getSuggestedSymbolForNonexistentSymbol(i,t,function(e){let t=0;4&e&&(t|=1920);2&e&&(t|=788968);1&e&&(t|=111551);return t}(e))}return void 0===s?void 0:{node:i,suggestedSymbol:s}}function jte(e,t,n,r,i){const o=vc(r);if(!gs(o,i)&&gF(n.parent)){const i=r.valueDeclaration;i&&Tc(i)&&uN(i.name)?e.replaceNode(t,n,vw.createIdentifier(o)):e.replaceNode(t,n.parent,vw.createElementAccessExpression(n.parent.expression,vw.createStringLiteral(o)))}else e.replaceNode(t,n,vw.createIdentifier(o))}$7({errorCodes:Ote,getCodeActions(e){const{sourceFile:t,errorCode:n}=e,r=Lte(t,e.span.start,e,n);if(!r)return;const{node:i,suggestedSymbol:o}=r,a=xk(e.host.getCompilationSettings());return[U7("spelling",ede.ChangeTracker.with(e,(e=>jte(e,t,i,o,a))),[ua.Change_spelling_to_0,vc(o)],Ite,ua.Fix_all_detected_spelling_errors)]},fixIds:[Ite],getAllCodeActions:e=>Y7(e,Ote,((t,n)=>{const r=Lte(n.file,n.start,e,n.code),i=xk(e.host.getCompilationSettings());r&&jte(t,e.sourceFile,r.node,r.suggestedSymbol,i)}))});var Rte="returnValueCorrect",Mte="fixAddReturnStatement",Bte="fixRemoveBracesFromArrowFunctionBody",Jte="fixWrapTheBlockWithParen",zte=[ua.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,ua.Type_0_is_not_assignable_to_type_1.code,ua.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function qte(e,t,n){const r=e.createSymbol(4,t.escapedText);r.links.type=e.getTypeAtLocation(n);const i=Xu([r]);return e.createAnonymousType(void 0,i,[],[],[])}function Ute(e,t,n,r){if(!t.body||!KF(t.body)||1!==l(t.body.statements))return;const i=me(t.body.statements);if(QF(i)&&Vte(e,t,e.getTypeAtLocation(i.expression),n,r))return{declaration:t,kind:0,expression:i.expression,statement:i,commentSource:i.expression};if(lE(i)&&QF(i.statement)){const o=vw.createObjectLiteralExpression([vw.createPropertyAssignment(i.label,i.statement.expression)]);if(Vte(e,t,qte(e,i.label,i.statement.expression),n,r))return TF(t)?{declaration:t,kind:1,expression:o,statement:i,commentSource:i.statement.expression}:{declaration:t,kind:0,expression:o,statement:i,commentSource:i.statement.expression}}else if(KF(i)&&1===l(i.statements)){const o=me(i.statements);if(lE(o)&&QF(o.statement)){const a=vw.createObjectLiteralExpression([vw.createPropertyAssignment(o.label,o.statement.expression)]);if(Vte(e,t,qte(e,o.label,o.statement.expression),n,r))return{declaration:t,kind:0,expression:a,statement:i,commentSource:o}}}}function Vte(e,t,n,r,i){if(i){const r=e.getSignatureFromDeclaration(t);if(r){Fv(t,1024)&&(n=e.createPromiseType(n));const i=e.createSignature(t,r.typeParameters,r.thisParameter,r.parameters,n,void 0,r.minArgumentCount,r.flags);n=e.createAnonymousType(void 0,Xu(),[i],[],[])}else n=e.getAnyType()}return e.isTypeAssignableTo(n,r)}function Wte(e,t,n,r){const i=aQ(t,n);if(!i.parent)return;const o=dc(i.parent,a_);switch(r){case ua.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:if(!(o&&o.body&&o.type&&Yb(o.type,i)))return;return Ute(e,o,e.getTypeFromTypeNode(o.type),!1);case ua.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!yF(o.parent)||!o.body)return;const t=o.parent.arguments.indexOf(o);if(-1===t)return;const n=e.getContextualTypeForArgumentAtIndex(o.parent,t);if(!n)return;return Ute(e,o,n,!0);case ua.Type_0_is_not_assignable_to_type_1.code:if(!_h(i)||!Af(i.parent)&&!YE(i.parent))return;const r=function(e){switch(e.kind){case 261:case 170:case 209:case 173:case 304:return e.initializer;case 292:return e.initializer&&(tP(e.initializer)?e.initializer.expression:void 0);case 305:case 172:case 307:case 349:case 342:return}}(i.parent);if(!r||!a_(r)||!r.body)return;return Ute(e,r,e.getTypeAtLocation(i.parent),!0)}}function $te(e,t,n,r){WC(n);const i=OZ(t);e.replaceNode(t,r,vw.createReturnStatement(n),{leadingTriviaOption:ede.LeadingTriviaOption.Exclude,trailingTriviaOption:ede.TrailingTriviaOption.Exclude,suffix:i?";":void 0})}function Hte(e,t,n,r,i,o){const a=o||vZ(r)?vw.createParenthesizedExpression(r):r;WC(i),uZ(i,a),e.replaceNode(t,n.body,a)}function Kte(e,t,n,r){e.replaceNode(t,n.body,vw.createParenthesizedExpression(r))}function Gte(e,t,n){const r=ede.ChangeTracker.with(e,(r=>$te(r,e.sourceFile,t,n)));return U7(Rte,r,ua.Add_a_return_statement,Mte,ua.Add_all_missing_return_statement)}function Xte(e,t,n){const r=ede.ChangeTracker.with(e,(r=>Kte(r,e.sourceFile,t,n)));return U7(Rte,r,ua.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,Jte,ua.Wrap_all_object_literal_with_parentheses)}$7({errorCodes:zte,fixIds:[Mte,Bte,Jte],getCodeActions:function(e){const{program:t,sourceFile:n,span:{start:r},errorCode:i}=e,o=Wte(t.getTypeChecker(),n,r,i);if(o)return 0===o.kind?re([Gte(e,o.expression,o.statement)],TF(o.declaration)?function(e,t,n,r){const i=ede.ChangeTracker.with(e,(i=>Hte(i,e.sourceFile,t,n,r,!1)));return U7(Rte,i,ua.Remove_braces_from_arrow_function_body,Bte,ua.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(e,o.declaration,o.expression,o.commentSource):void 0):[Xte(e,o.declaration,o.expression)]},getAllCodeActions:e=>Y7(e,zte,((t,n)=>{const r=Wte(e.program.getTypeChecker(),n.file,n.start,n.code);if(r)switch(e.fixId){case Mte:$te(t,n.file,r.expression,r.statement);break;case Bte:if(!TF(r.declaration))return;Hte(t,n.file,r.declaration,r.expression,r.commentSource,!1);break;case Jte:if(!TF(r.declaration))return;Kte(t,n.file,r.declaration,r.expression);break;default:_n.fail(JSON.stringify(e.fixId))}}))});var Qte="fixMissingMember",Yte="fixMissingProperties",Zte="fixMissingAttributes",ene="fixMissingFunctionDeclaration",tne=[ua.Property_0_does_not_exist_on_type_1.code,ua.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,ua.Property_0_is_missing_in_type_1_but_required_in_type_2.code,ua.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,ua.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,ua.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,ua.Cannot_find_name_0.code,ua.Type_0_does_not_satisfy_the_expected_type_1.code];function nne(e,t,n,r,i){var o,a;const c=aQ(e,t),_=c.parent;if(n===ua.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(19!==c.kind||!mF(_)||!yF(_.parent))return;const e=b(_.parent.arguments,(e=>e===_));if(e<0)return;const t=r.getResolvedSignature(_.parent);if(!(t&&t.declaration&&t.parameters[e]))return;const n=t.parameters[e].valueDeclaration;if(!(n&&NN(n)&&_N(n.name)))return;const i=Ie(r.getUnmatchedProperties(r.getTypeAtLocation(_),r.getParameterType(t,e).getNonNullableType(),!1,!1));if(!l(i))return;return{kind:3,token:n.name,identifier:n.name.text,properties:i,parentDeclaration:_}}if(19===c.kind||JF(_)||aE(_)){const e=(JF(_)||aE(_))&&_.expression?_.expression:_;if(mF(e)){const t=JF(_)?r.getTypeFromTypeNode(_.type):r.getContextualType(e)||r.getTypeAtLocation(e),n=Ie(r.getUnmatchedProperties(r.getTypeAtLocation(_),t.getNonNullableType(),!1,!1));if(!l(n))return;return{kind:3,token:_,identifier:void 0,properties:n,parentDeclaration:e,indentation:aE(e.parent)||OF(e.parent)?0:void 0}}}if(!pl(c))return;if(_N(c)&&Pu(_)&&_.initializer&&mF(_.initializer)){const e=null==(o=r.getContextualType(c)||r.getTypeAtLocation(c))?void 0:o.getNonNullableType(),t=Ie(r.getUnmatchedProperties(r.getTypeAtLocation(_.initializer),e,!1,!1));if(!l(t))return;return{kind:3,token:c,identifier:c.text,properties:t,parentDeclaration:_.initializer}}if(_N(c)&&xu(c.parent)){const e=function(e,t,n){const r=e.getContextualType(n.attributes);if(void 0===r)return s;const i=r.getProperties();if(!l(i))return s;const o=new Set;for(const t of n.attributes.properties)if(YE(t)&&o.add(rC(t.name)),eP(t)){const n=e.getTypeAtLocation(t.expression);for(const e of n.getProperties())o.add(e.escapedName)}return C(i,(e=>gs(e.name,t,1)&&!(16777216&e.flags||48&ox(e)||o.has(e.escapedName))))}(r,xk(i.getCompilerOptions()),c.parent);if(!l(e))return;return{kind:4,token:c,attributes:e,parentDeclaration:c.parent}}if(_N(c)){const t=null==(a=r.getContextualType(c))?void 0:a.getNonNullableType();if(t&&16&yx(t)){const n=pe(r.getSignaturesOfType(t,0));if(void 0===n)return;return{kind:5,token:c,signature:n,sourceFile:e,parentDeclaration:mne(c)}}if(yF(_)&&_.expression===c)return{kind:2,token:c,call:_,sourceFile:e,modifierFlags:0,parentDeclaration:mne(c)}}if(!gF(_))return;const u=nY(r.getTypeAtLocation(_.expression)),d=u.symbol;if(!d||!d.declarations)return;if(_N(c)&&yF(_.parent)){const t=y(d.declarations,bE),n=null==t?void 0:t.getSourceFile();if(t&&n&&!d0(i,n))return{kind:2,token:c,call:_.parent,sourceFile:n,modifierFlags:32,parentDeclaration:t};const r=y(d.declarations,uP);if(e.commonJsModuleIndicator)return;if(r&&!d0(i,r))return{kind:2,token:c,call:_.parent,sourceFile:r,modifierFlags:32,parentDeclaration:r}}const p=y(d.declarations,d_);if(!p&&uN(c))return;const f=p||y(d.declarations,(e=>hE(e)||$N(e)));if(f&&!d0(i,f.getSourceFile())){const e=!$N(f)&&(u.target||u)!==r.getDeclaredTypeOfSymbol(d);if(e&&(uN(c)||hE(f)))return;const t=f.getSourceFile(),n=$N(f)?0:(e?256:0)|(o0(c.text)?2:0),i=Fm(t);return{kind:0,token:c,call:et(_.parent,yF),modifierFlags:n,parentDeclaration:f,declSourceFile:t,isJSFile:i}}const m=y(d.declarations,vE);return!m||98304&u.flags||uN(c)||d0(i,m.getSourceFile())?void 0:{kind:1,token:c,parentDeclaration:m}}function rne(e,t,n,r,i){const o=r.text;if(i){if(232===n.kind)return;const r=n.name.getText(),i=ine(vw.createIdentifier(r),o);e.insertNodeAfter(t,n,i)}else if(uN(r)){const r=vw.createPropertyDeclaration(void 0,o,void 0,void 0,void 0),i=sne(n);i?e.insertNodeAfter(t,i,r):e.insertMemberAtStart(t,n,r)}else{const r=ov(n);if(!r)return;const i=ine(vw.createThis(),o);e.insertNodeAtConstructorEnd(t,r,i)}}function ine(e,t){return vw.createExpressionStatement(vw.createAssignment(vw.createPropertyAccessExpression(e,t),fne()))}function one(e,t,n){let r;if(227===n.parent.parent.kind){const i=n.parent.parent,o=n.parent===i.left?i.right:i.left,a=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(o)));r=e.typeToTypeNode(a,t,1,8)}else{const t=e.getContextualType(n.parent);r=t?e.typeToTypeNode(t,void 0,1,8):void 0}return r||vw.createKeywordTypeNode(133)}function ane(e,t,n,r,i,o){const a=o?vw.createNodeArray(vw.createModifiersFromModifierFlags(o)):void 0,s=d_(n)?vw.createPropertyDeclaration(a,r,void 0,i,void 0):vw.createPropertySignature(void 0,r,void 0,i),c=sne(n);c?e.insertNodeAfter(t,c,s):e.insertMemberAtStart(t,n,s)}function sne(e){let t;for(const n of e.members){if(!PN(n))break;t=n}return t}function cne(e,t,n,r,i,o,a){const s=See(a,e.program,e.preferences,e.host),c=Qie(d_(o)?175:174,e,s,n,r,i,o),l=function(e,t){if($N(e))return;const n=dc(t,(e=>IN(e)||LN(e)));return n&&n.parent===e?n:void 0}(o,n);l?t.insertNodeAfter(a,l,c):t.insertMemberAtStart(a,o,c),s.writeFixes(t)}function lne(e,t,{token:n,parentDeclaration:r}){const i=V(r.members,(e=>{const n=t.getTypeAtLocation(e);return!!(n&&12583968&n.flags)})),o=r.getSourceFile(),a=vw.createEnumMember(n,i?vw.createStringLiteral(n.text):void 0),s=he(r.members);s?e.insertNodeInListAfter(o,s,a,r.members):e.insertMemberAtStart(o,r,a)}function _ne(e,t,n){const r=fY(t.sourceFile,t.preferences),i=See(t.sourceFile,t.program,t.preferences,t.host),o=2===n.kind?Qie(263,t,i,n.call,hc(n.token),n.modifierFlags,n.parentDeclaration):Xie(263,t,r,n.signature,coe(ua.Function_not_implemented.message,r),n.token,void 0,void 0,void 0,i);void 0===o&&_n.fail("fixMissingFunctionDeclaration codefix got unexpected error."),aE(n.parentDeclaration)?e.insertNodeBefore(n.sourceFile,n.parentDeclaration,o,!0):e.insertNodeAtEndOfScope(n.sourceFile,n.parentDeclaration,o),i.writeFixes(e)}function une(e,t,n){const r=See(t.sourceFile,t.program,t.preferences,t.host),i=fY(t.sourceFile,t.preferences),o=t.program.getTypeChecker(),a=n.parentDeclaration.attributes,s=V(a.properties,eP),c=N(n.attributes,(e=>{const a=pne(t,o,r,i,o.getTypeOfSymbol(e),n.parentDeclaration),s=vw.createIdentifier(e.name),c=vw.createJsxAttribute(s,vw.createJsxExpression(void 0,a));return ET(s,c),c})),l=vw.createJsxAttributes(s?[...c,...a.properties]:[...a.properties,...c]),_={prefix:a.pos===a.end?" ":void 0};e.replaceNode(t.sourceFile,a,l,_),r.writeFixes(e)}function dne(e,t,n){const r=See(t.sourceFile,t.program,t.preferences,t.host),i=fY(t.sourceFile,t.preferences),o=xk(t.program.getCompilerOptions()),a=t.program.getTypeChecker(),s=N(n.properties,(e=>{const s=pne(t,a,r,i,a.getTypeOfSymbol(e),n.parentDeclaration);return vw.createPropertyAssignment(function(e,t,n,r){if(Qu(e)){const t=r.symbolToNode(e,111551,void 0,void 0,1);if(t&&wN(t))return t}return UT(e.name,t,0===n,!1,!1)}(e,o,i,a),s)})),c={leadingTriviaOption:ede.LeadingTriviaOption.Exclude,trailingTriviaOption:ede.TrailingTriviaOption.Exclude,indentation:n.indentation};e.replaceNode(t.sourceFile,n.parentDeclaration,vw.createObjectLiteralExpression([...n.parentDeclaration.properties,...s],!0),c),r.writeFixes(e)}function pne(e,t,n,r,i,o){if(3&i.flags)return fne();if(4194336&i.flags)return vw.createStringLiteral("",0===r);if(64&i.flags)return vw.createNumericLiteral(0);if(128&i.flags)return vw.createBigIntLiteral("0n");if(256&i.flags)return vw.createFalse();if(98304&i.flags){const e=i.symbol.exports?fe(i.symbol.exports.values()):i.symbol,n=i.symbol.parent&&256&i.symbol.parent.flags?i.symbol.parent:i.symbol,r=t.symbolToExpression(n,111551,void 0,64);return void 0===e||void 0===r?vw.createNumericLiteral(0):vw.createPropertyAccessExpression(r,t.symbolToString(e))}if(2048&i.flags)return vw.createNumericLiteral(i.value);if(4096&i.flags)return vw.createBigIntLiteral(i.value);if(1024&i.flags)return vw.createStringLiteral(i.value,0===r);if(8192&i.flags)return i===t.getFalseType()||i===t.getFalseType(!0)?vw.createFalse():vw.createTrue();if(8&i.flags)return vw.createNull();if(134217728&i.flags){return d(i.types,(i=>pne(e,t,n,r,i,o)))??fne()}if(t.isArrayLikeType(i))return vw.createArrayLiteralExpression();if(function(e){return 1048576&e.flags&&(128&yx(e)||e.symbol&&et(ve(e.symbol.declarations),$N))}(i)){const a=N(t.getPropertiesOfType(i),(i=>{const a=pne(e,t,n,r,t.getTypeOfSymbol(i),o);return vw.createPropertyAssignment(i.name,a)}));return vw.createObjectLiteralExpression(a,!0)}if(16&yx(i)){if(void 0===y(i.symbol.declarations||s,Zt(UN,AN,IN)))return fne();const a=t.getSignaturesOfType(i,0);if(void 0===a)return fne();return Xie(219,e,r,a[0],coe(ua.Function_not_implemented.message,r),void 0,void 0,void 0,o,n)??fne()}if(1&yx(i)){const e=hx(i.symbol);if(void 0===e||Iv(e))return fne();const t=ov(e);return t&&l(t.parameters)?fne():vw.createNewExpression(vw.createIdentifier(i.symbol.name),void 0,void 0)}return fne()}function fne(){return vw.createIdentifier("undefined")}function mne(e){if(dc(e,tP)){const t=dc(e.parent,aE);if(t)return t}return bd(e)}$7({errorCodes:tne,getCodeActions(e){const t=e.program.getTypeChecker(),n=nne(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(n){if(3===n.kind){const t=ede.ChangeTracker.with(e,(t=>dne(t,e,n)));return[U7(Yte,t,ua.Add_missing_properties,Yte,ua.Add_all_missing_properties)]}if(4===n.kind){const t=ede.ChangeTracker.with(e,(t=>une(t,e,n)));return[U7(Zte,t,ua.Add_missing_attributes,Zte,ua.Add_all_missing_attributes)]}if(2===n.kind||5===n.kind){const t=ede.ChangeTracker.with(e,(t=>_ne(t,e,n)));return[U7(ene,t,[ua.Add_missing_function_declaration_0,n.token.text],ene,ua.Add_all_missing_function_declarations)]}if(1===n.kind){const t=ede.ChangeTracker.with(e,(t=>lne(t,e.program.getTypeChecker(),n)));return[U7(Qte,t,[ua.Add_missing_enum_member_0,n.token.text],Qte,ua.Add_all_missing_members)]}return $(function(e,t){const{parentDeclaration:n,declSourceFile:r,modifierFlags:i,token:o,call:a}=t;if(void 0===a)return;const s=o.text,c=t=>ede.ChangeTracker.with(e,(i=>cne(e,i,a,o,t,n,r))),l=[U7(Qte,c(256&i),[256&i?ua.Declare_static_method_0:ua.Declare_method_0,s],Qte,ua.Add_all_missing_members)];2&i&&l.unshift(q7(Qte,c(2),[ua.Declare_private_method_0,s]));return l}(e,n),function(e,t){return t.isJSFile?nn(function(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:i}){if(hE(t)||$N(t))return;const o=ede.ChangeTracker.with(e,(e=>rne(e,n,t,i,!!(256&r))));if(0===o.length)return;const a=256&r?ua.Initialize_static_property_0:uN(i)?ua.Declare_a_private_field_named_0:ua.Initialize_property_0_in_the_constructor;return U7(Qte,o,[a,i.text],Qte,ua.Add_all_missing_members)}(e,t)):function(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:i}){const o=i.text,a=256&r,s=one(e.program.getTypeChecker(),t,i),c=r=>ede.ChangeTracker.with(e,(e=>ane(e,n,t,o,s,r))),l=[U7(Qte,c(256&r),[a?ua.Declare_static_property_0:ua.Declare_property_0,o],Qte,ua.Add_all_missing_members)];if(a||uN(i))return l;2&r&&l.unshift(q7(Qte,c(2),[ua.Declare_private_property_0,o]));return l.push(function(e,t,n,r,i){const o=vw.createKeywordTypeNode(154),a=vw.createParameterDeclaration(void 0,void 0,"x",void 0,o,void 0),s=vw.createIndexSignature(void 0,[a],i),c=ede.ChangeTracker.with(e,(e=>e.insertMemberAtStart(t,n,s)));return q7(Qte,c,[ua.Add_index_signature_for_property_0,r])}(e,n,t,i.text,s)),l}(e,t)}(e,n))}},fixIds:[Qte,ene,Yte,Zte],getAllCodeActions:e=>{const{program:t,fixId:n}=e,r=t.getTypeChecker(),i=new Set,o=new Map;return X7(ede.ChangeTracker.with(e,(t=>{Z7(e,tne,(a=>{const s=nne(a.file,a.start,a.code,r,e.program);if(void 0===s)return;const c=cJ(s.parentDeclaration)+"#"+(3===s.kind?s.identifier||cJ(s.token):s.token.text);if(kx(i,c))if(n!==ene||2!==s.kind&&5!==s.kind){if(n===Yte&&3===s.kind)dne(t,e,s);else if(n===Zte&&4===s.kind)une(t,e,s);else if(1===s.kind&&lne(t,r,s),0===s.kind){const{parentDeclaration:e,token:t}=s,n=B(o,e,(()=>[]));n.some((e=>e.token.text===t.text))||n.push(s)}}else _ne(t,e,s)})),o.forEach(((n,i)=>{const a=$N(i)?void 0:function(e,t){const n=[];for(;e;){const r=bh(e),i=r&&t.getSymbolAtLocation(r.expression);if(!i)break;const o=2097152&i.flags?t.getAliasedSymbol(i):i,a=o.declarations&&y(o.declarations,d_);if(!a)break;n.push(a),e=a}return n}(i,r);for(const i of n){if(null==a?void 0:a.some((e=>{const t=o.get(e);return!!t&&t.some((({token:e})=>e.text===i.token.text))})))continue;const{parentDeclaration:n,declSourceFile:s,modifierFlags:c,token:l,call:_,isJSFile:u}=i;if(_&&!uN(l))cne(e,t,_,l,256&c,n,s);else if(!u||hE(n)||$N(n)){const e=one(r,n,l);ane(t,s,n,l.text,e,256&c)}else rne(t,s,n,l,!!(256&c))}}))})))}});var gne="addMissingNewOperator",hne=[ua.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];function yne(e,t,n){const r=tt(function(e,t){let n=aQ(e,t.start);const r=Es(t);for(;n.endyne(e,t,n)));return[U7(gne,r,ua.Add_missing_new_operator_to_call,gne,ua.Add_missing_new_operator_to_all_calls)]},fixIds:[gne],getAllCodeActions:e=>Y7(e,hne,((t,n)=>yne(t,e.sourceFile,n)))});var vne="addMissingParam",bne="addOptionalParam",xne=[ua.Expected_0_arguments_but_got_1.code];function kne(e,t,n){const r=dc(aQ(e,n),yF);if(void 0===r||0===l(r.arguments))return;const i=t.getTypeChecker(),o=C(i.getTypeAtLocation(r.expression).symbol.declarations,Cne);if(void 0===o)return;const a=he(o);if(void 0===a||void 0===a.body||d0(t,a.getSourceFile()))return;const s=function(e){const t=wc(e);if(t)return t;if(pE(e.parent)&&_N(e.parent.name)||PN(e.parent)||NN(e.parent))return e.parent.name}(a);if(void 0===s)return;const c=[],_=[],u=l(a.parameters),d=l(r.arguments);if(u>d)return;const p=[a,...Dne(a,o)];for(let e=0,t=0,n=0;e{const s=bd(i),c=See(s,t,n,r);l(i.parameters)?e.replaceNodeRangeWithNodes(s,me(i.parameters),ye(i.parameters),wne(c,a,i,o),{joiner:", ",indentation:0,leadingTriviaOption:ede.LeadingTriviaOption.IncludeAll,trailingTriviaOption:ede.TrailingTriviaOption.Include}):_(wne(c,a,i,o),((t,n)=>{0===l(i.parameters)&&0===n?e.insertNodeAt(s,i.parameters.end,t):e.insertNodeAtEndOfList(s,i.parameters,t)})),c.writeFixes(e)}))}function Cne(e){switch(e.kind){case 263:case 219:case 175:case 220:return!0;default:return!1}}function wne(e,t,n,r){const i=N(n.parameters,(e=>vw.createParameterDeclaration(e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer)));for(const{pos:n,declaration:o}of r){const r=n>0?i[n-1]:void 0;i.splice(n,0,vw.updateParameterDeclaration(o,o.modifiers,o.dotDotDotToken,o.name,r&&r.questionToken?vw.createToken(58):o.questionToken,Pne(e,o.type,t),o.initializer))}return i}function Dne(e,t){const n=[];for(const r of t)if(Nne(r)){if(l(r.parameters)===l(e.parameters)){n.push(r);continue}if(l(r.parameters)>l(e.parameters))return[]}return n}function Nne(e){return Cne(e)&&void 0===e.body}function Fne(e,t,n){return vw.createParameterDeclaration(void 0,void 0,e,n,t,void 0)}function Ene(e,t){return l(e)&&V(e,(e=>tTne(t,e.program,e.preferences,e.host,r,i))),[l(i)>1?ua.Add_missing_parameters_to_0:ua.Add_missing_parameter_to_0,n],vne,ua.Add_all_missing_parameters)),l(o)&&re(a,U7(bne,ede.ChangeTracker.with(e,(t=>Tne(t,e.program,e.preferences,e.host,r,o))),[l(o)>1?ua.Add_optional_parameters_to_0:ua.Add_optional_parameter_to_0,n],bne,ua.Add_all_optional_parameters)),a},getAllCodeActions:e=>Y7(e,xne,((t,n)=>{const r=kne(e.sourceFile,e.program,n.start);if(r){const{declarations:n,newParameters:i,newOptionalParameters:o}=r;e.fixId===vne&&Tne(t,e.program,e.preferences,e.host,n,i),e.fixId===bne&&Tne(t,e.program,e.preferences,e.host,n,o)}}))});var Ane="installTypesPackage",Ine=ua.Cannot_find_module_0_or_its_corresponding_type_declarations.code,One=ua.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed.code,Lne=[Ine,ua.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code,ua.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,ua.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig.code,One];function jne(e,t){return{type:"install package",file:e,packageName:t}}function Rne(e,t){const n=et(aQ(e,t),HD);if(!n)return;const r=n.text,{packageName:i}=CM(r);return ws(i)?void 0:i}function Mne(e,t,n){var r;return FC.has(e)?"@types/node":n!==Ine&&(null==(r=t.isKnownTypesPackageName)?void 0:r.call(t,e))?JM(e):void 0}$7({errorCodes:Lne,getCodeActions:function(e){const{host:t,sourceFile:n,span:{start:r},errorCode:i}=e,o=i===One?Xk(e.program.getCompilerOptions(),n):Rne(n,r);if(void 0===o)return;const a=Mne(o,t,i);return void 0===a?[]:[U7("fixCannotFindModule",[],[ua.Install_0,a],Ane,ua.Install_all_missing_types_packages,jne(n.fileName,a))]},fixIds:[Ane],getAllCodeActions:e=>Y7(e,Lne,((t,n,r)=>{const i=Rne(n.file,n.start);if(void 0!==i)switch(e.fixId){case Ane:{const t=Mne(i,e.host,n.code);t&&r.push(jne(n.file.fileName,t));break}default:_n.fail(`Bad fixId: ${e.fixId}`)}}))});var Bne=[ua.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,ua.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,ua.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,ua.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,ua.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,ua.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code],Jne="fixClassDoesntImplementInheritedAbstractMember";function zne(e,t){return tt(aQ(e,t).parent,d_)}function qne(e,t,n,r,i){const o=vh(e),a=n.program.getTypeChecker(),s=a.getTypeAtLocation(o),c=a.getPropertiesOfType(s).filter(Une),l=See(t,n.program,i,n.host);$ie(e,c,t,n,i,l,(n=>r.insertMemberAtStart(t,e,n))),l.writeFixes(r)}function Une(e){const t=Uv(me(e.getDeclarations()));return!(2&t||!(64&t))}$7({errorCodes:Bne,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=ede.ChangeTracker.with(e,(r=>qne(zne(t,n.start),t,e,r,e.preferences)));return 0===r.length?void 0:[U7(Jne,r,ua.Implement_inherited_abstract_class,Jne,ua.Implement_all_inherited_abstract_classes)]},fixIds:[Jne],getAllCodeActions:function(e){const t=new Set;return Y7(e,Bne,((n,r)=>{const i=zne(r.file,r.start);kx(t,cJ(i))&&qne(i,e.sourceFile,e,n,e.preferences)}))}});var Vne="classSuperMustPrecedeThisAccess",Wne=[ua.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function $ne(e,t,n,r){e.insertNodeAtConstructorStart(t,n,r),e.delete(t,r)}function Hne(e,t){const n=aQ(e,t);if(110!==n.kind)return;const r=Kf(n),i=Kne(r.body);return i&&!i.expression.arguments.some((e=>gF(e)&&e.expression===n))?{constructor:r,superCall:i}:void 0}function Kne(e){return QF(e)&&lf(e.expression)?e:i_(e)?void 0:rO(e,Kne)}$7({errorCodes:Wne,getCodeActions(e){const{sourceFile:t,span:n}=e,r=Hne(t,n.start);if(!r)return;const{constructor:i,superCall:o}=r,a=ede.ChangeTracker.with(e,(e=>$ne(e,t,i,o)));return[U7(Vne,a,ua.Make_super_call_the_first_statement_in_the_constructor,Vne,ua.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[Vne],getAllCodeActions(e){const{sourceFile:t}=e,n=new Set;return Y7(e,Wne,((e,r)=>{const i=Hne(r.file,r.start);if(!i)return;const{constructor:o,superCall:a}=i;kx(n,cJ(o.parent))&&$ne(e,t,o,a)}))}});var Gne="constructorForDerivedNeedSuperCall",Xne=[ua.Constructors_for_derived_classes_must_contain_a_super_call.code];function Qne(e,t){const n=aQ(e,t);return _n.assert(LN(n.parent),"token should be at the constructor declaration"),n.parent}function Yne(e,t,n){const r=vw.createExpressionStatement(vw.createCallExpression(vw.createSuper(),void 0,s));e.insertNodeAtConstructorStart(t,n,r)}$7({errorCodes:Xne,getCodeActions(e){const{sourceFile:t,span:n}=e,r=Qne(t,n.start),i=ede.ChangeTracker.with(e,(e=>Yne(e,t,r)));return[U7(Gne,i,ua.Add_missing_super_call,Gne,ua.Add_all_missing_super_calls)]},fixIds:[Gne],getAllCodeActions:e=>Y7(e,Xne,((t,n)=>Yne(t,e.sourceFile,Qne(n.file,n.start))))});var Zne="fixEnableJsxFlag",ere=[ua.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];function tre(e,t){_oe(e,t,"jsx",vw.createStringLiteral("react"))}$7({errorCodes:ere,getCodeActions:function(e){const{configFile:t}=e.program.getCompilerOptions();if(void 0===t)return;const n=ede.ChangeTracker.with(e,(e=>tre(e,t)));return[q7(Zne,n,ua.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[Zne],getAllCodeActions:e=>Y7(e,ere,(t=>{const{configFile:n}=e.program.getCompilerOptions();void 0!==n&&tre(t,n)}))});var nre="fixNaNEquality",rre=[ua.This_condition_will_always_return_0.code];function ire(e,t,n){const r=y(e.getSemanticDiagnostics(t),(e=>e.start===n.start&&e.length===n.length));if(void 0===r||void 0===r.relatedInformation)return;const i=y(r.relatedInformation,(e=>e.code===ua.Did_you_mean_0.code));if(void 0===i||void 0===i.file||void 0===i.start||void 0===i.length)return;const o=goe(i.file,$s(i.start,i.length));return void 0!==o&&W_(o)&&PF(o.parent)?{suggestion:are(i.messageText),expression:o.parent,arg:o}:void 0}function ore(e,t,n,r){const i=vw.createCallExpression(vw.createPropertyAccessExpression(vw.createIdentifier("Number"),vw.createIdentifier("isNaN")),void 0,[n]),o=r.operatorToken.kind;e.replaceNode(t,r,38===o||36===o?vw.createPrefixUnaryExpression(54,i):i)}function are(e){const[,t]=gV(e,"\n",0).match(/'(.*)'/)||[];return t}$7({errorCodes:rre,getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,i=ire(r,t,n);if(void 0===i)return;const{suggestion:o,expression:a,arg:s}=i,c=ede.ChangeTracker.with(e,(e=>ore(e,t,s,a)));return[U7(nre,c,[ua.Use_0,o],nre,ua.Use_Number_isNaN_in_all_conditions)]},fixIds:[nre],getAllCodeActions:e=>Y7(e,rre,((t,n)=>{const r=ire(e.program,n.file,$s(n.start,n.length));r&&ore(t,n.file,r.arg,r.expression)}))}),$7({errorCodes:[ua.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,ua.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,ua.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(e){const t=e.program.getCompilerOptions(),{configFile:n}=t;if(void 0===n)return;const r=[],i=kk(t);if(i>=5&&i<99){const t=ede.ChangeTracker.with(e,(e=>{_oe(e,n,"module",vw.createStringLiteral("esnext"))}));r.push(q7("fixModuleOption",t,[ua.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const o=xk(t);if(o<4||o>99){const t=ede.ChangeTracker.with(e,(e=>{if(!Wf(n))return;const t=[["target",vw.createStringLiteral("es2017")]];1===i&&t.push(["module",vw.createStringLiteral("commonjs")]),loe(e,n,t)}));r.push(q7("fixTargetOption",t,[ua.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return r.length?r:void 0}});var sre="fixPropertyAssignment",cre=[ua.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];function lre(e,t,n){e.replaceNode(t,n,vw.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function _re(e,t){return tt(aQ(e,t).parent,cP)}$7({errorCodes:cre,fixIds:[sre],getCodeActions(e){const{sourceFile:t,span:n}=e,r=_re(t,n.start),i=ede.ChangeTracker.with(e,(t=>lre(t,e.sourceFile,r)));return[U7(sre,i,[ua.Change_0_to_1,"=",":"],sre,[ua.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>Y7(e,cre,((e,t)=>lre(e,t.file,_re(t.file,t.start))))});var ure="extendsInterfaceBecomesImplements",dre=[ua.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function pre(e,t){const n=Xf(aQ(e,t)).heritageClauses,r=n[0].getFirstToken();return 96===r.kind?{extendsToken:r,heritageClauses:n}:void 0}function fre(e,t,n,r){if(e.replaceNode(t,n,vw.createToken(119)),2===r.length&&96===r[0].token&&119===r[1].token){const n=r[1].getFirstToken(),i=n.getFullStart();e.replaceRange(t,{pos:i,end:i},vw.createToken(28));const o=t.text;let a=n.end;for(;afre(e,t,r,i)));return[U7(ure,o,ua.Change_extends_to_implements,ure,ua.Change_all_extended_interfaces_to_implements)]},fixIds:[ure],getAllCodeActions:e=>Y7(e,dre,((e,t)=>{const n=pre(t.file,t.start);n&&fre(e,t.file,n.extendsToken,n.heritageClauses)}))});var mre="forgottenThisPropertyAccess",gre=ua.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,hre=[ua.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,ua.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,gre];function yre(e,t,n){const r=aQ(e,t);if(_N(r)||uN(r))return{node:r,className:n===gre?Xf(r).name.text:void 0}}function vre(e,t,{node:n,className:r}){WC(n),e.replaceNode(t,n,vw.createPropertyAccessExpression(r?vw.createIdentifier(r):vw.createThis(),n))}$7({errorCodes:hre,getCodeActions(e){const{sourceFile:t}=e,n=yre(t,e.span.start,e.errorCode);if(!n)return;const r=ede.ChangeTracker.with(e,(e=>vre(e,t,n)));return[U7(mre,r,[ua.Add_0_to_unresolved_variable,n.className||"this"],mre,ua.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[mre],getAllCodeActions:e=>Y7(e,hre,((t,n)=>{const r=yre(n.file,n.start,n.code);r&&vre(t,e.sourceFile,r)}))});var bre="fixInvalidJsxCharacters_expression",xre="fixInvalidJsxCharacters_htmlEntity",kre=[ua.Unexpected_token_Did_you_mean_or_gt.code,ua.Unexpected_token_Did_you_mean_or_rbrace.code];$7({errorCodes:kre,fixIds:[bre,xre],getCodeActions(e){const{sourceFile:t,preferences:n,span:r}=e,i=ede.ChangeTracker.with(e,(e=>Tre(e,n,t,r.start,!1))),o=ede.ChangeTracker.with(e,(e=>Tre(e,n,t,r.start,!0)));return[U7(bre,i,ua.Wrap_invalid_character_in_an_expression_container,bre,ua.Wrap_all_invalid_characters_in_an_expression_container),U7(xre,o,ua.Convert_invalid_character_to_its_html_entity_code,xre,ua.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:e=>Y7(e,kre,((t,n)=>Tre(t,e.preferences,n.file,n.start,e.fixId===xre)))});var Sre={">":">","}":"}"};function Tre(e,t,n,r,i){const o=n.getText()[r];if(!function(e){return De(Sre,e)}(o))return;const a=i?Sre[o]:`{${xZ(n,t,o)}}`;e.replaceRangeWithText(n,{pos:r,end:r+1},a)}var Cre="deleteUnmatchedParameter",wre="renameUnmatchedParameter",Dre=[ua.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];function Nre(e,t){const n=aQ(e,t);if(n.parent&&UP(n.parent)&&_N(n.parent.name)){const e=n.parent,t=Wg(e),r=Ug(e);if(t&&r)return{jsDocHost:t,signature:r,name:n.parent.name,jsDocParameterTag:e}}}$7({fixIds:[Cre,wre],errorCodes:Dre,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=[],i=Nre(t,n.start);if(i)return re(r,function(e,{name:t,jsDocHost:n,jsDocParameterTag:r}){const i=ede.ChangeTracker.with(e,(t=>t.filterJSDocTags(e.sourceFile,n,(e=>e!==r))));return U7(Cre,i,[ua.Delete_unused_param_tag_0,t.getText(e.sourceFile)],Cre,ua.Delete_all_unused_param_tags)}(e,i)),re(r,function(e,{name:t,jsDocHost:n,signature:r,jsDocParameterTag:i}){if(!l(r.parameters))return;const o=e.sourceFile,a=al(r),s=new Set;for(const e of a)UP(e)&&_N(e.name)&&s.add(e.name.escapedText);const c=d(r.parameters,(e=>_N(e.name)&&!s.has(e.name.escapedText)?e.name.getText(o):void 0));if(void 0===c)return;const _=vw.updateJSDocParameterTag(i,i.tagName,vw.createIdentifier(c),i.isBracketed,i.typeExpression,i.isNameFirst,i.comment),u=ede.ChangeTracker.with(e,(e=>e.replaceJSDocComment(o,n,N(a,(e=>e===i?_:e)))));return q7(wre,u,[ua.Rename_param_tag_name_0_to_1,t.getText(o),c])}(e,i)),r},getAllCodeActions:function(e){const t=new Map;return X7(ede.ChangeTracker.with(e,(n=>{Z7(e,Dre,(({file:e,start:n})=>{const r=Nre(e,n);r&&t.set(r.signature,re(t.get(r.signature),r.jsDocParameterTag))})),t.forEach(((t,r)=>{if(e.fixId===Cre){const e=new Set(t);n.filterJSDocTags(r.getSourceFile(),r,(t=>!e.has(t)))}}))})))}});var Fre="fixUnreferenceableDecoratorMetadata";$7({errorCodes:[ua.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],getCodeActions:e=>{const t=function(e,t,n){const r=et(aQ(e,n),_N);if(!r||184!==r.parent.kind)return;const i=t.getTypeChecker().getSymbolAtLocation(r);return y((null==i?void 0:i.declarations)||s,Zt(wE,LE,TE))}(e.sourceFile,e.program,e.span.start);if(!t)return;const n=ede.ChangeTracker.with(e,(n=>277===t.kind&&function(e,t,n,r){u3.doChangeNamedToNamespaceOrDefault(t,r,e,n.parent)}(n,e.sourceFile,t,e.program))),r=ede.ChangeTracker.with(e,(n=>function(e,t,n,r){if(272===n.kind)return void e.insertModifierBefore(t,156,n.name);const i=274===n.kind?n:n.parent.parent;if(i.name&&i.namedBindings)return;const o=r.getTypeChecker();if(wg(i,(e=>{if(111551&sx(e.symbol,o).flags)return!0})))return;e.insertModifierBefore(t,156,i)}(n,e.sourceFile,t,e.program)));let i;return n.length&&(i=re(i,q7(Fre,n,ua.Convert_named_imports_to_namespace_import))),r.length&&(i=re(i,q7(Fre,r,ua.Use_import_type))),i},fixIds:[Fre]});var Ere="unusedIdentifier",Pre="unusedIdentifier_prefix",Are="unusedIdentifier_delete",Ire="unusedIdentifier_deleteImports",Ore="unusedIdentifier_infer",Lre=[ua._0_is_declared_but_its_value_is_never_read.code,ua._0_is_declared_but_never_used.code,ua.Property_0_is_declared_but_its_value_is_never_read.code,ua.All_imports_in_import_declaration_are_unused.code,ua.All_destructured_elements_are_unused.code,ua.All_variables_are_unused.code,ua.All_type_parameters_are_unused.code];function jre(e,t,n){e.replaceNode(t,n.parent,vw.createKeywordTypeNode(159))}function Rre(e,t){return U7(Ere,e,t,Are,ua.Delete_all_unused_declarations)}function Mre(e,t,n){e.delete(t,_n.checkDefined(tt(n.parent,kp).typeParameters,"The type parameter to delete should exist"))}function Bre(e){return 102===e.kind||80===e.kind&&(277===e.parent.kind||274===e.parent.kind)}function Jre(e){return 102===e.kind?et(e.parent,CE):void 0}function zre(e,t){return fE(t.parent)&&me(t.parent.getChildren(e))===t}function qre(e,t,n){e.delete(t,244===n.parent.kind?n.parent:n)}function Ure(e,t,n,r){t!==ua.Property_0_is_declared_but_its_value_is_never_read.code&&(140===r.kind&&(r=tt(r.parent,tF).typeParameter.name),_N(r)&&function(e){switch(e.parent.kind){case 170:case 169:return!0;case 261:switch(e.parent.parent.parent.kind){case 251:case 250:return!0}}return!1}(r)&&(e.replaceNode(n,r,vw.createIdentifier(`_${r.text}`)),NN(r.parent)&&Pc(r.parent).forEach((t=>{_N(t.name)&&e.replaceNode(n,t.name,vw.createIdentifier(`_${t.name.text}`))}))))}function Vre(e,t,n,r,i,o,a,s){!function(e,t,n,r,i,o,a,s){const{parent:c}=e;if(NN(c))!function(e,t,n,r,i,o,a,s=!1){if(function(e,t,n,r,i,o,a){const{parent:s}=n;switch(s.kind){case 175:case 177:const c=s.parameters.indexOf(n),l=IN(s)?s.name:s,_=Ace.Core.getReferencedSymbolsForNode(s.pos,l,i,r,o);if(_)for(const e of _)for(const t of e.references)if(t.kind===Ace.EntryKind.Node){const e=kN(t.node)&&yF(t.node.parent)&&t.node.parent.arguments.length>c,r=gF(t.node.parent)&&kN(t.node.parent.expression)&&yF(t.node.parent.parent)&&t.node.parent.parent.arguments.length>c,i=(IN(t.node.parent)||AN(t.node.parent))&&t.node.parent!==n.parent&&t.node.parent.parameters.length>c;if(e||r||i)return!1}return!0;case 263:return!s.name||!function(e,t,n){return!!Ace.Core.eachSymbolReferenceInFile(n,e,t,(e=>_N(e)&&yF(e.parent)&&e.parent.arguments.includes(e)))}(e,t,s.name)||$re(s,n,a);case 219:case 220:return $re(s,n,a);case 179:return!1;case 178:return!0;default:return _n.failBadSyntaxKind(s)}}(r,t,n,i,o,a,s))if(n.modifiers&&n.modifiers.length>0&&(!_N(n.name)||Ace.Core.isSymbolReferencedInFile(n.name,r,t)))for(const r of n.modifiers)e_(r)&&e.deleteModifier(t,r);else!n.initializer&&Wre(n,r,i)&&e.delete(t,n)}(t,n,c,r,i,o,a,s);else if(!(s&&_N(e)&&Ace.Core.isSymbolReferencedInFile(e,r,n))){const r=wE(c)?e:wN(c)?c.parent:c;_n.assert(r!==n,"should not delete whole source file"),t.delete(n,r)}}(t,n,e,r,i,o,a,s),_N(t)&&Ace.Core.eachSymbolReferenceInFile(t,r,e,(t=>{var r;gF(t.parent)&&t.parent.name===t&&(t=t.parent),!s&&((PF((r=t).parent)&&r.parent.left===r||(EF(r.parent)||FF(r.parent))&&r.parent.operand===r)&&QF(r.parent.parent))&&n.delete(e,t.parent.parent)}))}function Wre(e,t,n){const r=e.parent.parameters.indexOf(e);return!Ace.Core.someSignatureUsage(e.parent,n,t,((e,t)=>!t||t.arguments.length>r))}function $re(e,t,n){const r=e.parameters,i=r.indexOf(t);return _n.assert(-1!==i,"The parameter should already be in the list"),n?r.slice(i+1).every((e=>_N(e.name)&&!e.symbol.isReferenced)):i===r.length-1}function Hre(e,t,n){const r=n.symbol.declarations;if(r)for(const n of r)e.delete(t,n)}$7({errorCodes:Lre,getCodeActions(e){const{errorCode:t,sourceFile:n,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),a=r.getSourceFiles(),s=aQ(n,e.span.start);if(HP(s))return[Rre(ede.ChangeTracker.with(e,(e=>e.delete(n,s))),ua.Remove_template_tag)];if(30===s.kind){return[Rre(ede.ChangeTracker.with(e,(e=>Mre(e,n,s))),ua.Remove_type_parameters)]}const c=Jre(s);if(c){const t=ede.ChangeTracker.with(e,(e=>e.delete(n,c)));return[U7(Ere,t,[ua.Remove_import_from_0,bx(c)],Ire,ua.Delete_all_unused_imports)]}if(Bre(s)){const t=ede.ChangeTracker.with(e,(e=>Vre(n,s,e,o,a,r,i,!1)));if(t.length)return[U7(Ere,t,[ua.Remove_unused_declaration_for_Colon_0,s.getText(n)],Ire,ua.Delete_all_unused_imports)]}if(uF(s.parent)||dF(s.parent)){if(NN(s.parent.parent)){const t=s.parent.elements,r=[t.length>1?ua.Remove_unused_declarations_for_Colon_0:ua.Remove_unused_declaration_for_Colon_0,N(t,(e=>e.getText(n))).join(", ")];return[Rre(ede.ChangeTracker.with(e,(e=>function(e,t,n){_(n.elements,(n=>e.delete(t,n)))}(e,n,s.parent))),r)]}return[Rre(ede.ChangeTracker.with(e,(t=>function(e,t,n,{parent:r}){if(pE(r)&&r.initializer&&j_(r.initializer))if(fE(r.parent)&&l(r.parent.declarations)>1){const i=r.parent.parent,o=i.getStart(n),a=i.end;t.delete(n,r),t.insertNodeAt(n,a,r.initializer,{prefix:YY(e.host,e.formatContext.options)+n.text.slice(_Z(n.text,o-1),o),suffix:OZ(n)?";":""})}else t.replaceNode(n,r.parent,r.initializer);else t.delete(n,r)}(e,t,n,s.parent))),ua.Remove_unused_destructuring_declaration)]}if(zre(n,s))return[Rre(ede.ChangeTracker.with(e,(e=>qre(e,n,s.parent))),ua.Remove_variable_statement)];if(_N(s)&&mE(s.parent))return[Rre(ede.ChangeTracker.with(e,(e=>Hre(e,n,s.parent))),[ua.Remove_unused_declaration_for_Colon_0,s.getText(n)])];const u=[];if(140===s.kind){const t=ede.ChangeTracker.with(e,(e=>jre(e,n,s))),r=tt(s.parent,tF).typeParameter.name.text;u.push(U7(Ere,t,[ua.Replace_infer_0_with_unknown,r],Ore,ua.Replace_all_unused_infer_with_unknown))}else{const t=ede.ChangeTracker.with(e,(e=>Vre(n,s,e,o,a,r,i,!1)));if(t.length){const e=wN(s.parent)?s.parent:s;u.push(Rre(t,[ua.Remove_unused_declaration_for_Colon_0,e.getText(n)]))}}const d=ede.ChangeTracker.with(e,(e=>Ure(e,t,n,s)));return d.length&&u.push(U7(Ere,d,[ua.Prefix_0_with_an_underscore,s.getText(n)],Pre,ua.Prefix_all_unused_declarations_with_where_possible)),u},fixIds:[Pre,Are,Ire,Ore],getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}=e,i=n.getTypeChecker(),o=n.getSourceFiles();return Y7(e,Lre,((a,s)=>{const c=aQ(t,s.start);switch(e.fixId){case Pre:Ure(a,s.code,t,c);break;case Ire:{const e=Jre(c);e?a.delete(t,e):Bre(c)&&Vre(t,c,a,i,o,n,r,!0);break}case Are:if(140===c.kind||Bre(c))break;if(HP(c))a.delete(t,c);else if(30===c.kind)Mre(a,t,c);else if(uF(c.parent)){if(c.parent.parent.initializer)break;NN(c.parent.parent)&&!Wre(c.parent.parent,i,o)||a.delete(t,c.parent.parent)}else{if(dF(c.parent.parent)&&c.parent.parent.parent.initializer)break;zre(t,c)?qre(a,t,c.parent):_N(c)&&mE(c.parent)?Hre(a,t,c.parent):Vre(t,c,a,i,o,n,r,!0)}break;case Ore:140===c.kind&&jre(a,t,c);break;default:_n.fail(JSON.stringify(e.fixId))}}))}});var Kre="fixUnreachableCode",Gre=[ua.Unreachable_code_detected.code];function Xre(e,t,n,r,i){const o=aQ(t,n),a=dc(o,fu);if(a.getStart(t)!==o.getStart(t)){const e=JSON.stringify({statementKind:_n.formatSyntaxKind(a.kind),tokenKind:_n.formatSyntaxKind(o.kind),errorCode:i,start:n,length:r});_n.fail("Token and statement should start at the same point. "+e)}const c=(KF(a.parent)?a.parent:a).parent;if(!KF(a.parent)||a===me(a.parent.statements))switch(c.kind){case 246:if(c.elseStatement){if(KF(a.parent))break;return void e.replaceNode(t,a,vw.createBlock(s))}case 248:case 249:return void e.delete(t,c)}if(KF(a.parent)){const i=n+r,o=_n.checkDefined(function(e,t){let n;for(const r of e){if(!t(r))break;n=r}return n}(sT(a.parent.statements,a),(e=>e.posXre(t,e.sourceFile,e.span.start,e.span.length,e.errorCode)));return[U7(Kre,t,ua.Remove_unreachable_code,Kre,ua.Remove_all_unreachable_code)]},fixIds:[Kre],getAllCodeActions:e=>Y7(e,Gre,((e,t)=>Xre(e,t.file,t.start,t.length,t.code)))});var Qre="fixUnusedLabel",Yre=[ua.Unused_label.code];function Zre(e,t,n){const r=aQ(t,n),i=tt(r.parent,lE),o=r.getStart(t),a=i.statement.getStart(t),s=Kb(o,a,t)?a:Ya(t.text,$X(i,59,t).end,!0);e.deleteRange(t,{pos:o,end:s})}$7({errorCodes:Yre,getCodeActions(e){const t=ede.ChangeTracker.with(e,(t=>Zre(t,e.sourceFile,e.span.start)));return[U7(Qre,t,ua.Remove_unused_label,Qre,ua.Remove_all_unused_labels)]},fixIds:[Qre],getAllCodeActions:e=>Y7(e,Yre,((e,t)=>Zre(e,t.file,t.start)))});var eie="fixJSDocTypes_plain",tie="fixJSDocTypes_nullable",nie=[ua.JSDoc_types_can_only_be_used_inside_documentation_comments.code,ua._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,ua._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code];function rie(e,t,n,r,i){e.replaceNode(t,n,i.typeToTypeNode(r,n,void 0))}function iie(e,t,n){const r=dc(aQ(e,t),oie),i=r&&r.type;return i&&{typeNode:i,type:aie(n,i)}}function oie(e){switch(e.kind){case 235:case 180:case 181:case 263:case 178:case 182:case 201:case 175:case 174:case 170:case 173:case 172:case 179:case 266:case 217:case 261:return!0;default:return!1}}function aie(e,t){if(xP(t)){const n=e.getTypeFromTypeNode(t.type);return n===e.getNeverType()||n===e.getVoidType()?n:e.getUnionType(re([n,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}$7({errorCodes:nie,getCodeActions(e){const{sourceFile:t}=e,n=e.program.getTypeChecker(),r=iie(t,e.span.start,n);if(!r)return;const{typeNode:i,type:o}=r,a=i.getText(t),s=[c(o,eie,ua.Change_all_jsdoc_style_types_to_TypeScript)];return 315===i.kind&&s.push(c(o,tie,ua.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),s;function c(r,o,s){return U7("jdocTypes",ede.ChangeTracker.with(e,(e=>rie(e,t,i,r,n))),[ua.Change_0_to_1,a,n.typeToString(r)],o,s)}},fixIds:[eie,tie],getAllCodeActions(e){const{fixId:t,program:n,sourceFile:r}=e,i=n.getTypeChecker();return Y7(e,nie,((e,n)=>{const o=iie(n.file,n.start,i);if(!o)return;const{typeNode:a,type:s}=o,c=315===a.kind&&t===tie?i.getNullableType(s,4):s;rie(e,r,a,c,i)}))}});var sie="fixMissingCallParentheses",cie=[ua.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];function lie(e,t,n){e.replaceNodeWithText(t,n,`${n.text}()`)}function _ie(e,t){const n=aQ(e,t);if(gF(n.parent)){let e=n.parent;for(;gF(e.parent);)e=e.parent;return e.name}if(_N(n))return n}$7({errorCodes:cie,fixIds:[sie],getCodeActions(e){const{sourceFile:t,span:n}=e,r=_ie(t,n.start);if(!r)return;const i=ede.ChangeTracker.with(e,(t=>lie(t,e.sourceFile,r)));return[U7(sie,i,ua.Add_missing_call_parentheses,sie,ua.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>Y7(e,cie,((e,t)=>{const n=_ie(t.file,t.start);n&&lie(e,t.file,n)}))});var uie="fixMissingTypeAnnotationOnExports",die="add-annotation",pie="add-type-assertion",fie=[ua.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,ua.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,ua.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,ua.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,ua.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,ua.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,ua.Expression_type_can_t_be_inferred_with_isolatedDeclarations.code,ua.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations.code,ua.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations.code,ua.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations.code,ua.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations.code,ua.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations.code,ua.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations.code,ua.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations.code,ua.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations.code,ua.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,ua.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,ua.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code,ua.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations.code,ua.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code,ua.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code],mie=new Set([178,175,173,263,219,220,261,170,278,264,207,208]),gie=531469;function hie(e,t,n,r,i){const o=yie(n,r,i);o.result&&o.textChanges.length&&t.push(U7(e,o.textChanges,o.result,uie,ua.Add_all_missing_type_annotations))}function yie(e,t,n){const r={typeNode:void 0,mutatedTarget:!1},i=ede.ChangeTracker.fromContext(e),o=e.sourceFile,a=e.program,s=a.getTypeChecker(),c=xk(a.getCompilerOptions()),l=See(e.sourceFile,e.program,e.preferences,e.host),_=new Set,u=new Set,d=EU({preserveSourceNewlines:!1}),p=n({addTypeAnnotation:function(t){e.cancellationToken.throwIfCancellationRequested();const n=aQ(o,t.start),r=g(n);if(r)return mE(r)?function(e){var t;if(null==u?void 0:u.has(e))return;null==u||u.add(e);const n=s.getTypeAtLocation(e),r=s.getPropertiesOfType(n);if(!e.name||0===r.length)return;const c=[];for(const t of r)gs(t.name,xk(a.getCompilerOptions()))&&(t.valueDeclaration&&pE(t.valueDeclaration)||c.push(vw.createVariableStatement([vw.createModifier(95)],vw.createVariableDeclarationList([vw.createVariableDeclaration(t.name,void 0,w(s.getTypeOfSymbol(t),e),void 0)]))));if(0===c.length)return;const l=[];(null==(t=e.modifiers)?void 0:t.some((e=>95===e.kind)))&&l.push(vw.createModifier(95));l.push(vw.createModifier(138));const _=vw.createModuleDeclaration(l,e.name,vw.createModuleBlock(c),101441696);return i.insertNodeAfter(o,e,_),[ua.Annotate_types_of_properties_expando_function_in_a_namespace]}(r):h(r);const c=(l=n,dc(l,(e=>mie.has(e.kind)&&(!uF(e)&&!dF(e)||pE(e.parent)))));var l;if(c)return h(c);return},addInlineAssertion:function(t){e.cancellationToken.throwIfCancellationRequested();const n=aQ(o,t.start);if(g(n))return;const r=F(n,t);if(!r||th(r)||th(r.parent))return;const a=W_(r),c=cP(r);if(!c&&uu(r))return;if(dc(r,S_))return;if(dc(r,_P))return;if(a&&(dc(r,oP)||dc(r,x_)))return;if(LF(r))return;const l=dc(r,pE),_=l&&s.getTypeAtLocation(l);if(_&&16384&_.flags)return;if(!a&&!c)return;const{typeNode:u,mutatedTarget:d}=x(r,_);if(!u||d)return;c?i.insertNodeAt(o,r.end,m(JC(r.name),u),{prefix:": "}):a?i.replaceNode(o,r,function(e,t){f(e)&&(e=vw.createParenthesizedExpression(e));return vw.createAsExpression(vw.createSatisfiesExpression(e,JC(t)),t)}(JC(r),u)):_n.assertNever(r);return[ua.Add_satisfies_and_an_inline_type_assertion_with_0,N(u)]},extractAsVariable:function(t){e.cancellationToken.throwIfCancellationRequested();const n=F(aQ(o,t.start),t);if(!n||th(n)||th(n.parent))return;if(!W_(n))return;if(fF(n))return i.replaceNode(o,n,m(n,vw.createTypeReferenceNode("const"))),[ua.Mark_array_literal_as_const];const r=dc(n,sP);if(r){if(r===n.parent&&cb(n))return;const e=vw.createUniqueName(S6(n,o,s,o),16);let t=n,a=n;if(LF(t)&&(t=ih(t.parent),a=T(t.parent)?t=t.parent:m(t,vw.createTypeReferenceNode("const"))),cb(t))return;const c=vw.createVariableStatement(void 0,vw.createVariableDeclarationList([vw.createVariableDeclaration(e,void 0,void 0,a)],2)),l=dc(n,fu);return i.insertNodeBefore(o,l,c),i.replaceNode(o,t,vw.createAsExpression(vw.cloneNode(e),vw.createTypeQueryNode(vw.cloneNode(e)))),[ua.Extract_to_variable_and_replace_with_0_as_typeof_0,N(e)]}}});return l.writeFixes(i),{result:p,textChanges:i.getChanges()};function f(e){return!(cb(e)||yF(e)||mF(e)||fF(e))}function m(e,t){return f(e)&&(e=vw.createParenthesizedExpression(e)),vw.createAsExpression(e,t)}function g(e){const t=dc(e,(e=>fu(e)?"quit":uC(e)));if(t&&uC(t)){let e=t;if(PF(e)&&(e=e.left,!uC(e)))return;const n=s.getTypeAtLocation(e.expression);if(!n)return;if(V(s.getPropertiesOfType(n),(e=>e.valueDeclaration===t||e.valueDeclaration===t.parent))){const e=n.symbol.valueDeclaration;if(e){if(JT(e)&&pE(e.parent))return e.parent;if(mE(e))return e}}}}function h(e){if(!(null==_?void 0:_.has(e)))switch(null==_||_.add(e),e.kind){case 170:case 173:case 261:return function(e){const{typeNode:t}=x(e);if(t)return e.type?i.replaceNode(bd(e),e.type,t):i.tryInsertTypeAnnotation(bd(e),e,t),[ua.Add_annotation_of_type_0,N(t)]}(e);case 220:case 219:case 263:case 175:case 178:return function(e,t){if(e.type)return;const{typeNode:n}=x(e);if(n)return i.tryInsertTypeAnnotation(t,e,n),[ua.Add_return_type_0,N(n)]}(e,o);case 278:return function(e){if(e.isExportEquals)return;const{typeNode:t}=x(e.expression);if(!t)return;const n=vw.createUniqueName("_default");return i.replaceNodeWithNodes(o,e,[vw.createVariableStatement(void 0,vw.createVariableDeclarationList([vw.createVariableDeclaration(n,void 0,t,e.expression)],2)),vw.updateExportAssignment(e,null==e?void 0:e.modifiers,n)]),[ua.Extract_default_export_to_variable]}(e);case 264:return function(e){var t,n;const r=null==(t=e.heritageClauses)?void 0:t.find((e=>96===e.token)),a=null==r?void 0:r.types[0];if(!a)return;const{typeNode:s}=x(a.expression);if(!s)return;const c=vw.createUniqueName(e.name?e.name.text+"Base":"Anonymous",16),l=vw.createVariableStatement(void 0,vw.createVariableDeclarationList([vw.createVariableDeclaration(c,void 0,s,a.expression)],2));i.insertNodeBefore(o,e,l);const _=ds(o.text,a.end),u=(null==(n=null==_?void 0:_[_.length-1])?void 0:n.end)??a.end;return i.replaceRange(o,{pos:a.getFullStart(),end:u},c,{prefix:" "}),[ua.Extract_base_class_to_variable]}(e);case 207:case 208:return function(e){var t;const n=e.parent,r=e.parent.parent.parent;if(!n.initializer)return;let a;const s=[];if(_N(n.initializer))a={expression:{kind:3,identifier:n.initializer}};else{const e=vw.createUniqueName("dest",16);a={expression:{kind:3,identifier:e}},s.push(vw.createVariableStatement(void 0,vw.createVariableDeclarationList([vw.createVariableDeclaration(e,void 0,void 0,n.initializer)],2)))}const c=[];dF(e)?y(e,c,a):v(e,c,a);const l=new Map;for(const e of c){if(e.element.propertyName&&wN(e.element.propertyName)){const t=e.element.propertyName.expression,n=vw.getGeneratedNameForNode(t),r=vw.createVariableDeclaration(n,void 0,void 0,t),i=vw.createVariableDeclarationList([r],2),o=vw.createVariableStatement(void 0,i);s.push(o),l.set(t,n)}const n=e.element.name;if(dF(n))y(n,c,e);else if(uF(n))v(n,c,e);else{const{typeNode:i}=x(n);let o=b(e,l);if(e.element.initializer){const n=null==(t=e.element)?void 0:t.propertyName,r=vw.createUniqueName(n&&_N(n)?n.text:"temp",16);s.push(vw.createVariableStatement(void 0,vw.createVariableDeclarationList([vw.createVariableDeclaration(r,void 0,void 0,o)],2))),o=vw.createConditionalExpression(vw.createBinaryExpression(r,vw.createToken(37),vw.createIdentifier("undefined")),vw.createToken(58),e.element.initializer,vw.createToken(59),o)}const a=Fv(r,32)?[vw.createToken(95)]:void 0;s.push(vw.createVariableStatement(a,vw.createVariableDeclarationList([vw.createVariableDeclaration(n,void 0,i,o)],2)))}}r.declarationList.declarations.length>1&&s.push(vw.updateVariableStatement(r,r.modifiers,vw.updateVariableDeclarationList(r.declarationList,r.declarationList.declarations.filter((t=>t!==e.parent)))));return i.replaceNodeWithNodes(o,r,s),[ua.Extract_binding_expressions_to_variable]}(e);default:throw new Error(`Cannot find a fix for the given node ${e.kind}`)}}function y(e,t,n){for(let r=0;r=0;--e){const i=n[e].expression;0===i.kind?r=vw.createPropertyAccessChain(r,void 0,vw.createIdentifier(i.text)):1===i.kind?r=vw.createElementAccessExpression(r,t.get(i.computed)):2===i.kind&&(r=vw.createElementAccessExpression(r,i.arrayIndex))}return r}function x(e,n){if(1===t)return C(e);let i;if(th(e)){const t=s.getSignatureFromDeclaration(e);if(t){const n=s.getTypePredicateOfSignature(t);if(n)return n.type?{typeNode:D(n,dc(e,uu)??o,c(n.type)),mutatedTarget:!1}:r;i=s.getReturnTypeOfSignature(t)}}else i=s.getTypeAtLocation(e);if(!i)return r;if(2===t){n&&(i=n);const e=s.getWidenedLiteralType(i);if(s.isTypeAssignableTo(e,i))return r;i=e}const a=dc(e,uu)??o;return NN(e)&&s.requiresAddingImplicitUndefined(e,a)&&(i=s.getUnionType([s.getUndefinedType(),i],0)),{typeNode:w(i,a,c(i)),mutatedTarget:!1};function c(t){return(pE(e)||PN(e)&&Fv(e,264))&&16384&t.flags?1048576:0}}function k(e){return vw.createTypeQueryNode(JC(e))}function S(e,t,n,a,s,c,l,_){const u=[],d=[];let p;const f=dc(e,fu);for(const t of a(e))s(t)?(g(),cb(t.expression)?(u.push(k(t.expression)),d.push(t)):m(t.expression)):(p??(p=[])).push(t);return 0===d.length?r:(g(),i.replaceNode(o,e,l(d)),{typeNode:_(u),mutatedTarget:!0});function m(e){const r=vw.createUniqueName(t+"_Part"+(d.length+1),16),a=n?vw.createAsExpression(e,vw.createTypeReferenceNode("const")):e,s=vw.createVariableStatement(void 0,vw.createVariableDeclarationList([vw.createVariableDeclaration(r,void 0,void 0,a)],2));i.insertNodeBefore(o,f,s),u.push(k(r)),d.push(c(r))}function g(){p&&(m(l(p)),p=void 0)}}function T(e){return $_(e)&&Sl(e.type)}function C(e){if(NN(e))return r;if(cP(e))return{typeNode:k(e.name),mutatedTarget:!1};if(cb(e))return{typeNode:k(e),mutatedTarget:!1};if(T(e))return C(e.expression);if(fF(e)){const t=dc(e,pE);return function(e,t="temp"){const n=!!dc(e,T);return n?S(e,t,n,(e=>e.elements),LF,vw.createSpreadElement,(e=>vw.createArrayLiteralExpression(e,!0)),(e=>vw.createTupleTypeNode(e.map(vw.createRestTypeNode)))):r}(e,t&&_N(t.name)?t.name.text:void 0)}if(mF(e)){const t=dc(e,pE);return function(e,t="temp"){return S(e,t,!!dc(e,T),(e=>e.properties),lP,vw.createSpreadAssignment,(e=>vw.createObjectLiteralExpression(e,!0)),vw.createIntersectionTypeNode)}(e,t&&_N(t.name)?t.name.text:void 0)}if(pE(e)&&e.initializer)return C(e.initializer);if(AF(e)){const{typeNode:t,mutatedTarget:n}=C(e.whenTrue);if(!t)return r;const{typeNode:i,mutatedTarget:o}=C(e.whenFalse);return i?{typeNode:vw.createUnionTypeNode([t,i]),mutatedTarget:n||o}:r}return r}function w(e,t,n=0){let r=!1;const i=toe(s,e,t,gie|n,1,{moduleResolverHost:a,trackSymbol:()=>!0,reportTruncationError(){r=!0}});if(!i)return;const o=eoe(i,l,c);return r?vw.createKeywordTypeNode(133):o}function D(e,t,n=0){let r=!1;const i=noe(s,l,e,t,c,gie|n,1,{moduleResolverHost:a,trackSymbol:()=>!0,reportTruncationError(){r=!0}});return r?vw.createKeywordTypeNode(133):i}function N(e){Cw(e,1);const t=d.printNode(4,e,o);return t.length>Wu?t.substring(0,Wu-3)+"...":(Cw(e,0),t)}function F(e,t){for(;e&&e.endt.addTypeAnnotation(e.span))),hie(die,t,e,1,(t=>t.addTypeAnnotation(e.span))),hie(die,t,e,2,(t=>t.addTypeAnnotation(e.span))),hie(pie,t,e,0,(t=>t.addInlineAssertion(e.span))),hie(pie,t,e,1,(t=>t.addInlineAssertion(e.span))),hie(pie,t,e,2,(t=>t.addInlineAssertion(e.span))),hie("extract-expression",t,e,0,(t=>t.extractAsVariable(e.span))),t},getAllCodeActions:e=>X7(yie(e,0,(t=>{Z7(e,fie,(e=>{t.addTypeAnnotation(e)}))})).textChanges)});var vie="fixAwaitInSyncFunction",bie=[ua.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,ua.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,ua.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,ua.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code];function xie(e,t){const n=Kf(aQ(e,t));if(!n)return;let r;switch(n.kind){case 175:r=n.name;break;case 263:case 219:r=$X(n,100,e);break;case 220:r=$X(n,n.typeParameters?30:21,e)||me(n.parameters);break;default:return}return r&&{insertBefore:r,returnType:(i=n,i.type?i.type:pE(i.parent)&&i.parent.type&&UN(i.parent.type)?i.parent.type.type:void 0)};var i}function kie(e,t,{insertBefore:n,returnType:r}){if(r){const n=_m(r);n&&80===n.kind&&"Promise"===n.text||e.replaceNode(t,r,vw.createTypeReferenceNode("Promise",vw.createNodeArray([r])))}e.insertModifierBefore(t,134,n)}$7({errorCodes:bie,getCodeActions(e){const{sourceFile:t,span:n}=e,r=xie(t,n.start);if(!r)return;const i=ede.ChangeTracker.with(e,(e=>kie(e,t,r)));return[U7(vie,i,ua.Add_async_modifier_to_containing_function,vie,ua.Add_all_missing_async_modifiers)]},fixIds:[vie],getAllCodeActions:function(e){const t=new Set;return Y7(e,bie,((n,r)=>{const i=xie(r.file,r.start);i&&kx(t,cJ(i.insertBefore))&&kie(n,e.sourceFile,i)}))}});var Sie=[ua._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,ua._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],Tie="fixPropertyOverrideAccessor";function Cie(e,t,n,r,i){let o,a;if(r===ua._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)o=t,a=t+n;else if(r===ua._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const n=i.program.getTypeChecker(),r=aQ(e,t).parent;if(wN(r))return;_n.assert(p_(r),"error span of fixPropertyOverrideAccessor should only be on an accessor");const s=r.parent;_n.assert(d_(s),"erroneous accessors should only be inside classes");const c=vh(s);if(!c)return;const l=sh(c.expression),_=jF(l)?l.symbol:n.getSymbolAtLocation(l);if(!_)return;const u=n.getDeclaredTypeOfSymbol(_),d=n.getPropertyOfType(u,gc(jp(r.name)));if(!d||!d.valueDeclaration)return;o=d.valueDeclaration.pos,a=d.valueDeclaration.end,e=bd(d.valueDeclaration)}else _n.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+r);return hoe(e,i.program,o,a,i,ua.Generate_get_and_set_accessors.message)}$7({errorCodes:Sie,getCodeActions(e){const t=Cie(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[U7(Tie,t,ua.Generate_get_and_set_accessors,Tie,ua.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[Tie],getAllCodeActions:e=>Y7(e,Sie,((t,n)=>{const r=Cie(n.file,n.start,n.length,n.code,e);if(r)for(const n of r)t.pushRaw(e.sourceFile,n)}))});var wie="inferFromUsage",Die=[ua.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,ua.Variable_0_implicitly_has_an_1_type.code,ua.Parameter_0_implicitly_has_an_1_type.code,ua.Rest_parameter_0_implicitly_has_an_any_type.code,ua.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,ua._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,ua.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,ua.Member_0_implicitly_has_an_1_type.code,ua.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,ua.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,ua.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,ua.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,ua.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,ua._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,ua.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,ua.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,ua.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function Nie(e,t){switch(e){case ua.Parameter_0_implicitly_has_an_1_type.code:case ua.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return RN(Kf(t))?ua.Infer_type_of_0_from_usage:ua.Infer_parameter_types_from_usage;case ua.Rest_parameter_0_implicitly_has_an_any_type.code:case ua.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return ua.Infer_parameter_types_from_usage;case ua.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return ua.Infer_this_type_of_0_from_usage;default:return ua.Infer_type_of_0_from_usage}}function Fie(e,t,n,r,i,o,a,s,c){if(!Yl(n.kind)&&80!==n.kind&&26!==n.kind&&110!==n.kind)return;const{parent:l}=n,_=See(t,i,c,s);switch(r=function(e){switch(e){case ua.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return ua.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case ua.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return ua.Variable_0_implicitly_has_an_1_type.code;case ua.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return ua.Parameter_0_implicitly_has_an_1_type.code;case ua.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return ua.Rest_parameter_0_implicitly_has_an_any_type.code;case ua.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return ua.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case ua._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return ua._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case ua.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return ua.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case ua.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return ua.Member_0_implicitly_has_an_1_type.code}return e}(r)){case ua.Member_0_implicitly_has_an_1_type.code:case ua.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(pE(l)&&a(l)||PN(l)||EN(l))return Eie(e,_,t,l,i,s,o),_.writeFixes(e),l;if(gF(l)){const n=DZ(Lie(l.name,i,o),l,i,s);if(n){const r=vw.createJSDocTypeTag(void 0,vw.createJSDocTypeExpression(n),void 0);e.addJSDocTags(t,tt(l.parent.parent,QF),[r])}return _.writeFixes(e),l}return;case ua.Variable_0_implicitly_has_an_1_type.code:{const t=i.getTypeChecker().getSymbolAtLocation(n);return t&&t.valueDeclaration&&pE(t.valueDeclaration)&&a(t.valueDeclaration)?(Eie(e,_,bd(t.valueDeclaration),t.valueDeclaration,i,s,o),_.writeFixes(e),t.valueDeclaration):void 0}}const u=Kf(n);if(void 0===u)return;let d;switch(r){case ua.Parameter_0_implicitly_has_an_1_type.code:if(RN(u)){Pie(e,_,t,u,i,s,o),d=u;break}case ua.Rest_parameter_0_implicitly_has_an_any_type.code:if(a(u)){const n=tt(l,NN);!function(e,t,n,r,i,o,a,s){if(!_N(r.name))return;const c=function(e,t,n,r){const i=jie(e,t,n,r);return i&&Rie(n,i,r).parameters(e)||e.parameters.map((e=>({declaration:e,type:_N(e.name)?Lie(e.name,n,r):n.getTypeChecker().getAnyType()})))}(i,n,o,s);if(_n.assert(i.parameters.length===c.length,"Parameter count and inference count should match"),Em(i))Iie(e,n,c,o,a);else{const r=TF(i)&&!$X(i,21,n);r&&e.insertNodeBefore(n,me(i.parameters),vw.createToken(21));for(const{declaration:r,type:i}of c)!r||r.type||r.initializer||Aie(e,t,n,r,i,o,a);r&&e.insertNodeAfter(n,ye(i.parameters),vw.createToken(22))}}(e,_,t,n,u,i,s,o),d=n}break;case ua.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case ua._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:jN(u)&&_N(u.name)&&(Aie(e,_,t,u,Lie(u.name,i,o),i,s),d=u);break;case ua.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:RN(u)&&(Pie(e,_,t,u,i,s,o),d=u);break;case ua.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:ede.isThisTypeAnnotatable(u)&&a(u)&&(!function(e,t,n,r,i,o){const a=jie(n,t,r,o);if(!a||!a.length)return;const s=Rie(r,a,o).thisParameter(),c=DZ(s,n,r,i);if(!c)return;Em(n)?function(e,t,n,r){e.addJSDocTags(t,n,[vw.createJSDocThisTag(void 0,vw.createJSDocTypeExpression(r))])}(e,t,n,c):e.tryInsertThisTypeAnnotation(t,n,c)}(e,t,u,i,s,o),d=u);break;default:return _n.fail(String(r))}return _.writeFixes(e),d}function Eie(e,t,n,r,i,o,a){_N(r.name)&&Aie(e,t,n,r,Lie(r.name,i,a),i,o)}function Pie(e,t,n,r,i,o,a){const s=pe(r.parameters);if(s&&_N(r.name)&&_N(s.name)){let c=Lie(r.name,i,a);c===i.getTypeChecker().getAnyType()&&(c=Lie(s.name,i,a)),Em(r)?Iie(e,n,[{declaration:s,type:c}],i,o):Aie(e,t,n,s,c,i,o)}}function Aie(e,t,n,r,i,o,a){const s=DZ(i,r,o,a);if(s)if(Em(n)&&172!==r.kind){const t=pE(r)?et(r.parent.parent,GF):r;if(!t)return;const i=vw.createJSDocTypeExpression(s),o=jN(r)?vw.createJSDocReturnTag(void 0,i,void 0):vw.createJSDocTypeTag(void 0,i,void 0);e.addJSDocTags(n,t,[o])}else(function(e,t,n,r,i,o){const a=poe(e,o);if(a&&r.tryInsertTypeAnnotation(n,t,a.typeNode))return _(a.symbols,(e=>i.addImportFromExportedSymbol(e,!0))),!0;return!1})(s,r,n,e,t,xk(o.getCompilerOptions()))||e.tryInsertTypeAnnotation(n,r,s)}function Iie(e,t,n,r,i){const o=n.length&&n[0].declaration.parent;if(!o)return;const a=R(n,(e=>{const t=e.declaration;if(t.initializer||rl(t)||!_N(t.name))return;const n=e.type&&DZ(e.type,t,r,i);if(n){return Cw(vw.cloneNode(t.name),7168),{name:vw.cloneNode(t.name),param:t,isOptional:!!e.isOptional,typeNode:n}}}));if(a.length)if(TF(o)||SF(o)){const n=TF(o)&&!$X(o,21,t);n&&e.insertNodeBefore(t,me(o.parameters),vw.createToken(21)),_(a,(({typeNode:n,param:r})=>{const i=vw.createJSDocTypeTag(void 0,vw.createJSDocTypeExpression(n)),o=vw.createJSDocComment(void 0,[i]);e.insertNodeAt(t,r.getStart(t),o,{suffix:" "})})),n&&e.insertNodeAfter(t,ye(o.parameters),vw.createToken(22))}else{const n=N(a,(({name:e,typeNode:t,isOptional:n})=>vw.createJSDocParameterTag(void 0,e,!!n,vw.createJSDocTypeExpression(t),!1,void 0)));e.addJSDocTags(t,o,n)}}function Oie(e,t,n){return R(Ace.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n),(e=>e.kind!==Ace.EntryKind.Span?et(e.node,_N):void 0))}function Lie(e,t,n){return Rie(t,Oie(e,t,n),n).single()}function jie(e,t,n,r){let i;switch(e.kind){case 177:i=$X(e,137,t);break;case 220:case 219:const n=e.parent;i=(pE(n)||PN(n))&&_N(n.name)?n.name:e.name;break;case 263:case 175:case 174:i=e.name}if(i)return Oie(i,n,r)}function Rie(e,t,n){const r=e.getTypeChecker(),i={string:()=>r.getStringType(),number:()=>r.getNumberType(),Array:e=>r.createArrayType(e),Promise:e=>r.createPromiseType(e)},o=[r.getStringType(),r.getNumberType(),r.createArrayType(r.getAnyType()),r.createPromiseType(r.getAnyType())];return{single:function(){return f(c(t))},parameters:function(i){if(0===t.length||!i.parameters)return;const o={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const e of t)n.throwIfCancellationRequested(),u(e,o);const a=[...o.constructs||[],...o.calls||[]];return i.parameters.map(((t,o)=>{const s=[],l=Ju(t);let _=!1;for(const e of a)if(e.argumentTypes.length<=o)_=Em(i),s.push(r.getUndefinedType());else if(l)for(let t=o;t{t.has(n)||t.set(n,[]),t.get(n).push(e)}));const n=new Map;return t.forEach(((e,t)=>{n.set(t,a(e))})),{isNumber:e.some((e=>e.isNumber)),isString:e.some((e=>e.isString)),isNumberOrString:e.some((e=>e.isNumberOrString)),candidateTypes:A(e,(e=>e.candidateTypes)),properties:n,calls:A(e,(e=>e.calls)),constructs:A(e,(e=>e.constructs)),numberIndex:_(e,(e=>e.numberIndex)),stringIndex:_(e,(e=>e.stringIndex)),candidateThisTypes:A(e,(e=>e.candidateThisTypes)),inferredTypes:void 0}}function c(e){const t={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const r of e)n.throwIfCancellationRequested(),u(r,t);return m(t)}function u(e,t){for(;fb(e);)e=e.parent;switch(e.parent.kind){case 245:!function(e,t){v(t,yF(e)?r.getVoidType():r.getAnyType())}(e,t);break;case 226:t.isNumber=!0;break;case 225:!function(e,t){switch(e.operator){case 46:case 47:case 41:case 55:t.isNumber=!0;break;case 40:t.isNumberOrString=!0}}(e.parent,t);break;case 227:!function(e,t,n){switch(t.operatorToken.kind){case 43:case 42:case 44:case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 66:case 68:case 67:case 69:case 70:case 74:case 75:case 79:case 71:case 73:case 72:case 41:case 30:case 33:case 32:case 34:const i=r.getTypeAtLocation(t.left===e?t.right:t.left);98304&i.flags?v(n,i):n.isNumber=!0;break;case 65:case 40:const o=r.getTypeAtLocation(t.left===e?t.right:t.left);98304&o.flags?v(n,o):67648&o.flags?n.isNumber=!0:12583968&o.flags?n.isString=!0:1&o.flags||(n.isNumberOrString=!0);break;case 64:case 35:case 37:case 38:case 36:case 77:case 78:case 76:v(n,r.getTypeAtLocation(t.left===e?t.right:t.left));break;case 103:e===t.left&&(n.isString=!0);break;case 57:case 61:e!==t.left||261!==e.parent.parent.kind&&!ob(e.parent.parent,!0)||v(n,r.getTypeAtLocation(t.right))}}(e,e.parent,t);break;case 297:case 298:!function(e,t){v(t,r.getTypeAtLocation(e.parent.parent.expression))}(e.parent,t);break;case 214:case 215:e.parent.expression===e?function(e,t){const n={argumentTypes:[],return_:{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}};if(e.arguments)for(const t of e.arguments)n.argumentTypes.push(r.getTypeAtLocation(t));u(e,n.return_),214===e.kind?(t.calls||(t.calls=[])).push(n):(t.constructs||(t.constructs=[])).push(n)}(e.parent,t):d(e,t);break;case 212:!function(e,t){const n=mc(e.name.text);t.properties||(t.properties=new Map);const r=t.properties.get(n)||{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};u(e,r),t.properties.set(n,r)}(e.parent,t);break;case 213:!function(e,t,n){if(t===e.argumentExpression)return void(n.isNumberOrString=!0);{const t=r.getTypeAtLocation(e.argumentExpression),i={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};u(e,i),67648&t.flags?n.numberIndex=i:n.stringIndex=i}}(e.parent,e,t);break;case 304:case 305:!function(e,t){const n=pE(e.parent.parent)?e.parent.parent:e.parent;b(t,r.getTypeAtLocation(n))}(e.parent,t);break;case 173:!function(e,t){b(t,r.getTypeAtLocation(e.parent))}(e.parent,t);break;case 261:{const{name:n,initializer:i}=e.parent;if(e===n){i&&v(t,r.getTypeAtLocation(i));break}}default:return d(e,t)}}function d(e,t){bm(e)&&v(t,r.getContextualType(e))}function p(e){return f(m(e))}function f(e){if(!e.length)return r.getAnyType();const t=r.getUnionType([r.getStringType(),r.getNumberType()]);let n=function(e,t){const n=[];for(const r of e)for(const{high:e,low:i}of t)e(r)&&(_n.assert(!i(r),"Priority can't have both low and high"),n.push(i));return e.filter((e=>n.every((t=>!t(e)))))}(e,[{high:e=>e===r.getStringType()||e===r.getNumberType(),low:e=>e===t},{high:e=>!(17&e.flags),low:e=>!!(17&e.flags)},{high:e=>!(29&e.flags||16&yx(e)),low:e=>!!(16&yx(e))}]);const i=n.filter((e=>16&yx(e)));return i.length&&(n=n.filter((e=>!(16&yx(e)))),n.push(function(e){if(1===e.length)return e[0];const t=[],n=[],i=[],o=[];let a=!1,s=!1;const c=We();for(const l of e){for(const e of r.getPropertiesOfType(l))c.add(e.escapedName,e.valueDeclaration?r.getTypeOfSymbolAtLocation(e,e.valueDeclaration):r.getAnyType());t.push(...r.getSignaturesOfType(l,0)),n.push(...r.getSignaturesOfType(l,1));const e=r.getIndexInfoOfType(l,0);e&&(i.push(e.type),a=a||e.isReadonly);const _=r.getIndexInfoOfType(l,1);_&&(o.push(_.type),s=s||_.isReadonly)}const l=U(c,((t,n)=>{const i=n.lengthr.getBaseTypeOfLiteralType(e))),u=(null==(a=e.calls)?void 0:a.length)?g(e):void 0;return u&&_?c.push(r.getUnionType([u,..._],2)):(u&&c.push(u),l(_)&&c.push(..._)),c.push(...function(e){if(!e.properties||!e.properties.size)return[];const t=o.filter((t=>function(e,t){return!!t.properties&&!id(t.properties,((t,n)=>{const i=r.getTypeOfPropertyOfType(e,n);if(!i)return!0;if(t.calls){return!r.getSignaturesOfType(i,0).length||!r.isTypeAssignableTo(i,(o=t.calls,r.createAnonymousType(void 0,Xu(),[y(o)],s,s)))}return!r.isTypeAssignableTo(i,p(t));var o}))}(t,e)));if(0function(e,t){if(!(4&yx(e)&&t.properties))return e;const n=e.target,o=ve(n.typeParameters);if(!o)return e;const a=[];return t.properties.forEach(((e,t)=>{const i=r.getTypeOfPropertyOfType(n,t);_n.assert(!!i,"generic should have all the properties of its reference."),a.push(...h(i,p(e),o))})),i[e.symbol.escapedName](f(a))}(t,e)));return[]}(e)),c}function g(e){const t=new Map;e.properties&&e.properties.forEach(((e,n)=>{const i=r.createSymbol(4,n);i.links.type=p(e),t.set(n,i)}));const n=e.calls?[y(e.calls)]:[],i=e.constructs?[y(e.constructs)]:[],o=e.stringIndex?[r.createIndexInfo(r.getStringType(),p(e.stringIndex),!1)]:[];return r.createAnonymousType(void 0,t,n,i,o)}function h(e,t,n){if(e===n)return[t];if(402653184&e.flags)return A(e.types,(e=>h(e,t,n)));if(4&yx(e)&&4&yx(t)){const i=r.getTypeArguments(e),o=r.getTypeArguments(t),a=[];if(i&&o)for(let e=0;ee.argumentTypes.length)));for(let i=0;ie.argumentTypes[i]||r.getUndefinedType()))),e.some((e=>void 0===e.argumentTypes[i]))&&(n.flags|=16777216),t.push(n)}const i=p(a(e.map((e=>e.return_))));return r.createSignature(void 0,void 0,void 0,t,i,void 0,n,0)}function v(e,t){!t||1&t.flags||262144&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function b(e,t){!t||1&t.flags||262144&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}$7({errorCodes:Die,getCodeActions(e){const{sourceFile:t,program:n,span:{start:r},errorCode:i,cancellationToken:o,host:a,preferences:s}=e,c=aQ(t,r);let l;const _=ede.ChangeTracker.with(e,(e=>{l=Fie(e,t,c,i,n,o,it,a,s)})),u=l&&wc(l);return u&&0!==_.length?[U7(wie,_,[Nie(i,c),Xd(u)],wie,ua.Infer_all_types_from_usage)]:void 0},fixIds:[wie],getAllCodeActions(e){const{sourceFile:t,program:n,cancellationToken:r,host:i,preferences:o}=e,a=ZQ();return Y7(e,Die,((e,s)=>{Fie(e,t,aQ(s.file,s.start),s.code,n,r,a,i,o)}))}});var Mie="fixReturnTypeInAsyncFunction",Bie=[ua.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];function Jie(e,t,n){if(Em(e))return;const r=dc(aQ(e,n),a_),i=null==r?void 0:r.type;if(!i)return;const o=t.getTypeFromTypeNode(i),a=t.getAwaitedType(o)||t.getVoidType(),s=t.typeToTypeNode(a,i,void 0);return s?{returnTypeNode:i,returnType:o,promisedTypeNode:s,promisedType:a}:void 0}function zie(e,t,n,r){e.replaceNode(t,n,vw.createTypeReferenceNode("Promise",[r]))}$7({errorCodes:Bie,fixIds:[Mie],getCodeActions:function(e){const{sourceFile:t,program:n,span:r}=e,i=n.getTypeChecker(),o=Jie(t,n.getTypeChecker(),r.start);if(!o)return;const{returnTypeNode:a,returnType:s,promisedTypeNode:c,promisedType:l}=o,_=ede.ChangeTracker.with(e,(e=>zie(e,t,a,c)));return[U7(Mie,_,[ua.Replace_0_with_Promise_1,i.typeToString(s),i.typeToString(l)],Mie,ua.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>Y7(e,Bie,((t,n)=>{const r=Jie(n.file,e.program.getTypeChecker(),n.start);r&&zie(t,n.file,r.returnTypeNode,r.promisedTypeNode)}))});var qie="disableJsDiagnostics",Uie="disableJsDiagnostics",Vie=R(Object.keys(ua),(e=>{const t=ua[e];return 1===t.category?t.code:void 0}));function Wie(e,t,n,r){const{line:i}=qa(t,n);r&&!J(r,i)||e.insertCommentBeforeLine(t,i,n," @ts-ignore")}function $ie(e,t,n,r,i,o,a){const s=e.symbol.members;for(const c of t)s.has(c.escapedName)||Gie(c,e,n,r,i,o,a,void 0)}function Hie(e){return{trackSymbol:()=>!1,moduleResolverHost:cY(e.program,e.host)}}$7({errorCodes:Vie,getCodeActions:function(e){const{sourceFile:t,program:n,span:r,host:i,formatContext:o}=e;if(!Em(t)||!iT(t,n.getCompilerOptions()))return;const a=t.checkJsDirective?"":YY(i,o.options),s=[q7(qie,[Q7(t.fileName,[KQ(t.checkJsDirective?Hs(t.checkJsDirective.pos,t.checkJsDirective.end):$s(0,0),`// @ts-nocheck${a}`)])],ua.Disable_checking_for_this_file)];return ede.isValidLocationToAddComment(t,r.start)&&s.unshift(U7(qie,ede.ChangeTracker.with(e,(e=>Wie(e,t,r.start))),ua.Ignore_this_error_message,Uie,ua.Add_ts_ignore_to_all_error_messages)),s},fixIds:[Uie],getAllCodeActions:e=>{const t=new Set;return Y7(e,Vie,((e,n)=>{ede.isValidLocationToAddComment(n.file,n.start)&&Wie(e,n.file,n.start,t)}))}});var Kie=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(Kie||{});function Gie(e,t,n,r,i,o,a,c,_=3,u=!1){const d=e.getDeclarations(),p=pe(d),f=r.program.getTypeChecker(),m=xk(r.program.getCompilerOptions()),g=(null==p?void 0:p.kind)??172,h=function(e,t){if(262144&ox(e)){const t=e.links.nameType;if(t&&lC(t))return vw.createIdentifier(gc(_C(t)))}return JC(wc(t),!1)}(e,p),y=p?zv(p):0;let v=256&y;v|=1&y?1:4&y?4:0,p&&f_(p)&&(v|=512);const b=function(){let e;v&&(e=ie(e,vw.createModifiersFromModifierFlags(v)));r.program.getCompilerOptions().noImplicitOverride&&p&&Iv(p)&&(e=re(e,vw.createToken(164)));return e&&vw.createNodeArray(e)}(),x=f.getWidenedType(f.getTypeOfSymbolAtLocation(e,t)),k=!!(16777216&e.flags),S=!!(33554432&t.flags)||u,T=fY(n,i),C=1|(0===T?268435456:0);switch(g){case 172:case 173:let n=f.typeToTypeNode(x,t,C,8,Hie(r));if(o){const e=poe(n,m);e&&(n=e.typeNode,moe(o,e.symbols))}a(vw.createPropertyDeclaration(b,p?D(h):e.getName(),k&&2&_?vw.createToken(58):void 0,n,void 0));break;case 178:case 179:{_n.assertIsDefined(d);let e=f.typeToTypeNode(x,t,C,void 0,Hie(r));const n=fv(d,p),i=n.secondAccessor?[n.firstAccessor,n.secondAccessor]:[n.firstAccessor];if(o){const t=poe(e,m);t&&(e=t.typeNode,moe(o,t.symbols))}for(const t of i)if(jN(t))a(vw.createGetAccessorDeclaration(b,D(h),s,E(e),F(c,T,S)));else{_n.assertNode(t,RN,"The counterpart to a getter should be a setter");const n=av(t),r=n&&_N(n.name)?hc(n.name):void 0;a(vw.createSetAccessorDeclaration(b,D(h),aoe(1,[r],[E(e)],1,!1),F(c,T,S)))}break}case 174:case 175:_n.assertIsDefined(d);const i=x.isUnion()?A(x.types,(e=>e.getCallSignatures())):x.getCallSignatures();if(!V(i))break;if(1===d.length){_n.assert(1===i.length,"One declaration implies one signature");const e=i[0];w(T,e,b,D(h),F(c,T,S));break}for(const e of i)e.declaration&&33554432&e.declaration.flags||w(T,e,b,D(h));if(!S)if(d.length>i.length){const e=f.getSignatureFromDeclaration(d[d.length-1]);w(T,e,b,D(h),F(c,T))}else _n.assert(d.length===i.length,"Declarations and signatures should match count"),a(function(e,t,n,r,i,o,a,s,c){let _=r[0],u=r[0].minArgumentCount,d=!1;for(const e of r)u=Math.min(e.minArgumentCount,u),mJ(e)&&(d=!0),e.parameters.length>=_.parameters.length&&(!mJ(e)||mJ(_))&&(_=e);const p=_.parameters.length-(mJ(_)?1:0),f=_.parameters.map((e=>e.name)),m=aoe(p,f,void 0,u,!1);if(d){const e=vw.createParameterDeclaration(void 0,vw.createToken(26),f[p]||"rest",p>=u?vw.createToken(58):void 0,vw.createArrayTypeNode(vw.createKeywordTypeNode(159)),void 0);m.push(e)}return function(e,t,n,r,i,o,a,s){return vw.createMethodDeclaration(e,void 0,t,n?vw.createToken(58):void 0,r,i,o,s||soe(a))}(a,i,o,void 0,m,function(e,t,n,r){if(l(e)){const i=t.getUnionType(N(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(i,r,1,8,Hie(n))}}(r,e,t,n),s,c)}(f,r,t,i,D(h),k&&!!(1&_),b,T,c))}function w(e,n,i,s,c){const l=Xie(175,r,e,n,c,s,i,k&&!!(1&_),t,o);l&&a(l)}function D(e){return _N(e)&&"constructor"===e.escapedText?vw.createComputedPropertyName(vw.createStringLiteral(hc(e),0===T)):JC(e,!1)}function F(e,t,n){return n?void 0:JC(e,!1)||soe(t)}function E(e){return JC(e,!1)}}function Xie(e,t,n,r,i,o,a,s,c,l){const _=t.program,u=_.getTypeChecker(),d=xk(_.getCompilerOptions()),p=Em(c),f=524545|(0===n?268435456:0),m=u.signatureToSignatureDeclaration(r,e,c,f,8,Hie(t));if(!m)return;let g=p?void 0:m.typeParameters,h=m.parameters,y=p?void 0:JC(m.type);if(l){if(g){const e=E(g,(e=>{let t=e.constraint,n=e.default;if(t){const e=poe(t,d);e&&(t=e.typeNode,moe(l,e.symbols))}if(n){const e=poe(n,d);e&&(n=e.typeNode,moe(l,e.symbols))}return vw.updateTypeParameterDeclaration(e,e.modifiers,e.name,t,n)}));g!==e&&(g=NI(vw.createNodeArray(e,g.hasTrailingComma),g))}const e=E(h,(e=>{let t=p?void 0:e.type;if(t){const e=poe(t,d);e&&(t=e.typeNode,moe(l,e.symbols))}return vw.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,p?void 0:e.questionToken,t,e.initializer)}));if(h!==e&&(h=NI(vw.createNodeArray(e,h.hasTrailingComma),h)),y){const e=poe(y,d);e&&(y=e.typeNode,moe(l,e.symbols))}}const v=s?vw.createToken(58):void 0,b=m.asteriskToken;return SF(m)?vw.updateFunctionExpression(m,a,m.asteriskToken,et(o,_N),g,h,y,i??m.body):TF(m)?vw.updateArrowFunction(m,a,g,h,y,m.equalsGreaterThanToken,i??m.body):IN(m)?vw.updateMethodDeclaration(m,a,b,o??vw.createIdentifier(""),v,g,h,y,i):mE(m)?vw.updateFunctionDeclaration(m,a,m.asteriskToken,et(o,_N),g,h,y,i??m.body):void 0}function Qie(e,t,n,r,i,o,a){const s=fY(t.sourceFile,t.preferences),c=xk(t.program.getCompilerOptions()),l=Hie(t),_=t.program.getTypeChecker(),u=Em(a),{typeArguments:d,arguments:p,parent:f}=r,m=u?void 0:_.getContextualType(r),g=N(p,(e=>_N(e)?e.text:gF(e)&&_N(e.name)?e.name.text:void 0)),h=u?[]:N(p,(e=>_.getTypeAtLocation(e))),{argumentTypeNodes:y,argumentTypeParameters:v}=function(e,t,n,r,i,o,a,s){const c=[],l=new Map;for(let _=0;_e[0]))),i=new Map(t);if(n){const i=n.filter((n=>!t.some((t=>{var r;return e.getTypeAtLocation(n)===(null==(r=t[1])?void 0:r.argumentType)})))),o=r.size+i.length;for(let e=0;r.size{var t;return vw.createTypeParameterDeclaration(void 0,e,null==(t=i.get(e))?void 0:t.constraint)}))}(_,v,d),S=aoe(p.length,g,y,void 0,u),T=u||void 0===m?void 0:_.typeToTypeNode(m,a,void 0,void 0,l);switch(e){case 175:return vw.createMethodDeclaration(b,x,i,void 0,k,S,T,soe(s));case 174:return vw.createMethodSignature(b,i,void 0,k,S,void 0===T?vw.createKeywordTypeNode(159):T);case 263:return _n.assert("string"==typeof i||_N(i),"Unexpected name"),vw.createFunctionDeclaration(b,x,i,k,S,T,coe(ua.Function_not_implemented.message,s));default:_n.fail("Unexpected kind")}}function Yie(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function Zie(e,t,n,r,i,o,a,s){const c=e.typeToTypeNode(n,r,o,a,s);if(c)return eoe(c,t,i)}function eoe(e,t,n){const r=poe(e,n);return r&&(moe(t,r.symbols),e=r.typeNode),JC(e)}function toe(e,t,n,r,i,o){let a=e.typeToTypeNode(t,n,r,i,o);if(a){if(qN(a)){const n=t;if(n.typeArguments&&a.typeArguments){const t=function(e,t){var n;_n.assert(t.typeArguments);const r=t.typeArguments,i=t.target;for(let t=0;te===r[t])))return t}return r.length}(e,n);if(t=r?vw.createToken(58):void 0,i?void 0:(null==n?void 0:n[s])||vw.createKeywordTypeNode(159),void 0);o.push(l)}return o}function soe(e){return coe(ua.Method_not_implemented.message,e)}function coe(e,t){return vw.createBlock([vw.createThrowStatement(vw.createNewExpression(vw.createIdentifier("Error"),void 0,[vw.createStringLiteral(e,0===t)]))],!0)}function loe(e,t,n){const r=Wf(t);if(!r)return;const i=doe(r,"compilerOptions");if(void 0===i)return void e.insertNodeAtObjectStart(t,r,uoe("compilerOptions",vw.createObjectLiteralExpression(n.map((([e,t])=>uoe(e,t))),!0)));const o=i.initializer;if(mF(o))for(const[r,i]of n){const n=doe(o,r);void 0===n?e.insertNodeAtObjectStart(t,o,uoe(r,i)):e.replaceNode(t,n.initializer,i)}}function _oe(e,t,n,r){loe(e,t,[[n,r]])}function uoe(e,t){return vw.createPropertyAssignment(vw.createStringLiteral(e),t)}function doe(e,t){return y(e.properties,(e=>sP(e)&&!!e.name&&HD(e.name)&&e.name.text===t))}function poe(e,t){let n;const r=yJ(e,(function e(r){if(df(r)&&r.qualifier){const i=lb(r.qualifier);if(!i.symbol)return NJ(r,e,void 0);const o=e0(i.symbol,t),a=o!==i.text?foe(r.qualifier,vw.createIdentifier(o)):r.qualifier;n=re(n,i.symbol);const s=vJ(r.typeArguments,e,x_);return vw.createTypeReferenceNode(a,s)}return NJ(r,e,void 0)}),x_);if(n&&r)return{typeNode:r,symbols:n}}function foe(e,t){return 80===e.kind?t:vw.createQualifiedName(foe(e.left,t),e.right)}function moe(e,t){t.forEach((t=>e.addImportFromExportedSymbol(t,!0)))}function goe(e,t){const n=Es(t);let r=aQ(e,t.start);for(;r.ende.replaceNode(t,n,r)));return q7(Toe,i,[ua.Replace_import_with_0,i[0].textChanges[0].newText])}function woe(e,t){const n=e.program.getTypeChecker().getTypeAtLocation(t);if(!(n.symbol&&Qu(n.symbol)&&n.symbol.links.originatingImport))return[];const r=[],i=n.symbol.links.originatingImport;if(_f(i)||ae(r,function(e,t){const n=bd(t),r=Tg(t),i=e.program.getCompilerOptions(),o=[];return o.push(Coe(e,n,t,_Y(r.name,void 0,t.moduleSpecifier,fY(n,e.preferences)))),1===kk(i)&&o.push(Coe(e,n,t,vw.createImportEqualsDeclaration(void 0,!1,r.name,vw.createExternalModuleReference(t.moduleSpecifier)))),o}(e,i)),W_(t)&&(!Tc(t.parent)||t.parent.name!==t)){const n=e.sourceFile,i=ede.ChangeTracker.with(e,(e=>e.replaceNode(n,t,vw.createPropertyAccessExpression(t,"default"),{})));r.push(q7(Toe,i,ua.Use_synthetic_default_member))}return r}$7({errorCodes:[ua.This_expression_is_not_callable.code,ua.This_expression_is_not_constructable.code],getCodeActions:function(e){const t=e.sourceFile,n=ua.This_expression_is_not_callable.code===e.errorCode?214:215,r=dc(aQ(t,e.span.start),(e=>e.kind===n));if(!r)return[];const i=r.expression;return woe(e,i)}}),$7({errorCodes:[ua.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,ua.Type_0_does_not_satisfy_the_constraint_1.code,ua.Type_0_is_not_assignable_to_type_1.code,ua.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,ua.Type_predicate_0_is_not_assignable_to_1.code,ua.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,ua._0_index_type_1_is_not_assignable_to_2_index_type_3.code,ua.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,ua.Property_0_in_type_1_is_not_assignable_to_type_2.code,ua.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,ua.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:function(e){const t=dc(aQ(e.sourceFile,e.span.start),(t=>t.getStart()===e.span.start&&t.getEnd()===e.span.start+e.span.length));if(!t)return[];return woe(e,t)}});var Doe="strictClassInitialization",Noe="addMissingPropertyDefiniteAssignmentAssertions",Foe="addMissingPropertyUndefinedType",Eoe="addMissingPropertyInitializer",Poe=[ua.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function Aoe(e,t){const n=aQ(e,t);if(_N(n)&&PN(n.parent)){const e=mv(n.parent);if(e)return{type:e,prop:n.parent,isJs:Em(n.parent)}}}function Ioe(e,t,n){WC(n);const r=vw.updatePropertyDeclaration(n,n.modifiers,n.name,vw.createToken(54),n.type,n.initializer);e.replaceNode(t,n,r)}function Ooe(e,t,n){const r=vw.createKeywordTypeNode(157),i=YN(n.type)?n.type.types.concat(r):[n.type,r],o=vw.createUnionTypeNode(i);n.isJs?e.addJSDocTags(t,n.prop,[vw.createJSDocTypeTag(void 0,vw.createJSDocTypeExpression(o))]):e.replaceNode(t,n.type,o)}function Loe(e,t,n,r){WC(n);const i=vw.updatePropertyDeclaration(n,n.modifiers,n.name,n.questionToken,n.type,r);e.replaceNode(t,n,i)}function joe(e,t){return Roe(e,e.getTypeFromTypeNode(t.type))}function Roe(e,t){if(8192&t.flags)return t===e.getFalseType()||t===e.getFalseType(!0)?vw.createFalse():vw.createTrue();if(t.isStringLiteral())return vw.createStringLiteral(t.value);if(t.isNumberLiteral())return vw.createNumericLiteral(t.value);if(4096&t.flags)return vw.createBigIntLiteral(t.value);if(t.isUnion())return d(t.types,(t=>Roe(e,t)));if(t.isClass()){const e=hx(t.symbol);if(!e||Fv(e,64))return;const n=ov(e);if(n&&n.parameters.length)return;return vw.createNewExpression(vw.createIdentifier(t.symbol.name),void 0,void 0)}return e.isArrayLikeType(t)?vw.createArrayLiteralExpression():void 0}$7({errorCodes:Poe,getCodeActions:function(e){const t=Aoe(e.sourceFile,e.span.start);if(!t)return;const n=[];return re(n,function(e,t){const n=ede.ChangeTracker.with(e,(n=>Ooe(n,e.sourceFile,t)));return U7(Doe,n,[ua.Add_undefined_type_to_property_0,t.prop.name.getText()],Foe,ua.Add_undefined_type_to_all_uninitialized_properties)}(e,t)),re(n,function(e,t){if(t.isJs)return;const n=ede.ChangeTracker.with(e,(n=>Ioe(n,e.sourceFile,t.prop)));return U7(Doe,n,[ua.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],Noe,ua.Add_definite_assignment_assertions_to_all_uninitialized_properties)}(e,t)),re(n,function(e,t){if(t.isJs)return;const n=e.program.getTypeChecker(),r=joe(n,t.prop);if(!r)return;const i=ede.ChangeTracker.with(e,(n=>Loe(n,e.sourceFile,t.prop,r)));return U7(Doe,i,[ua.Add_initializer_to_property_0,t.prop.name.getText()],Eoe,ua.Add_initializers_to_all_uninitialized_properties)}(e,t)),n},fixIds:[Noe,Foe,Eoe],getAllCodeActions:e=>Y7(e,Poe,((t,n)=>{const r=Aoe(n.file,n.start);if(r)switch(e.fixId){case Noe:Ioe(t,n.file,r.prop);break;case Foe:Ooe(t,n.file,r);break;case Eoe:const i=joe(e.program.getTypeChecker(),r.prop);if(!i)return;Loe(t,n.file,r.prop,i);break;default:_n.fail(JSON.stringify(e.fixId))}}))});var Moe="requireInTs",Boe=[ua.require_call_may_be_converted_to_an_import.code];function Joe(e,t,n){const{allowSyntheticDefaults:r,defaultImportName:i,namedImports:o,statement:a,moduleSpecifier:s}=n;e.replaceNode(t,a,i&&!r?vw.createImportEqualsDeclaration(void 0,!1,i,vw.createExternalModuleReference(s)):vw.createImportDeclaration(void 0,vw.createImportClause(void 0,i,o),s,void 0))}function zoe(e,t,n,r){const{parent:i}=aQ(e,n);Lm(i,!0)||_n.failBadSyntaxKind(i);const o=tt(i.parent,pE),a=fY(e,r),s=et(o.name,_N),c=uF(o.name)?function(e){const t=[];for(const n of e.elements){if(!_N(n.name)||n.initializer)return;t.push(vw.createImportSpecifier(!1,et(n.propertyName,_N),n.name))}if(t.length)return vw.createNamedImports(t)}(o.name):void 0;if(s||c){const e=me(i.arguments);return{allowSyntheticDefaults:Dk(t.getCompilerOptions()),defaultImportName:s,namedImports:c,statement:tt(o.parent.parent,GF),moduleSpecifier:XD(e)?vw.createStringLiteral(e.text,0===a):e}}}$7({errorCodes:Boe,getCodeActions(e){const t=zoe(e.sourceFile,e.program,e.span.start,e.preferences);if(!t)return;const n=ede.ChangeTracker.with(e,(n=>Joe(n,e.sourceFile,t)));return[U7(Moe,n,ua.Convert_require_to_import,Moe,ua.Convert_all_require_to_import)]},fixIds:[Moe],getAllCodeActions:e=>Y7(e,Boe,((t,n)=>{const r=zoe(n.file,e.program,n.start,e.preferences);r&&Joe(t,e.sourceFile,r)}))});var qoe="useDefaultImport",Uoe=[ua.Import_may_be_converted_to_a_default_import.code];function Voe(e,t){const n=aQ(e,t);if(!_N(n))return;const{parent:r}=n;if(TE(r)&&VE(r.moduleReference))return{importNode:r,name:n,moduleSpecifier:r.moduleReference.expression};if(AE(r)&&CE(r.parent.parent)){const e=r.parent.parent;return{importNode:e,name:n,moduleSpecifier:e.moduleSpecifier}}}function Woe(e,t,n,r){e.replaceNode(t,n.importNode,_Y(n.name,void 0,n.moduleSpecifier,fY(t,r)))}$7({errorCodes:Uoe,getCodeActions(e){const{sourceFile:t,span:{start:n}}=e,r=Voe(t,n);if(!r)return;const i=ede.ChangeTracker.with(e,(n=>Woe(n,t,r,e.preferences)));return[U7(qoe,i,ua.Convert_to_default_import,qoe,ua.Convert_all_to_default_imports)]},fixIds:[qoe],getAllCodeActions:e=>Y7(e,Uoe,((t,n)=>{const r=Voe(n.file,n.start);r&&Woe(t,n.file,r,e.preferences)}))});var $oe="useBigintLiteral",Hoe=[ua.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];function Koe(e,t,n){const r=et(aQ(t,n.start),WD);if(!r)return;const i=r.getText(t)+"n";e.replaceNode(t,r,vw.createBigIntLiteral(i))}$7({errorCodes:Hoe,getCodeActions:function(e){const t=ede.ChangeTracker.with(e,(t=>Koe(t,e.sourceFile,e.span)));if(t.length>0)return[U7($oe,t,ua.Convert_to_a_bigint_numeric_literal,$oe,ua.Convert_all_to_bigint_numeric_literals)]},fixIds:[$oe],getAllCodeActions:e=>Y7(e,Hoe,((e,t)=>Koe(e,t.file,t)))});var Goe="fixAddModuleReferTypeMissingTypeof",Xoe=[ua.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function Qoe(e,t){const n=aQ(e,t);return _n.assert(102===n.kind,"This token should be an ImportKeyword"),_n.assert(206===n.parent.kind,"Token parent should be an ImportType"),n.parent}function Yoe(e,t,n){const r=vw.updateImportTypeNode(n,n.argument,n.attributes,n.qualifier,n.typeArguments,!0);e.replaceNode(t,n,r)}$7({errorCodes:Xoe,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Qoe(t,n.start),i=ede.ChangeTracker.with(e,(e=>Yoe(e,t,r)));return[U7(Goe,i,ua.Add_missing_typeof,Goe,ua.Add_missing_typeof)]},fixIds:[Goe],getAllCodeActions:e=>Y7(e,Xoe,((t,n)=>Yoe(t,e.sourceFile,Qoe(n.file,n.start))))});var Zoe="wrapJsxInFragment",eae=[ua.JSX_expressions_must_have_one_parent_element.code];function tae(e,t){let n=aQ(e,t).parent.parent;if((PF(n)||(n=n.parent,PF(n)))&&Nd(n.operatorToken))return n}function nae(e,t,n){const r=function(e){const t=[];let n=e;for(;;){if(PF(n)&&Nd(n.operatorToken)&&28===n.operatorToken.kind){if(t.push(n.left),yu(n.right))return t.push(n.right),t;if(PF(n.right)){n=n.right;continue}return}return}}(n);r&&e.replaceNode(t,n,vw.createJsxFragment(vw.createJsxOpeningFragment(),r,vw.createJsxJsxClosingFragment()))}$7({errorCodes:eae,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=tae(t,n.start);if(!r)return;const i=ede.ChangeTracker.with(e,(e=>nae(e,t,r)));return[U7(Zoe,i,ua.Wrap_in_JSX_fragment,Zoe,ua.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[Zoe],getAllCodeActions:e=>Y7(e,eae,((t,n)=>{const r=tae(e.sourceFile,n.start);r&&nae(t,e.sourceFile,r)}))});var rae="wrapDecoratorInParentheses",iae=[ua.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code];function oae(e,t,n){const r=dc(aQ(t,n),FN);_n.assert(!!r,"Expected position to be owned by a decorator.");const i=vw.createParenthesizedExpression(r.expression);e.replaceNode(t,r.expression,i)}$7({errorCodes:iae,getCodeActions:function(e){const t=ede.ChangeTracker.with(e,(t=>oae(t,e.sourceFile,e.span.start)));return[U7(rae,t,ua.Wrap_in_parentheses,rae,ua.Wrap_all_invalid_decorator_expressions_in_parentheses)]},fixIds:[rae],getAllCodeActions:e=>Y7(e,iae,((e,t)=>oae(e,t.file,t.start)))});var aae="fixConvertToMappedObjectType",sae=[ua.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function cae(e,t){const n=et(aQ(e,t).parent.parent,JN);if(!n)return;const r=hE(n.parent)?n.parent:et(n.parent.parent,yE);return r?{indexSignature:n,container:r}:void 0}function lae(e,t,{indexSignature:n,container:r}){const i=(hE(r)?r.members:r.type.members).filter((e=>!JN(e))),o=me(n.parameters),a=vw.createTypeParameterDeclaration(void 0,tt(o.name,_N),o.type),c=vw.createMappedTypeNode(jv(n)?vw.createModifier(148):void 0,a,void 0,n.questionToken,n.type,void 0),l=vw.createIntersectionTypeNode([...kh(r),c,...i.length?[vw.createTypeLiteralNode(i)]:s]);var _,u;e.replaceNode(t,r,(_=r,u=l,vw.createTypeAliasDeclaration(_.modifiers,_.name,_.typeParameters,u)))}$7({errorCodes:sae,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=cae(t,n.start);if(!r)return;const i=ede.ChangeTracker.with(e,(e=>lae(e,t,r))),o=hc(r.container.name);return[U7(aae,i,[ua.Convert_0_to_mapped_object_type,o],aae,[ua.Convert_0_to_mapped_object_type,o])]},fixIds:[aae],getAllCodeActions:e=>Y7(e,sae,((e,t)=>{const n=cae(t.file,t.start);n&&lae(e,t.file,n)}))});var _ae="removeAccidentalCallParentheses";$7({errorCodes:[ua.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],getCodeActions(e){const t=dc(aQ(e.sourceFile,e.span.start),yF);if(!t)return;const n=ede.ChangeTracker.with(e,(n=>{n.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})}));return[q7(_ae,n,ua.Remove_parentheses)]},fixIds:[_ae]});var uae="removeUnnecessaryAwait",dae=[ua.await_has_no_effect_on_the_type_of_this_expression.code];function pae(e,t,n){const r=et(aQ(t,n.start),(e=>135===e.kind)),i=r&&et(r.parent,NF);if(!i)return;let o=i;if(kF(i.parent)){if(_N(Ex(i.expression,!1))){const e=uQ(i.parent.pos,t);e&&105!==e.kind&&(o=i.parent)}}e.replaceNode(t,o,i.expression)}$7({errorCodes:dae,getCodeActions:function(e){const t=ede.ChangeTracker.with(e,(t=>pae(t,e.sourceFile,e.span)));if(t.length>0)return[U7(uae,t,ua.Remove_unnecessary_await,uae,ua.Remove_all_unnecessary_uses_of_await)]},fixIds:[uae],getAllCodeActions:e=>Y7(e,dae,((e,t)=>pae(e,t.file,t)))});var fae=[ua.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],mae="splitTypeOnlyImport";function gae(e,t){return dc(aQ(e,t.start),CE)}function hae(e,t,n){if(!t)return;const r=_n.checkDefined(t.importClause);e.replaceNode(n.sourceFile,t,vw.updateImportDeclaration(t,t.modifiers,vw.updateImportClause(r,r.phaseModifier,r.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(n.sourceFile,t,vw.createImportDeclaration(void 0,vw.updateImportClause(r,r.phaseModifier,void 0,r.namedBindings),t.moduleSpecifier,t.attributes))}$7({errorCodes:fae,fixIds:[mae],getCodeActions:function(e){const t=ede.ChangeTracker.with(e,(t=>hae(t,gae(e.sourceFile,e.span),e)));if(t.length)return[U7(mae,t,ua.Split_into_two_separate_import_declarations,mae,ua.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>Y7(e,fae,((t,n)=>{hae(t,gae(e.sourceFile,n),e)}))});var yae="fixConvertConstToLet",vae=[ua.Cannot_assign_to_0_because_it_is_a_constant.code];function bae(e,t,n){var r;const i=n.getTypeChecker().getSymbolAtLocation(aQ(e,t));if(void 0===i)return;const o=et(null==(r=null==i?void 0:i.valueDeclaration)?void 0:r.parent,fE);if(void 0===o)return;const a=$X(o,87,e);return void 0!==a?{symbol:i,token:a}:void 0}function xae(e,t,n){e.replaceNode(t,n,vw.createToken(121))}$7({errorCodes:vae,getCodeActions:function(e){const{sourceFile:t,span:n,program:r}=e,i=bae(t,n.start,r);if(void 0===i)return;const o=ede.ChangeTracker.with(e,(e=>xae(e,t,i.token)));return[V7(yae,o,ua.Convert_const_to_let,yae,ua.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,n=new Set;return X7(ede.ChangeTracker.with(e,(r=>{Z7(e,vae,(e=>{const i=bae(e.file,e.start,t);if(i&&kx(n,lJ(i.symbol)))return xae(r,e.file,i.token)}))})))},fixIds:[yae]});var kae="fixExpectedComma",Sae=[ua._0_expected.code];function Tae(e,t,n){const r=aQ(e,t);return 27===r.kind&&r.parent&&(mF(r.parent)||fF(r.parent))?{node:r}:void 0}function Cae(e,t,{node:n}){const r=vw.createToken(28);e.replaceNode(t,n,r)}$7({errorCodes:Sae,getCodeActions(e){const{sourceFile:t}=e,n=Tae(t,e.span.start,e.errorCode);if(!n)return;const r=ede.ChangeTracker.with(e,(e=>Cae(e,t,n)));return[U7(kae,r,[ua.Change_0_to_1,";",","],kae,[ua.Change_0_to_1,";",","])]},fixIds:[kae],getAllCodeActions:e=>Y7(e,Sae,((t,n)=>{const r=Tae(n.file,n.start,n.code);r&&Cae(t,e.sourceFile,r)}))});var wae="addVoidToPromise",Dae=[ua.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,ua.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function Nae(e,t,n,r,i){const o=aQ(t,n.start);if(!_N(o)||!yF(o.parent)||o.parent.expression!==o||0!==o.parent.arguments.length)return;const a=r.getTypeChecker(),s=a.getSymbolAtLocation(o),c=null==s?void 0:s.valueDeclaration;if(!c||!NN(c)||!vF(c.parent.parent))return;if(null==i?void 0:i.has(c))return;null==i||i.add(c);const l=function(e){var t;if(!Em(e))return e.typeArguments;if(kF(e.parent)){const n=null==(t=nl(e.parent))?void 0:t.typeExpression.type;if(n&&qN(n)&&_N(n.typeName)&&"Promise"===hc(n.typeName))return n.typeArguments}}(c.parent.parent);if(V(l)){const n=l[0],r=!YN(n)&&!nF(n)&&nF(vw.createUnionTypeNode([n,vw.createKeywordTypeNode(116)]).types[0]);r&&e.insertText(t,n.pos,"("),e.insertText(t,n.end,r?") | void":" | void")}else{const n=a.getResolvedSignature(o.parent),r=null==n?void 0:n.parameters[0],i=r&&a.getTypeOfSymbolAtLocation(r,c.parent.parent);Em(c)?(!i||3&i.flags)&&(e.insertText(t,c.parent.parent.end,")"),e.insertText(t,Ya(t.text,c.parent.parent.pos),"/** @type {Promise} */(")):(!i||2&i.flags)&&e.insertText(t,c.parent.parent.expression.end,"")}}$7({errorCodes:Dae,fixIds:[wae],getCodeActions(e){const t=ede.ChangeTracker.with(e,(t=>Nae(t,e.sourceFile,e.span,e.program)));if(t.length>0)return[U7("addVoidToPromise",t,ua.Add_void_to_Promise_resolved_without_a_value,wae,ua.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:e=>Y7(e,Dae,((t,n)=>Nae(t,n.file,n,e.program,new Set)))});var Fae={};n(Fae,{CompletionKind:()=>Sse,CompletionSource:()=>Lae,SortText:()=>Aae,StringCompletions:()=>tce,SymbolOriginInfoKind:()=>jae,createCompletionDetails:()=>xse,createCompletionDetailsForSymbol:()=>bse,getCompletionEntriesFromSymbols:()=>gse,getCompletionEntryDetails:()=>yse,getCompletionEntrySymbol:()=>kse,getCompletionsAtPosition:()=>Wae,getConstraintOfTypeArgumentProperty:()=>Jse,getDefaultCommitCharacters:()=>Vae,getPropertiesForObjectExpression:()=>Rse,moduleSpecifierResolutionCacheAttemptLimit:()=>Pae,moduleSpecifierResolutionLimit:()=>Eae});var Eae=100,Pae=1e3,Aae={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated:e=>"z"+e,ObjectLiteralProperty:(e,t)=>`${e}\0${t}\0`,SortBelow:e=>e+"1"},Iae=[".",",",";"],Oae=[".",";"],Lae=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(Lae||{}),jae=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=34]="SymbolMemberExport",e))(jae||{});function Rae(e){return!!(e&&4&e.kind)}function Mae(e){return!!(e&&32&e.kind)}function Bae(e){return(Rae(e)||Mae(e))&&!!e.isFromPackageJson}function Jae(e){return!!(e&&64&e.kind)}function zae(e){return!!(e&&128&e.kind)}function qae(e){return!!(e&&512&e.kind)}function Uae(e,t,n,r,i,o,a,s,c){var l,_,u,d;const p=qn(),f=a||Nk(r.getCompilerOptions())||(null==(l=o.autoImportSpecifierExcludeRegexes)?void 0:l.length);let m=!1,g=0,h=0,y=0,v=0;const b=c({tryResolve:function(e,t){if(t){const t=n.getModuleSpecifierForBestExportInfo(e,i,s);return t&&g++,t||"failed"}const r=f||o.allowIncompleteCompletions&&hm,resolvedAny:()=>h>0,resolvedBeyondLimit:()=>h>Eae}),x=v?` (${(y/v*100).toFixed(1)}% hit rate)`:"";return null==(_=t.log)||_.call(t,`${e}: resolved ${h} module specifiers, plus ${g} ambient and ${y} from cache${x}`),null==(u=t.log)||u.call(t,`${e}: response is ${m?"incomplete":"complete"}`),null==(d=t.log)||d.call(t,`${e}: ${qn()-p}`),b}function Vae(e){return e?[]:Iae}function Wae(e,t,n,r,i,o,a,s,c,l,_=!1){var u;const{previousToken:d}=wse(i,r);if(a&&!mQ(r,i,d)&&!function(e,t,n,r){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&SZ(n)&&r===n.getStart(e)+1;case"#":return!!n&&uN(n)&&!!Xf(n);case"<":return!!n&&30===n.kind&&(!PF(n.parent)||qse(n.parent));case"/":return!!n&&(Ru(n)?!!xg(n):44===n.kind&&KE(n.parent));case" ":return!!n&&SN(n)&&308===n.parent.kind;default:return _n.assertNever(t)}}(r,a,d,i))return;if(" "===a)return o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[],defaultCommitCharacters:Vae(!0)}:void 0;const p=t.getCompilerOptions(),f=t.getTypeChecker(),m=o.allowIncompleteCompletions?null==(u=e.getIncompleteCompletionsCache)?void 0:u.call(e):void 0;if(m&&3===s&&d&&_N(d)){const n=function(e,t,n,r,i,o,a,s){const c=e.get();if(!c)return;const l=iQ(t,s),_=n.text.toLowerCase(),u=D0(t,i,r,o,a),d=Uae("continuePreviousIncompleteResponse",i,M7.createImportSpecifierResolver(t,r,i,o),r,n.getStart(),o,!1,kT(n),(e=>{const n=R(c.entries,(n=>{var o;if(!n.hasAction||!n.source||!n.data||Hae(n.data))return n;if(!Yse(n.name,_))return;const{origin:a}=_n.checkDefined(Dse(n.name,n.data,r,i)),s=u.get(t.path,n.data.exportMapKey),c=s&&e.tryResolve(s,!ws(Ey(a.moduleSymbol.name)));if("skipped"===c)return n;if(!c||"failed"===c)return void(null==(o=i.log)||o.call(i,`Unexpected failure resolving auto import for '${n.name}' from '${n.source}'`));const l={...a,kind:32,moduleSpecifier:c.moduleSpecifier};return n.data=use(l),n.source=mse(l),n.sourceDisplay=[WY(l.moduleSpecifier)],n}));return e.skippedAny()||(c.isIncomplete=void 0),n}));return c.entries=d,c.flags=4|(c.flags||0),c.optionalReplacementSpan=Zae(l),c}(m,r,d,t,e,o,c,i);if(n)return n}else null==m||m.clear();const g=tce.getStringLiteralCompletions(r,i,d,p,e,t,n,o,_);if(g)return g;if(d&&wl(d.parent)&&(83===d.kind||88===d.kind||80===d.kind))return function(e){const t=function(e){const t=[],n=new Map;let r=e;for(;r&&!i_(r);){if(lE(r)){const e=r.label.text;n.has(e)||(n.set(e,!0),t.push({name:e,kindModifiers:"",kind:"label",sortText:Aae.LocationPriority}))}r=r.parent}return t}(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t,defaultCommitCharacters:Vae(!1)}}(d.parent);const h=Cse(t,n,r,p,i,o,void 0,e,l,c);var y,v;if(h)switch(h.kind){case 0:const a=function(e,t,n,r,i,o,a,s,c,l){const{symbols:_,contextToken:u,completionKind:d,isInSnippetScope:p,isNewIdentifierLocation:f,location:m,propertyAccessToConvert:g,keywordFilters:h,symbolToOriginInfoMap:y,recommendedCompletion:v,isJsxInitializer:b,isTypeOnlyLocation:x,isJsxIdentifierExpected:k,isRightOfOpenTag:S,isRightOfDotOrQuestionDot:T,importStatementCompletion:C,insideJsDocTagTypeExpression:w,symbolToSortTextMap:D,hasUnresolvedAutoImports:N,defaultCommitCharacters:F}=o;let E=o.literals;const P=n.getTypeChecker();if(1===uk(e.scriptKind)){const t=function(e,t){const n=dc(e,(e=>{switch(e.kind){case 288:return!0;case 44:case 32:case 80:case 212:return!1;default:return"quit"}}));if(n){const e=!!$X(n,32,t),r=n.parent.openingElement.tagName.getText(t)+(e?"":">");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:qQ(n.tagName),entries:[{name:r,kind:"class",kindModifiers:void 0,sortText:Aae.LocationPriority}],defaultCommitCharacters:Vae(!1)}}return}(m,e);if(t)return t}const A=dc(u,rP);if(A&&(TN(u)||lh(u,A.expression))){const e=p0(P,A.parent.clauses);E=E.filter((t=>!e.hasValue(t))),_.forEach(((t,n)=>{if(t.valueDeclaration&&_P(t.valueDeclaration)){const r=P.getConstantValue(t.valueDeclaration);void 0!==r&&e.hasValue(r)&&(y[n]={kind:256})}}))}const I=[],O=ese(e,r);if(O&&!f&&(!_||0===_.length)&&0===h)return;const L=gse(_,I,void 0,u,m,c,e,t,n,xk(r),i,d,a,r,s,x,g,k,b,C,v,y,D,k,S,l);if(0!==h)for(const t of Pse(h,!w&&Fm(e)))(x&&XQ(Pa(t.name))||!x&&ece(t.name)||!L.has(t.name))&&(L.add(t.name),Y(I,t,$ae,void 0,!0));for(const e of function(e,t){const n=[];if(e){const r=e.getSourceFile(),i=e.parent,o=r.getLineAndCharacterOfPosition(e.end).line,a=r.getLineAndCharacterOfPosition(t).line;(CE(i)||RE(i)&&i.moduleSpecifier)&&e===i.moduleSpecifier&&o===a&&n.push({name:Ea(132),kind:"keyword",kindModifiers:"",sortText:Aae.GlobalsOrKeywords})}return n}(u,c))L.has(e.name)||(L.add(e.name),Y(I,e,$ae,void 0,!0));for(const t of E){const n=ase(e,a,t);L.add(n.name),Y(I,n,$ae,void 0,!0)}O||function(e,t,n,r,i){_7(e).forEach(((e,o)=>{if(e===t)return;const a=gc(o);!n.has(a)&&gs(a,r)&&(n.add(a),Y(i,{name:a,kind:"warning",kindModifiers:"",sortText:Aae.JavascriptIdentifiers,isFromUncheckedFile:!0,commitCharacters:[]},$ae))}))}(e,m.pos,L,xk(r),I);let j;if(a.includeCompletionsWithInsertText&&u&&!S&&!T&&(j=dc(u,kE))){const i=tse(j,e,a,r,t,n,s);i&&I.push(i.entry)}return{flags:o.flags,isGlobalCompletion:p,isIncomplete:!(!a.allowIncompleteCompletions||!N)||void 0,isMemberCompletion:ise(d),isNewIdentifierLocation:f,optionalReplacementSpan:Zae(m),entries:I,defaultCommitCharacters:F??Vae(f)}}(r,e,t,p,n,h,o,l,i,_);return(null==a?void 0:a.isIncomplete)&&(null==m||m.set(a)),a;case 1:return Kae([...qle.getJSDocTagNameCompletions(),...Gae(r,i,f,p,o,!0)]);case 2:return Kae([...qle.getJSDocTagCompletions(),...Gae(r,i,f,p,o,!1)]);case 3:return Kae(qle.getJSDocParameterNameCompletions(h.tag));case 4:return y=h.keywordCompletions,{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:v=h.isNewIdentifierLocation,entries:y.slice(),defaultCommitCharacters:Vae(v)};default:return _n.assertNever(h)}}function $ae(e,t){var n,r;let i=Pt(e.sortText,t.sortText);return 0===i&&(i=Pt(e.name,t.name)),0===i&&(null==(n=e.data)?void 0:n.moduleSpecifier)&&(null==(r=t.data)?void 0:r.moduleSpecifier)&&(i=US(e.data.moduleSpecifier,t.data.moduleSpecifier)),0===i?-1:i}function Hae(e){return!!(null==e?void 0:e.moduleSpecifier)}function Kae(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e,defaultCommitCharacters:Vae(!1)}}function Gae(e,t,n,r,i,o){const a=aQ(e,t);if(!wu(a)&&!DP(a))return[];const s=DP(a)?a:a.parent;if(!DP(s))return[];const c=s.parent;if(!i_(c))return[];const l=Fm(e),_=i.includeCompletionsWithSnippetText||void 0,u=T(s.tags,(e=>UP(e)&&e.getEnd()<=t));return R(c.parameters,(e=>{if(!Pc(e).length){if(_N(e.name)){const t={tabstop:1},a=e.name.text;let s=Qae(a,e.initializer,e.dotDotDotToken,l,!1,!1,n,r,i),c=_?Qae(a,e.initializer,e.dotDotDotToken,l,!1,!0,n,r,i,t):void 0;return o&&(s=s.slice(1),c&&(c=c.slice(1))),{name:s,kind:"parameter",sortText:Aae.LocationPriority,insertText:_?c:void 0,isSnippet:_}}if(e.parent.parameters.indexOf(e)===u){const t=`param${u}`,a=Xae(t,e.name,e.initializer,e.dotDotDotToken,l,!1,n,r,i),s=_?Xae(t,e.name,e.initializer,e.dotDotDotToken,l,!0,n,r,i):void 0;let c=a.join(Ib(r)+"* "),d=null==s?void 0:s.join(Ib(r)+"* ");return o&&(c=c.slice(1),d&&(d=d.slice(1))),{name:c,kind:"parameter",sortText:Aae.LocationPriority,insertText:_?d:void 0,isSnippet:_}}}}))}function Xae(e,t,n,r,i,o,a,s,c){return i?l(e,t,n,r,{tabstop:1}):[Qae(e,n,r,i,!1,o,a,s,c,{tabstop:1})];function l(e,t,n,r,l){if(uF(t)&&!r){const u={tabstop:l.tabstop},d=Qae(e,n,r,i,!0,o,a,s,c,u);let p=[];for(const n of t.elements){const t=_(e,n,u);if(!t){p=void 0;break}p.push(...t)}if(p)return l.tabstop=u.tabstop,[d,...p]}return[Qae(e,n,r,i,!1,o,a,s,c,l)]}function _(e,t,n){if(!t.propertyName&&_N(t.name)||_N(t.name)){const r=t.propertyName?Lp(t.propertyName):t.name.text;if(!r)return;return[Qae(`${e}.${r}`,t.initializer,t.dotDotDotToken,i,!1,o,a,s,c,n)]}if(t.propertyName){const r=Lp(t.propertyName);return r&&l(`${e}.${r}`,t.name,t.initializer,t.dotDotDotToken,n)}}}function Qae(e,t,n,r,i,o,a,s,c,l){if(o&&_n.assertIsDefined(l),t&&(e=function(e,t){const n=t.getText().trim();if(n.includes("\n")||n.length>80)return`[${e}]`;return`[${e}=${n}]`}(e,t)),o&&(e=zT(e)),r){let r="*";if(i)_n.assert(!n,"Cannot annotate a rest parameter with type 'Object'."),r="Object";else{if(t){const e=a.getTypeAtLocation(t.parent);if(!(17&e.flags)){const n=t.getSourceFile(),i=0===fY(n,c)?268435456:0,l=a.typeToTypeNode(e,dc(t,i_),i);if(l){const e=o?_se({removeComments:!0,module:s.module,moduleResolution:s.moduleResolution,target:s.target}):EU({removeComments:!0,module:s.module,moduleResolution:s.moduleResolution,target:s.target});Cw(l,1),r=e.printNode(4,l,n)}}}o&&"*"===r&&(r=`\${${l.tabstop++}:${r}}`)}return`@param {${!i&&n?"...":""}${r}} ${e} ${o?`\${${l.tabstop++}}`:""}`}return`@param ${e} ${o?`\${${l.tabstop++}}`:""}`}function Yae(e,t,n){return{kind:4,keywordCompletions:Pse(e,t),isNewIdentifierLocation:n}}function Zae(e){return 80===(null==e?void 0:e.kind)?qQ(e):void 0}function ese(e,t){return!Fm(e)||!!iT(e,t)}function tse(e,t,n,r,i,o,a){const s=e.clauses,c=o.getTypeChecker(),l=c.getTypeAtLocation(e.parent.expression);if(l&&l.isUnion()&&h(l.types,(e=>e.isLiteral()))){const _=p0(c,s),u=xk(r),d=fY(t,n),p=M7.createImportAdder(t,o,n,i),f=[];for(const t of l.types)if(32768&t.flags){_n.assert(t.symbol,"An enum member type should have a symbol"),_n.assert(t.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const n=t.symbol.valueDeclaration&&c.getConstantValue(t.symbol.valueDeclaration);if(void 0!==n){if(_.hasValue(n))continue;_.addValue(n)}const r=M7.typeToAutoImportableTypeNode(c,p,t,e,u);if(!r)return;const i=nse(r,u,d);if(!i)return;f.push(i)}else if(!_.hasValue(t.value))switch(typeof t.value){case"object":f.push(t.value.negative?vw.createPrefixUnaryExpression(41,vw.createBigIntLiteral({negative:!1,base10Value:t.value.base10Value})):vw.createBigIntLiteral(t.value));break;case"number":f.push(t.value<0?vw.createPrefixUnaryExpression(41,vw.createNumericLiteral(-t.value)):vw.createNumericLiteral(t.value));break;case"string":f.push(vw.createStringLiteral(t.value,0===d))}if(0===f.length)return;const m=N(f,(e=>vw.createCaseClause(e,[]))),g=YY(i,null==a?void 0:a.options),h=_se({removeComments:!0,module:r.module,moduleResolution:r.moduleResolution,target:r.target,newLine:c0(g)}),y=a?e=>h.printAndFormatNode(4,e,t,a):e=>h.printNode(4,e,t),v=N(m,((e,t)=>n.includeCompletionsWithSnippetText?`${y(e)}$${t+1}`:`${y(e)}`)).join(g);return{entry:{name:`${h.printNode(4,m[0],t)} ...`,kind:"",sortText:Aae.GlobalsOrKeywords,insertText:v,hasAction:p.hasFixes()||void 0,source:"SwitchCases/",isSnippet:!!n.includeCompletionsWithSnippetText||void 0},importAdder:p}}}function nse(e,t,n){switch(e.kind){case 184:return rse(e.typeName,t,n);case 200:const r=nse(e.objectType,t,n),i=nse(e.indexType,t,n);return r&&i&&vw.createElementAccessExpression(r,i);case 202:const o=e.literal;switch(o.kind){case 11:return vw.createStringLiteral(o.text,0===n);case 9:return vw.createNumericLiteral(o.text,o.numericLiteralFlags)}return;case 197:const a=nse(e.type,t,n);return a&&(_N(a)?a:vw.createParenthesizedExpression(a));case 187:return rse(e.exprName,t,n);case 206:_n.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function rse(e,t,n){if(_N(e))return e;const r=gc(e.right.escapedText);return GT(r,t)?vw.createPropertyAccessExpression(rse(e.left,t,n),r):vw.createElementAccessExpression(rse(e.left,t,n),vw.createStringLiteral(r,0===n))}function ise(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function ose(e,t,n){return"object"==typeof n?yT(n)+"n":Ye(n)?xZ(e,t,n):JSON.stringify(n)}function ase(e,t,n){return{name:ose(e,t,n),kind:"string",kindModifiers:"",sortText:Aae.LocationPriority,commitCharacters:[]}}function sse(e,t,n,r,i,o,a,s,c,l,_,u,d,p,f,m,g,v,b,x,k,S,T,C){var w,D;let N,F,E,P,A,I,O,L=zQ(n,o),j=mse(u);const R=c.getTypeChecker(),M=u&&function(e){return!!(16&e.kind)}(u),B=u&&function(e){return!!(2&e.kind)}(u)||_;if(u&&function(e){return!!(1&e.kind)}(u))N=_?`this${M?"?.":""}[${pse(a,b,l)}]`:`this${M?"?.":"."}${l}`;else if((B||M)&&p){N=B?_?`[${pse(a,b,l)}]`:`[${l}]`:l,(M||p.questionDotToken)&&(N=`?.${N}`);const e=$X(p,25,a)||$X(p,29,a);if(!e)return;const t=Kt(l,p.name.text)?p.name.end:e.end;L=Hs(e.getStart(a),t)}if(f&&(void 0===N&&(N=l),N=`{${N}}`,"boolean"!=typeof f&&(L=qQ(f,a))),u&&function(e){return!!(8&e.kind)}(u)&&p){void 0===N&&(N=l);const e=uQ(p.pos,a);let t="";e&&IZ(e.end,e.parent,a)&&(t=";"),t+=`(await ${p.expression.getText()})`,N=_?`${t}${N}`:`${t}${M?"?.":"."}${N}`;L=Hs((et(p.parent,NF)?p.parent:p.expression).getStart(a),p.end)}if(Mae(u)&&(A=[WY(u.moduleSpecifier)],m&&(({insertText:N,replacementSpan:L}=function(e,t,n,r,i,o,a){const s=t.replacementSpan,c=zT(xZ(i,a,n.moduleSpecifier)),l=n.isDefaultExport?1:"export="===n.exportName?2:0,_=a.includeCompletionsWithSnippetText?"$1":"",u=M7.getImportKind(i,l,o,!0),d=t.couldBeTypeOnlyImportSpecifier,p=t.isTopLevelTypeOnly?` ${Ea(156)} `:" ",f=d?`${Ea(156)} `:"",m=r?";":"";switch(u){case 3:return{replacementSpan:s,insertText:`import${p}${zT(e)}${_} = require(${c})${m}`};case 1:return{replacementSpan:s,insertText:`import${p}${zT(e)}${_} from ${c}${m}`};case 2:return{replacementSpan:s,insertText:`import${p}* as ${zT(e)} from ${c}${m}`};case 0:return{replacementSpan:s,insertText:`import${p}{ ${f}${zT(e)}${_} } from ${c}${m}`}}}(l,m,u,g,a,c,b)),P=!!b.includeCompletionsWithSnippetText||void 0)),64===(null==u?void 0:u.kind)&&(I=!0),0===x&&r&&28!==(null==(w=uQ(r.pos,a,r))?void 0:w.kind)&&(IN(r.parent.parent)||jN(r.parent.parent)||RN(r.parent.parent)||lP(r.parent)||(null==(D=dc(r.parent,sP))?void 0:D.getLastToken(a))===r||cP(r.parent)&&qa(a,r.getEnd()).line!==qa(a,o).line)&&(j="ObjectLiteralMemberWithComma/",I=!0),b.includeCompletionsWithClassMemberSnippets&&b.includeCompletionsWithInsertText&&3===x&&function(e,t,n){if(Em(t))return!1;const r=106500;return!!(e.flags&r)&&(d_(t)||t.parent&&t.parent.parent&&u_(t.parent)&&t===t.parent.name&&t.parent.getLastToken(n)===t.parent.name&&d_(t.parent.parent)||t.parent&&tA(t)&&d_(t.parent))}(e,i,a)){let t;const n=cse(s,c,v,b,l,e,i,o,r,k);if(!n)return;({insertText:N,filterText:F,isSnippet:P,importAdder:t}=n),((null==t?void 0:t.hasFixes())||n.eraseRange)&&(I=!0,j="ClassMemberSnippet/")}if(u&&zae(u)&&(({insertText:N,isSnippet:P,labelDetails:O}=u),b.useLabelDetailsInCompletionEntries||(l+=O.detail,O=void 0),j="ObjectLiteralMethodSnippet/",t=Aae.SortBelow(t)),S&&!T&&b.includeCompletionsWithSnippetText&&b.jsxAttributeCompletionStyle&&"none"!==b.jsxAttributeCompletionStyle&&(!YE(i.parent)||!i.parent.initializer)){let t="braces"===b.jsxAttributeCompletionStyle;const n=R.getTypeOfSymbolAtLocation(e,i);"auto"!==b.jsxAttributeCompletionStyle||8448&n.flags||134217728&n.flags&&y(n.types,(e=>!!(8448&e.flags)))||(12583968&n.flags||134217728&n.flags&&h(n.types,(e=>!!(12583972&e.flags||IQ(e))))?(N=`${zT(l)}=${xZ(a,b,"$1")}`,P=!0):t=!0),t&&(N=`${zT(l)}={$1}`,P=!0)}if(void 0!==N&&!b.includeCompletionsWithInsertText)return;(Rae(u)||Mae(u))&&(E=use(u),I=!m);const J=dc(i,Dx);if(J){const e=xk(s.getCompilationSettings());if(gs(l,e)){if(276===J.kind){const e=Pa(l);e&&(135===e||Eh(e))&&(N=`${l} as ${l}_`)}}else N=pse(a,b,l),276===J.kind&&(eX.setText(a.text),eX.resetTokenState(o),130===eX.scan()&&80===eX.scan()||(N+=" as "+function(e,t){let n,r=!1,i="";for(let o=0;o=65536?2:1)n=e.codePointAt(o),void 0!==n&&(0===o?fs(n,t):ms(n,t))?(r&&(i+="_"),i+=String.fromCodePoint(n),r=!1):r=!0;r&&(i+="_");return i||"_"}(l,e)))}const z=Wue.getSymbolKind(R,e,i),q="warning"===z||"string"===z?[]:void 0;return{name:l,kind:z,kindModifiers:Wue.getSymbolModifiers(R,e),sortText:t,source:j,hasAction:!!I||void 0,isRecommended:fse(e,d,R)||void 0,insertText:N,filterText:F,replacementSpan:L,sourceDisplay:A,labelDetails:O,isSnippet:P,isPackageJsonImport:Bae(u)||void 0,isImportStatementCompletion:!!m||void 0,data:E,commitCharacters:q,...C?{symbol:e}:void 0}}function cse(e,t,n,r,i,o,a,s,c,l){const _=dc(a,d_);if(!_)return;let u,d=i;const p=i,f=t.getTypeChecker(),m=a.getSourceFile(),g=_se({removeComments:!0,module:n.module,moduleResolution:n.moduleResolution,target:n.target,omitTrailingSemicolon:!1,newLine:c0(YY(e,null==l?void 0:l.options))}),h=M7.createImportAdder(m,t,r,e);let y;if(r.includeCompletionsWithSnippetText){u=!0;const e=vw.createEmptyStatement();y=vw.createBlock([e],!0),Yw(e,{kind:0,order:0})}else y=vw.createBlock([],!0);let v=0;const{modifiers:b,range:x,decorators:k}=function(e,t,n){if(!e||qa(t,n).line>qa(t,e.getEnd()).line)return{modifiers:0};let r,i,o=0;const a={pos:n,end:n};if(PN(e.parent)&&(i=function(e){if(e_(e))return e.kind;if(_N(e)){const t=yc(e);if(t&&Ql(t))return t}return}(e))){e.parent.modifiers&&(o|=98303&Kv(e.parent.modifiers),r=e.parent.modifiers.filter(FN)||[],a.pos=Math.min(...e.parent.modifiers.map((e=>e.getStart(t)))));const n=Gv(i);o&n||(o|=n,a.pos=Math.min(a.pos,e.getStart(t))),e.parent.name!==e&&(a.end=e.parent.name.getStart(t))}return{modifiers:o,decorators:r,range:a.pos{let t=0;S&&(t|=64),u_(e)&&1===f.getMemberOverrideModifierStatus(_,e,o)&&(t|=16),T.length||(v=e.modifierFlagsCache|t),e=vw.replaceModifiers(e,v),T.push(e)}),y,M7.PreserveOptionalFlags.Property,!!S),T.length){const e=8192&o.flags;let t=17|v;t|=e?1024:136;const n=b&t;if(b&~t)return;if(4&v&&1&n&&(v&=-5),0===n||1&n||(v&=-2),v|=n,T=T.map((e=>vw.replaceModifiers(e,v))),null==k?void 0:k.length){const e=T[T.length-1];EI(e)&&(T[T.length-1]=vw.replaceDecoratorsAndModifiers(e,k.concat(Fc(e)||[])))}const r=131073;d=l?g.printAndFormatSnippetList(r,vw.createNodeArray(T),m,l):g.printSnippetList(r,vw.createNodeArray(T),m)}return{insertText:d,filterText:p,isSnippet:u,importAdder:h,eraseRange:x}}function lse(e,t,n,r,i,o,a,s){const c=a.includeCompletionsWithSnippetText||void 0;let l=t;const _=n.getSourceFile(),u=function(e,t,n,r,i,o){const a=e.getDeclarations();if(!a||!a.length)return;const s=r.getTypeChecker(),c=a[0],l=JC(wc(c),!1),_=s.getWidenedType(s.getTypeOfSymbolAtLocation(e,t)),u=fY(n,o),d=33554432|(0===u?268435456:0);switch(c.kind){case 172:case 173:case 174:case 175:{let e=134217728&_.flags&&_.types.length<10?s.getUnionType(_.types,2):_;if(134217728&e.flags){const t=C(e.types,(e=>s.getSignaturesOfType(e,0).length>0));if(1!==t.length)return;e=t[0]}if(1!==s.getSignaturesOfType(e,0).length)return;const n=s.typeToTypeNode(e,t,d,void 0,M7.getNoopSymbolTrackerWithResolver({program:r,host:i}));if(!n||!UN(n))return;let a;if(o.includeCompletionsWithSnippetText){const e=vw.createEmptyStatement();a=vw.createBlock([e],!0),Yw(e,{kind:0,order:0})}else a=vw.createBlock([],!0);const c=n.parameters.map((e=>vw.createParameterDeclaration(void 0,e.dotDotDotToken,e.name,void 0,void 0,e.initializer)));return vw.createMethodDeclaration(void 0,void 0,l,void 0,void 0,c,void 0,a)}default:return}}(e,n,_,r,i,a);if(!u)return;const d=_se({removeComments:!0,module:o.module,moduleResolution:o.moduleResolution,target:o.target,omitTrailingSemicolon:!1,newLine:c0(YY(i,null==s?void 0:s.options))});l=s?d.printAndFormatSnippetList(80,vw.createNodeArray([u],!0),_,s):d.printSnippetList(80,vw.createNodeArray([u],!0),_);const p=EU({removeComments:!0,module:o.module,moduleResolution:o.moduleResolution,target:o.target,omitTrailingSemicolon:!0}),f=vw.createMethodSignature(void 0,"",u.questionToken,u.typeParameters,u.parameters,u.type);return{isSnippet:c,insertText:l,labelDetails:{detail:p.printNode(4,f,_)}}}function _se(e){let t;const n=ede.createWriter(Ib(e)),r=EU(e,n),i={...n,write:e=>o(e,(()=>n.write(e))),nonEscapingWrite:n.write,writeLiteral:e=>o(e,(()=>n.writeLiteral(e))),writeStringLiteral:e=>o(e,(()=>n.writeStringLiteral(e))),writeSymbol:(e,t)=>o(e,(()=>n.writeSymbol(e,t))),writeParameter:e=>o(e,(()=>n.writeParameter(e))),writeComment:e=>o(e,(()=>n.writeComment(e))),writeProperty:e=>o(e,(()=>n.writeProperty(e)))};return{printSnippetList:function(e,n,r){const i=a(e,n,r);return t?ede.applyChanges(i,t):i},printAndFormatSnippetList:function(e,n,r,i){const o={text:a(e,n,r),getLineAndCharacterOfPosition(e){return qa(this,e)}},s=_0(i,r),c=A(n,(e=>{const t=ede.assignPositionsToNode(e);return Fde.formatNodeGivenIndentation(t,o,r.languageVariant,0,0,{...i,options:s})})),l=t?le($(c,t),((e,t)=>vt(e.span,t.span))):c;return ede.applyChanges(o.text,l)},printNode:function(e,n,r){const i=s(e,n,r);return t?ede.applyChanges(i,t):i},printAndFormatNode:function(e,n,r,i){const o={text:s(e,n,r),getLineAndCharacterOfPosition(e){return qa(this,e)}},a=_0(i,r),c=ede.assignPositionsToNode(n),l=Fde.formatNodeGivenIndentation(c,o,r.languageVariant,0,0,{...i,options:a}),_=t?le($(l,t),((e,t)=>vt(e.span,t.span))):l;return ede.applyChanges(o.text,_)}};function o(e,r){const i=zT(e);if(i!==e){const e=n.getTextPos();r();const o=n.getTextPos();t=re(t||(t=[]),{newText:i,span:{start:e,length:o-e}})}else r()}function a(e,n,o){return t=void 0,i.clear(),r.writeList(e,n,o,i),i.getText()}function s(e,n,o){return t=void 0,i.clear(),r.writeNode(e,n,o,i),i.getText()}}function use(e){const t=e.fileName?void 0:Ey(e.moduleSymbol.name),n=!!e.isFromPackageJson||void 0;if(Mae(e)){return{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:n}}return{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:Ey(e.moduleSymbol.name),isPackageJsonImport:!!e.isFromPackageJson||void 0}}function dse(e,t,n){const r="default"===e.exportName,i=!!e.isPackageJsonImport;if(Hae(e)){return{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}}return{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}}function pse(e,t,n){return/^\d+$/.test(n)?n:xZ(e,t,n)}function fse(e,t,n){return e===t||!!(1048576&e.flags)&&n.getExportSymbolOfSymbol(e)===t}function mse(e){return Mae(e)?e.moduleSpecifier:Rae(e)?Ey(e.moduleSymbol.name):1===(null==e?void 0:e.kind)?"ThisProperty/":64===(null==e?void 0:e.kind)?"TypeOnlyAlias/":void 0}function gse(e,t,n,r,i,o,a,s,c,l,_,u,d,p,f,m,g,h,y,v,b,x,k,S,T,C=!1){const w=qn(),D=function(e,t){if(!e)return;let n=dc(e,(e=>Bf(e)||Gse(e)||S_(e)?"quit":(NN(e)||DN(e))&&!JN(e.parent)));n||(n=dc(t,(e=>Bf(e)||Gse(e)||S_(e)?"quit":pE(e))));return n}(r,i),N=OZ(a),F=c.getTypeChecker(),E=new Map;for(let _=0;_e.getSourceFile()===i.getSourceFile())));E.set(O,M),Y(t,R,$ae,void 0,!0)}return _("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(qn()-w)),{has:e=>E.has(e),add:e=>E.set(e,!0)};function P(e,t){var n;let o=e.flags;if(i.parent&&jE(i.parent))return!0;if(D&&et(D,pE)){if(e.valueDeclaration===D)return!1;if(S_(D.name)&&D.name.elements.some((t=>t===e.valueDeclaration)))return!1}const s=e.valueDeclaration??(null==(n=e.declarations)?void 0:n[0]);if(D&&s)if(NN(D)&&NN(s)){const e=D.parent.parameters;if(s.pos>=D.pos&&s.pos=D.pos&&s.posose(n,a,e)===i.name));return void 0!==b?{type:"literal",literal:b}:d(l,((e,t)=>{const n=f[t],r=Nse(e,xk(s),n,p,c.isJsxIdentifierExpected);return r&&r.name===i.name&&("ClassMemberSnippet/"===i.source&&106500&e.flags||"ObjectLiteralMethodSnippet/"===i.source&&8196&e.flags||mse(n)===i.source||"ObjectLiteralMemberWithComma/"===i.source)?{type:"symbol",symbol:e,location:u,origin:n,contextToken:m,previousToken:g,isJsxInitializer:h,isTypeOnlyLocation:v}:void 0}))||{type:"none"}}function yse(e,t,n,r,i,o,a,s,c){const l=e.getTypeChecker(),_=e.getCompilerOptions(),{name:u,source:d,data:p}=i,{previousToken:f,contextToken:m}=wse(r,n);if(mQ(n,r,f))return tce.getStringLiteralCompletionDetails(u,n,r,f,e,o,c,s);const g=hse(e,t,n,r,i,o,s);switch(g.type){case"request":{const{request:e}=g;switch(e.kind){case 1:return qle.getJSDocTagNameCompletionDetails(u);case 2:return qle.getJSDocTagCompletionDetails(u);case 3:return qle.getJSDocParameterNameCompletionDetails(u);case 4:return V(e.keywordCompletions,(e=>e.name===u))?vse(u,"keyword",5):void 0;default:return _n.assertNever(e)}}case"symbol":{const{symbol:t,location:i,contextToken:f,origin:m,previousToken:h}=g,{codeActions:y,sourceDisplay:v}=function(e,t,n,r,i,o,a,s,c,l,_,u,d,p,f,m){if((null==p?void 0:p.moduleSpecifier)&&_&&Use(n||_,c).replacementSpan)return{codeActions:void 0,sourceDisplay:[WY(p.moduleSpecifier)]};if("ClassMemberSnippet/"===f){const{importAdder:r,eraseRange:_}=cse(a,o,s,d,e,i,t,l,n,u);if((null==r?void 0:r.hasFixes())||_){return{sourceDisplay:void 0,codeActions:[{changes:ede.ChangeTracker.with({host:a,formatContext:u,preferences:d},(e=>{r&&r.writeFixes(e),_&&e.deleteRange(c,_)})),description:(null==r?void 0:r.hasFixes())?l0([ua.Includes_imports_of_types_referenced_by_0,e]):l0([ua.Update_modifiers_of_0,e])}]}}}if(Jae(r)){const e=M7.getPromoteTypeOnlyCompletionAction(c,r.declaration.name,o,a,u,d);return _n.assertIsDefined(e,"Expected to have a code action for promoting type-only alias"),{codeActions:[e],sourceDisplay:void 0}}if("ObjectLiteralMemberWithComma/"===f&&n){const t=ede.ChangeTracker.with({host:a,formatContext:u,preferences:d},(e=>e.insertText(c,n.end,",")));if(t)return{sourceDisplay:void 0,codeActions:[{changes:t,description:l0([ua.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!r||!Rae(r)&&!Mae(r))return{codeActions:void 0,sourceDisplay:void 0};const g=r.isFromPackageJson?a.getPackageJsonAutoImportProvider().getTypeChecker():o.getTypeChecker(),{moduleSymbol:h}=r,y=g.getMergedSymbol(sx(i.exportSymbol||i,g)),v=30===(null==n?void 0:n.kind)&&xu(n.parent),{moduleSpecifier:b,codeAction:x}=M7.getImportCompletionAction(y,h,null==p?void 0:p.exportMapKey,c,e,v,a,o,u,_&&_N(_)?_.getStart(c):l,d,m);return _n.assert(!(null==p?void 0:p.moduleSpecifier)||b===p.moduleSpecifier),{sourceDisplay:[WY(b)],codeActions:[x]}}(u,i,f,m,t,e,o,_,n,r,h,a,s,p,d,c);return bse(t,qae(m)?m.symbolName:t.name,l,n,i,c,y,v)}case"literal":{const{literal:e}=g;return vse(ose(n,s,e),"string","string"==typeof e?8:7)}case"cases":{const t=tse(m.parent,n,s,e.getCompilerOptions(),o,e,void 0);if(null==t?void 0:t.importAdder.hasFixes()){const{entry:e,importAdder:n}=t,r=ede.ChangeTracker.with({host:o,formatContext:a,preferences:s},n.writeFixes);return{name:e.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:r,description:l0([ua.Includes_imports_of_types_referenced_by_0,u])}]}}return{name:u,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Ese().some((e=>e.name===u))?vse(u,"keyword",5):void 0;default:_n.assertNever(g)}}function vse(e,t,n){return xse(e,"",t,[RY(e,n)])}function bse(e,t,n,r,i,o,a,s){const{displayParts:c,documentation:l,symbolKind:_,tags:u}=n.runWithCancellationToken(o,(t=>Wue.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,r,i,i,7)));return xse(t,Wue.getSymbolModifiers(n,e),_,c,l,u,a,s)}function xse(e,t,n,r,i,o,a,s){return{name:e,kindModifiers:t,kind:n,displayParts:r,documentation:i,tags:o,codeActions:a,source:s,sourceDisplay:s}}function kse(e,t,n,r,i,o,a){const s=hse(e,t,n,r,i,o,a);return"symbol"===s.type?s.symbol:void 0}var Sse=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(Sse||{});function Tse(e,t,n){const r=n.getAccessibleSymbolChain(e,t,-1,!1);return r?me(r):e.parent&&(function(e){var t;return!!(null==(t=e.declarations)?void 0:t.some((e=>308===e.kind)))}(e.parent)?e:Tse(e.parent,t,n))}function Cse(e,t,n,r,i,o,a,s,c,l){const u=e.getTypeChecker(),p=ese(n,r);let f=qn(),m=aQ(n,i);t("getCompletionData: Get current token: "+(qn()-f)),f=qn();const g=CQ(n,i,m);t("getCompletionData: Is inside comment: "+(qn()-f));let h=!1,v=!1,b=!1;if(g){if(wQ(n,i)){if(64===n.text.charCodeAt(i-1))return{kind:1};{const e=IX(i,n);if(!/[^*|\s(/)]/.test(n.text.substring(e,i)))return{kind:2}}}const e=function(e,t){return dc(e,(e=>!(!wu(e)||!LX(e,t))||!!DP(e)&&"quit"))}(m,i);if(e){if(e.tagName.pos<=i&&i<=e.tagName.end)return{kind:1};if(eA(e))v=!0;else{const t=function(e){if(function(e){switch(e.kind){case 342:case 349:case 343:case 345:case 347:case 350:case 351:return!0;case 346:return!!e.constraint;default:return!1}}(e)){const t=HP(e)?e.constraint:e.typeExpression;return t&&310===t.kind?t:void 0}if(EP(e)||QP(e))return e.class;return}(e);if(t&&(m=aQ(n,i),m&&(_h(m)||349===m.parent.kind&&m.parent.name===m)||(h=ve(t))),!h&&UP(e)&&(Nd(e.name)||e.name.pos<=i&&i<=e.name.end))return{kind:3,tag:e}}}if(!h&&!v)return void t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}f=qn();const x=!h&&!v&&Fm(n),k=wse(i,n),S=k.previousToken;let T=k.contextToken;t("getCompletionData: Get previous token: "+(qn()-f));let w,D,N,F=m,E=!1,P=!1,I=!1,O=!1,L=!1,j=!1,M=iQ(n,i),B=0,J=!1,z=0;if(T){const e=Use(T,n);if(e.keywordCompletion){if(e.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[(q=e.keywordCompletion,{name:Ea(q),kind:"keyword",kindModifiers:"",sortText:Aae.GlobalsOrKeywords})],isNewIdentifierLocation:e.isNewIdentifierLocation};B=function(e){if(156===e)return 8;_n.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}(e.keywordCompletion)}if(e.replacementSpan&&o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText&&(z|=2,D=e,J=e.isNewIdentifierLocation),!e.replacementSpan&&function(e){const r=qn(),o=function(e){return(GD(e)||Vl(e))&&(jX(e,i)||i===e.end&&(!!e.isUnterminated||GD(e)))}(e)||function(e){const t=e.parent,r=t.kind;switch(e.kind){case 28:return 261===r||262===(o=e).parent.kind&&!kQ(o,n,u)||244===r||267===r||pe(r)||265===r||208===r||266===r||d_(t)&&!!t.typeParameters&&t.typeParameters.end>=e.pos;case 25:case 23:return 208===r;case 59:return 209===r;case 21:return 300===r||pe(r);case 19:return 267===r;case 30:return 264===r||232===r||265===r||266===r||l_(r);case 126:return 173===r&&!d_(t.parent);case 26:return 170===r||!!t.parent&&208===t.parent.kind;case 125:case 123:case 124:return 170===r&&!LN(t.parent);case 130:return 277===r||282===r||275===r;case 139:case 153:return!zse(e);case 80:if((277===r||282===r)&&e===t.name&&"type"===e.text)return!1;if(dc(e.parent,pE)&&function(e,t){return n.getLineEndOfPosition(e.getEnd())S.end))}(e)||function(e){if(9===e.kind){const t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(e)||function(e){if(12===e.kind)return!0;if(32===e.kind&&e.parent){if(M===e.parent&&(287===M.kind||286===M.kind))return!1;if(287===e.parent.kind)return 287!==M.parent.kind;if(288===e.parent.kind||286===e.parent.kind)return!!e.parent.parent&&285===e.parent.parent.kind}return!1}(e)||$D(e);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(qn()-r)),o}(T))return t("Returning an empty list because completion was requested in an invalid position."),B?Yae(B,x,_e().isNewIdentifierLocation):void 0;let r=T.parent;if(25===T.kind||29===T.kind)switch(E=25===T.kind,P=29===T.kind,r.kind){case 212:w=r,F=w.expression;if(Nd(Nx(w))||(yF(F)||i_(F))&&F.end===T.pos&&F.getChildCount(n)&&22!==ye(F.getChildren(n)).kind)return;break;case 167:F=r.left;break;case 268:F=r.name;break;case 206:F=r;break;case 237:F=r.getFirstToken(n),_n.assert(102===F.kind||105===F.kind);break;default:return}else if(!D){if(r&&212===r.kind&&(T=r,r=r.parent),m.parent===M)switch(m.kind){case 32:285!==m.parent.kind&&287!==m.parent.kind||(M=m);break;case 44:286===m.parent.kind&&(M=m)}switch(r.kind){case 288:44===T.kind&&(O=!0,M=T);break;case 227:if(!qse(r))break;case 286:case 285:case 287:j=!0,30===T.kind&&(I=!0,M=T);break;case 295:case 294:(20===S.kind||80===S.kind&&292===S.parent.kind)&&(j=!0);break;case 292:if(r.initializer===S&&S.endsY(t?s.getPackageJsonAutoImportProvider():e,s)));if(E||P)!function(){H=2;const e=df(F),t=e&&!F.isTypeOf||wf(F.parent)||kQ(T,n,u),r=iX(F);if(t_(F)||e||gF(F)){const n=bE(F.parent);n&&(J=!0,N=[]);let i=u.getSymbolAtLocation(F);if(i&&(i=sx(i,u),1920&i.flags)){const a=u.getExportsOfModule(i);_n.assertEachIsDefined(a,"getExportsOfModule() should all be defined");const s=t=>u.isValidPropertyAccess(e?F:F.parent,t.name),c=e=>Xse(e,u),l=n?e=>{var t;return!!(1920&e.flags)&&!(null==(t=e.declarations)?void 0:t.every((e=>e.parent===F.parent)))}:r?e=>c(e)||s(e):t||h?c:s;for(const e of a)l(e)&&G.push(e);if(!t&&!h&&i.declarations&&i.declarations.some((e=>308!==e.kind&&268!==e.kind&&267!==e.kind))){let e=u.getTypeOfSymbolAtLocation(i,F).getNonOptionalType(),t=!1;if(e.isNullableType()){const n=E&&!P&&!1!==o.includeAutomaticOptionalChainCompletions;(n||P)&&(e=e.getNonNullableType(),n&&(t=!0))}oe(e,!!(65536&F.flags),t)}return}}if(!t||uv(F)){u.tryGetThisTypeAt(F,!1);let e=u.getTypeAtLocation(F).getNonOptionalType();if(t)oe(e.getNonNullableType(),!1,!1);else{let t=!1;if(e.isNullableType()){const n=E&&!P&&!1!==o.includeAutomaticOptionalChainCompletions;(n||P)&&(e=e.getNonNullableType(),n&&(t=!0))}oe(e,!!(65536&F.flags),t)}}}();else if(I)G=u.getJsxIntrinsicTagNamesAt(M),_n.assertEachIsDefined(G,"getJsxIntrinsicTagNames() should all be defined"),ce(),H=1,B=0;else if(O){const e=T.parent.parent.openingElement.tagName,t=u.getSymbolAtLocation(e);t&&(G=[t]),H=1,B=0}else if(!ce())return B?Yae(B,x,J):void 0;t("getCompletionData: Semantic work: "+(qn()-U));const ne=S&&(function(e,t,n,r){const{parent:i}=e;switch(e.kind){case 80:return bZ(e,r);case 64:switch(i.kind){case 261:return r.getContextualType(i.initializer);case 227:return r.getTypeAtLocation(i.left);case 292:return r.getContextualTypeForJsxAttribute(i);default:return}case 105:return r.getContextualType(i);case 84:const o=et(i,rP);return o?CZ(o,r):void 0;case 19:return!tP(i)||WE(i.parent)||GE(i.parent)?void 0:r.getContextualTypeForJsxAttribute(i.parent);default:const a=cue.getArgumentInfoForCompletions(e,t,n,r);return a?r.getContextualTypeForArgumentAtIndex(a.invocation,a.argumentIndex):kZ(e.kind)&&PF(i)&&kZ(i.operatorToken.kind)?r.getTypeAtLocation(i.left):r.getContextualType(e,4)||r.getContextualType(e)}}(S,i,n,u)??Jse(S,u)),re=!et(S,Ru)&&!j?R(ne&&(ne.isUnion()?ne.types:[ne]),(e=>!e.isLiteral()||32768&e.flags?void 0:e.value)):[],ie=S&&ne&&function(e,t,n){return d(t&&(t.isUnion()?t.types:[t]),(t=>{const r=t&&t.symbol;return r&&424&r.flags&&!gx(r)?Tse(r,e,n):void 0}))}(S,ne,u);return{kind:0,symbols:G,completionKind:H,isInSnippetScope:b,propertyAccessToConvert:w,isNewIdentifierLocation:J,location:M,keywordFilters:B,literals:re,symbolToOriginInfoMap:X,recommendedCompletion:ie,previousToken:S,contextToken:T,isJsxInitializer:L,insideJsDocTagTypeExpression:h,symbolToSortTextMap:Q,isTypeOnlyLocation:Z,isJsxIdentifierExpected:j,isRightOfOpenTag:I,isRightOfDotOrQuestionDot:E||P,importStatementCompletion:D,hasUnresolvedAutoImports:K,flags:z,defaultCommitCharacters:N};function oe(e,t,n){e.getStringIndexType()&&(J=!0,N=[]),P&&V(e.getCallSignatures())&&(J=!0,N??(N=Iae));const r=206===F.kind?F:F.parent;if(p)for(const t of e.getApparentProperties())u.isValidPropertyAccessForCompletions(r,e,t)&&ae(t,!1,n);else G.push(...C(Bse(e,u),(t=>u.isValidPropertyAccessForCompletions(r,e,t))));if(t&&o.includeCompletionsWithInsertText){const t=u.getPromisedTypeOfPromise(e);if(t)for(const e of t.getApparentProperties())u.isValidPropertyAccessForCompletions(r,t,e)&&ae(e,!0,n)}}function ae(t,r,a){var c;const l=d(t.declarations,(e=>et(wc(e),wN)));if(l){const r=se(l.expression),a=r&&u.getSymbolAtLocation(r),d=a&&Tse(a,T,u),m=d&&lJ(d);if(m&&kx(Y,m)){const t=G.length;G.push(d),Q[lJ(d)]=Aae.GlobalsOrKeywords;const r=d.parent;if(r&&Yu(r)&&u.tryGetMemberInModuleExportsAndProperties(d.name,r)===d){const a=ws(Ey(r.name))?null==(c=xd(r))?void 0:c.fileName:void 0,{moduleSpecifier:l}=(W||(W=M7.createImportSpecifierResolver(n,e,s,o))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:a,isFromPackageJson:!1,moduleSymbol:r,symbol:d,targetFlags:sx(d,u).flags}],i,kT(M))||{};if(l){const e={kind:f(34),moduleSymbol:r,isDefaultExport:!1,symbolName:d.name,exportName:d.name,fileName:a,moduleSpecifier:l};X[t]=e}}else X[t]={kind:f(2)}}else if(o.includeCompletionsWithInsertText){if(m&&Y.has(m))return;p(t),_(t),G.push(t)}}else p(t),_(t),G.push(t);function _(e){(function(e){return!!(e.valueDeclaration&&256&zv(e.valueDeclaration)&&d_(e.valueDeclaration.parent))})(e)&&(Q[lJ(e)]=Aae.LocalDeclarationPriority)}function p(e){o.includeCompletionsWithInsertText&&(r&&kx(Y,lJ(e))?X[G.length]={kind:f(8)}:a&&(X[G.length]={kind:16}))}function f(e){return a?16|e:e}}function se(e){return _N(e)?e:gF(e)?se(e.expression):void 0}function ce(){const t=function(){const e=function(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if($N(t))return t;break;case 27:case 28:case 80:if(172===t.kind&&$N(t.parent))return t.parent}return}(T);if(!e)return 0;const t=(ZN(e.parent)?e.parent:void 0)||e,n=Jse(t,u);if(!n)return 0;const r=u.getTypeFromTypeNode(t),i=Bse(n,u),o=Bse(r,u),a=new Set;return o.forEach((e=>a.add(e.escapedName))),G=$(G,C(i,(e=>!a.has(e.escapedName)))),H=0,J=!0,1}()||function(){if(26===(null==T?void 0:T.kind))return 0;const t=G.length,a=function(e,t,n){var r;if(e){const{parent:i}=e;switch(e.kind){case 19:case 28:if(mF(i)||uF(i))return i;break;case 42:return IN(i)?et(i.parent,mF):void 0;case 134:return et(i.parent,mF);case 80:if("async"===e.text&&cP(e.parent))return e.parent.parent;{if(mF(e.parent.parent)&&(lP(e.parent)||cP(e.parent)&&qa(n,e.getEnd()).line!==qa(n,t).line))return e.parent.parent;const r=dc(i,sP);if((null==r?void 0:r.getLastToken(n))===e&&mF(r.parent))return r.parent}break;default:if((null==(r=i.parent)?void 0:r.parent)&&(IN(i.parent)||jN(i.parent)||RN(i.parent))&&mF(i.parent.parent))return i.parent.parent;if(lP(i)&&mF(i.parent))return i.parent;const o=dc(i,sP);if(59!==e.kind&&(null==o?void 0:o.getLastToken(n))===e&&mF(o.parent))return o.parent}}return}(T,i,n);if(!a)return 0;let l,_;if(H=0,211===a.kind){const e=function(e,t){const n=t.getContextualType(e);if(n)return n;const r=ih(e.parent);if(PF(r)&&64===r.operatorToken.kind&&e===r.left)return t.getTypeAtLocation(r);if(W_(r))return t.getContextualType(r);return}(a,u);if(void 0===e)return 67108864&a.flags?2:0;const t=u.getContextualType(a,4),n=(t||e).getStringIndexType(),r=(t||e).getNumberIndexType();if(J=!!n||!!r,l=Rse(e,t,a,u),_=a.properties,0===l.length&&!r)return 0}else{_n.assert(207===a.kind),J=!1;const e=Zh(a.parent);if(!Af(e))return _n.fail("Root declaration is not variable-like.");let t=Pu(e)||!!mv(e)||251===e.parent.parent.kind;if(t||170!==e.kind||(W_(e.parent)?t=!!u.getContextualType(e.parent):175!==e.parent.kind&&179!==e.parent.kind||(t=W_(e.parent.parent)&&!!u.getContextualType(e.parent.parent))),t){const e=u.getTypeAtLocation(a);if(!e)return 2;l=u.getPropertiesOfType(e).filter((t=>u.isPropertyAccessible(a,!1,!1,e,t))),_=a.elements}}if(l&&l.length>0){const n=function(e,t){if(0===t.length)return e;const n=new Set,r=new Set;for(const e of t){if(304!==e.kind&&305!==e.kind&&209!==e.kind&&175!==e.kind&&178!==e.kind&&179!==e.kind&&306!==e.kind)continue;if(ve(e))continue;let t;if(lP(e))fe(e,n);else if(pF(e)&&e.propertyName)80===e.propertyName.kind&&(t=e.propertyName.escapedText);else{const n=wc(e);t=n&&qh(n)?Vh(n):void 0}void 0!==t&&r.add(t)}const i=e.filter((e=>!r.has(e.escapedName)));return ge(n,i),i}(l,_n.checkDefined(_));G=$(G,n),me(),211===a.kind&&o.includeCompletionsWithObjectLiteralMethodSnippets&&o.includeCompletionsWithInsertText&&(function(e){for(let t=e;t{if(!function(e){if(!(8196&e.flags))return!1;return!0}(t))return;const i=Nse(t,xk(r),void 0,0,!1);if(!i)return;const{name:a}=i,l=lse(t,a,n,e,s,r,o,c);if(!l)return;const _={kind:128,...l};z|=32,X[G.length]=_,G.push(t)}))}(n,a))}return 1}()||(D?(J=!0,le(),1):0)||function(){if(!T)return 0;const e=19===T.kind||28===T.kind?et(T.parent,Dx):YQ(T)?et(T.parent.parent,Dx):void 0;if(!e)return 0;YQ(T)||(B=8);const{moduleSpecifier:t}=276===e.kind?e.parent.parent:e.parent;if(!t)return J=!0,276===e.kind?2:0;const n=u.getSymbolAtLocation(t);if(!n)return J=!0,2;H=3,J=!1;const r=u.getExportsAndPropertiesOfModule(n),i=new Set(e.elements.filter((e=>!ve(e))).map((e=>Hd(e.propertyName||e.name)))),o=r.filter((e=>"default"!==e.escapedName&&!i.has(e.escapedName)));G=$(G,o),o.length||(B=0);return 1}()||function(){if(void 0===T)return 0;const e=19===T.kind||28===T.kind?et(T.parent,EE):59===T.kind?et(T.parent.parent,EE):void 0;if(void 0===e)return 0;const t=new Set(e.elements.map(mC));return G=C(u.getTypeAtLocation(e).getApparentProperties(),(e=>!t.has(e.escapedName))),1}()||function(){var e;const t=!T||19!==T.kind&&28!==T.kind?void 0:et(T.parent,ME);if(!t)return 0;const n=dc(t,Zt(uP,bE));return H=5,J=!1,null==(e=n.locals)||e.forEach(((e,t)=>{var r,i;G.push(e),(null==(i=null==(r=n.symbol)?void 0:r.exports)?void 0:i.has(t))&&(Q[lJ(e)]=Aae.OptionalMember)})),1}()||(function(e){if(e){const t=e.parent;switch(e.kind){case 21:case 28:return LN(e.parent)?e.parent:void 0;default:if(ue(e))return t.parent}}}(T)?(H=5,J=!0,B=4,1):0)||function(){const e=function(e,t,n,r){switch(n.kind){case 353:return et(n.parent,Sx);case 1:const t=et(he(tt(n.parent,uP).statements),Sx);if(t&&!$X(t,20,e))return t;break;case 81:if(et(n.parent,PN))return dc(n,d_);break;case 80:if(yc(n))return;if(PN(n.parent)&&n.parent.initializer===n)return;if(zse(n))return dc(n,Sx)}if(!t)return;if(137===n.kind||_N(t)&&PN(t.parent)&&d_(n))return dc(t,d_);switch(t.kind){case 64:return;case 27:case 20:return zse(n)&&n.parent.name===n?n.parent.parent:et(n,Sx);case 19:case 28:return et(t.parent,Sx);default:if(Sx(n)){if(qa(e,t.getEnd()).line!==qa(e,r).line)return n;const i=d_(t.parent.parent)?Ose:Ise;return i(t.kind)||42===t.kind||_N(t)&&i(yc(t)??0)?t.parent.parent:void 0}return}}(n,T,M,i);if(!e)return 0;if(H=3,J=!0,B=42===T.kind?0:d_(e)?2:3,!d_(e))return 1;const t=27===T.kind?T.parent.parent:T.parent;let r=u_(t)?zv(t):0;if(80===T.kind&&!ve(T))switch(T.getText()){case"private":r|=2;break;case"static":r|=256;break;case"override":r|=16}ON(t)&&(r|=256);if(!(2&r)){const t=A(d_(e)&&16&r?nn(vh(e)):kh(e),(t=>{const n=u.getTypeAtLocation(t);return 256&r?(null==n?void 0:n.symbol)&&u.getPropertiesOfType(u.getTypeOfSymbolAtLocation(n.symbol,e)):n&&u.getPropertiesOfType(n)}));G=$(G,function(e,t,n){const r=new Set;for(const e of t){if(173!==e.kind&&175!==e.kind&&178!==e.kind&&179!==e.kind)continue;if(ve(e))continue;if(Nv(e,2))continue;if(Ev(e)!==!!(256&n))continue;const t=zh(e.name);t&&r.add(t)}return e.filter((e=>!(r.has(e.escapedName)||!e.declarations||2&ax(e)||e.valueDeclaration&&Gl(e.valueDeclaration))))}(t,e.members,r)),_(G,((e,t)=>{const n=null==e?void 0:e.valueDeclaration;if(n&&u_(n)&&n.name&&wN(n.name)){const n={kind:512,symbolName:u.symbolToString(e)};X[t]=n}}))}return 1}()||function(){const e=function(e){if(e){const t=e.parent;switch(e.kind){case 32:case 31:case 44:case 80:case 212:case 293:case 292:case 294:if(t&&(286===t.kind||287===t.kind)){if(32===e.kind){const r=uQ(e.pos,n,void 0);if(!t.typeArguments||r&&44===r.kind)break}return t}if(292===t.kind)return t.parent.parent;break;case 11:if(t&&(292===t.kind||294===t.kind))return t.parent.parent;break;case 20:if(t&&295===t.kind&&t.parent&&292===t.parent.kind)return t.parent.parent.parent;if(t&&294===t.kind)return t.parent.parent}}return}(T),t=e&&u.getContextualType(e.attributes);if(!t)return 0;const r=e&&u.getContextualType(e.attributes,4);return G=$(G,function(e,t){const n=new Set,r=new Set;for(const e of t)ve(e)||(292===e.kind?n.add(rC(e.name)):eP(e)&&fe(e,r));const i=e.filter((e=>!n.has(e.escapedName)));return ge(r,i),i}(Rse(t,r,e.attributes,u),e.attributes.properties)),me(),H=3,J=!1,1}()||(function(){B=function(e){if(e){let t;const n=dc(e.parent,(e=>d_(e)?"quit":!(!a_(e)||t!==e.body)||(t=e,!1)));return n&&n}}(T)?5:1,H=1,({isNewIdentifierLocation:J,defaultCommitCharacters:N}=_e()),S!==T&&_n.assert(!!S,"Expected 'contextToken' to be defined when different from 'previousToken'.");const e=S!==T?S.getStart():i,t=function(e,t,n){let r=e;for(;r&&!zX(r,t,n);)r=r.parent;return r}(T,e,n)||n;b=function(e){switch(e.kind){case 308:case 229:case 295:case 242:return!0;default:return fu(e)}}(t);const r=2887656|(Z?0:111551),a=S&&!kT(S);G=$(G,u.getSymbolsInScope(t,r)),_n.assertEachIsDefined(G,"getSymbolsInScope() should all be defined");for(let e=0;ee.getSourceFile()===n))||(Q[lJ(t)]=Aae.GlobalsOrKeywords),a&&!(111551&t.flags)){const n=t.declarations&&y(t.declarations,Jl);if(n){const t={kind:64,declaration:n};X[e]=t}}}if(o.includeCompletionsWithInsertText&&308!==t.kind){const e=u.tryGetThisTypeAt(t,!1,d_(t.parent)?t:void 0);if(e&&!function(e,t,n){const r=n.resolveName("self",void 0,111551,!1);if(r&&n.getTypeOfSymbolAtLocation(r,t)===e)return!0;const i=n.resolveName("global",void 0,111551,!1);if(i&&n.getTypeOfSymbolAtLocation(i,t)===e)return!0;const o=n.resolveName("globalThis",void 0,111551,!1);if(o&&n.getTypeOfSymbolAtLocation(o,t)===e)return!0;return!1}(e,n,u))for(const t of Bse(e,u))X[G.length]={kind:1},G.push(t),Q[lJ(t)]=Aae.SuggestedClassMembers}le(),Z&&(B=T&&$_(T.parent)?6:7)}(),1);return 1===t}function le(){var t,r;if(!function(){var t;return!!D||!!o.includeCompletionsForModuleExports&&(!(!n.externalModuleIndicator&&!n.commonJsModuleIndicator)||!!aY(e.getCompilerOptions())||(null==(t=e.getSymlinkCache)?void 0:t.call(e).hasAnySymlinks())||!!e.getCompilerOptions().paths||iY(e))}())return;if(_n.assert(!(null==a?void 0:a.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),a&&!a.source)return;z|=1;const c=S===T&&D?"":S&&_N(S)?S.text.toLowerCase():"",_=null==(t=s.getModuleSpecifierCache)?void 0:t.call(s),u=D0(n,s,e,o,l),d=null==(r=s.getPackageJsonAutoImportProvider)?void 0:r.call(s),p=a?void 0:VZ(n,o,s);function f(t){return b0(t.isFromPackageJson?d:e,n,et(t.moduleSymbol.valueDeclaration,uP),t.moduleSymbol,o,p,te(t.isFromPackageJson),_)}Uae("collectAutoImports",s,W||(W=M7.createImportSpecifierResolver(n,e,s,o)),e,i,o,!!D,kT(M),(e=>{u.search(n.path,I,((e,t)=>{if(!gs(e,xk(s.getCompilationSettings())))return!1;if(!a&&Ph(e))return!1;if(!(Z||D||111551&t))return!1;if(Z&&!(790504&t))return!1;const n=e.charCodeAt(0);return(!I||!(n<65||n>90))&&(!!a||Yse(e,c))}),((t,n,r,i)=>{if(!(t=C(t,f)).length)return;const o=e.tryResolve(t,r)||{};if("failed"===o)return;let s,c=t[0];if("skipped"!==o&&({exportInfo:c=t[0],moduleSpecifier:s}=o),a&&a.source!==s&&!V(t,(e=>a.source===Ey(e.moduleSymbol.name))))return;const l=1===c.exportKind;!function(e,t){const n=lJ(e);if(Q[n]===Aae.GlobalsOrKeywords)return;X[G.length]=t,Q[n]=D?Aae.LocationPriority:Aae.AutoImportSuggestions,G.push(e)}(l&&xb(_n.checkDefined(c.symbol))||_n.checkDefined(c.symbol),{kind:s?32:4,moduleSpecifier:s,symbolName:n,exportMapKey:i,exportName:2===c.exportKind?"export=":_n.checkDefined(c.symbol).name,fileName:c.moduleFileName,isDefaultExport:l,moduleSymbol:c.moduleSymbol,isFromPackageJson:c.isFromPackageJson})})),K=e.skippedAny(),z|=e.resolvedAny()?8:0,z|=e.resolvedBeyondLimit()?16:0}))}function _e(){if(T){const e=T.parent.kind,t=jse(T);switch(t){case 28:switch(e){case 214:case 215:{const e=T.parent.expression;return qa(n,e.end).line!==qa(n,i).line?{defaultCommitCharacters:Oae,isNewIdentifierLocation:!0}:{defaultCommitCharacters:Iae,isNewIdentifierLocation:!0}}case 227:return{defaultCommitCharacters:Oae,isNewIdentifierLocation:!0};case 177:case 185:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 210:return{defaultCommitCharacters:Iae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Iae,isNewIdentifierLocation:!1}}case 21:switch(e){case 214:case 215:{const e=T.parent.expression;return qa(n,e.end).line!==qa(n,i).line?{defaultCommitCharacters:Oae,isNewIdentifierLocation:!0}:{defaultCommitCharacters:Iae,isNewIdentifierLocation:!0}}case 218:return{defaultCommitCharacters:Oae,isNewIdentifierLocation:!0};case 177:case 197:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Iae,isNewIdentifierLocation:!1}}case 23:switch(e){case 210:case 182:case 190:case 168:return{defaultCommitCharacters:Iae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Iae,isNewIdentifierLocation:!1}}case 144:case 145:case 102:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 25:return 268===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:Iae,isNewIdentifierLocation:!1};case 19:switch(e){case 264:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Iae,isNewIdentifierLocation:!1}}case 64:switch(e){case 261:case 227:return{defaultCommitCharacters:Iae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Iae,isNewIdentifierLocation:!1}}case 16:return{defaultCommitCharacters:Iae,isNewIdentifierLocation:229===e};case 17:return{defaultCommitCharacters:Iae,isNewIdentifierLocation:240===e};case 134:return 175===e||305===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:Iae,isNewIdentifierLocation:!1};case 42:return 175===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:Iae,isNewIdentifierLocation:!1}}if(Ose(t))return{defaultCommitCharacters:[],isNewIdentifierLocation:!0}}return{defaultCommitCharacters:Iae,isNewIdentifierLocation:!1}}function ue(e){return!!e.parent&&NN(e.parent)&&LN(e.parent.parent)&&(Yl(e.kind)||_h(e))}function de(e,t){return 64!==e.kind&&(27===e.kind||!Kb(e.end,t,n))}function pe(e){return l_(e)&&177!==e}function fe(e,t){const n=e.expression,r=u.getSymbolAtLocation(n),i=r&&u.getTypeOfSymbolAtLocation(r,n),o=i&&i.properties;o&&o.forEach((e=>{t.add(e.name)}))}function me(){G.forEach((e=>{if(16777216&e.flags){const t=lJ(e);Q[t]=Q[t]??Aae.OptionalMember}}))}function ge(e,t){if(0!==e.size)for(const n of t)e.has(n.name)&&(Q[lJ(n)]=Aae.MemberDeclaredBySpreadAssignment)}function ve(e){return e.getStart(n)<=i&&i<=e.getEnd()}}function wse(e,t){const n=uQ(e,t);if(n&&e<=n.end&&(pl(n)||wh(n.kind))){return{contextToken:uQ(n.getFullStart(),t,void 0),previousToken:n}}return{contextToken:n,previousToken:n}}function Dse(e,t,n,r){const i=t.isPackageJsonImport?r.getPackageJsonAutoImportProvider():n,o=i.getTypeChecker(),a=t.ambientModuleName?o.tryFindAmbientModule(t.ambientModuleName):t.fileName?o.getMergedSymbol(_n.checkDefined(i.getSourceFile(t.fileName)).symbol):void 0;if(!a)return;let s="export="===t.exportName?o.resolveExternalModuleSymbol(a):o.tryGetMemberInModuleExportsAndProperties(t.exportName,a);if(!s)return;return s="default"===t.exportName&&xb(s)||s,{symbol:s,origin:dse(t,e,a)}}function Nse(e,t,n,r,i){if(function(e){return!!(e&&256&e.kind)}(n))return;const o=function(e){return Rae(e)||Mae(e)||qae(e)}(n)?n.symbolName:e.name;if(void 0===o||1536&e.flags&&qm(o.charCodeAt(0))||$h(e))return;const a={name:o,needsConvertPropertyAccess:!1};if(gs(o,t,i?1:0)||e.valueDeclaration&&Gl(e.valueDeclaration))return a;if(2097152&e.flags)return{name:o,needsConvertPropertyAccess:!0};switch(r){case 3:return qae(n)?{name:n.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return 32===o.charCodeAt(0)?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return a;default:_n.assertNever(r)}}var Fse=[],Ese=ut((()=>{const e=[];for(let t=83;t<=166;t++)e.push({name:Ea(t),kind:"keyword",kindModifiers:"",sortText:Aae.GlobalsOrKeywords});return e}));function Pse(e,t){if(!t)return Ase(e);const n=e+8+1;return Fse[n]||(Fse[n]=Ase(e).filter((e=>!function(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}(Pa(e.name)))))}function Ase(e){return Fse[e]||(Fse[e]=Ese().filter((t=>{const n=Pa(t.name);switch(e){case 0:return!1;case 1:return Lse(n)||138===n||144===n||156===n||145===n||128===n||XQ(n)&&157!==n;case 5:return Lse(n);case 2:return Ose(n);case 3:return Ise(n);case 4:return Yl(n);case 6:return XQ(n)||87===n;case 7:return XQ(n);case 8:return 156===n;default:return _n.assertNever(e)}})))}function Ise(e){return 148===e}function Ose(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return Zl(e)}}function Lse(e){return 134===e||135===e||160===e||130===e||152===e||156===e||!Fh(e)&&!Ose(e)}function jse(e){return _N(e)?yc(e)??0:e.kind}function Rse(e,t,n,r){const i=t&&t!==e,o=r.getUnionType(C(134217728&e.flags?e.types:[e],(e=>!r.getPromisedTypeOfPromise(e)))),a=!i||3&t.flags?o:r.getUnionType([o,t]),s=function(e,t,n){return e.isUnion()?n.getAllPossiblePropertiesOfTypes(C(e.types,(e=>!(12713980&e.flags||n.isArrayLikeType(e)||n.isTypeInvalidDueToUnionDiscriminant(e,t)||n.typeHasCallOrConstructSignatures(e)||e.isClass()&&Mse(e.getApparentProperties()))))):e.getApparentProperties()}(a,n,r);return a.isClass()&&Mse(s)?[]:i?C(s,(function(e){return!l(e.declarations)||V(e.declarations,(e=>e.parent!==n))})):s}function Mse(e){return V(e,(e=>!!(6&ax(e))))}function Bse(e,t){return e.isUnion()?_n.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):_n.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function Jse(e,t){if(!e)return;if(x_(e)){const n=t.getTypeArgumentConstraint(e);if(n)return n}const n=Jse(e.parent,t);if(n)switch(e.kind){case 172:return t.getTypeOfPropertyOfContextualType(n,e.symbol.escapedName);case 59:if(172===e.parent.kind)return n;break;case 194:case 188:case 193:return n;case 23:return t.getElementTypeOfArrayType(n)}}function zse(e){return e.parent&&v_(e.parent)&&Sx(e.parent.parent)}function qse({left:e}){return Nd(e)}function Use(e,t){var n,r,i;let o,a=!1;const s=function(){const n=e.parent;if(TE(n)){const r=n.getLastToken(t);return _N(e)&&r!==e?(o=161,void(a=!0)):(o=156===e.kind?void 0:156,Kse(n.moduleReference)?n:void 0)}if($se(n,e)&&Hse(n.parent))return n;if(OE(n)||AE(n)){if(n.parent.isTypeOnly||19!==e.kind&&102!==e.kind&&28!==e.kind||(o=156),Hse(n)){if(20!==e.kind&&80!==e.kind)return n.parent.parent;a=!0,o=161}return}if(RE(n)&&42===e.kind||ME(n)&&20===e.kind)return a=!0,void(o=161);if(SN(e)&&uP(n))return o=156,e;if(SN(e)&&CE(n))return o=156,Kse(n.moduleSpecifier)?n:void 0;return}();return{isKeywordOnlyCompletion:a,keywordCompletion:o,isNewIdentifierLocation:!(!s&&156!==o),isTopLevelTypeOnly:!!(null==(r=null==(n=et(s,CE))?void 0:n.importClause)?void 0:r.isTypeOnly)||!!(null==(i=et(s,TE))?void 0:i.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!s&&$se(s,e),replacementSpan:Vse(s)}}function Vse(e){var t;if(!e)return;const n=dc(e,Zt(CE,TE,eA))??e,r=n.getSourceFile();if(Jb(n,r))return qQ(n,r);_n.assert(102!==n.kind&&277!==n.kind);const i=273===n.kind||352===n.kind?Wse(null==(t=n.importClause)?void 0:t.namedBindings)??n.moduleSpecifier:n.moduleReference,o={pos:n.getFirstToken().getStart(),end:i.pos};return Jb(o,r)?WQ(o):void 0}function Wse(e){var t;return y(null==(t=et(e,OE))?void 0:t.elements,(t=>{var n;return!t.propertyName&&Ph(t.name.text)&&28!==(null==(n=uQ(t.name.pos,e.getSourceFile(),e))?void 0:n.kind)}))}function $se(e,t){return LE(e)&&(e.isTypeOnly||t===e.name&&YQ(t))}function Hse(e){if(!Kse(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(OE(e)){const t=Wse(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Kse(e){var t;return!!Nd(e)||!(null==(t=et(VE(e)?e.expression:e,Ru))?void 0:t.text)}function Gse(e){return e.parent&&TF(e.parent)&&(e.parent.body===e||39===e.kind)}function Xse(e,t,n=new Set){return r(e)||r(sx(e.exportSymbol||e,t));function r(e){return!!(788968&e.flags)||t.isUnknownSymbol(e)||!!(1536&e.flags)&&kx(n,e)&&t.getExportsOfModule(e).some((e=>Xse(e,t,n)))}}function Qse(e,t){const n=sx(e,t).declarations;return!!l(n)&&h(n,a0)}function Yse(e,t){if(0===t.length)return!0;let n,r=!1,i=0;const o=e.length;for(let a=0;aoce,getStringLiteralCompletions:()=>ice});var nce={directory:0,script:1,"external module name":2};function rce(){const e=new Map;return{add:function(t){const n=e.get(t.name);(!n||nce[n.kind]t>=e.pos&&t<=e.end));if(!c)return;const l=e.text.slice(c.pos,t),_=Fce.exec(l);if(!_)return;const[,u,d,p]=_,f=Fo(e.path),m="path"===d?vce(p,f,hce(o,0,e),n,r,i,!0,e.path):"types"===d?Nce(n,r,i,f,Tce(p),hce(o,1,e)):_n.fail();return mce(p,c.pos+u.length,Ie(m.values()))}(e,t,o,i,sY(o,i));return n&&ace(n)}if(mQ(e,t,n)){if(!n||!Ru(n))return;return function(e,t,n,r,i,o,a,s,c,l){if(void 0===e)return;const _=UQ(t,c);switch(e.kind){case 0:return ace(e.paths);case 1:{const u=[];return gse(e.symbols,u,t,t,n,c,n,r,i,99,o,4,s,a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,l),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:_,entries:u,defaultCommitCharacters:Vae(e.hasIndexSignature)}}case 2:{const n=15===t.kind?96:Kt(Xd(t),"'")?39:34,r=e.types.map((e=>({name:ky(e.value,n),kindModifiers:"",kind:"string",sortText:Aae.LocationPriority,replacementSpan:zQ(t,c),commitCharacters:[]})));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:_,entries:r,defaultCommitCharacters:Vae(e.isNewIdentifier)}}default:return _n.assertNever(e)}}(cce(e,n,t,o,i,s),n,e,i,o,a,r,s,t,c)}}function oce(e,t,n,r,i,o,a,s){if(!r||!Ru(r))return;const c=cce(t,r,n,i,o,s);return c&&function(e,t,n,r,i,o){switch(n.kind){case 0:{const t=y(n.paths,(t=>t.name===e));return t&&xse(e,sce(t.extension),t.kind,[WY(e)])}case 1:{const a=y(n.symbols,(t=>t.name===e));return a&&bse(a,a.name,i,r,t,o)}case 2:return y(n.types,(t=>t.value===e))?xse(e,"","string",[WY(e)]):void 0;default:return _n.assertNever(n)}}(e,r,c,t,i.getTypeChecker(),a)}function ace(e){const t=!0;return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.map((({name:e,kind:t,span:n,extension:r})=>({name:e,kind:t,kindModifiers:sce(r),sortText:Aae.LocationPriority,replacementSpan:n}))),defaultCommitCharacters:Vae(t)}}function sce(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return _n.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return _n.assertNever(e)}}function cce(e,t,n,r,i,o){const a=r.getTypeChecker(),s=_ce(t.parent);switch(s.kind){case 202:{const c=_ce(s.parent);return 206===c.kind?{kind:0,paths:gce(e,t,r,i,o)}:function e(t){switch(t.kind){case 214:case 234:case 287:case 286:case 215:case 216:case 184:{const e=dc(s,(e=>e.parent===t));return e?{kind:2,types:dce(a.getTypeArgumentConstraint(e)),isNewIdentifier:!1}:void 0}case 200:const{indexType:i,objectType:o}=t;if(!LX(i,n))return;return uce(a.getTypeFromTypeNode(o));case 172:return{kind:2,types:dce(Jse(t,a)),isNewIdentifier:!1};case 193:{const n=e(_ce(t.parent));if(!n)return;const i=(r=s,R(t.types,(e=>e!==r&&sF(e)&&HD(e.literal)?e.literal.text:void 0)));return 1===n.kind?{kind:1,symbols:n.symbols.filter((e=>!k(i,e.name))),hasIndexSignature:n.hasIndexSignature}:{kind:2,types:n.types.filter((e=>!k(i,e.value))),isNewIdentifier:!1}}default:return}var r}(c)}case 304:if(mF(s.parent)&&s.name===t)return function(e,t){const n=e.getContextualType(t);if(!n)return;const r=e.getContextualType(t,4);return{kind:1,symbols:Rse(n,r,t,e),hasIndexSignature:TZ(n)}}(a,s.parent);if(dc(s.parent,j_)){const e=new Set;return lce($(dce(a.getContextualType(t,0),e),dce(a.getContextualType(t,4),e)))}return c(0);case 213:{const{expression:e,argumentExpression:n}=s;return t===sh(n)?uce(a.getTypeAtLocation(e)):void 0}case 214:case 215:case 292:if(!function(e){return yF(e.parent)&&pe(e.parent.arguments)===e&&_N(e.parent.expression)&&"require"===e.parent.expression.escapedText}(t)&&!_f(s)){const r=cue.getArgumentInfoForCompletions(292===s.kind?s.parent:t,n,e,a);return r&&function(e,t,n,r){let i=!1;const o=new Set,a=xu(e)?_n.checkDefined(dc(t.parent,YE)):t,s=A(r.getCandidateSignaturesForStringLiteralCompletions(e,a),(t=>{if(!mJ(t)&&n.argumentCount>t.parameters.length)return;let s=t.getTypeParameterAtPosition(n.argumentIndex);if(xu(e)){const e=r.getTypeOfPropertyOfType(s,iC(a.name));e&&(s=e)}return i=i||!!(32&s.flags),dce(s,o)}));return l(s)?{kind:2,types:s,isNewIdentifier:i}:void 0}(r.invocation,t,r,a)||c(0)}case 273:case 279:case 284:case 352:return{kind:0,paths:gce(e,t,r,i,o)};case 297:const _=p0(a,s.parent.clauses),u=c();if(!u)return;return{kind:2,types:u.types.filter((e=>!_.hasValue(e.value))),isNewIdentifier:!1};case 277:case 282:const d=s;if(d.propertyName&&t!==d.propertyName)return;const p=d.parent,{moduleSpecifier:f}=276===p.kind?p.parent.parent:p.parent;if(!f)return;const m=a.getSymbolAtLocation(f);if(!m)return;const g=a.getExportsAndPropertiesOfModule(m),h=new Set(p.elements.map((e=>Hd(e.propertyName||e.name))));return{kind:1,symbols:g.filter((e=>"default"!==e.escapedName&&!h.has(e.escapedName))),hasIndexSignature:!1};case 227:if(103===s.operatorToken.kind){const e=a.getTypeAtLocation(s.right);return{kind:1,symbols:(e.isUnion()?a.getAllPossiblePropertiesOfTypes(e.types):e.getApparentProperties()).filter((e=>!e.valueDeclaration||!Gl(e.valueDeclaration))),hasIndexSignature:!1}}return c(0);default:return c()||c(0)}function c(e=4){return lce(dce(bZ(t,a,e)))}}function lce(e){return e.length?{kind:2,types:e,isNewIdentifier:!1}:void 0}function _ce(e){switch(e.kind){case 197:return rh(e);case 218:return ih(e);default:return e}}function uce(e){return e&&{kind:1,symbols:C(e.getApparentProperties(),(e=>!(e.valueDeclaration&&Gl(e.valueDeclaration)))),hasIndexSignature:TZ(e)}}function dce(e,t=new Set){return e?(e=nY(e)).isUnion()?A(e.types,(e=>dce(e,t))):!e.isStringLiteral()||32768&e.flags||!kx(t,e.value)?s:[e]:s}function pce(e,t,n){return{name:e,kind:t,extension:n}}function fce(e){return pce(e,"directory",void 0)}function mce(e,t,n){const r=function(e,t){const n=Math.max(e.lastIndexOf(_o),e.lastIndexOf(uo)),r=-1!==n?n+1:0,i=e.length-r;return 0===i||gs(e.substr(r,i),99)?void 0:$s(t+r,i)}(e,t),i=0===e.length?void 0:$s(t,e.length);return n.map((({name:e,kind:t,extension:n})=>e.includes(_o)||e.includes(uo)?{name:e,kind:t,extension:n,span:i}:{name:e,kind:t,extension:n,span:r}))}function gce(e,t,n,r,i){return mce(t.text,t.getStart(e)+1,function(e,t,n,r,i){const o=Lo(t.text),a=Ru(t)?n.getModeForUsageLocation(e,t):void 0,c=e.path,l=Fo(c),_=n.getCompilerOptions(),u=n.getTypeChecker(),p=sY(n,r),f=hce(_,1,e,u,i,a);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){const t=e.length>=3&&46===e.charCodeAt(1)?2:1,n=e.charCodeAt(t);return 47===n||92===n}return!1}(o)||!_.baseUrl&&!_.paths&&(ho(o)||go(o))?function(e,t,n,r,i,o,a){const s=n.getCompilerOptions();return s.rootDirs?function(e,t,n,r,i,o,a,s){const c=i.getCompilerOptions(),l=c.project||o.getCurrentDirectory(),_=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()),u=function(e,t,n,r){e=e.map((e=>$o(zo(ho(e)?e:Ro(t,e)))));const i=d(e,(e=>ta(e,n,t,r)?n.substr(e.length):void 0));return X([...e.map((e=>Ro(e,i))),n].map((e=>Wo(e))),gt,Tt)}(e,l,n,_);return X(A(u,(e=>Ie(vce(t,e,r,i,o,a,!0,s).values()))),((e,t)=>e.name===t.name&&e.kind===t.kind&&e.extension===t.extension))}(s.rootDirs,e,t,a,n,r,i,o):Ie(vce(e,t,a,n,r,i,!0,o).values())}(o,l,n,r,p,c,f):function(e,t,n,r,i,o,a){const c=r.getTypeChecker(),l=r.getCompilerOptions(),{baseUrl:_,paths:u}=l,d=rce(),p=Sk(l);if(_){const t=zo(Ro(i.getCurrentDirectory(),_));vce(e,t,a,r,i,o,!1,void 0,d)}if(u){const t=Gy(l,i);xce(d,e,t,a,r,i,o,u)}const f=Tce(e);for(const t of function(e,t,n){const r=n.getAmbientModules().map((e=>Ey(e.name))).filter((t=>Kt(t,e)&&!t.includes("*")));if(void 0!==t){const e=$o(t);return r.map((t=>Gt(t,e)))}return r}(e,f,c))d.add(pce(t,"external module name",void 0));if(Nce(r,i,o,t,f,a,d),lY(p)){let n=!1;if(void 0===f)for(const e of function(e,t){if(!e.readFile||!e.fileExists)return s;const n=[];for(const r of zZ(t,e)){const t=Nb(r,e);for(const e of Ece){const r=t[e];if(r)for(const e in r)De(r,e)&&!Kt(e,"@types/")&&n.push(e)}}return n}(i,t)){const t=pce(e,"external module name",void 0);d.has(t.name)||(n=!0,d.add(t))}if(!n){const n=Nk(l),s=Fk(l);let c=!1;const _=t=>{if(s&&!c){const n=Ro(t,"package.json");if(c=RZ(i,n)){m(Nb(n,i).imports,e,t,!1,!0)}}};let u=t=>{const n=Ro(t,"node_modules");MZ(i,n)&&vce(e,n,a,r,i,o,!1,void 0,d),_(t)};if(f&&n){const t=u;u=n=>{const r=Io(e);r.shift();let o=r.shift();if(!o)return t(n);if(Kt(o,"@")){const e=r.shift();if(!e)return t(n);o=Ro(o,e)}if(s&&Kt(o,"#"))return _(n);const a=Ro(n,"node_modules",o),c=Ro(a,"package.json");if(RZ(i,c)){const t=Nb(c,i),n=r.join("/")+(r.length&&Co(e)?"/":"");if(m(t.exports,n,a,!0,!1))return}return t(n)}}OM(i,t,u)}}return Ie(d.values());function m(e,t,s,c,_){if("object"!=typeof e||null===e)return void 0!==e;const u=Fe(e),p=wR(l,n);return kce(d,c,_,t,s,a,r,i,o,u,(t=>{const n=Sce(e[t],p);if(void 0!==n)return nn(jt(t,"/")&&jt(n,"/")?n+"*":n)}),NM),!0}}(o,l,a,n,r,p,f)}(e,t,n,r,i))}function hce(e,t,n,r,i,o){return{extensionsToSearch:P(yce(e,r)),referenceKind:t,importingSourceFile:n,endingPreference:null==i?void 0:i.importModuleSpecifierEnding,resolutionMode:o}}function yce(e,t){const n=t?R(t.getAmbientModules(),(e=>{const t=e.name.slice(1,-1);if(t.startsWith("*.")&&!t.includes("/"))return t.slice(1)})):[],r=[...OS(e),n];return lY(Sk(e))?LS(e,r):r}function vce(e,t,n,r,i,o,a,s,c=rce()){var l;void 0===e&&(e=""),Co(e=Lo(e))||(e=Fo(e)),""===e&&(e="."+_o);const _=Mo(t,e=$o(e)),u=Co(_)?_:Fo(_);if(!a){const e=qZ(u,i);if(e){const t=Nb(e,i).typesVersions;if("object"==typeof t){const a=null==(l=yR(t))?void 0:l.paths;if(a){const t=Fo(e);if(xce(c,_.slice($o(t).length),t,n,r,i,o,a))return c}}}}const d=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!MZ(i,u))return c;const p=jZ(i,u,n.extensionsToSearch,void 0,["./*"]);if(p)for(let e of p){if(e=zo(e),s&&0===ea(e,s,t,d))continue;const{name:i,extension:o}=bce(Eo(e),r,n,!1);c.add(pce(i,"script",o))}const f=LZ(i,u);if(f)for(const e of f){const t=Eo(zo(e));"@types"!==t&&c.add(fce(t))}return c}function bce(e,t,n,r){const i=uB.tryGetRealFileNameForNonJsDeclarationFileName(e);if(i)return{name:i,extension:rT(i)};if(0===n.referenceKind)return{name:e,extension:rT(e)};let o=uB.getModuleSpecifierPreferences({importModuleSpecifierEnding:n.endingPreference},t,t.getCompilerOptions(),n.importingSourceFile).getAllowedEndingsInPreferredOrder(n.resolutionMode);if(r&&(o=o.filter((e=>0!==e&&1!==e))),3===o[0]){if(To(e,AS))return{name:e,extension:rT(e)};const n=uB.tryGetJSExtensionForFile(e,t.getCompilerOptions());return n?{name:KS(e,n),extension:n}:{name:e,extension:rT(e)}}if(!r&&(0===o[0]||1===o[0])&&To(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:WS(e),extension:rT(e)};const a=uB.tryGetJSExtensionForFile(e,t.getCompilerOptions());return a?{name:KS(e,a),extension:a}:{name:e,extension:rT(e)}}function xce(e,t,n,r,i,o,a,s){return kce(e,!1,!1,t,n,r,i,o,a,Fe(s),(e=>s[e]),((e,t)=>{const n=GS(e),r=GS(t),i="object"==typeof n?n.prefix.length:e.length;return yt("object"==typeof r?r.prefix.length:t.length,i)}))}function kce(e,t,n,r,i,o,a,s,c,l,_,u){let d,p=[];for(const e of l){if("."===e)continue;const l=e.replace(/^\.\//,"")+((t||n)&&jt(e,"/")?"*":""),f=_(e);if(f){const e=GS(l);if(!e)continue;const _="object"==typeof e&&Qt(e,r);_&&(void 0===d||-1===u(l,d))&&(d=l,p=p.filter((e=>!e.matchedPattern))),"string"!=typeof e&&void 0!==d&&1===u(l,d)||p.push({matchedPattern:_,results:Cce(l,f,r,i,o,t,n,a,s,c).map((({name:e,kind:t,extension:n})=>pce(e,t,n)))})}}return p.forEach((t=>t.results.forEach((t=>e.add(t))))),void 0!==d}function Sce(e,t){if("string"==typeof e)return e;if(e&&"object"==typeof e&&!Xe(e))for(const n in e)if("default"===n||t.includes(n)||PM(t,n)){return Sce(e[n],t)}}function Tce(e){return Pce(e)?Co(e)?e:Fo(e):void 0}function Cce(e,t,n,r,i,o,a,c,l,_){const u=GS(e);if(!u)return s;if("string"==typeof u)return p(e,"script");const d=Xt(n,u.prefix);if(void 0===d){return jt(e,"/*")?p(u.prefix,"directory"):A(t,(e=>{var t;return null==(t=wce("",r,e,i,o,a,c,l,_))?void 0:t.map((({name:e,...t})=>({name:u.prefix+e+u.suffix,...t})))}))}return A(t,(e=>wce(d,r,e,i,o,a,c,l,_)));function p(e,t){return Kt(e,n)?[{name:Wo(e),kind:t,extension:void 0}]:s}}function wce(e,t,n,r,i,o,a,s,c){if(!s.readDirectory)return;const l=GS(n);if(void 0===l||Ye(l))return;const _=Mo(l.prefix),u=Co(l.prefix)?_:Fo(_),p=Co(l.prefix)?"":Eo(_),f=Pce(e),m=f?Co(e)?e:Fo(e):void 0,g=()=>c.getCommonSourceDirectory(),h=!Ry(c),y=a.getCompilerOptions().outDir,v=a.getCompilerOptions().declarationDir,b=f?Ro(u,p+m):u,x=zo(Ro(t,b)),k=o&&y&&Ky(x,h,y,g),S=o&&v&&Ky(x,h,v,g),T=zo(l.suffix),C=T&&$y("_"+T),w=T?Hy("_"+T):void 0,D=[C&&KS(T,C),...w?w.map((e=>KS(T,e))):[],T].filter(Ye),N=T?D.map((e=>"**/*"+e)):["./*"],F=(i||o)&&jt(n,"/*");let E=P(x);return k&&(E=$(E,P(k))),S&&(E=$(E,P(S))),T||(E=$(E,A(x)),k&&(E=$(E,A(k))),S&&(E=$(E,A(S)))),E;function P(e){const t=f?e:$o(e)+p;return R(jZ(s,e,r.extensionsToSearch,void 0,N),(e=>{const n=(i=e,o=t,d(D,(e=>{const t=(n=zo(i),a=e,Kt(n,r=o)&&jt(n,a)?n.slice(r.length,n.length-a.length):void 0);var n,r,a;return void 0===t?void 0:Dce(t)})));var i,o;if(n){if(Pce(n))return fce(Io(Dce(n))[1]);const{name:e,extension:t}=bce(n,a,r,F);return pce(e,"script",t)}}))}function A(e){return R(LZ(s,e),(e=>"node_modules"===e?void 0:fce(e)))}}function Dce(e){return e[0]===_o?e.slice(1):e}function Nce(e,t,n,r,i,o,a=rce()){const c=e.getCompilerOptions(),l=new Map,_=BZ((()=>vR(c,t)))||s;for(const e of _)u(e);for(const e of zZ(r,t)){u(Ro(Fo(e),"node_modules/@types"))}return a;function u(r){if(MZ(t,r))for(const s of LZ(t,r)){const _=UM(s);if(!c.types||k(c.types,_))if(void 0===i)l.has(_)||(a.add(pce(_,"external module name",void 0)),l.set(_,!0));else{const c=Ro(r,s),l=tS(i,_,My(t));void 0!==l&&vce(l,c,o,e,t,n,!1,void 0,a)}}}}var Fce=/^(\/\/\/\s*{const i=t.getSymbolAtLocation(n);if(i){const t=lJ(i).toString();let n=r.get(t);n||r.set(t,n=[]),n.push(e)}}));return r}(e,n,r);return(o,a,s)=>{const{directImports:c,indirectUsers:l}=function(e,t,n,{exportingModuleSymbol:r,exportKind:i},o,a){const s=ZQ(),c=ZQ(),l=[],_=!!r.globalExports,u=_?void 0:[];return p(r),{directImports:l,indirectUsers:d()};function d(){if(_)return e;if(r.declarations)for(const e of r.declarations)fp(e)&&t.has(e.getSourceFile().fileName)&&h(e);return u.map(bd)}function p(e){const t=y(e);if(t)for(const e of t)if(s(e))switch(a&&a.throwIfCancellationRequested(),e.kind){case 214:if(_f(e)){f(e);break}if(!_){const t=e.parent;if(2===i&&261===t.kind){const{name:e}=t;if(80===e.kind){l.push(e);break}}}break;case 80:break;case 272:g(e,e.name,Fv(e,32),!1);break;case 273:case 352:l.push(e);const t=e.importClause&&e.importClause.namedBindings;t&&275===t.kind?g(e,t.name,!1,!0):!_&&Cg(e)&&h(Uce(e));break;case 279:e.exportClause?281===e.exportClause.kind?h(Uce(e),!0):l.push(e):p(qce(e,o));break;case 206:!_&&e.isTypeOf&&!e.qualifier&&m(e)&&h(e.getSourceFile(),!0),l.push(e);break;default:_n.failBadSyntaxKind(e,"Unexpected import kind.")}}function f(e){h(dc(e,Vce)||e.getSourceFile(),!!m(e,!0))}function m(e,t=!1){return dc(e,(e=>t&&Vce(e)?"quit":FI(e)&&V(e.modifiers,dN)))}function g(e,t,n,r){if(2===i)r||l.push(e);else if(!_){const r=Uce(e);_n.assert(308===r.kind||268===r.kind),n||function(e,t,n){const r=n.getSymbolAtLocation(t);return!!Mce(e,(e=>{if(!RE(e))return;const{exportClause:t,moduleSpecifier:i}=e;return!i&&t&&ME(t)&&t.elements.some((e=>n.getExportSpecifierLocalTargetSymbol(e)===r))}))}(r,t,o)?h(r,!0):h(r)}}function h(e,t=!1){_n.assert(!_);if(!c(e))return;if(u.push(e),!t)return;const n=o.getMergedSymbol(e.symbol);if(!n)return;_n.assert(!!(1536&n.flags));const r=y(n);if(r)for(const e of r)cF(e)||h(Uce(e),!0)}function y(e){return n.get(lJ(e).toString())}}(e,t,i,a,n,r);return{indirectUsers:l,...jce(c,o,a.exportKind,n,s)}}}n(Ace,{Core:()=>Zce,DefinitionKind:()=>$ce,EntryKind:()=>Hce,ExportKind:()=>Oce,FindReferencesUse:()=>ele,ImportExport:()=>Lce,createImportTracker:()=>Ice,findModuleReferences:()=>Rce,findReferenceOrRenameEntries:()=>ile,findReferencedSymbols:()=>tle,getContextNode:()=>Qce,getExportInfo:()=>zce,getImplementationsAtPosition:()=>nle,getImportOrExportSymbol:()=>Jce,getReferenceEntriesForNode:()=>ole,isContextWithStartAndEndNode:()=>Gce,isDeclarationOfSymbol:()=>yle,isWriteAccessForReference:()=>hle,toContextSpan:()=>Yce,toHighlightSpan:()=>fle,toReferenceEntry:()=>_le,toRenameLocation:()=>lle});var Oce=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(Oce||{}),Lce=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(Lce||{});function jce(e,t,n,r,i){const o=[],a=[];function s(e,t){o.push([e,t])}if(e)for(const t of e)c(t);return{importSearches:o,singleReferences:a};function c(e){if(272===e.kind)return void(Wce(e)&&l(e.name));if(80===e.kind)return void l(e);if(206===e.kind){if(e.qualifier){const n=lb(e.qualifier);n.escapedText===vc(t)&&a.push(n)}else 2===n&&a.push(e.argument.literal);return}if(11!==e.moduleSpecifier.kind)return;if(279===e.kind)return void(e.exportClause&&ME(e.exportClause)&&_(e.exportClause));const{name:o,namedBindings:c}=e.importClause||{name:void 0,namedBindings:void 0};if(c)switch(c.kind){case 275:l(c.name);break;case 276:0!==n&&1!==n||_(c);break;default:_n.assertNever(c)}if(o&&(1===n||2===n)&&(!i||o.escapedText===hY(t))){s(o,r.getSymbolAtLocation(o))}}function l(e){2!==n||i&&!u(e.escapedText)||s(e,r.getSymbolAtLocation(e))}function _(e){if(e)for(const n of e.elements){const{name:e,propertyName:o}=n;if(u(Hd(o||e)))if(o)a.push(o),i&&Hd(e)!==t.escapedName||s(e,r.getSymbolAtLocation(e));else{s(e,282===n.kind&&n.propertyName?r.getExportSpecifierLocalTargetSymbol(n):r.getSymbolAtLocation(e))}}}function u(e){return e===t.escapedName||0!==n&&"default"===e}}function Rce(e,t,n){var r;const i=[],o=e.getTypeChecker();for(const a of t){const t=n.valueDeclaration;if(308===(null==t?void 0:t.kind)){for(const n of a.referencedFiles)e.getSourceFileFromReference(a,n)===t&&i.push({kind:"reference",referencingFile:a,ref:n});for(const n of a.typeReferenceDirectives){const o=null==(r=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(n,a))?void 0:r.resolvedTypeReferenceDirective;void 0!==o&&o.resolvedFileName===t.fileName&&i.push({kind:"reference",referencingFile:a,ref:n})}}Bce(a,((e,t)=>{o.getSymbolAtLocation(t)===n&&i.push(ty(e)?{kind:"implicit",literal:t,referencingFile:a}:{kind:"import",literal:t})}))}return i}function Mce(e,t){return _(308===e.kind?e.statements:e.body.statements,(e=>t(e)||Vce(e)&&_(e.body&&e.body.statements,t)))}function Bce(e,t){if(e.externalModuleIndicator||void 0!==e.imports)for(const n of e.imports)t(bg(n),n);else Mce(e,(e=>{switch(e.kind){case 279:case 273:{const n=e;n.moduleSpecifier&&HD(n.moduleSpecifier)&&t(n,n.moduleSpecifier);break}case 272:{const n=e;Wce(n)&&t(n,n.moduleReference.expression);break}}}))}function Jce(e,t,n,r){return r?i():i()||function(){if(!function(e){const{parent:t}=e;switch(t.kind){case 272:return t.name===e&&Wce(t);case 277:return!t.propertyName;case 274:case 275:return _n.assert(t.name===e),!0;case 209:return Em(e)&&Rm(t.parent.parent);default:return!1}}(e))return;let r=n.getImmediateAliasedSymbol(t);if(!r)return;if(r=function(e,t){if(e.declarations)for(const n of e.declarations){if(BE(n)&&!n.propertyName&&!n.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(n)||e;if(gF(n)&&tg(n.expression)&&!uN(n.name))return t.getSymbolAtLocation(n);if(cP(n)&&PF(n.parent.parent)&&2===ng(n.parent.parent))return t.getExportSpecifierLocalTargetSymbol(n.name)}return e}(r,n),"export="===r.escapedName&&(r=function(e,t){var n,r;if(2097152&e.flags)return t.getImmediateAliasedSymbol(e);const i=_n.checkDefined(e.valueDeclaration);if(jE(i))return null==(n=et(i.expression,su))?void 0:n.symbol;if(PF(i))return null==(r=et(i.right,su))?void 0:r.symbol;if(uP(i))return i.symbol;return}(r,n),void 0===r))return;const i=hY(r);if(void 0===i||"default"===i||i===t.escapedName)return{kind:0,symbol:r}}();function i(){var i;const{parent:s}=e,c=s.parent;if(t.exportSymbol)return 212===s.kind?(null==(i=t.declarations)?void 0:i.some((e=>e===s)))&&PF(c)?_(c,!1):void 0:o(t.exportSymbol,a(s));{const i=function(e,t){const n=pE(e)?e:pF(e)?rc(e):void 0;return n?e.name!==t||aP(n.parent)?void 0:GF(n.parent.parent)?n.parent.parent:void 0:e}(s,e);if(i&&Fv(i,32)){if(TE(i)&&i.moduleReference===e){if(r)return;return{kind:0,symbol:n.getSymbolAtLocation(i.name)}}return o(t,a(i))}if(IE(s))return o(t,0);if(jE(s))return l(s);if(jE(c))return l(c);if(PF(s))return _(s,!0);if(PF(c))return _(c,!0);if(KP(s)||IP(s))return o(t,0)}function l(e){if(!e.symbol.parent)return;const n=e.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:e.symbol.parent,exportKind:n}}}function _(e,r){let i;switch(ng(e)){case 1:i=0;break;case 2:i=2;break;default:return}const a=r?n.getSymbolAtLocation(wx(tt(e.left,Cx))):t;return a&&o(a,i)}}function o(e,t){const r=zce(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function a(e){return Fv(e,2048)?1:0}}function zce(e,t,n){const r=e.parent;if(!r)return;const i=n.getMergedSymbol(r);return Yu(i)?{exportingModuleSymbol:i,exportKind:t}:void 0}function qce(e,t){return t.getMergedSymbol(Uce(e).symbol)}function Uce(e){if(214===e.kind||352===e.kind)return e.getSourceFile();const{parent:t}=e;return 308===t.kind?t:(_n.assert(269===t.kind),tt(t.parent,Vce))}function Vce(e){return 268===e.kind&&11===e.name.kind}function Wce(e){return 284===e.moduleReference.kind&&11===e.moduleReference.expression.kind}var $ce=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))($ce||{}),Hce=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(Hce||{});function Kce(e,t=1){return{kind:t,node:e.name||e,context:Xce(e)}}function Gce(e){return e&&void 0===e.kind}function Xce(e){if(uu(e))return Qce(e);if(e.parent){if(!uu(e.parent)&&!jE(e.parent)){if(Em(e)){const t=PF(e.parent)?e.parent:Cx(e.parent)&&PF(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(t&&0!==ng(t))return Qce(t)}if(HE(e.parent)||KE(e.parent))return e.parent.parent;if($E(e.parent)||lE(e.parent)||wl(e.parent))return e.parent;if(Ru(e)){const t=xg(e);if(t){const e=dc(t,(e=>uu(e)||fu(e)||wu(e)));return uu(e)?Qce(e):e}}const t=dc(e,wN);return t?Qce(t.parent):void 0}return e.parent.name===e||LN(e.parent)||jE(e.parent)||(Bl(e.parent)||pF(e.parent))&&e.parent.propertyName===e||90===e.kind&&Fv(e.parent,2080)?Qce(e.parent):void 0}}function Qce(e){if(e)switch(e.kind){case 261:return fE(e.parent)&&1===e.parent.declarations.length?GF(e.parent.parent)?e.parent.parent:Y_(e.parent.parent)?Qce(e.parent.parent):e.parent:e;case 209:return Qce(e.parent.parent);case 277:return e.parent.parent.parent;case 282:case 275:return e.parent.parent;case 274:case 281:return e.parent;case 227:return QF(e.parent)?e.parent:e;case 251:case 250:return{start:e.initializer,end:e.expression};case 304:case 305:return RQ(e.parent)?Qce(dc(e.parent,(e=>PF(e)||Y_(e)))):e;case 256:return{start:y(e.getChildren(e.getSourceFile()),(e=>109===e.kind)),end:e.caseBlock};default:return e}}function Yce(e,t,n){if(!n)return;const r=Gce(n)?mle(n.start,t,n.end):mle(n,t);return r.start!==e.start||r.length!==e.length?{contextSpan:r}:void 0}var Zce,ele=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(ele||{});function tle(e,t,n,r,i){const o=iQ(r,i),a={use:1},s=Zce.getReferencedSymbolsForNode(i,o,e,n,t,a),c=e.getTypeChecker(),l=Zce.getAdjustedNode(o,a),_=function(e){return 90===e.kind||!!uh(e)||dh(e)||137===e.kind&&LN(e.parent)}(l)?c.getSymbolAtLocation(l):void 0;return s&&s.length?R(s,(({definition:e,references:n})=>e&&{definition:c.runWithCancellationToken(t,(t=>function(e,t,n){const r=(()=>{switch(e.type){case 0:{const{symbol:r}=e,{displayParts:i,kind:o}=cle(r,t,n),a=i.map((e=>e.text)).join(""),s=r.declarations&&pe(r.declarations);return{...sle(s?wc(s)||s:n),name:a,kind:o,displayParts:i,context:Qce(s)}}case 1:{const{node:t}=e;return{...sle(t),name:t.text,kind:"label",displayParts:[RY(t.text,17)]}}case 2:{const{node:t}=e,n=Ea(t.kind);return{...sle(t),name:n,kind:"keyword",displayParts:[{text:n,kind:"keyword"}]}}case 3:{const{node:n}=e,r=t.getSymbolAtLocation(n),i=r&&Wue.getSymbolDisplayPartsDocumentationAndSymbolKind(t,r,n.getSourceFile(),FX(n),n).displayParts||[WY("this")];return{...sle(n),name:"this",kind:"var",displayParts:i}}case 4:{const{node:t}=e;return{...sle(t),name:t.text,kind:"var",displayParts:[RY(Xd(t),8)]}}case 5:return{textSpan:WQ(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[RY(`"${e.reference.fileName}"`,8)]};default:return _n.assertNever(e)}})(),{sourceFile:i,textSpan:o,name:a,kind:s,displayParts:c,context:l}=r;return{containerKind:"",containerName:"",fileName:i.fileName,kind:s,name:a,textSpan:o,displayParts:c,...Yce(o,i,l)}}(e,t,o))),references:n.map((e=>function(e,t){const n=_le(e);return t?{...n,isDefinition:0!==e.kind&&yle(e.node,t)}:n}(e,_)))})):void 0}function nle(e,t,n,r,i){const o=iQ(r,i);let a;const s=rle(e,t,n,o,i);if(212===o.parent.kind||209===o.parent.kind||213===o.parent.kind||108===o.kind)a=s&&[...s];else if(s){const r=Ke(s),i=new Set;for(;!r.isEmpty();){const o=r.dequeue();if(!kx(i,cJ(o.node)))continue;a=re(a,o);const s=rle(e,t,n,o.node,o.node.pos);s&&r.enqueue(...s)}}const c=e.getTypeChecker();return N(a,(e=>function(e,t){const n=ule(e);if(0!==e.kind){const{node:r}=e;return{...n,...ple(r,t)}}return{...n,kind:"",displayParts:[]}}(e,c)))}function rle(e,t,n,r,i){if(308===r.kind)return;const o=e.getTypeChecker();if(305===r.parent.kind){const e=[];return Zce.getReferenceEntriesForShorthandPropertyAssignment(r,o,(t=>e.push(Kce(t)))),e}if(108===r.kind||am(r.parent)){const e=o.getSymbolAtLocation(r);return e.valueDeclaration&&[Kce(e.valueDeclaration)]}return ole(i,r,e,n,t,{implementations:!0,use:1})}function ile(e,t,n,r,i,o,a){return N(ale(Zce.getReferencedSymbolsForNode(i,r,e,n,t,o)),(t=>a(t,r,e.getTypeChecker())))}function ole(e,t,n,r,i,o={},a=new Set(r.map((e=>e.fileName)))){return ale(Zce.getReferencedSymbolsForNode(e,t,n,r,i,o,a))}function ale(e){return e&&A(e,(e=>e.references))}function sle(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:mle(wN(e)?e.expression:e,t)}}function cle(e,t,n){const r=Zce.getIntersectingMeaningFromDeclarations(n,e),i=e.declarations&&pe(e.declarations)||n,{displayParts:o,symbolKind:a}=Wue.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,i.getSourceFile(),i,i,r);return{displayParts:o,kind:a}}function lle(e,t,n,r,i){return{...ule(e),...r&&dle(e,t,n,i)}}function _le(e){const t=ule(e);if(0===e.kind)return{...t,isWriteAccess:!1};const{kind:n,node:r}=e;return{...t,isWriteAccess:hle(r),isInString:2===n||void 0}}function ule(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),n=mle(e.node,t);return{textSpan:n,fileName:t.fileName,...Yce(n,t,e.context)}}}function dle(e,t,n,r){if(0!==e.kind&&(_N(t)||Ru(t))){const{node:r,kind:i}=e,o=r.parent,a=t.text,s=cP(o);if(s||vY(o)&&o.name===r&&void 0===o.dotDotDotToken){const e={prefixText:a+": "},t={suffixText:": "+a};if(3===i)return e;if(4===i)return t;if(s){const n=o.parent;return mF(n)&&PF(n.parent)&&tg(n.parent.left)?e:t}return e}if(LE(o)&&!o.propertyName){return k((BE(t.parent)?n.getExportSpecifierLocalTargetSymbol(t.parent):n.getSymbolAtLocation(t)).declarations,o)?{prefixText:a+" as "}:OG}if(BE(o)&&!o.propertyName)return t===e.node||n.getSymbolAtLocation(t)===n.getSymbolAtLocation(e.node)?{prefixText:a+" as "}:{suffixText:" as "+a}}if(0!==e.kind&&WD(e.node)&&Cx(e.node.parent)){const e=mY(r);return{prefixText:e,suffixText:e}}return OG}function ple(e,t){const n=t.getSymbolAtLocation(uu(e)&&e.name?e.name:e);return n?cle(n,t,e):211===e.kind?{kind:"interface",displayParts:[JY(21),WY("object literal"),JY(22)]}:232===e.kind?{kind:"local class",displayParts:[JY(21),WY("anonymous local class"),JY(22)]}:{kind:EX(e),displayParts:[]}}function fle(e){const t=ule(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const n=hle(e.node),r={textSpan:t.textSpan,kind:n?"writtenReference":"reference",isInString:2===e.kind||void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:r}}function mle(e,t,n){let r=e.getStart(t),i=(n||e).getEnd();return Ru(e)&&i-r>2&&(_n.assert(void 0===n),r+=1,i-=1),270===(null==n?void 0:n.kind)&&(i=n.getFullStart()),Hs(r,i)}function gle(e){return 0===e.kind?e.textSpan:mle(e.node,e.node.getSourceFile())}function hle(e){const t=uh(e);return!!t&&function(e){if(33554432&e.flags)return!0;switch(e.kind){case 227:case 209:case 264:case 232:case 90:case 267:case 307:case 282:case 274:case 272:case 277:case 265:case 339:case 347:case 292:case 268:case 271:case 275:case 281:case 170:case 305:case 266:case 169:return!0;case 304:return!RQ(e.parent);case 263:case 219:case 177:case 175:case 178:case 179:return!!e.body;case 261:case 173:return!!e.initializer||aP(e.parent);case 174:case 172:case 349:case 342:return!1;default:return _n.failBadSyntaxKind(e)}}(t)||90===e.kind||_x(e)}function yle(e,t){var n;if(!t)return!1;const r=uh(e)||(90===e.kind?e.parent:dh(e)||137===e.kind&&LN(e.parent)?e.parent.parent:void 0),i=r&&PF(r)?r.left:void 0;return!(!r||!(null==(n=t.declarations)?void 0:n.some((e=>e===r||e===i))))}(e=>{function t(e,t){return 1===t.use?e=nQ(e):2===t.use&&(e=rQ(e)),e}function n(e,t,n){let r;const i=t.get(e.path)||s;for(const e of i)if(LV(e)){const t=n.getSourceFileByPath(e.file),i=RV(n,e);jV(i)&&(r=re(r,{kind:0,fileName:t.fileName,textSpan:WQ(i)}))}return r}function r(e,t,n){if(e.parent&&SE(e.parent)){const e=n.getAliasedSymbol(t),r=n.getMergedSymbol(e);if(e!==r)return r}}function i(e,t,n,r,i,a){const s=1536&e.flags&&e.declarations&&y(e.declarations,uP);if(!s)return;const l=e.exports.get("export="),_=c(t,e,!!l,n,a);if(!l||!a.has(s.fileName))return _;const u=t.getTypeChecker();return o(t,_,p(e=sx(l,u),void 0,n,a,u,r,i))}function o(e,...t){let n;for(const r of t)if(r&&r.length)if(n)for(const t of r){if(!t.definition||0!==t.definition.type){n.push(t);continue}const r=t.definition.symbol,i=b(n,(e=>!!e.definition&&0===e.definition.type&&e.definition.symbol===r));if(-1===i){n.push(t);continue}const o=n[i];n[i]={definition:o.definition,references:o.references.concat(t.references).sort(((t,n)=>{const r=a(e,t),i=a(e,n);if(r!==i)return yt(r,i);const o=gle(t),s=gle(n);return o.start!==s.start?yt(o.start,s.start):yt(o.length,s.length)}))}}else n=r;return n}function a(e,t){const n=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(n)}function c(e,t,n,r,i){_n.assert(!!t.valueDeclaration);const o=R(Rce(e,r,t),(e=>{if("import"===e.kind){const t=e.literal.parent;if(sF(t)){const e=tt(t.parent,cF);if(n&&!e.qualifier)return}return Kce(e.literal)}if("implicit"===e.kind){return Kce(e.literal.text!==Vu&&iO(e.referencingFile,(e=>2&e.transformFlags?WE(e)||$E(e)||GE(e)?e:void 0:"skip"))||e.referencingFile.statements[0]||e.referencingFile)}return{kind:0,fileName:e.referencingFile.fileName,textSpan:WQ(e.ref)}}));if(t.declarations)for(const e of t.declarations)switch(e.kind){case 308:break;case 268:i.has(e.getSourceFile().fileName)&&o.push(Kce(e.name));break;default:_n.assert(!!(33554432&t.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const a=t.exports.get("export=");if(null==a?void 0:a.declarations)for(const e of a.declarations){const t=e.getSourceFile();if(i.has(t.fileName)){const n=PF(e)&&gF(e.left)?e.left.expression:jE(e)?_n.checkDefined($X(e,95,t)):wc(e)||e;o.push(Kce(n))}}return o.length?[{definition:{type:0,symbol:t},references:o}]:s}function u(e){return 148===e.kind&&iF(e.parent)&&148===e.parent.operator}function p(e,t,n,r,i,o,a){const s=t&&function(e,t,n,r){const{parent:i}=t;if(BE(i)&&r)return M(t,e,i,n);return d(e.declarations,(r=>{if(!r.parent){if(33554432&e.flags)return;_n.fail(`Unexpected symbol at ${_n.formatSyntaxKind(t.kind)}: ${_n.formatSymbol(e)}`)}return $N(r.parent)&&YN(r.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(r.parent.parent),e.name):void 0}))}(e,t,i,!Z(a))||e,c=t&&2!==a.use?X(t,s):7,l=[],_=new v(n,r,t?function(e){switch(e.kind){case 177:case 137:return 1;case 80:if(d_(e.parent))return _n.assert(e.parent.name===e),2;default:return 0}}(t):0,i,o,c,a,l),u=Z(a)&&s.declarations?y(s.declarations,BE):void 0;if(u)j(u.name,s,u,_.createSearch(t,e,void 0),_,!0,!0);else if(t&&90===t.kind&&"default"===s.escapedName&&s.parent)B(t,s,_),x(t,s,{exportingModuleSymbol:s.parent,exportKind:1},_);else{const e=_.createSearch(t,s,void 0,{allSearchSymbols:t?H(s,t,i,2===a.use,!!a.providePrefixAndSuffixTextForRename,!!a.implementations):[s]});f(s,_,e)}return l}function f(e,t,n){const r=function(e){const{declarations:t,flags:n,parent:r,valueDeclaration:i}=e;if(i&&(219===i.kind||232===i.kind))return i;if(!t)return;if(8196&n){const e=y(t,(e=>Nv(e,2)||Gl(e)));return e?Ch(e,264):void 0}if(t.some(vY))return;const o=r&&!(262144&e.flags);if(o&&(!Yu(r)||r.globalExports))return;let a;for(const e of t){const t=FX(e);if(a&&a!==t)return;if(!t||308===t.kind&&!Zp(t))return;if(a=t,SF(a)){let e;for(;e=Bg(a);)a=e}}return o?a.getSourceFile():a}(e);if(r)I(r,r.getSourceFile(),n,t,!(uP(r)&&!k(t.sourceFiles,r)));else for(const e of t.sourceFiles)t.cancellationToken.throwIfCancellationRequested(),w(e,n,t)}let m;var g;function h(e){if(!(33555968&e.flags))return;const t=e.declarations&&y(e.declarations,(e=>!uP(e)&&!bE(e)));return t&&t.symbol}e.getReferencedSymbolsForNode=function(e,a,l,_,f,m={},g=new Set(_.map((e=>e.fileName)))){var h,y;if(uP(a=t(a,m))){const t=vle.getReferenceAtPosition(a,e,l);if(!(null==t?void 0:t.file))return;const r=l.getTypeChecker().getMergedSymbol(t.file.symbol);if(r)return c(l,r,!1,_,g);const i=l.getFileIncludeReasons();if(!i)return;return[{definition:{type:5,reference:t.reference,file:a},references:n(t.file,i,l)||s}]}if(!m.implementations){const e=function(e,t,n){if(XQ(e.kind)){if(116===e.kind&&DF(e.parent))return;if(148===e.kind&&!u(e))return;return function(e,t,n,r){const i=A(e,(e=>(n.throwIfCancellationRequested(),R(N(e,Ea(t),e),(e=>{if(e.kind===t&&(!r||r(e)))return Kce(e)})))));return i.length?[{definition:{type:2,node:i[0].node},references:i}]:void 0}(t,e.kind,n,148===e.kind?u:void 0)}if(uf(e.parent)&&e.parent.name===e)return function(e,t){const n=A(e,(e=>(t.throwIfCancellationRequested(),R(N(e,"meta",e),(e=>{const t=e.parent;if(uf(t))return Kce(t)})))));return n.length?[{definition:{type:2,node:n[0].node},references:n}]:void 0}(t,n);if(yN(e)&&ON(e.parent))return[{definition:{type:2,node:e},references:[Kce(e)]}];if(yX(e)){const t=gX(e.parent,e.text);return t&&E(t.parent,t)}if(vX(e))return E(e.parent,e);if(PX(e))return function(e,t,n){let r=em(e,!1,!1),i=256;switch(r.kind){case 175:case 174:if(Jf(r)){i&=Uv(r),r=r.parent;break}case 173:case 172:case 177:case 178:case 179:i&=Uv(r),r=r.parent;break;case 308:if(_O(r)||$(e))return;case 263:case 219:break;default:return}const o=A(308===r.kind?t:[r.getSourceFile()],(e=>(n.throwIfCancellationRequested(),N(e,"this",uP(r)?e:r).filter((e=>{if(!PX(e))return!1;const t=em(e,!1,!1);if(!su(t))return!1;switch(r.kind){case 219:case 263:return r.symbol===t.symbol;case 175:case 174:return Jf(r)&&r.symbol===t.symbol;case 232:case 264:case 211:return t.parent&&su(t.parent)&&r.symbol===t.parent.symbol&&Ev(t)===!!i;case 308:return 308===t.kind&&!_O(t)&&!$(e)}}))))).map((e=>Kce(e))),a=d(o,(e=>NN(e.node.parent)?e.node:void 0));return[{definition:{type:3,node:a||e},references:o}]}(e,t,n);if(108===e.kind)return function(e){let t=im(e,!1);if(!t)return;let n=256;switch(t.kind){case 173:case 172:case 175:case 174:case 177:case 178:case 179:n&=Uv(t),t=t.parent;break;default:return}const r=R(N(t.getSourceFile(),"super",t),(e=>{if(108!==e.kind)return;const r=im(e,!1);return r&&Ev(r)===!!n&&r.parent.symbol===t.symbol?Kce(e):void 0}));return[{definition:{type:0,symbol:t.symbol},references:r}]}(e);return}(a,_,f);if(e)return e}const v=l.getTypeChecker(),b=v.getSymbolAtLocation(LN(a)&&a.parent.name||a);if(!b){if(!m.implementations&&Ru(a)){if(yY(a)){const e=l.getFileIncludeReasons(),t=null==(y=null==(h=l.getResolvedModuleFromModuleSpecifier(a))?void 0:h.resolvedModule)?void 0:y.resolvedFileName,r=t?l.getSourceFile(t):void 0;if(r)return[{definition:{type:4,node:a},references:n(r,e,l)||s}]}return function(e,t,n,r){const i=QX(e,n),o=A(t,(t=>(r.throwIfCancellationRequested(),R(N(t,e.text),(r=>{if(Ru(r)&&r.text===e.text){if(!i)return XD(r)&&!Jb(r,t)?void 0:Kce(r,2);{const e=QX(r,n);if(i!==n.getStringType()&&(i===e||function(e,t){if(EN(e.parent))return t.getPropertyOfType(t.getTypeAtLocation(e.parent.parent),e.text)}(r,n)))return Kce(r,2)}}})))));return[{definition:{type:4,node:e},references:o}]}(a,_,v,f)}return}if("export="===b.escapedName)return c(l,b.parent,!1,_,g);const x=i(b,l,_,f,m,g);if(x&&!(33554432&b.flags))return x;const k=r(a,b,v),S=k&&i(k,l,_,f,m,g);return o(l,x,p(b,a,_,g,v,f,m),S)},e.getAdjustedNode=t,e.getReferencesForFileName=function(e,t,r,i=new Set(r.map((e=>e.fileName)))){var o,a;const l=null==(o=t.getSourceFile(e))?void 0:o.symbol;if(l)return(null==(a=c(t,l,!1,r,i)[0])?void 0:a.references)||s;const _=t.getFileIncludeReasons(),u=t.getSourceFile(e);return u&&_&&n(u,_,t)||s},(g=m||(m={}))[g.None=0]="None",g[g.Constructor=1]="Constructor",g[g.Class=2]="Class";class v{constructor(e,t,n,r,i,o,a,s){this.sourceFiles=e,this.sourceFilesSet=t,this.specialSearchKind=n,this.checker=r,this.cancellationToken=i,this.searchMeaning=o,this.options=a,this.result=s,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=ZQ(),this.markSeenReExportRHS=ZQ(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(e){return this.sourceFilesSet.has(e.fileName)}getImportSearches(e,t){return this.importTracker||(this.importTracker=Ice(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,t,2===this.options.use)}createSearch(e,t,n,r={}){const{text:i=Ey(vc(xb(t)||h(t)||t)),allSearchSymbols:o=[t]}=r,a=mc(i),s=this.options.implementations&&e?function(e,t,n){const r=SX(e)?e.parent:void 0,i=r&&n.getTypeAtLocation(r.expression),o=R(i&&(i.isUnionOrIntersection()?i.types:i.symbol===t.parent?void 0:[i]),(e=>e.symbol&&96&e.symbol.flags?e.symbol:void 0));return 0===o.length?void 0:o}(e,t,this.checker):void 0;return{symbol:t,comingFrom:n,text:i,escapedText:a,parents:s,allSearchSymbols:o,includes:e=>k(o,e)}}referenceAdder(e){const t=lJ(e);let n=this.symbolIdToReferences[t];return n||(n=this.symbolIdToReferences[t]=[],this.result.push({definition:{type:0,symbol:e},references:n})),(e,t)=>n.push(Kce(e,t))}addStringOrCommentReference(e,t){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:t}]})}markSearchedSymbols(e,t){const n=cJ(e),r=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=new Set);let i=!1;for(const e of t)i=J(r,lJ(e))||i;return i}}function x(e,t,n,r){const{importSearches:i,singleReferences:o,indirectUsers:a}=r.getImportSearches(t,n);if(o.length){const e=r.referenceAdder(t);for(const t of o)S(t,r)&&e(t)}for(const[e,t]of i)P(e.getSourceFile(),r.createSearch(e,t,1),r);if(a.length){let i;switch(n.exportKind){case 0:i=r.createSearch(e,t,1);break;case 1:i=2===r.options.use?void 0:r.createSearch(e,t,1,{text:"default"})}if(i)for(const e of a)w(e,i,r)}}function S(e,t){return!!O(e,t)&&(2!==t.options.use||!(!_N(e)&&!Bl(e.parent))&&!(Bl(e.parent)&&Kd(e)))}function T(e,t){if(e.declarations)for(const n of e.declarations){const r=n.getSourceFile();P(r,t.createSearch(n,e,0),t,t.includesSourceFile(r))}}function w(e,t,n){void 0!==_7(e).get(t.escapedText)&&P(e,t,n)}function D(e,t,n,r,i=n){const o=ec(e.parent,e.parent.parent)?me(t.getSymbolsOfParameterPropertyDeclaration(e.parent,e.text)):t.getSymbolAtLocation(e);if(o)for(const a of N(n,o.name,i)){if(!_N(a)||a===e||a.escapedText!==e.escapedText)continue;const n=t.getSymbolAtLocation(a);if(n===o||t.getShorthandAssignmentValueSymbol(a.parent)===o||BE(a.parent)&&M(a,n,a.parent,t)===o){const e=r(a);if(e)return e}}}function N(e,t,n=e){return R(F(e,t,n),(t=>{const n=iQ(e,t);return n===e?void 0:n}))}function F(e,t,n=e){const r=[];if(!t||!t.length)return r;const i=e.text,o=i.length,a=t.length;let s=i.indexOf(t,n.pos);for(;s>=0&&!(s>n.end);){const e=s+a;0!==s&&ms(i.charCodeAt(s-1),99)||e!==o&&ms(i.charCodeAt(e),99)||r.push(s),s=i.indexOf(t,s+a+1)}return r}function E(e,t){const n=e.getSourceFile(),r=t.text,i=R(N(n,r,e),(e=>e===t||yX(e)&&gX(e,r)===t?Kce(e):void 0));return[{definition:{type:1,node:t},references:i}]}function P(e,t,n,r=!0){return n.cancellationToken.throwIfCancellationRequested(),I(e,e,t,n,r)}function I(e,t,n,r,i){if(r.markSearchedSymbols(t,n.allSearchSymbols))for(const o of F(t,n.text,e))L(t,o,n,r,i)}function O(e,t){return!!(rX(e)&t.searchMeaning)}function L(e,t,n,r,i){const o=iQ(e,t);if(!function(e,t){switch(e.kind){case 81:if(mP(e.parent))return!0;case 80:return e.text.length===t.length;case 15:case 11:{const n=e;return n.text.length===t.length&&(DX(n)||CX(e)||NX(e)||yF(e.parent)&&rg(e.parent)&&e.parent.arguments[1]===e||Bl(e.parent))}case 9:return DX(e)&&e.text.length===t.length;case 90:return 7===t.length;default:return!1}}(o,n.text))return void(!r.options.implementations&&(r.options.findInStrings&&mQ(e,t)||r.options.findInComments&&BQ(e,t))&&r.addStringOrCommentReference(e.fileName,$s(t,n.text.length)));if(!O(o,r))return;let a=r.checker.getSymbolAtLocation(o);if(!a)return;const s=o.parent;if(LE(s)&&s.propertyName===o)return;if(BE(s))return _n.assert(80===o.kind||11===o.kind),void j(o,a,s,n,r,i);if(Nl(s)&&s.isNameFirst&&s.typeExpression&&NP(s.typeExpression.type)&&s.typeExpression.type.jsDocPropertyTags&&l(s.typeExpression.type.jsDocPropertyTags))return void function(e,t,n,r){const i=r.referenceAdder(n.symbol);B(t,n.symbol,r),_(e,(e=>{CN(e.name)&&i(e.name.left)}))}(s.typeExpression.type.jsDocPropertyTags,o,n,r);const c=function(e,t,n,r){const{checker:i}=r;return K(t,n,i,!1,2!==r.options.use||!!r.options.providePrefixAndSuffixTextForRename,((n,r,i,o)=>(i&&G(t)!==G(i)&&(i=void 0),e.includes(i||r||n)?{symbol:!r||6&ox(n)?n:r,kind:o}:void 0)),(t=>!(e.parents&&!e.parents.some((e=>W(t.parent,e,r.inheritsFromCache,i))))))}(n,a,o,r);if(c){switch(r.specialSearchKind){case 0:i&&B(o,c,r);break;case 1:!function(e,t,n,r){aX(e)&&B(e,n.symbol,r);const i=()=>r.referenceAdder(n.symbol);if(d_(e.parent))_n.assert(90===e.kind||e.parent.name===e),function(e,t,n){const r=z(e);if(r&&r.declarations)for(const e of r.declarations){const r=$X(e,137,t);_n.assert(177===e.kind&&!!r),n(r)}e.exports&&e.exports.forEach((e=>{const t=e.valueDeclaration;if(t&&175===t.kind){const e=t.body;e&&Y(e,110,(e=>{aX(e)&&n(e)}))}}))}(n.symbol,t,i());else{const t=rb(mX(e).parent);t&&(function(e,t){const n=z(e.symbol);if(!n||!n.declarations)return;for(const e of n.declarations){_n.assert(177===e.kind);const n=e.body;n&&Y(n,108,(e=>{oX(e)&&t(e)}))}}(t,i()),function(e,t){if(function(e){return!!z(e.symbol)}(e))return;const n=e.symbol,r=t.createSearch(void 0,n,void 0);f(n,t,r)}(t,r))}}(o,e,n,r);break;case 2:!function(e,t,n){B(e,t.symbol,n);const r=e.parent;if(2===n.options.use||!d_(r))return;_n.assert(r.name===e);const i=n.referenceAdder(t.symbol);for(const e of r.members)g_(e)&&Ev(e)&&e.body&&e.body.forEachChild((function e(t){110===t.kind?i(t):i_(t)||d_(t)||t.forEachChild(e)}))}(o,n,r);break;default:_n.assertNever(r.specialSearchKind)}Em(o)&&pF(o.parent)&&Rm(o.parent.parent.parent)&&(a=o.parent.symbol,!a)||function(e,t,n,r){const i=Jce(e,t,r.checker,1===n.comingFrom);if(!i)return;const{symbol:o}=i;0===i.kind?Z(r.options)||T(o,r):x(e,o,i.exportInfo,r)}(o,a,n,r)}else!function({flags:e,valueDeclaration:t},n,r){const i=r.checker.getShorthandAssignmentValueSymbol(t),o=t&&wc(t);33554432&e||!o||!n.includes(i)||B(o,i,r)}(a,n,r)}function j(e,t,n,r,i,o,a){_n.assert(!a||!!i.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:s,propertyName:c,name:l}=n,_=s.parent,u=M(e,t,n,i.checker);if(a||r.includes(u)){if(c?e===c?(_.moduleSpecifier||d(),o&&2!==i.options.use&&i.markSeenReExportRHS(l)&&B(l,_n.checkDefined(n.symbol),i)):i.markSeenReExportRHS(e)&&d():2===i.options.use&&Kd(l)||d(),!Z(i.options)||a){const t=Kd(e)||Kd(n.name)?1:0,r=_n.checkDefined(n.symbol),o=zce(r,t,i.checker);o&&x(e,r,o,i)}if(1!==r.comingFrom&&_.moduleSpecifier&&!c&&!Z(i.options)){const e=i.checker.getExportSpecifierLocalTargetSymbol(n);e&&T(e,i)}}function d(){o&&B(e,u,i)}}function M(e,t,n,r){return function(e,t){const{parent:n,propertyName:r,name:i}=t;return _n.assert(r===e||i===e),r?r===e:!n.parent.moduleSpecifier}(e,n)&&r.getExportSpecifierLocalTargetSymbol(n)||t}function B(e,t,n){const{kind:r,symbol:i}="kind"in t?t:{kind:void 0,symbol:t};if(2===n.options.use&&90===e.kind)return;const o=n.referenceAdder(i);n.options.implementations?function(e,t,n){if(_h(e)&&(r=e.parent,33554432&r.flags?!hE(r)&&!yE(r):Af(r)?Pu(r):a_(r)?r.body:d_(r)||au(r)))return void t(e);var r;if(80!==e.kind)return;305===e.parent.kind&&Q(e,n.checker,t);const i=q(e);if(i)return void t(i);const o=dc(e,(e=>!CN(e.parent)&&!x_(e.parent)&&!y_(e.parent))),a=o.parent;if(Eu(a)&&a.type===o&&n.markSeenContainingTypeReference(a))if(Pu(a))s(a.initializer);else if(i_(a)&&a.body){const e=a.body;242===e.kind?Nf(e,(e=>{e.expression&&s(e.expression)})):s(e)}else($_(a)||JF(a))&&s(a.expression);function s(e){U(e)&&t(e)}}(e,o,n):o(e,r)}function z(e){return e.members&&e.members.get("__constructor")}function q(e){return _N(e)||gF(e)?q(e.parent):MF(e)?et(e.parent.parent,Zt(d_,hE)):void 0}function U(e){switch(e.kind){case 218:return U(e.expression);case 220:case 219:case 211:case 232:case 210:return!0;default:return!1}}function W(e,t,n,r){if(e===t)return!0;const i=lJ(e)+","+lJ(t),o=n.get(i);if(void 0!==o)return o;n.set(i,!1);const a=!!e.declarations&&e.declarations.some((e=>kh(e).some((e=>{const i=r.getTypeAtLocation(e);return!!i&&!!i.symbol&&W(i.symbol,t,n,r)}))));return n.set(i,a),a}function $(e){return 80===e.kind&&170===e.parent.kind&&e.parent.name===e}function H(e,t,n,r,i,o){const a=[];return K(e,t,n,r,!(r&&i),((t,n,r)=>{r&&G(e)!==G(r)&&(r=void 0),a.push(r||n||t)}),(()=>!o)),a}function K(e,t,n,i,o,a,s){const c=u7(t);if(c){const e=n.getShorthandAssignmentValueSymbol(t.parent);if(e&&i)return a(e,void 0,void 0,3);const r=n.getContextualType(c.parent),o=r&&d(d7(c,n,r,!0),(e=>p(e,4)));if(o)return o;const s=function(e,t){return RQ(e.parent.parent)?t.getPropertySymbolOfDestructuringAssignment(e):void 0}(t,n),l=s&&a(s,void 0,void 0,4);if(l)return l;const _=e&&a(e,void 0,void 0,3);if(_)return _}const l=r(t,e,n);if(l){const e=a(l,void 0,void 0,1);if(e)return e}const _=p(e);if(_)return _;if(e.valueDeclaration&&ec(e.valueDeclaration,e.valueDeclaration.parent)){const t=n.getSymbolsOfParameterPropertyDeclaration(tt(e.valueDeclaration,NN),e.name);return _n.assert(2===t.length&&!!(1&t[0].flags)&&!!(4&t[1].flags)),p(1&e.flags?t[1]:t[0])}const u=Ku(e,282);if(!i||u&&!u.propertyName){const e=u&&n.getExportSpecifierLocalTargetSymbol(u);if(e){const t=a(e,void 0,void 0,1);if(t)return t}}if(!i){let r;return r=o?vY(t.parent)?bY(n,t.parent):void 0:f(e,n),r&&p(r,4)}_n.assert(i);if(o){const t=f(e,n);return t&&p(t,4)}function p(e,t){return d(n.getRootSymbols(e),(r=>a(e,r,void 0,t)||(r.parent&&96&r.parent.flags&&s(r)?function(e,t,n,r){const i=new Set;return o(e);function o(e){if(96&e.flags&&kx(i,e))return d(e.declarations,(e=>d(kh(e),(e=>{const i=n.getTypeAtLocation(e),a=i.symbol&&n.getPropertyOfType(i,t);return a&&d(n.getRootSymbols(a),r)||i.symbol&&o(i.symbol)}))))}}(r.parent,r.name,n,(n=>a(e,r,n,t))):void 0)))}function f(e,t){const n=Ku(e,209);if(n&&vY(n))return bY(t,n)}}function G(e){if(!e.valueDeclaration)return!1;return!!(256&zv(e.valueDeclaration))}function X(e,t){let n=rX(e);const{declarations:r}=t;if(r){let e;do{e=n;for(const e of r){const t=nX(e);t&n&&(n|=t)}}while(n!==e)}return n}function Q(e,t,n){const r=t.getSymbolAtLocation(e),i=t.getShorthandAssignmentValueSymbol(r.valueDeclaration);if(i)for(const e of i.getDeclarations())1&nX(e)&&n(e)}function Y(e,t,n){rO(e,(e=>{e.kind===t&&n(e),Y(e,t,n)}))}function Z(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}e.eachExportReference=function(e,t,n,r,i,o,a,s){const c=Ice(e,new Set(e.map((e=>e.fileName))),t,n),{importSearches:l,indirectUsers:_,singleReferences:u}=c(r,{exportKind:a?1:0,exportingModuleSymbol:i},!1);for(const[e]of l)s(e);for(const e of u)_N(e)&&cF(e.parent)&&s(e);for(const e of _)for(const n of N(e,a?"default":o)){const e=t.getSymbolAtLocation(n),i=V(null==e?void 0:e.declarations,(e=>!!et(e,jE)));!_N(n)||Bl(n.parent)||e!==r&&!i||s(n)}},e.isSymbolReferencedInFile=function(e,t,n,r=n){return D(e,t,n,(()=>!0),r)||!1},e.eachSymbolReferenceInFile=D,e.getTopMostDeclarationNamesInFile=function(e,t){return C(N(t,e),(e=>!!uh(e))).reduce(((e,t)=>{const n=function(e){let t=0;for(;e;)e=FX(e),t++;return t}(t);return V(e.declarationNames)&&n!==e.depth?ne===i))&&r(t,a))return!0}return!1},e.getIntersectingMeaningFromDeclarations=X,e.getReferenceEntriesForShorthandPropertyAssignment=Q})(Zce||(Zce={}));var vle={};function ble(e,t,n,r,i){var o;const a=kle(t,n,e),c=a&&[(l=a.reference.fileName,u=a.fileName,d=a.unverified,{fileName:u,textSpan:Hs(0,0),kind:"script",name:l,containerName:void 0,containerKind:void 0,unverified:d})]||s;var l,u,d;if(null==a?void 0:a.file)return c;const p=iQ(t,n);if(p===t)return;const{parent:f}=p,m=e.getTypeChecker();if(164===p.kind||_N(p)&&MP(f)&&f.tagName===p){const e=function(e,t){const n=dc(t,u_);if(!n||!n.name)return;const r=dc(n,d_);if(!r)return;const i=vh(r);if(!i)return;const o=sh(i.expression),a=jF(o)?o.symbol:e.getSymbolAtLocation(o);if(!a)return;const s=Pv(n)?e.getTypeOfSymbol(a):e.getDeclaredTypeOfSymbol(a);let c;if(wN(n.name)){const t=e.getSymbolAtLocation(n.name);if(!t)return;c=$h(t)?y(e.getPropertiesOfType(s),(e=>e.escapedName===t.escapedName)):e.getPropertyOfType(s,gc(t.escapedName))}else c=e.getPropertyOfType(s,gc(jp(n.name)));if(!c)return;return Ele(e,c,t)}(m,p);if(void 0!==e||164!==p.kind)return e||s}if(yX(p)){const e=gX(p.parent,p.text);return e?[Ale(m,e,"label",p.text,void 0)]:void 0}switch(p.kind){case 90:if(!iP(p.parent))break;case 84:const e=dc(p.parent,cE);if(e)return[Ile(e,t)]}let g;switch(p.kind){case 107:case 135:case 127:g=a_;const e=dc(p,g);return e?[Lle(m,e)]:void 0}if(yN(p)&&ON(p.parent)){const e=p.parent.parent,{symbol:t,failedAliasResolution:n}=Fle(e,m,i),r=C(e.members,ON),o=t?m.symbolToString(t,e):"",a=p.getSourceFile();return N(r,(e=>{let{pos:t}=Mb(e);return t=Ya(a.text,t),Ale(m,e,"constructor","static {}",o,!1,n,{start:t,length:6})}))}let{symbol:v,failedAliasResolution:b}=Fle(p,m,i),x=p;if(r&&b){const e=_([p,...(null==v?void 0:v.declarations)||s],(e=>dc(e,Tp))),t=e&&vg(e);t&&(({symbol:v,failedAliasResolution:b}=Fle(t,m,i)),x=t)}if(!v&&yY(x)){const n=null==(o=e.getResolvedModuleFromModuleSpecifier(x,t))?void 0:o.resolvedModule;if(n)return[{name:x.text,fileName:n.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:$s(0,0),failedAliasResolution:b,isAmbient:yO(n.resolvedFileName),unverified:x!==p}]}if(e_(p)&&(u_(f)||Tc(f))&&(v=f.symbol),!v)return $(c,function(e,t){return R(t.getIndexInfosAtLocation(e),(e=>e.declaration&&Lle(t,e.declaration)))}(p,m));if(r&&h(v.declarations,(e=>e.getSourceFile().fileName===t.fileName)))return;const k=function(e,t){const n=function(e){const t=dc(e,(e=>!SX(e))),n=null==t?void 0:t.parent;return n&&j_(n)&&um(n)===t?n:void 0}(t),r=n&&e.getResolvedSignature(n);return et(r&&r.declaration,(e=>i_(e)&&!UN(e)))}(m,p);if(k&&(!xu(p.parent)||!function(e){switch(e.kind){case 177:case 186:case 180:case 181:return!0;default:return!1}}(k))){const e=Lle(m,k,b);let t=e=>e!==k;if(m.getRootSymbols(v).some((e=>function(e,t){var n;return e===t.symbol||e===t.symbol.parent||ob(t.parent)||!j_(t.parent)&&e===(null==(n=et(t.parent,su))?void 0:n.symbol)}(e,k)))){if(!LN(k))return[e];t=e=>e!==k&&(gE(e)||jF(e))}const n=Ele(m,v,p,b,t)||s;return 108===p.kind?[e,...n]:[...n,e]}if(305===p.parent.kind){const e=m.getShorthandAssignmentValueSymbol(v.valueDeclaration);return $((null==e?void 0:e.declarations)?e.declarations.map((t=>Ple(t,m,e,p,!1,b))):s,xle(m,p))}if(n_(p)&&pF(f)&&uF(f.parent)&&p===(f.propertyName||f.name)){const e=rY(p),t=m.getTypeAtLocation(f.parent);return void 0===e?s:A(t.isUnion()?t.types:[t],(t=>{const n=t.getProperty(e);return n&&Ele(m,n,p)}))}const S=xle(m,p);return $(c,S.length?S:Ele(m,v,p,b))}function xle(e,t){const n=u7(t);if(n){const r=n&&e.getContextualType(n.parent);if(r){let i=d7(n,e,r,!1);if(V(i,(e=>!!(e.valueDeclaration&&mF(e.valueDeclaration.parent)&&b_(e.valueDeclaration)&&e.valueDeclaration.name===t)))){const t=e.getContextualType(n.parent,4);if(t){const r=d7(n,e,t,!1);r.length&&(i=r)}}return A(i,(n=>Ele(e,n,t)))}}return s}function kle(e,t,n){var r,i;const o=jle(e.referencedFiles,t);if(o){const t=n.getSourceFileFromReference(e,o);return t&&{reference:o,fileName:t.fileName,file:t,unverified:!1}}const a=jle(e.typeReferenceDirectives,t);if(a){const t=null==(r=n.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(a,e))?void 0:r.resolvedTypeReferenceDirective,i=t&&n.getSourceFile(t.resolvedFileName);return i&&{reference:a,fileName:i.fileName,file:i,unverified:!1}}const s=jle(e.libReferenceDirectives,t);if(s){const e=n.getLibFileFromReference(s);return e&&{reference:s,fileName:e.fileName,file:e,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){const r=oQ(e,t);let o;if(yY(r)&&ws(r.text)&&(o=n.getResolvedModuleFromModuleSpecifier(r,e))){const t=null==(i=o.resolvedModule)?void 0:i.resolvedFileName,a=t||Mo(Fo(e.fileName),r.text);return{file:n.getSourceFile(a),fileName:a,reference:{pos:r.getStart(),end:r.getEnd(),fileName:r.text},unverified:!t}}}}n(vle,{createDefinitionInfo:()=>Ple,getDefinitionAndBoundSpan:()=>Nle,getDefinitionAtPosition:()=>ble,getReferenceAtPosition:()=>kle,getTypeDefinitionAtPosition:()=>wle});var Sle=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"]);function Tle(e,t){if(!t.aliasSymbol)return!1;const n=t.aliasSymbol.name;if(!Sle.has(n))return!1;const r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.aliasSymbol}function Cle(e,t,n,r){var i,o;if(4&yx(t)&&function(e,t){const n=t.symbol.name;if(!Sle.has(n))return!1;const r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.target.symbol}(e,t))return Dle(e.getTypeArguments(t)[0],e,n,r);if(Tle(e,t)&&t.aliasTypeArguments)return Dle(t.aliasTypeArguments[0],e,n,r);if(32&yx(t)&&t.target&&Tle(e,t.target)){const a=null==(o=null==(i=t.aliasSymbol)?void 0:i.declarations)?void 0:o[0];if(a&&yE(a)&&qN(a.type)&&a.type.typeArguments)return Dle(e.getTypeAtLocation(a.type.typeArguments[0]),e,n,r)}return[]}function wle(e,t,n){const r=iQ(t,n);if(r===t)return;if(uf(r.parent)&&r.parent.name===r)return Dle(e.getTypeAtLocation(r.parent),e,r.parent,!1);let{symbol:i,failedAliasResolution:o}=Fle(r,e,!1);if(e_(r)&&(u_(r.parent)||Tc(r.parent))&&(i=r.parent.symbol,o=!1),!i)return;const a=e.getTypeOfSymbolAtLocation(i,r),s=function(e,t,n){if(t.symbol===e||e.valueDeclaration&&t.symbol&&pE(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const e=t.getCallSignatures();if(1===e.length)return n.getReturnTypeOfSignature(me(e))}return}(i,a,e),c=s&&Dle(s,e,r,o),[l,_]=c&&0!==c.length?[s,c]:[a,Dle(a,e,r,o)];return _.length?[...Cle(e,l,r,o),..._]:!(111551&i.flags)&&788968&i.flags?Ele(e,sx(i,e),r,o):void 0}function Dle(e,t,n,r){return A(!e.isUnion()||65536&e.flags?[e]:e.types,(e=>e.symbol&&Ele(t,e.symbol,n,r)))}function Nle(e,t,n){const r=ble(e,t,n);if(!r||0===r.length)return;const i=jle(t.referencedFiles,n)||jle(t.typeReferenceDirectives,n)||jle(t.libReferenceDirectives,n);if(i)return{definitions:r,textSpan:WQ(i)};const o=iQ(t,n);return{definitions:r,textSpan:$s(o.getStart(),o.getWidth())}}function Fle(e,t,n){const r=t.getSymbolAtLocation(e);let i=!1;if((null==r?void 0:r.declarations)&&2097152&r.flags&&!n&&function(e,t){if(80!==e.kind&&(11!==e.kind||!Bl(e.parent)))return!1;if(e.parent===t)return!0;if(275===t.kind)return!1;return!0}(e,r.declarations[0])){const e=t.getAliasedSymbol(r);if(e.declarations)return{symbol:e};i=!0}return{symbol:r,failedAliasResolution:i}}function Ele(e,t,n,r,i){const o=void 0!==i?C(t.declarations,i):t.declarations,a=!i&&(function(){if(32&t.flags&&!(19&t.flags)&&(aX(n)||137===n.kind)){const e=y(o,d_);return e&&c(e.members,!0)}}()||(sX(n)||wX(n)?c(o,!1):void 0));if(a)return a;const s=C(o,(e=>!function(e){if(!Vm(e))return!1;const t=dc(e,(e=>!!ob(e)||!Vm(e)&&"quit"));return!!t&&5===ng(t)}(e)));return N(V(s)?s:o,(i=>Ple(i,e,t,n,!1,r)));function c(i,o){if(!i)return;const a=i.filter(o?LN:i_),s=a.filter((e=>!!e.body));return a.length?0!==s.length?s.map((r=>Ple(r,e,t,n))):[Ple(ye(a),e,t,n,!1,r)]:void 0}}function Ple(e,t,n,r,i,o){const a=t.symbolToString(n),s=Wue.getSymbolKind(t,n,r),c=n.parent?t.symbolToString(n.parent,r):"";return Ale(t,e,s,a,c,i,o)}function Ale(e,t,n,r,i,o,a,s){const c=t.getSourceFile();if(!s){s=qQ(wc(t)||t,c)}return{fileName:c.fileName,textSpan:s,kind:n,name:r,containerKind:void 0,containerName:i,...Ace.toContextSpan(s,c,Ace.getContextNode(t)),isLocal:!Ole(e,t),isAmbient:!!(33554432&t.flags),unverified:o,failedAliasResolution:a}}function Ile(e,t){const n=Ace.getContextNode(e),r=qQ(Gce(n)?n.start:n,t);return{fileName:t.fileName,textSpan:r,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...Ace.toContextSpan(r,t,n),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function Ole(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Pu(t.parent)&&t.parent.initializer===t)return Ole(e,t.parent);switch(t.kind){case 173:case 178:case 179:case 175:if(Nv(t,2))return!1;case 177:case 304:case 305:case 211:case 232:case 220:case 219:return Ole(e,t.parent);default:return!1}}function Lle(e,t,n){return Ple(t,e,t.symbol,t,!1,n)}function jle(e,t){return y(e,(e=>Is(e,t)))}var Rle={};n(Rle,{provideInlayHints:()=>zle});var Mle=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`);function Ble(e){return"literals"===e.includeInlayParameterNameHints}function Jle(e){return!0===e.interactiveInlayHints}function zle(e){const{file:t,program:n,span:r,cancellationToken:i,preferences:o}=e,a=t.text,s=n.getCompilerOptions(),c=fY(t,o),l=n.getTypeChecker(),_=[];return function e(n){if(!n||0===n.getFullWidth())return;switch(n.kind){case 268:case 264:case 265:case 263:case 232:case 219:case 175:case 220:i.throwIfCancellationRequested()}if(!Js(r,n.pos,n.getFullWidth()))return;if(x_(n)&&!MF(n))return;o.includeInlayVariableTypeHints&&pE(n)||o.includeInlayPropertyDeclarationTypeHints&&PN(n)?f(n):o.includeInlayEnumMemberValueHints&&_P(n)?function(e){if(e.initializer)return;const t=l.getConstantValue(e);void 0!==t&&(n=t.toString(),r=e.end,_.push({text:`= ${n}`,position:r,kind:"Enum",whitespaceBefore:!0}));var n,r}(n):function(e){return"literals"===e.includeInlayParameterNameHints||"all"===e.includeInlayParameterNameHints}(o)&&(yF(n)||vF(n))?function(e){const t=e.arguments;if(!t||!t.length)return;const n=l.getResolvedSignature(e);if(void 0===n)return;let r=0;for(const e of t){const t=sh(e);if(Ble(o)&&!h(t)){r++;continue}let i=0;if(LF(t)){const e=l.getTypeAtLocation(t.expression);if(l.isTupleType(e)){const{elementFlags:t,fixedLength:n}=e.target;if(0===n)continue;const r=b(t,(e=>!(1&e)));(r<0?n:r)>0&&(i=r<0?n:r)}}const a=l.getParameterIdentifierInfoAtPosition(n,r);if(r+=i||1,a){const{parameter:n,parameterName:r,isRestParameter:i}=a;if(!(o.includeInlayParameterNameHintsWhenArgumentMatchesName||!m(t,r))&&!i)continue;const s=gc(r);if(g(t,s))continue;u(s,n,e.getStart(),i)}}}(n):(o.includeInlayFunctionParameterTypeHints&&a_(n)&&RT(n)&&function(e){const t=l.getSignatureFromDeclaration(e);if(!t)return;let n=0;for(const r of e.parameters)S(r)&&v(r,lv(r)?t.thisParameter:t.parameters[n]),lv(r)||n++}(n),o.includeInlayFunctionLikeReturnTypeHints&&function(e){return TF(e)||SF(e)||mE(e)||IN(e)||jN(e)}(n)&&function(e){if(TF(e)&&!$X(e,21,t))return;if(hv(e)||!e.body)return;const n=l.getSignatureFromDeclaration(e);if(!n)return;const r=l.getTypePredicateOfSignature(n);if(null==r?void 0:r.type){const n=function(e){if(!Jle(o))return function(e){const n=71286784,r=DU();return sd((i=>{const o=l.typePredicateToTypePredicateNode(e,void 0,n);_n.assertIsDefined(o,"should always get typePredicateNode"),r.writeNode(4,o,t,i)}))}(e);const n=71286784,r=l.typePredicateToTypePredicateNode(e,void 0,n);return _n.assertIsDefined(r,"should always get typenode"),k(r)}(r);if(n)return void d(n,y(e))}const i=l.getReturnTypeOfSignature(n);if(p(i))return;const a=x(i);a&&d(a,y(e))}(n));return rO(n,e)}(t),_;function u(e,t,n,r){let i,a=`${r?"...":""}${e}`;Jle(o)?(i=[T(a,t),{text:":"}],a=""):a+=":",_.push({text:a,position:n,kind:"Parameter",whitespaceAfter:!0,displayParts:i})}function d(e,t){_.push({text:"string"==typeof e?`: ${e}`:"",displayParts:"string"==typeof e?void 0:[{text:": "},...e],position:t,kind:"Type",whitespaceBefore:!0})}function p(e){return e.symbol&&1536&e.symbol.flags}function f(e){if(void 0===e.initializer&&(!PN(e)||1&l.getTypeAtLocation(e).flags)||S_(e.name)||pE(e)&&!S(e))return;if(mv(e))return;const t=l.getTypeAtLocation(e);if(p(t))return;const n=x(t);if(n){const t="string"==typeof n?n:n.map((e=>e.text)).join("");if(!1===o.includeInlayVariableTypeHintsWhenTypeMatchesName&&mt(e.name.getText(),t))return;d(n,e.name.end)}}function m(e,t){return _N(e)?e.text===t:!!gF(e)&&e.name.text===t}function g(e,n){if(!gs(n,xk(s),uk(t.scriptKind)))return!1;const r=us(a,e.pos);if(!(null==r?void 0:r.length))return!1;const i=Mle(n);return V(r,(e=>i.test(a.substring(e.pos,e.end))))}function h(e){switch(e.kind){case 225:{const t=e.operand;return Ol(t)||_N(t)&&MT(t.escapedText)}case 112:case 97:case 106:case 15:case 229:return!0;case 80:{const t=e.escapedText;return function(e){return"undefined"===e}(t)||MT(t)}}return Ol(e)}function y(e){const n=$X(e,22,t);return n?n.end:e.parameters.end}function v(e,t){if(mv(e)||void 0===t)return;const n=function(e){const t=e.valueDeclaration;if(!t||!NN(t))return;const n=l.getTypeOfSymbolAtLocation(e,t);if(p(n))return;return x(n)}(t);void 0!==n&&d(n,e.questionToken?e.questionToken.end:e.name.end)}function x(e){if(!Jle(o))return function(e){const n=DU();return sd((r=>{const i=l.typeToTypeNode(e,void 0,71286784);_n.assertIsDefined(i,"should always get typenode"),n.writeNode(4,i,t,r)}))}(e);const n=l.typeToTypeNode(e,void 0,71286784);return _n.assertIsDefined(n,"should always get typeNode"),k(n)}function k(e){const t=[];return n(e),t;function n(e){var a,s;if(!e)return;const c=Ea(e.kind);if(c)t.push({text:c});else if(Ol(e))t.push({text:o(e)});else switch(e.kind){case 80:_n.assertNode(e,_N);const c=hc(e),l=e.symbol&&e.symbol.declarations&&e.symbol.declarations.length&&wc(e.symbol.declarations[0]);l?t.push(T(c,l)):t.push({text:c});break;case 167:_n.assertNode(e,CN),n(e.left),t.push({text:"."}),n(e.right);break;case 183:_n.assertNode(e,zN),e.assertsModifier&&t.push({text:"asserts "}),n(e.parameterName),e.type&&(t.push({text:" is "}),n(e.type));break;case 184:_n.assertNode(e,qN),n(e.typeName),e.typeArguments&&(t.push({text:"<"}),i(e.typeArguments,", "),t.push({text:">"}));break;case 169:_n.assertNode(e,DN),e.modifiers&&(i(e.modifiers," "),t.push({text:" "})),n(e.name),e.constraint&&(t.push({text:" extends "}),n(e.constraint)),e.default&&(t.push({text:" = "}),n(e.default));break;case 170:_n.assertNode(e,NN),e.modifiers&&(i(e.modifiers," "),t.push({text:" "})),e.dotDotDotToken&&t.push({text:"..."}),n(e.name),e.questionToken&&t.push({text:"?"}),e.type&&(t.push({text:": "}),n(e.type));break;case 186:_n.assertNode(e,VN),t.push({text:"new "}),r(e),t.push({text:" => "}),n(e.type);break;case 187:_n.assertNode(e,WN),t.push({text:"typeof "}),n(e.exprName),e.typeArguments&&(t.push({text:"<"}),i(e.typeArguments,", "),t.push({text:">"}));break;case 188:_n.assertNode(e,$N),t.push({text:"{"}),e.members.length&&(t.push({text:" "}),i(e.members,"; "),t.push({text:" "})),t.push({text:"}"});break;case 189:_n.assertNode(e,HN),n(e.elementType),t.push({text:"[]"});break;case 190:_n.assertNode(e,KN),t.push({text:"["}),i(e.elements,", "),t.push({text:"]"});break;case 203:_n.assertNode(e,GN),e.dotDotDotToken&&t.push({text:"..."}),n(e.name),e.questionToken&&t.push({text:"?"}),t.push({text:": "}),n(e.type);break;case 191:_n.assertNode(e,XN),n(e.type),t.push({text:"?"});break;case 192:_n.assertNode(e,QN),t.push({text:"..."}),n(e.type);break;case 193:_n.assertNode(e,YN),i(e.types," | ");break;case 194:_n.assertNode(e,ZN),i(e.types," & ");break;case 195:_n.assertNode(e,eF),n(e.checkType),t.push({text:" extends "}),n(e.extendsType),t.push({text:" ? "}),n(e.trueType),t.push({text:" : "}),n(e.falseType);break;case 196:_n.assertNode(e,tF),t.push({text:"infer "}),n(e.typeParameter);break;case 197:_n.assertNode(e,nF),t.push({text:"("}),n(e.type),t.push({text:")"});break;case 199:_n.assertNode(e,iF),t.push({text:`${Ea(e.operator)} `}),n(e.type);break;case 200:_n.assertNode(e,oF),n(e.objectType),t.push({text:"["}),n(e.indexType),t.push({text:"]"});break;case 201:_n.assertNode(e,aF),t.push({text:"{ "}),e.readonlyToken&&(40===e.readonlyToken.kind?t.push({text:"+"}):41===e.readonlyToken.kind&&t.push({text:"-"}),t.push({text:"readonly "})),t.push({text:"["}),n(e.typeParameter),e.nameType&&(t.push({text:" as "}),n(e.nameType)),t.push({text:"]"}),e.questionToken&&(40===e.questionToken.kind?t.push({text:"+"}):41===e.questionToken.kind&&t.push({text:"-"}),t.push({text:"?"})),t.push({text:": "}),e.type&&n(e.type),t.push({text:"; }"});break;case 202:_n.assertNode(e,sF),n(e.literal);break;case 185:_n.assertNode(e,UN),r(e),t.push({text:" => "}),n(e.type);break;case 206:_n.assertNode(e,cF),e.isTypeOf&&t.push({text:"typeof "}),t.push({text:"import("}),n(e.argument),e.assertions&&(t.push({text:", { assert: "}),i(e.assertions.assertClause.elements,", "),t.push({text:" }"})),t.push({text:")"}),e.qualifier&&(t.push({text:"."}),n(e.qualifier)),e.typeArguments&&(t.push({text:"<"}),i(e.typeArguments,", "),t.push({text:">"}));break;case 172:_n.assertNode(e,EN),(null==(a=e.modifiers)?void 0:a.length)&&(i(e.modifiers," "),t.push({text:" "})),n(e.name),e.questionToken&&t.push({text:"?"}),e.type&&(t.push({text:": "}),n(e.type));break;case 182:_n.assertNode(e,JN),t.push({text:"["}),i(e.parameters,", "),t.push({text:"]"}),e.type&&(t.push({text:": "}),n(e.type));break;case 174:_n.assertNode(e,AN),(null==(s=e.modifiers)?void 0:s.length)&&(i(e.modifiers," "),t.push({text:" "})),n(e.name),e.questionToken&&t.push({text:"?"}),r(e),e.type&&(t.push({text:": "}),n(e.type));break;case 180:_n.assertNode(e,MN),r(e),e.type&&(t.push({text:": "}),n(e.type));break;case 181:_n.assertNode(e,BN),t.push({text:"new "}),r(e),e.type&&(t.push({text:": "}),n(e.type));break;case 208:_n.assertNode(e,dF),t.push({text:"["}),i(e.elements,", "),t.push({text:"]"});break;case 207:_n.assertNode(e,uF),t.push({text:"{"}),e.elements.length&&(t.push({text:" "}),i(e.elements,", "),t.push({text:" "})),t.push({text:"}"});break;case 209:_n.assertNode(e,pF),n(e.name);break;case 225:_n.assertNode(e,FF),t.push({text:Ea(e.operator)}),n(e.operand);break;case 204:_n.assertNode(e,_F),n(e.head),e.templateSpans.forEach(n);break;case 16:_n.assertNode(e,QD),t.push({text:o(e)});break;case 205:_n.assertNode(e,lF),n(e.type),n(e.literal);break;case 17:_n.assertNode(e,YD),t.push({text:o(e)});break;case 18:_n.assertNode(e,ZD),t.push({text:o(e)});break;case 198:_n.assertNode(e,rF),t.push({text:"this"});break;case 168:_n.assertNode(e,wN),t.push({text:"["}),n(e.expression),t.push({text:"]"});break;default:_n.failBadSyntaxKind(e)}}function r(e){e.typeParameters&&(t.push({text:"<"}),i(e.typeParameters,", "),t.push({text:">"})),t.push({text:"("}),i(e.parameters,", "),t.push({text:")"})}function i(e,r){e.forEach(((e,i)=>{i>0&&t.push({text:r}),n(e)}))}function o(e){switch(e.kind){case 11:return 0===c?`'${ky(e.text,39)}'`:`"${ky(e.text,34)}"`;case 16:case 17:case 18:{const t=e.rawText??py(ky(e.text,96));switch(e.kind){case 16:return"`"+t+"${";case 17:return"}"+t+"${";case 18:return"}"+t+"`"}}}return e.text}}function S(e){if((Yh(e)||pE(e)&&af(e))&&e.initializer){const t=sh(e.initializer);return!(h(t)||vF(t)||mF(t)||$_(t))}return!0}function T(e,t){const n=t.getSourceFile();return{text:e,span:qQ(t,n),file:n.fileName}}}var qle={};n(qle,{getDocCommentTemplateAtPosition:()=>o_e,getJSDocParameterNameCompletionDetails:()=>i_e,getJSDocParameterNameCompletions:()=>r_e,getJSDocTagCompletionDetails:()=>n_e,getJSDocTagCompletions:()=>t_e,getJSDocTagNameCompletionDetails:()=>e_e,getJSDocTagNameCompletions:()=>Zle,getJsDocCommentsFromDeclarations:()=>$le,getJsDocTagsFromDeclarations:()=>Kle});var Ule,Vle,Wle=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","import","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"];function $le(e,t){const n=[];return FY(e,(e=>{for(const r of function(e){switch(e.kind){case 342:case 349:return[e];case 339:case 347:return[e,e.parent];case 324:if(BP(e.parent))return[e.parent.parent];default:return Rg(e)}}(e)){const i=DP(r)&&r.tags&&y(r.tags,(e=>328===e.kind&&("inheritDoc"===e.tagName.escapedText||"inheritdoc"===e.tagName.escapedText)));if(void 0===r.comment&&!i||DP(r)&&347!==e.kind&&339!==e.kind&&r.tags&&r.tags.some((e=>347===e.kind||339===e.kind))&&!r.tags.some((e=>342===e.kind||343===e.kind)))continue;let o=r.comment?Qle(r.comment,t):[];i&&i.comment&&(o=o.concat(Qle(i.comment,t))),k(n,o,Hle)||n.push(o)}})),P(g(n,[ZY()]))}function Hle(e,t){return ee(e,t,((e,t)=>e.kind===t.kind&&e.text===t.text))}function Kle(e,t){const n=[];return FY(e,(e=>{const r=al(e);if(!r.some((e=>347===e.kind||339===e.kind))||r.some((e=>342===e.kind||343===e.kind)))for(const e of r)n.push({name:e.tagName.text,text:Yle(e,t)}),n.push(...Gle(Xle(e),t))})),n}function Gle(e,t){return A(e,(e=>$([{name:e.tagName.text,text:Yle(e,t)}],Gle(Xle(e),t))))}function Xle(e){return Nl(e)&&e.isNameFirst&&e.typeExpression&&NP(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function Qle(e,t){return"string"==typeof e?[WY(e)]:A(e,(e=>322===e.kind?[WY(e.text)]:XY(e,t)))}function Yle(e,t){const{comment:n,kind:r}=e,i=function(e){switch(e){case 342:return qY;case 349:return UY;case 346:return HY;case 347:case 339:return $Y;default:return WY}}(r);switch(r){case 350:const r=e.typeExpression;return r?o(r):void 0===n?void 0:Qle(n,t);case 330:case 329:return o(e.class);case 346:const a=e,s=[];if(a.constraint&&s.push(WY(a.constraint.getText())),l(a.typeParameters)){l(s)&&s.push(MY());const e=a.typeParameters[a.typeParameters.length-1];_(a.typeParameters,(t=>{s.push(i(t.getText())),e!==t&&s.push(JY(28),MY())}))}return n&&s.push(MY(),...Qle(n,t)),s;case 345:case 351:return o(e.typeExpression);case 347:case 339:case 349:case 342:case 348:const{name:c}=e;return c?o(c):void 0===n?void 0:Qle(n,t);default:return void 0===n?void 0:Qle(n,t)}function o(e){return r=e.getText(),n?r.match(/^https?$/)?[WY(r),...Qle(n,t)]:[i(r),MY(),...Qle(n,t)]:[WY(r)];var r}}function Zle(){return Ule||(Ule=N(Wle,(e=>({name:e,kind:"keyword",kindModifiers:"",sortText:Fae.SortText.LocationPriority}))))}var e_e=n_e;function t_e(){return Vle||(Vle=N(Wle,(e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:Fae.SortText.LocationPriority}))))}function n_e(e){return{name:e,kind:"",kindModifiers:"",displayParts:[WY(e)],documentation:s,tags:void 0,codeActions:void 0}}function r_e(e){if(!_N(e.name))return s;const t=e.name.text,n=e.parent,r=n.parent;return i_(r)?R(r.parameters,(r=>{if(!_N(r.name))return;const i=r.name.text;return n.tags.some((t=>t!==e&&UP(t)&&_N(t.name)&&t.name.escapedText===i))||void 0!==t&&!Kt(i,t)?void 0:{name:i,kind:"parameter",kindModifiers:"",sortText:Fae.SortText.LocationPriority}})):[]}function i_e(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[WY(e)],documentation:s,tags:void 0,codeActions:void 0}}function o_e(e,t,n,r){const i=aQ(t,n),o=dc(i,DP);if(o&&(void 0!==o.comment||l(o.tags)))return;const a=i.getStart(t);if(!o&&aa_e(e,t)))}(i,r);if(!s)return;const{commentOwner:c,parameters:_,hasReturn:u}=s,d=he(Fu(c)&&c.jsDoc?c.jsDoc:void 0);if(c.getStart(t){const a=80===e.kind?e.text:"param"+o;return`${n} * @param ${t?i?"{...any} ":"{any} ":""}${a}${r}`})).join("")}(_||[],f,p,e):"")+(u?function(e,t){return`${e} * @returns${t}`}(p,e):""),g=l(al(c))>0;if(m&&!g){const t="/**"+e+p+" * ";return{newText:t+e+m+p+" */"+(a===n?e+p:""),caretOffset:t.length}}return{newText:"/** */",caretOffset:3}}function a_e(e,t){switch(e.kind){case 263:case 219:case 175:case 177:case 174:case 220:const n=e;return{commentOwner:e,parameters:n.parameters,hasReturn:s_e(n,t)};case 304:return a_e(e.initializer,t);case 264:case 265:case 267:case 307:case 266:return{commentOwner:e};case 172:{const n=e;return n.type&&UN(n.type)?{commentOwner:e,parameters:n.type.parameters,hasReturn:s_e(n.type,t)}:{commentOwner:e}}case 244:{const n=e.declarationList.declarations,r=1===n.length&&n[0].initializer?function(e){for(;218===e.kind;)e=e.expression;switch(e.kind){case 219:case 220:return e;case 232:return y(e.members,LN)}}(n[0].initializer):void 0;return r?{commentOwner:e,parameters:r.parameters,hasReturn:s_e(r,t)}:{commentOwner:e}}case 308:return"quit";case 268:return 268===e.parent.kind?void 0:{commentOwner:e};case 245:return a_e(e.expression,t);case 227:{const n=e;return 0===ng(n)?"quit":i_(n.right)?{commentOwner:e,parameters:n.right.parameters,hasReturn:s_e(n.right,t)}:{commentOwner:e}}case 173:const r=e.initializer;if(r&&(SF(r)||TF(r)))return{commentOwner:e,parameters:r.parameters,hasReturn:s_e(r,t)}}}function s_e(e,t){return!!(null==t?void 0:t.generateReturnInDocTemplate)&&(UN(e)||TF(e)&&W_(e.body)||a_(e)&&e.body&&KF(e.body)&&!!Nf(e.body,(e=>e)))}var c_e={};function l_e(e,t,n,r,i,o){return ede.ChangeTracker.with({host:r,formatContext:i,preferences:o},(r=>{const i=t.map((t=>function(e,t){const n=[{parse:()=>sO("__mapcode_content_nodes.ts",t,e.languageVersion,!0,e.scriptKind),body:e=>e.statements},{parse:()=>sO("__mapcode_class_content_nodes.ts",`class __class {\n${t}\n}`,e.languageVersion,!0,e.scriptKind),body:e=>e.statements[0].members}],r=[];for(const{parse:e,body:t}of n){const n=e(),i=t(n);if(i.length&&0===n.parseDiagnostics.length)return i;i.length&&r.push({sourceFile:n,body:i})}r.sort(((e,t)=>e.sourceFile.parseDiagnostics.length-t.sourceFile.parseDiagnostics.length));const{body:i}=r[0];return i}(e,t))),o=n&&P(n);for(const t of i)__e(e,r,t,o)}))}function __e(e,t,n,r){u_(n[0])||y_(n[0])?function(e,t,n,r){let i;i=r&&r.length?_(r,(t=>dc(aQ(e,t.start),Zt(d_,hE)))):y(e.statements,Zt(d_,hE));if(!i)return;const o=i.members.find((e=>n.some((t=>u_e(t,e)))));if(o){const r=v(i.members,(e=>n.some((t=>u_e(t,e)))));return _(n,d_e),void t.replaceNodeRangeWithNodes(e,o,r,n)}_(n,d_e),t.insertNodesAfter(e,i.members[i.members.length-1],n)}(e,t,n,r):function(e,t,n,r){if(!(null==r?void 0:r.length))return void t.insertNodesAtEndOfFile(e,n,!1);for(const i of r){const r=dc(aQ(e,i.start),(e=>Zt(KF,uP)(e)&&V(e.statements,(e=>n.some((t=>u_e(t,e)))))));if(r){const i=r.statements.find((e=>n.some((t=>u_e(t,e)))));if(i){const o=v(r.statements,(e=>n.some((t=>u_e(t,e)))));return _(n,d_e),void t.replaceNodeRangeWithNodes(e,i,o,n)}}}let i=e.statements;for(const t of r){const n=dc(aQ(e,t.start),KF);if(n){i=n.statements;break}}_(n,d_e),t.insertNodesAfter(e,i[i.length-1],n)}(e,t,n,r)}function u_e(e,t){var n,r,i,o,a,s;return e.kind===t.kind&&(177===e.kind?e.kind===t.kind:Tc(e)&&Tc(t)?e.name.getText()===t.name.getText():YF(e)&&YF(t)||eE(e)&&eE(t)?e.expression.getText()===t.expression.getText():tE(e)&&tE(t)?(null==(n=e.initializer)?void 0:n.getText())===(null==(r=t.initializer)?void 0:r.getText())&&(null==(i=e.incrementor)?void 0:i.getText())===(null==(o=t.incrementor)?void 0:o.getText())&&(null==(a=e.condition)?void 0:a.getText())===(null==(s=t.condition)?void 0:s.getText()):Y_(e)&&Y_(t)?e.expression.getText()===t.expression.getText()&&e.initializer.getText()===t.initializer.getText():lE(e)&&lE(t)?e.label.getText()===t.label.getText():e.getText()===t.getText())}function d_e(e){p_e(e),e.parent=void 0}function p_e(e){e.pos=-1,e.end=-1,e.forEachChild(p_e)}n(c_e,{mapCode:()=>l_e});var f_e={};function m_e(e,t,n,r,i,o){const a=ede.ChangeTracker.fromContext({host:n,formatContext:t,preferences:i}),s="SortAndCombine"===o||"All"===o,c=s,_="RemoveUnused"===o||"All"===o,u=e.statements.filter(CE),d=h_e(e,u),{comparersToTest:p,typeOrdersToTest:f}=g_e(i),m=p[0],g={moduleSpecifierComparer:"boolean"==typeof i.organizeImportsIgnoreCase?m:void 0,namedImportComparer:"boolean"==typeof i.organizeImportsIgnoreCase?m:void 0,typeOrder:i.organizeImportsTypeOrder};if("boolean"!=typeof i.organizeImportsIgnoreCase&&({comparer:g.moduleSpecifierComparer}=F_e(d,p)),!g.typeOrder||"boolean"!=typeof i.organizeImportsIgnoreCase){const e=E_e(u,p,f);if(e){const{namedImportComparer:t,typeOrder:n}=e;g.namedImportComparer=g.namedImportComparer??t,g.typeOrder=g.typeOrder??n}}d.forEach((e=>y(e,g))),"RemoveUnused"!==o&&function(e){const t=[],n=e.statements,r=l(n);let i=0,o=0;for(;ih_e(e,t)))}(e).forEach((e=>v(e,g.namedImportComparer)));for(const t of e.statements.filter(cp)){if(!t.body)continue;if(h_e(e,t.body.statements.filter(CE)).forEach((e=>y(e,g))),"RemoveUnused"!==o){v(t.body.statements.filter(RE),g.namedImportComparer)}}return a.getChanges();function h(r,i){if(0===l(r))return;Cw(r[0],1024);const o=c?Be(r,(e=>v_e(e.moduleSpecifier))):[r],_=A(s?le(o,((e,t)=>C_e(e[0].moduleSpecifier,t[0].moduleSpecifier,g.moduleSpecifierComparer??m))):o,(e=>v_e(e[0].moduleSpecifier)||void 0===e[0].moduleSpecifier?i(e):e));if(0===_.length)a.deleteNodes(e,r,{leadingTriviaOption:ede.LeadingTriviaOption.Exclude,trailingTriviaOption:ede.TrailingTriviaOption.Include},!0);else{const i={leadingTriviaOption:ede.LeadingTriviaOption.Exclude,trailingTriviaOption:ede.TrailingTriviaOption.Include,suffix:YY(n,t.options)};a.replaceNodeWithNodes(e,r[0],_,i);const o=a.nodeHasTrailingComment(e,r[0],i);a.deleteNodes(e,r.slice(1),{trailingTriviaOption:ede.TrailingTriviaOption.Include},o)}}function y(t,n){const i=n.moduleSpecifierComparer??m,o=n.namedImportComparer??m,a=M_e({organizeImportsTypeOrder:n.typeOrder??"last"},o);h(t,(t=>(_&&(t=function(e,t,n){const r=n.getTypeChecker(),i=n.getCompilerOptions(),o=r.getJsxNamespace(t),a=r.getJsxFragmentFactory(t),s=!!(2&t.transformFlags),c=[];for(const n of e){const{importClause:e,moduleSpecifier:r}=n;if(!e){c.push(n);continue}let{name:i,namedBindings:o}=e;if(i&&!l(i)&&(i=void 0),o)if(AE(o))l(o.name)||(o=void 0);else{const e=o.elements.filter((e=>l(e.name)));e.lengthq_e(e,t,i)))),t)))}function v(e,t){const n=M_e(i,t);h(e,(e=>k_e(e,n)))}}function g_e(e){return{comparersToTest:"boolean"==typeof e.organizeImportsIgnoreCase?[j_e(e,e.organizeImportsIgnoreCase)]:[j_e(e,!0),j_e(e,!1)],typeOrdersToTest:e.organizeImportsTypeOrder?[e.organizeImportsTypeOrder]:["last","inline","first"]}}function h_e(e,t){const n=hs(e.languageVersion,!1,e.languageVariant),r=[];let i=0;for(const o of t)r[i]&&y_e(e,o,n)&&i++,r[i]||(r[i]=[]),r[i].push(o);return r}function y_e(e,t,n){const r=t.getFullStart(),i=t.getStart();n.setText(e.text,r,i-r);let o=0;for(;n.getTokenStart()=2))return!0}return!1}function v_e(e){return void 0!==e&&Ru(e)?e.text:void 0}function b_e(e){let t;const n={defaultImports:[],namespaceImports:[],namedImports:[]},r={defaultImports:[],namespaceImports:[],namedImports:[]};for(const i of e){if(void 0===i.importClause){t=t||i;continue}const e=i.importClause.isTypeOnly?n:r,{name:o,namedBindings:a}=i.importClause;o&&e.defaultImports.push(i),a&&(AE(a)?e.namespaceImports.push(i):e.namedImports.push(i))}return{importWithoutClause:t,typeOnlyImports:n,regularImports:r}}function x_e(e,t,n,r){if(0===e.length)return e;const i=Je(e,(e=>{if(e.attributes){let t=e.attributes.token+" ";for(const n of le(e.attributes.elements,((e,t)=>Tt(e.name.text,t.name.text))))t+=n.name.text+":",t+=Ru(n.value)?`"${n.value.text}"`:n.value.getText()+" ";return t}return""})),o=[];for(const e in i){const a=i[e],{importWithoutClause:c,typeOnlyImports:l,regularImports:_}=b_e(a);c&&o.push(c);for(const e of[_,l]){const i=e===l,{defaultImports:a,namespaceImports:c,namedImports:_}=e;if(!i&&1===a.length&&1===c.length&&0===_.length){const e=a[0];o.push(S_e(e,e.importClause.name,c[0].importClause.namedBindings));continue}const u=le(c,((e,n)=>t(e.importClause.namedBindings.name.text,n.importClause.namedBindings.name.text)));for(const e of u)o.push(S_e(e,void 0,e.importClause.namedBindings));const d=pe(a),p=pe(_),f=d??p;if(!f)continue;let m;const g=[];if(1===a.length)m=a[0].importClause.name;else for(const e of a)g.push(vw.createImportSpecifier(!1,vw.createIdentifier("default"),e.importClause.name));g.push(...N_e(_));const h=vw.createNodeArray(le(g,n),null==p?void 0:p.importClause.namedBindings.elements.hasTrailingComma),y=0===h.length?m?void 0:vw.createNamedImports(s):p?vw.updateNamedImports(p.importClause.namedBindings,h):vw.createNamedImports(h);r&&y&&(null==p?void 0:p.importClause.namedBindings)&&!Jb(p.importClause.namedBindings,r)&&Cw(y,2),i&&m&&y?(o.push(S_e(f,m,void 0)),o.push(S_e(p??f,void 0,y))):o.push(S_e(f,m,y))}}return o}function k_e(e,t){if(0===e.length)return e;const{exportWithoutClause:n,namedExports:r,typeOnlyExports:i}=function(e){let t;const n=[],r=[];for(const i of e)void 0===i.exportClause?t=t||i:i.isTypeOnly?r.push(i):n.push(i);return{exportWithoutClause:t,namedExports:n,typeOnlyExports:r}}(e),o=[];n&&o.push(n);for(const e of[r,i]){if(0===e.length)continue;const n=[];n.push(...A(e,(e=>e.exportClause&&ME(e.exportClause)?e.exportClause.elements:s)));const r=le(n,t),i=e[0];o.push(vw.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,i.exportClause&&(ME(i.exportClause)?vw.updateNamedExports(i.exportClause,r):vw.updateNamespaceExport(i.exportClause,i.exportClause.name)),i.moduleSpecifier,i.attributes))}return o}function S_e(e,t,n){return vw.updateImportDeclaration(e,e.modifiers,vw.updateImportClause(e.importClause,e.importClause.phaseModifier,t,n),e.moduleSpecifier,e.attributes)}function T_e(e,t,n,r){switch(null==r?void 0:r.organizeImportsTypeOrder){case"first":return It(t.isTypeOnly,e.isTypeOnly)||n(e.name.text,t.name.text);case"inline":return n(e.name.text,t.name.text);default:return It(e.isTypeOnly,t.isTypeOnly)||n(e.name.text,t.name.text)}}function C_e(e,t,n){const r=void 0===e?void 0:v_e(e),i=void 0===t?void 0:v_e(t);return It(void 0===r,void 0===i)||It(ws(r),ws(i))||n(r,i)}function w_e(e){var t;switch(e.kind){case 272:return null==(t=et(e.moduleReference,VE))?void 0:t.expression;case 273:return e.moduleSpecifier;case 244:return e.declarationList.declarations[0].initializer.arguments[0]}}function D_e(e,t){const n=HD(t)&&t.text;return Ye(n)&&V(e.moduleAugmentations,(e=>HD(e)&&e.text===n))}function N_e(e){return A(e,(e=>N(function(e){var t;return(null==(t=e.importClause)?void 0:t.namedBindings)&&OE(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}(e),(e=>e.name&&e.propertyName&&Hd(e.name)===Hd(e.propertyName)?vw.updateImportSpecifier(e,e.isTypeOnly,void 0,e.name):e))))}function F_e(e,t){const n=[];return e.forEach((e=>{n.push(e.map((e=>v_e(w_e(e))||"")))})),A_e(n,t)}function E_e(e,t,n){let r=!1;const i=e.filter((e=>{var t,n;const i=null==(n=et(null==(t=e.importClause)?void 0:t.namedBindings,OE))?void 0:n.elements;return!!(null==i?void 0:i.length)&&(!r&&i.some((e=>e.isTypeOnly))&&i.some((e=>!e.isTypeOnly))&&(r=!0),!0)}));if(0===i.length)return;const o=i.map((e=>{var t,n;return null==(n=et(null==(t=e.importClause)?void 0:t.namedBindings,OE))?void 0:n.elements})).filter((e=>void 0!==e));if(!r||0===n.length){const e=A_e(o.map((e=>e.map((e=>e.name.text)))),t);return{namedImportComparer:e.comparer,typeOrder:1===n.length?n[0]:void 0,isSorted:e.isSorted}}const a={first:1/0,last:1/0,inline:1/0},s={first:t[0],last:t[0],inline:t[0]};for(const e of t){const t={first:0,last:0,inline:0};for(const r of o)for(const i of n)t[i]=(t[i]??0)+P_e(r,((t,n)=>T_e(t,n,e,{organizeImportsTypeOrder:i})));for(const r of n){const n=r;t[n]0&&n++;return n}function A_e(e,t){let n,r=1/0;for(const i of t){let t=0;for(const n of e){if(n.length<=1)continue;t+=P_e(n,i)}tT_e(t,r,n,e)}function B_e(e,t,n){const{comparersToTest:r,typeOrdersToTest:i}=g_e(t),o=E_e([e],r,i);let a,s=M_e(t,r[0]);if("boolean"!=typeof t.organizeImportsIgnoreCase||!t.organizeImportsTypeOrder)if(o){const{namedImportComparer:e,typeOrder:t,isSorted:n}=o;a=n,s=M_e({organizeImportsTypeOrder:t},e)}else if(n){const e=E_e(n.statements.filter(CE),r,i);if(e){const{namedImportComparer:t,typeOrder:n,isSorted:r}=e;a=r,s=M_e({organizeImportsTypeOrder:n},t)}}return{specifierComparer:s,isSorted:a}}function J_e(e,t,n){const r=Se(e,t,at,((e,t)=>q_e(e,t,n)));return r<0?~r:r}function z_e(e,t,n){const r=Se(e,t,at,n);return r<0?~r:r}function q_e(e,t,n){return C_e(w_e(e),w_e(t),n)||function(e,t){return yt(I_e(e),I_e(t))}(e,t)}function U_e(e,t,n,r){const i=O_e(t);return x_e(e,i,M_e({organizeImportsTypeOrder:null==r?void 0:r.organizeImportsTypeOrder},i),n)}function V_e(e,t,n){return k_e(e,((e,r)=>T_e(e,r,O_e(t),{organizeImportsTypeOrder:(null==n?void 0:n.organizeImportsTypeOrder)??"last"})))}function W_e(e,t,n){return C_e(e,t,O_e(!!n))}n(f_e,{compareImportsOrRequireStatements:()=>q_e,compareModuleSpecifiers:()=>W_e,getImportDeclarationInsertionIndex:()=>J_e,getImportSpecifierInsertionIndex:()=>z_e,getNamedImportSpecifierComparerWithDetection:()=>B_e,getOrganizeImportsStringComparerWithDetection:()=>R_e,organizeImports:()=>m_e,testCoalesceExports:()=>V_e,testCoalesceImports:()=>U_e});var $_e={};function H_e(e,t){const n=[];return function(e,t,n){let r=40,i=0;const o=e.statements,a=o.length;for(;i...")}function a(e){const n=Hs(e.openingFragment.getStart(t),e.closingFragment.getEnd());return eue(n,"code",n,!1,"<>...")}function s(e){if(0!==e.properties.length)return Y_e(e.getStart(t),e.getEnd(),"code")}function c(e){if(15!==e.kind||0!==e.text.length)return Y_e(e.getStart(t),e.getEnd(),"code")}function l(e,t=19){return _(e,!1,!fF(e.parent)&&!yF(e.parent),t)}function _(n,r=!1,i=!0,o=19,a=(19===o?20:24)){const s=$X(e,o,t),c=$X(e,a,t);return s&&c&&Z_e(s,c,n,t,r,i)}function u(e){return e.length?eue(WQ(e),"code"):void 0}function d(e){if(Kb(e.getStart(),e.getEnd(),t))return;return eue(Hs(e.getStart(),e.getEnd()),"code",qQ(e))}}(i,e);a&&n.push(a),r--,yF(i)?(r++,s(i.expression),r--,i.arguments.forEach(s),null==(o=i.typeArguments)||o.forEach(s)):YF(i)&&i.elseStatement&&YF(i.elseStatement)?(s(i.expression),s(i.thenStatement),r++,s(i.elseStatement),r--):i.forEachChild(s),r++}s(e.endOfFileToken)}(e,t,n),function(e,t){const n=[],r=e.getLineStarts();for(const i of r){const r=e.getLineEndOfPosition(i),o=G_e(e.text.substring(i,r));if(o&&!CQ(e,i))if(o.isStart){const t=Hs(e.text.indexOf("//",i),r);n.push(eue(t,"region",t,!1,o.name||"#region"))}else{const e=n.pop();e&&(e.textSpan.length=r-e.textSpan.start,e.hintSpan.length=r-e.textSpan.start,t.push(e))}}}(e,n),n.sort(((e,t)=>e.textSpan.start-t.textSpan.start)),n}n($_e,{collectElements:()=>H_e});var K_e=/^#(end)?region(.*)\r?$/;function G_e(e){if(!Kt(e=e.trimStart(),"//"))return null;e=e.slice(2).trim();const t=K_e.exec(e);return t?{isStart:!t[1],name:t[2].trim()}:void 0}function X_e(e,t,n,r){const i=us(t.text,e);if(!i)return;let o=-1,a=-1,s=0;const c=t.getFullText();for(const{kind:e,pos:t,end:_}of i)switch(n.throwIfCancellationRequested(),e){case 2:if(G_e(c.slice(t,_))){l(),s=0;break}0===s&&(o=t),a=_,s++;break;case 3:l(),r.push(Y_e(t,_,"comment")),s=0;break;default:_n.assertNever(e)}function l(){s>1&&r.push(Y_e(o,a,"comment"))}l()}function Q_e(e,t,n,r){KD(e)||X_e(e.pos,t,n,r)}function Y_e(e,t,n){return eue(Hs(e,t),n)}function Z_e(e,t,n,r,i=!1,o=!0){return eue(Hs(o?e.getFullStart():e.getStart(r),t.getEnd()),"code",qQ(n,r),i)}function eue(e,t,n=e,r=!1,i="..."){return{textSpan:e,kind:t,hintSpan:n,bannerText:i,autoCollapse:r}}var tue={};function nue(e,t,n,r){const i=rQ(iQ(t,n));if(sue(i)){const n=function(e,t,n,r,i){const o=t.getSymbolAtLocation(e);if(!o){if(Ru(e)){const r=QX(e,t);if(r&&(1024&r.flags||134217728&r.flags&&h(r.types,(e=>!!(1024&e.flags)))))return iue(e.text,e.text,"string","",e,n)}else if(bX(e)){const t=Xd(e);return iue(t,t,"label","",e,n)}return}const{declarations:a}=o;if(!a||0===a.length)return;if(a.some((e=>function(e,t){const n=t.getSourceFile();return e.isSourceFileDefaultLibrary(n)&&So(n.fileName,".d.ts")}(r,e))))return oue(ua.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(_N(e)&&"default"===e.escapedText&&o.parent&&1536&o.parent.flags)return;if(Ru(e)&&xg(e))return i.allowRenameOfImportPath?function(e,t,n){if(!ws(e.text))return oue(ua.You_cannot_rename_a_module_via_a_global_import);const r=n.declarations&&y(n.declarations,uP);if(!r)return;const i=jt(e.text,"/index")||jt(e.text,"/index.js")?void 0:Mt(WS(r.fileName),"/index"),o=void 0===i?r.fileName:i,a=void 0===i?"module":"directory",s=e.text.lastIndexOf("/")+1,c=$s(e.getStart(t)+1+s,e.text.length-s);return{canRename:!0,fileToRename:o,kind:a,displayName:o,fullDisplayName:e.text,kindModifiers:"",triggerSpan:c}}(e,n,o):void 0;const s=function(e,t,n,r){if(!r.providePrefixAndSuffixTextForRename&&2097152&t.flags){const e=t.declarations&&y(t.declarations,(e=>LE(e)));e&&!e.propertyName&&(t=n.getAliasedSymbol(t))}const{declarations:i}=t;if(!i)return;const o=rue(e.path);if(void 0===o)return V(i,(e=>$Z(e.getSourceFile().path)))?ua.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const e of i){const t=rue(e.getSourceFile().path);if(t){const e=Math.min(o.length,t.length);for(let n=0;n<=e;n++)if(0!==Tt(o[n],t[n]))return ua.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}return}(n,o,t,i);if(s)return oue(s);const c=Wue.getSymbolKind(t,o,e),l=iZ(e)||Rh(e)&&168===e.parent.kind?Ey(Uh(e)):void 0,_=l||t.symbolToString(o),u=l||t.getFullyQualifiedName(o);return iue(_,u,c,Wue.getSymbolModifiers(t,o),e,n)}(i,e.getTypeChecker(),t,e,r);if(n)return n}return oue(ua.You_cannot_rename_this_element)}function rue(e){const t=Io(e),n=t.lastIndexOf("node_modules");if(-1!==n)return t.slice(0,n+2)}function iue(e,t,n,r,i,o){return{canRename:!0,fileToRename:void 0,kind:n,displayName:e,fullDisplayName:t,kindModifiers:r,triggerSpan:aue(i,o)}}function oue(e){return{canRename:!1,localizedErrorMessage:$x(e)}}function aue(e,t){let n=e.getStart(t),r=e.getWidth(t);return Ru(e)&&(n+=1,r-=2),$s(n,r)}function sue(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return DX(e);default:return!1}}n(tue,{getRenameInfo:()=>nue,nodeIsEligibleForRename:()=>sue});var cue={};function lue(e,t,n,r,i){const o=e.getTypeChecker(),a=lQ(t,n);if(!a)return;const s=!!r&&"characterTyped"===r.kind;if(s&&(mQ(t,n,a)||CQ(t,n)))return;const c=!!r&&"invoked"===r.kind,l=function(e,t,n,r,i){for(let o=e;!uP(o)&&(i||!KF(o));o=o.parent){_n.assert(Yb(o.parent,o),"Not a subspan",(()=>`Child: ${_n.formatSyntaxKind(o.kind)}, parent: ${_n.formatSyntaxKind(o.parent.kind)}`));const e=fue(o,t,n,r);if(e)return e}return}(a,n,t,o,c);if(!l)return;i.throwIfCancellationRequested();const _=function({invocation:e,argumentCount:t},n,r,i,o){switch(e.kind){case 0:{if(o&&!function(e,t,n){if(!R_(t))return!1;const r=t.getChildren(n);switch(e.kind){case 21:return k(r,e);case 28:{const t=HX(e);return!!t&&k(r,t)}case 30:return _ue(e,n,t.expression);default:return!1}}(i,e.node,r))return;const a=[],s=n.getResolvedSignatureForSignatureHelp(e.node,a,t);return 0===a.length?void 0:{kind:0,candidates:a,resolvedSignature:s}}case 1:{const{called:a}=e;if(o&&!_ue(i,r,_N(a)?a.parent:a))return;const s=SQ(a,t,n);if(0!==s.length)return{kind:0,candidates:s,resolvedSignature:me(s)};const c=n.getSymbolAtLocation(a);return c&&{kind:1,symbol:c}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return _n.assertNever(e)}}(l,o,t,a,s);return i.throwIfCancellationRequested(),_?o.runWithCancellationToken(i,(e=>0===_.kind?Due(_.candidates,_.resolvedSignature,l,t,e):function(e,{argumentCount:t,argumentsSpan:n,invocation:r,argumentIndex:i},o,a){const s=a.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);if(!s)return;const c=[Nue(e,s,a,Cue(r),o)];return{items:c,applicableSpan:n,selectedItemIndex:0,argumentIndex:i,argumentCount:t}}(_.symbol,l,t,e))):Fm(t)?function(e,t,n){if(2===e.invocation.kind)return;const r=Tue(e.invocation),i=gF(r)?r.name.text:void 0,o=t.getTypeChecker();return void 0===i?void 0:d(t.getSourceFiles(),(t=>d(t.getNamedDeclarations().get(i),(r=>{const i=r.symbol&&o.getTypeOfSymbolAtLocation(r.symbol,r),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,(n=>Due(a,a[0],e,t,n,!0)))}))))}(l,e,i):void 0}function _ue(e,t,n){const r=e.getFullStart();let i=e.parent;for(;i;){const e=uQ(r,t,i,!0);if(e)return Yb(n,e);i=i.parent}return _n.fail("Could not find preceding token")}function uue(e,t,n,r){const i=pue(e,t,n,r);return!i||i.isTypeParameterList||0!==i.invocation.kind?void 0:{invocation:i.invocation.node,argumentCount:i.argumentCount,argumentIndex:i.argumentIndex}}function due(e,t,n,r){const i=function(e,t,n){if(30===e.kind||21===e.kind)return{list:Sue(e.parent,e,t),argumentIndex:0};{const t=HX(e);return t&&{list:t,argumentIndex:vue(n,t,e)}}}(e,n,r);if(!i)return;const{list:o,argumentIndex:a}=i,s=function(e,t){return bue(e,t,void 0)}(r,o),c=function(e,t){const n=e.getFullStart(),r=Ya(t.text,e.getEnd(),!1);return $s(n,r-n)}(o,n);return{list:o,argumentIndex:a,argumentCount:s,argumentsSpan:c}}function pue(e,t,n,r){const{parent:i}=e;if(R_(i)){const t=i,o=due(e,0,n,r);if(!o)return;const{list:a,argumentIndex:s,argumentCount:c,argumentsSpan:l}=o;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===a.pos,invocation:{kind:0,node:t},argumentsSpan:l,argumentIndex:s,argumentCount:c}}if(XD(e)&&bF(i))return OQ(e,t,n)?xue(i,0,n):void 0;if(QD(e)&&216===i.parent.kind){const r=i,o=r.parent;_n.assert(229===r.kind);return xue(o,OQ(e,t,n)?0:1,n)}if($F(i)&&bF(i.parent.parent)){const r=i,o=i.parent.parent;if(ZD(e)&&!OQ(e,t,n))return;const a=function(e,t,n,r){if(_n.assert(n>=t.getStart(),"Assumed 'position' could not occur before node."),Rl(t))return OQ(t,n,r)?0:e+2;return e+1}(r.parent.templateSpans.indexOf(r),e,t,n);return xue(o,a,n)}if(xu(i)){const e=i.attributes.pos;return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:$s(e,Ya(n.text,i.attributes.end,!1)-e),argumentIndex:0,argumentCount:1}}{const t=TQ(e,n);if(t){const{called:r,nTypeArguments:i}=t;return{isTypeParameterList:!0,invocation:{kind:1,called:r},argumentsSpan:Hs(r.getStart(n),e.end),argumentIndex:i,argumentCount:i+1}}return}}function fue(e,t,n,r){return function(e,t,n,r){const i=function(e){switch(e.kind){case 21:case 28:return e;default:return dc(e.parent,(e=>!!NN(e)||!(pF(e)||uF(e)||dF(e))&&"quit"))}}(e);if(void 0===i)return;const o=function(e,t,n,r){const{parent:i}=e;switch(i.kind){case 218:case 175:case 219:case 220:const n=due(e,0,t,r);if(!n)return;const{argumentIndex:o,argumentCount:a,argumentsSpan:s}=n,c=IN(i)?r.getContextualTypeForObjectLiteralElement(i):r.getContextualType(i);return c&&{contextualType:c,argumentIndex:o,argumentCount:a,argumentsSpan:s};case 227:{const t=mue(i),n=r.getContextualType(t),o=21===e.kind?0:gue(i)-1,a=gue(t);return n&&{contextualType:n,argumentIndex:o,argumentCount:a,argumentsSpan:qQ(i)}}default:return}}(i,n,0,r);if(void 0===o)return;const{contextualType:a,argumentIndex:s,argumentCount:c,argumentsSpan:l}=o,_=a.getNonNullableType(),u=_.symbol;if(void 0===u)return;const d=he(_.getCallSignatures());if(void 0===d)return;return{isTypeParameterList:!1,invocation:{kind:2,signature:d,node:e,symbol:hue(u)},argumentsSpan:l,argumentIndex:s,argumentCount:c}}(e,0,n,r)||pue(e,t,n,r)}function mue(e){return PF(e.parent)?mue(e.parent):e}function gue(e){return PF(e.left)?gue(e.left)+1:2}function hue(e){return"__type"===e.name&&d(e.declarations,(e=>{var t;return UN(e)?null==(t=et(e.parent,su))?void 0:t.symbol:void 0}))||e}function yue(e,t){const n=t.getTypeAtLocation(e.expression);if(t.isTupleType(n)){const{elementFlags:e,fixedLength:t}=n.target;if(0===t)return 0;const r=b(e,(e=>!(1&e)));return r<0?t:r}return 0}function vue(e,t,n){return bue(e,t,n)}function bue(e,t,n){const r=t.getChildren();let i=0,o=!1;for(const t of r){if(n&&t===n)return o||28!==t.kind||i++,i;LF(t)?(i+=yue(t,e),o=!0):28===t.kind?o?o=!1:i++:(i++,o=!0)}return n?i:r.length&&28===ye(r).kind?i+1:i}function xue(e,t,n){const r=XD(e.template)?1:e.template.templateSpans.length+1;return 0!==t&&_n.assertLessThan(t,r),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:kue(e,n),argumentIndex:t,argumentCount:r}}function kue(e,t){const n=e.template,r=n.getStart();let i=n.getEnd();if(229===n.kind){0===ye(n.templateSpans).literal.getFullWidth()&&(i=Ya(t.text,i,!1))}return $s(r,i-r)}function Sue(e,t,n){const r=e.getChildren(n),i=r.indexOf(t);return _n.assert(i>=0&&r.length>i+1),r[i+1]}function Tue(e){return 0===e.kind?um(e.node):e.called}function Cue(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}n(cue,{getArgumentInfoForCompletions:()=>uue,getSignatureHelpItems:()=>lue});var wue=70246400;function Due(e,t,{isTypeParameterList:n,argumentCount:r,argumentsSpan:i,invocation:o,argumentIndex:a},c,l,_){var u;const d=Cue(o),p=2===o.kind?o.symbol:l.getSymbolAtLocation(Tue(o))||_&&(null==(u=t.declaration)?void 0:u.symbol),f=p?nZ(l,p,_?c:void 0,void 0):s,m=N(e,(e=>function(e,t,n,r,i,o){const a=(n?Pue:Aue)(e,r,i,o);return N(a,(({isVariadic:n,parameters:o,prefix:a,suffix:s})=>{const c=[...t,...a],l=[...s,...Eue(e,i,r)],_=e.getDocumentationComment(r),u=e.getJsDocTags();return{isVariadic:n,prefixDisplayParts:c,suffixDisplayParts:l,separatorDisplayParts:Fue,parameters:o,documentation:_,tags:u}}))}(e,f,n,l,d,c)));let g=0,h=0;for(let n=0;n1)){let e=0;for(const t of i){if(t.isVariadic||t.parameters.length>=r){g=h+e;break}e++}}h+=i.length}_n.assert(-1!==g);const y={items:I(m,at),applicableSpan:i,selectedItemIndex:g,argumentIndex:a,argumentCount:r},v=y.items[g];if(v.isVariadic){const e=b(v.parameters,(e=>!!e.isRest));-1Iue(e,n,r,i,a))),c=e.getDocumentationComment(n),l=e.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:[...o,JY(30)],suffixDisplayParts:[JY(32)],separatorDisplayParts:Fue,parameters:s,documentation:c,tags:l}}var Fue=[JY(28),MY()];function Eue(e,t,n){return eZ((r=>{r.writePunctuation(":"),r.writeSpace(" ");const i=n.getTypePredicateOfSignature(e);i?n.writeTypePredicate(i,t,void 0,r):n.writeType(n.getReturnTypeOfSignature(e),t,void 0,r)}))}function Pue(e,t,n,r){const i=(e.target||e).typeParameters,o=DU(),a=(i||s).map((e=>Iue(e,t,n,r,o))),c=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,n,wue)]:[];return t.getExpandedParameters(e).map((e=>{const i=vw.createNodeArray([...c,...N(e,(e=>t.symbolToParameterDeclaration(e,n,wue)))]),s=eZ((e=>{o.writeList(2576,i,r,e)}));return{isVariadic:!1,parameters:a,prefix:[JY(30)],suffix:[JY(32),...s]}}))}function Aue(e,t,n,r){const i=DU(),o=eZ((o=>{if(e.typeParameters&&e.typeParameters.length){const a=vw.createNodeArray(e.typeParameters.map((e=>t.typeParameterToDeclaration(e,n,wue))));i.writeList(53776,a,r,o)}})),a=t.getExpandedParameters(e),s=t.hasEffectiveRestParameter(e)?1===a.length?e=>!0:e=>{var t;return!!(e.length&&32768&(null==(t=et(e[e.length-1],Qu))?void 0:t.links.checkFlags))}:e=>!1;return a.map((e=>({isVariadic:s(e),parameters:e.map((e=>function(e,t,n,r,i){const o=eZ((o=>{const a=t.symbolToParameterDeclaration(e,n,wue);i.writeNode(4,a,r,o)})),a=t.isOptionalParameter(e.valueDeclaration),s=Qu(e)&&!!(32768&e.links.checkFlags);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:o,isOptional:a,isRest:s}}(e,t,n,r,i))),prefix:[...o,JY(21)],suffix:[JY(22)]})))}function Iue(e,t,n,r,i){const o=eZ((o=>{const a=t.typeParameterToDeclaration(e,n,wue);i.writeNode(4,a,r,o)}));return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1,isRest:!1}}var Oue={};function Lue(e,t){var n,r;let i={textSpan:Hs(t.getFullStart(),t.getEnd())},o=t;e:for(;;){const i=Mue(o);if(!i.length)break;for(let c=0;ce)break e;const d=ve(ds(t.text,_.end));if(d&&2===d.kind&&s(d.pos,d.end),jue(t,e,_)){if(eu(_)&&a_(o)&&!Kb(_.getStart(t),_.getEnd(),t)&&a(_.getStart(t),_.getEnd()),KF(_)||$F(_)||QD(_)||ZD(_)||l&&QD(l)||fE(_)&&GF(o)||tA(_)&&fE(o)||pE(_)&&tA(o)&&1===i.length||pP(_)||FP(_)||NP(_)){o=_;break}if($F(o)&&u&&Ml(u)){a(_.getFullStart()-2,u.getStart()+1)}const e=tA(_)&&que(l)&&Uue(u)&&!Kb(l.getStart(),u.getStart(),t);let s=e?l.getEnd():_.getStart();const c=e?u.getStart():Vue(t,_);if(Fu(_)&&(null==(n=_.jsDoc)?void 0:n.length)&&a(me(_.jsDoc).getStart(),c),tA(_)){const e=_.getChildren()[0];e&&Fu(e)&&(null==(r=e.jsDoc)?void 0:r.length)&&e.getStart()!==_.pos&&(s=Math.min(s,me(e.jsDoc).getStart()))}a(s,c),(HD(_)||M_(_))&&a(s+1,c-1),o=_;break}if(c===i.length-1)break e}}return i;function a(t,n){if(t!==n){const r=Hs(t,n);(!i||!wY(r,i.textSpan)&&qs(r,e))&&(i={textSpan:r,...i&&{parent:i}})}}function s(e,n){a(e,n);let r=e;for(;47===t.text.charCodeAt(r);)r++;a(r,n)}}function jue(e,t,n){if(_n.assert(n.pos<=t),tLue});var Rue=Zt(CE,TE);function Mue(e){var t;if(uP(e))return Bue(e.getChildAt(0).getChildren(),Rue);if(aF(e)){const[t,...n]=e.getChildren(),r=_n.checkDefined(n.pop());_n.assertEqual(t.kind,19),_n.assertEqual(r.kind,20);const i=Bue(n,(t=>t===e.readonlyToken||148===t.kind||t===e.questionToken||58===t.kind));return[t,zue(Jue(Bue(i,(({kind:e})=>23===e||169===e||24===e)),(({kind:e})=>59===e))),r]}if(EN(e)){const n=Bue(e.getChildren(),(t=>t===e.name||k(e.modifiers,t))),r=321===(null==(t=n[0])?void 0:t.kind)?n[0]:void 0,i=Jue(r?n.slice(1):n,(({kind:e})=>59===e));return r?[r,zue(i)]:i}if(NN(e)){const t=Bue(e.getChildren(),(t=>t===e.dotDotDotToken||t===e.name));return Jue(Bue(t,(n=>n===t[0]||n===e.questionToken)),(({kind:e})=>64===e))}return pF(e)?Jue(e.getChildren(),(({kind:e})=>64===e)):e.getChildren()}function Bue(e,t){const n=[];let r;for(const i of e)t(i)?(r=r||[],r.push(i)):(r&&(n.push(zue(r)),r=void 0),n.push(i));return r&&n.push(zue(r)),n}function Jue(e,t,n=!0){if(e.length<2)return e;const r=b(e,t);if(-1===r)return e;const i=e.slice(0,r),o=e[r],a=ye(e),s=n&&27===a.kind,c=e.slice(r+1,s?e.length-1:void 0),l=te([i.length?zue(i):void 0,o,c.length?zue(c):void 0]);return s?l.concat(a):l}function zue(e){return _n.assertGreaterThanOrEqual(e.length,1),DT(AI.createSyntaxList(e),e[0].pos,ye(e).end)}function que(e){const t=e&&e.kind;return 19===t||23===t||21===t||287===t}function Uue(e){const t=e&&e.kind;return 20===t||24===t||22===t||288===t}function Vue(e,t){switch(t.kind){case 342:case 339:case 349:case 347:case 344:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var Wue={};n(Wue,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>Yue,getSymbolKind:()=>Hue,getSymbolModifiers:()=>Xue});var $ue=70246400;function Hue(e,t,n){const r=Kue(e,t,n);if(""!==r)return r;const i=cx(t);return 32&i?Ku(t,232)?"local class":"class":384&i?"enum":524288&i?"type":64&i?"interface":262144&i?"type parameter":8&i?"enum member":2097152&i?"alias":1536&i?"module":r}function Kue(e,t,n){const r=e.getRootSymbols(t);if(1===r.length&&8192&me(r).flags&&0!==e.getTypeOfSymbolAtLocation(t,n).getNonNullableType().getCallSignatures().length)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(110===n.kind&&W_(n)||dv(n))return"parameter";const i=cx(t);if(3&i)return OY(t)?"parameter":t.valueDeclaration&&af(t.valueDeclaration)?"const":t.valueDeclaration&&of(t.valueDeclaration)?"using":t.valueDeclaration&&rf(t.valueDeclaration)?"await using":_(t.declarations,cf)?"let":Zue(t)?"local var":"var";if(16&i)return Zue(t)?"local function":"function";if(32768&i)return"getter";if(65536&i)return"setter";if(8192&i)return"method";if(16384&i)return"constructor";if(131072&i)return"index";if(4&i){if(33554432&i&&6&t.links.checkFlags){const r=_(e.getRootSymbols(t),(e=>{if(98311&e.getFlags())return"property"}));if(!r){return e.getTypeOfSymbolAtLocation(t,n).getCallSignatures().length?"method":"property"}return r}return"property"}return""}function Gue(e){if(e.declarations&&e.declarations.length){const[t,...n]=e.declarations,r=NQ(t,l(n)&&a0(t)&&V(n,(e=>!a0(e)))?65536:0);if(r)return r.split(",")}return[]}function Xue(e,t){if(!t)return"";const n=new Set(Gue(t));if(2097152&t.flags){const r=e.getAliasedSymbol(t);r!==t&&_(Gue(r),(e=>{n.add(e)}))}return 16777216&t.flags&&n.add("optional"),n.size>0?Ie(n.values()).join(","):""}function Que(e,t,n,r,i,o,a,c,l,u){var p;const f=[];let m=[],g=[];const h=cx(t);let v=1&a?Kue(e,t,i):"",b=!1;const x=110===i.kind&&xm(i)||dv(i);let S,T,C=!1;const w={canIncreaseExpansionDepth:!1,truncated:!1};let D=!1;if(110===i.kind&&!x)return{displayParts:[BY(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==v||32&h||2097152&h){if("getter"===v||"setter"===v){const e=y(t.declarations,(e=>e.name===i&&212!==e.kind));if(e)switch(e.kind){case 178:v="getter";break;case 179:v="setter";break;case 173:v="accessor";break;default:_n.assertNever(e)}else v="property"}let n,a;if(o??(o=x?e.getTypeAtLocation(i):e.getTypeOfSymbolAtLocation(t,i)),i.parent&&212===i.parent.kind){const e=i.parent.name;(e===i||e&&0===e.getFullWidth())&&(i=i.parent)}if(R_(i)?a=i:(oX(i)||aX(i)||i.parent&&(xu(i.parent)||bF(i.parent))&&i_(t.valueDeclaration))&&(a=i.parent),a){n=e.getResolvedSignature(a);const i=215===a.kind||yF(a)&&108===a.expression.kind,s=i?o.getConstructSignatures():o.getCallSignatures();if(!n||k(s,n.target)||k(s,n)||(n=s.length?s[0]:void 0),n){switch(i&&32&h?(v="constructor",L(o.symbol,v)):2097152&h?(v="alias",j(v),f.push(MY()),i&&(4&n.flags&&(f.push(BY(128)),f.push(MY())),f.push(BY(105)),f.push(MY())),O(t)):L(t,v),v){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":f.push(JY(59)),f.push(MY()),16&yx(o)||!o.symbol||(ae(f,nZ(e,o.symbol,r,void 0,5)),f.push(ZY())),i&&(4&n.flags&&(f.push(BY(128)),f.push(MY())),f.push(BY(105)),f.push(MY())),R(n,s,262144);break;default:R(n,s)}b=!0,C=s.length>1}}else if(wX(i)&&!(98304&h)||137===i.kind&&177===i.parent.kind){const r=i.parent;if(t.declarations&&y(t.declarations,(e=>e===(137===i.kind?r.parent:r)))){const i=177===r.kind?o.getNonNullableType().getConstructSignatures():o.getNonNullableType().getCallSignatures();n=e.isImplementationOfOverload(r)?i[0]:e.getSignatureFromDeclaration(r),177===r.kind?(v="constructor",L(o.symbol,v)):L(180!==r.kind||2048&o.symbol.flags||4096&o.symbol.flags?t:o.symbol,v),n&&R(n,i),b=!0,C=i.length>1}}}if(32&h&&!b&&!x){P();const e=Ku(t,232);e&&(j("local class"),f.push(MY())),I(t,a)||(e||(f.push(BY(86)),f.push(MY())),O(t),M(t,n))}if(64&h&&2&a&&(E(),I(t,a)||(f.push(BY(120)),f.push(MY()),O(t),M(t,n))),524288&h&&2&a&&(E(),f.push(BY(156)),f.push(MY()),O(t),M(t,n),f.push(MY()),f.push(zY(64)),f.push(MY()),ae(f,tZ(e,i.parent&&Sl(i.parent)?e.getTypeAtLocation(i.parent):e.getDeclaredTypeOfSymbol(t),r,8388608,l,u,w))),384&h&&(E(),I(t,a)||(V(t.declarations,(e=>vE(e)&&tf(e)))&&(f.push(BY(87)),f.push(MY())),f.push(BY(94)),f.push(MY()),O(t,void 0))),1536&h&&!x&&(E(),!I(t,a))){const e=Ku(t,268),n=e&&e.name&&80===e.name.kind;f.push(BY(n?145:144)),f.push(MY()),O(t)}if(262144&h&&2&a)if(E(),f.push(JY(21)),f.push(WY("type parameter")),f.push(JY(22)),f.push(MY()),O(t),t.parent)A(),O(t.parent,r),M(t.parent,r);else{const r=Ku(t,169);if(void 0===r)return _n.fail();const i=r.parent;if(i)if(i_(i)){A();const t=e.getSignatureFromDeclaration(i);181===i.kind?(f.push(BY(105)),f.push(MY())):180!==i.kind&&i.name&&O(i.symbol),ae(f,rZ(e,t,n,32))}else yE(i)&&(A(),f.push(BY(156)),f.push(MY()),O(i.symbol),M(i.symbol,n))}if(8&h){v="enum member",L(t,"enum member");const n=null==(p=t.declarations)?void 0:p[0];if(307===(null==n?void 0:n.kind)){const t=e.getConstantValue(n);void 0!==t&&(f.push(MY()),f.push(zY(64)),f.push(MY()),f.push(RY(ip(t),"number"==typeof t?7:8)))}}if(2097152&t.flags){if(E(),!b||0===m.length&&0===g.length){const n=e.getAliasedSymbol(t);if(n!==t&&n.declarations&&n.declarations.length>0){const i=n.declarations[0],s=wc(i);if(s&&!b){const c=lp(i)&&Fv(i,128),_="default"!==t.name&&!c,d=Que(e,n,bd(i),r,s,o,a,_?t:n,l,u);f.push(...d.displayParts),f.push(ZY()),S=d.documentation,T=d.tags,w&&d.canIncreaseVerbosityLevel&&(w.canIncreaseExpansionDepth=!0)}else S=n.getContextualDocumentationComment(i,e),T=n.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 271:f.push(BY(95)),f.push(MY()),f.push(BY(145));break;case 278:f.push(BY(95)),f.push(MY()),f.push(BY(t.declarations[0].isExportEquals?64:90));break;case 282:f.push(BY(95));break;default:f.push(BY(102))}f.push(MY()),O(t),_(t.declarations,(t=>{if(272===t.kind){const n=t;if(Tm(n))f.push(MY()),f.push(zY(64)),f.push(MY()),f.push(BY(149)),f.push(JY(21)),f.push(RY(Xd(Cm(n)),8)),f.push(JY(22));else{const t=e.getSymbolAtLocation(n.moduleReference);t&&(f.push(MY()),f.push(zY(64)),f.push(MY()),O(t,r))}return!0}}))}if(!b)if(""!==v){if(o)if(x?(E(),f.push(BY(110))):L(t,v),"property"===v||"accessor"===v||"getter"===v||"setter"===v||"JSX attribute"===v||3&h||"local var"===v||"index"===v||"using"===v||"await using"===v||x){if(f.push(JY(59)),f.push(MY()),o.symbol&&262144&o.symbol.flags&&"index"!==v){const t=eZ((t=>{const n=e.typeParameterToDeclaration(o,r,$ue,void 0,void 0,l,u,w);F().writeNode(4,n,bd(fc(r)),t)}),l);ae(f,t)}else ae(f,tZ(e,o,r,void 0,l,u,w));if(Qu(t)&&t.links.target&&Qu(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const e=t.links.target.links.tupleLabelDeclaration;_n.assertNode(e.name,_N),f.push(MY()),f.push(JY(21)),f.push(WY(hc(e.name))),f.push(JY(22))}}else if(16&h||8192&h||16384&h||131072&h||98304&h||"method"===v){const e=o.getNonNullableType().getCallSignatures();e.length&&(R(e[0],e),C=e.length>1)}}else v=Hue(e,t,i);if(0!==m.length||C||(m=t.getContextualDocumentationComment(r,e)),0===m.length&&4&h&&t.parent&&t.declarations&&_(t.parent.declarations,(e=>308===e.kind)))for(const n of t.declarations){if(!n.parent||227!==n.parent.kind)continue;const t=e.getSymbolAtLocation(n.parent.right);if(t&&(m=t.getDocumentationComment(e),g=t.getJsDocTags(e),m.length>0))break}if(0===m.length&&_N(i)&&t.valueDeclaration&&pF(t.valueDeclaration)){const n=t.valueDeclaration,r=n.parent,i=n.propertyName||n.name;if(_N(i)&&uF(r)){const t=Uh(i),n=e.getTypeAtLocation(r);m=d(n.isUnion()?n.types:[n],(n=>{const r=n.getProperty(t);return r?r.getDocumentationComment(e):void 0}))||s}}0!==g.length||C||Im(i)||(g=t.getContextualJsDocTags(r,e)),0===m.length&&S&&(m=S),0===g.length&&T&&(g=T);const N=!w.truncated&&w.canIncreaseExpansionDepth;return{displayParts:f,documentation:m,symbolKind:v,tags:0===g.length?void 0:g,canIncreaseVerbosityLevel:void 0!==u?N:void 0};function F(){return DU()}function E(){f.length&&f.push(ZY()),P()}function P(){c&&(j("alias"),f.push(MY()))}function A(){f.push(MY()),f.push(BY(103)),f.push(MY())}function I(t,n){if(D)return!0;if(function(t,n){if(void 0===u)return!1;const r=96&t.flags?e.getDeclaredTypeOfSymbol(t):e.getTypeOfSymbolAtLocation(t,i);return!(!r||e.isLibType(r))&&(0{const i=e.getEmitResolver().symbolToDeclarations(t,r,17408,l,void 0!==u?u-1:void 0,w),o=F(),a=t.valueDeclaration&&bd(t.valueDeclaration);i.forEach(((e,t)=>{t>0&&n.writeLine(),o.writeNode(4,e,a,n)}))}),l);return ae(f,i),D=!0,!0}return!1}function O(r,i){let o;c&&r===t&&(r=c),"index"===v&&(o=e.getIndexInfosOfIndexSymbol(r));let a=[];131072&r.flags&&o?(r.parent&&(a=nZ(e,r.parent)),a.push(JY(23)),o.forEach(((t,n)=>{a.push(...tZ(e,t.keyType)),n!==o.length-1&&(a.push(MY()),a.push(JY(52)),a.push(MY()))})),a.push(JY(24))):a=nZ(e,r,i||n,void 0,7),ae(f,a),16777216&t.flags&&f.push(JY(58))}function L(e,t){E(),t&&(j(t),e&&!V(e.declarations,(e=>TF(e)||(SF(e)||jF(e))&&!e.name))&&(f.push(MY()),O(e)))}function j(e){switch(e){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":return void f.push(VY(e));default:return f.push(JY(21)),f.push(VY(e)),void f.push(JY(22))}}function R(t,n,i=0){ae(f,rZ(e,t,r,32|i,l,u,w)),n.length>1&&(f.push(MY()),f.push(JY(21)),f.push(zY(40)),f.push(RY((n.length-1).toString(),7)),f.push(MY()),f.push(WY(2===n.length?"overload":"overloads")),f.push(JY(22))),m=t.getDocumentationComment(e),g=t.getJsDocTags(),n.length>1&&0===m.length&&0===g.length&&(m=n[0].getDocumentationComment(e),g=n[0].getJsDocTags().filter((e=>"deprecated"!==e.name)))}function M(t,n){const r=eZ((r=>{const i=e.symbolToTypeParameterDeclarations(t,n,$ue);F().writeList(53776,i,bd(fc(n)),r)}));ae(f,r)}}function Yue(e,t,n,r,i,o=rX(i),a,s,c){return Que(e,t,n,r,i,void 0,o,a,s,c)}function Zue(e){return!e.parent&&_(e.declarations,(e=>{if(219===e.kind)return!0;if(261!==e.kind&&263!==e.kind)return!1;for(let t=e.parent;!Bf(t);t=t.parent)if(308===t.kind||269===t.kind)return!1;return!0}))}var ede={};function tde(e){const t=e.__pos;return _n.assert("number"==typeof t),t}function nde(e,t){_n.assert("number"==typeof t),e.__pos=t}function rde(e){const t=e.__end;return _n.assert("number"==typeof t),t}function ide(e,t){_n.assert("number"==typeof t),e.__end=t}n(ede,{ChangeTracker:()=>gde,LeadingTriviaOption:()=>ode,TrailingTriviaOption:()=>ade,applyChanges:()=>bde,assignPositionsToNode:()=>Sde,createWriter:()=>Cde,deleteNode:()=>Dde,getAdjustedEndPosition:()=>dde,isThisTypeAnnotatable:()=>fde,isValidLocationToAddComment:()=>wde});var ode=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(ode||{}),ade=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(ade||{});function sde(e,t){return Ya(e,t,!1,!0)}var cde={leadingTriviaOption:0,trailingTriviaOption:0};function lde(e,t,n,r){return{pos:_de(e,t,r),end:dde(e,n,r)}}function _de(e,t,n,r=!1){var i,o;const{leadingTriviaOption:a}=n;if(0===a)return t.getStart(e);if(3===a){const n=t.getStart(e),r=IX(n,e);return LX(t,r)?r:n}if(2===a){const n=vf(t,e.text);if(null==n?void 0:n.length)return IX(n[0].pos,e)}const s=t.getFullStart(),c=t.getStart(e);if(s===c)return c;const l=IX(s,e);if(IX(c,e)===l)return 1===a?s:c;if(r){const t=(null==(i=us(e.text,s))?void 0:i[0])||(null==(o=ds(e.text,s))?void 0:o[0]);if(t)return Ya(e.text,t.end,!0,!0)}const _=s>0?1:0;let u=Td(rv(e,l)+_,e);return u=sde(e.text,u),Td(rv(e,u),e)}function ude(e,t,n){const{end:r}=t,{trailingTriviaOption:i}=n;if(2===i){const n=ds(e.text,r);if(n){const r=rv(e,t.end);for(const t of n){if(2===t.kind||rv(e,t.pos)>r)break;if(rv(e,t.end)>r)return Ya(e.text,t.end,!0,!0)}}}}function dde(e,t,n){var r;const{end:i}=t,{trailingTriviaOption:o}=n;if(0===o)return i;if(1===o){const t=$(ds(e.text,i),us(e.text,i)),n=null==(r=null==t?void 0:t[t.length-1])?void 0:r.end;return n||i}const a=ude(e,t,n);if(a)return a;const s=Ya(e.text,i,!0);return s===i||2!==o&&!Wa(e.text.charCodeAt(s-1))?i:s}function pde(e,t){return!!t&&!!e.parent&&(28===t.kind||27===t.kind&&211===e.parent.kind)}function fde(e){return SF(e)||mE(e)}var mde,gde=class e{constructor(e,t){this.newLineCharacter=e,this.formatContext=t,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new e(YY(t.host,t.formatContext.options),t.formatContext)}static with(t,n){const r=e.fromContext(t);return n(r),r.getChanges()}pushRaw(e,t){_n.assertEqual(e.fileName,t.fileName);for(const n of t.textChanges)this.changes.push({kind:3,sourceFile:e,text:n.newText,range:$Q(n.span)})}deleteRange(e,t){this.changes.push({kind:0,sourceFile:e,range:t})}delete(e,t){this.deletedNodes.push({sourceFile:e,node:t})}deleteNode(e,t,n={leadingTriviaOption:1}){this.deleteRange(e,lde(e,t,t,n))}deleteNodes(e,t,n={leadingTriviaOption:1},r){for(const i of t){const t=_de(e,i,n,r),o=dde(e,i,n);this.deleteRange(e,{pos:t,end:o}),r=!!ude(e,i,n)}}deleteModifier(e,t){this.deleteRange(e,{pos:t.getStart(e),end:Ya(e.text,t.end,!0)})}deleteNodeRange(e,t,n,r={leadingTriviaOption:1}){const i=_de(e,t,r),o=dde(e,n,r);this.deleteRange(e,{pos:i,end:o})}deleteNodeRangeExcludingEnd(e,t,n,r={leadingTriviaOption:1}){const i=_de(e,t,r),o=void 0===n?e.text.length:_de(e,n,r);this.deleteRange(e,{pos:i,end:o})}replaceRange(e,t,n,r={}){this.changes.push({kind:1,sourceFile:e,range:t,options:r,node:n})}replaceNode(e,t,n,r=cde){this.replaceRange(e,lde(e,t,t,r),n,r)}replaceNodeRange(e,t,n,r,i=cde){this.replaceRange(e,lde(e,t,n,i),r,i)}replaceRangeWithNodes(e,t,n,r={}){this.changes.push({kind:2,sourceFile:e,range:t,options:r,nodes:n})}replaceNodeWithNodes(e,t,n,r=cde){this.replaceRangeWithNodes(e,lde(e,t,t,r),n,r)}replaceNodeWithText(e,t,n){this.replaceRangeWithText(e,lde(e,t,t,cde),n)}replaceNodeRangeWithNodes(e,t,n,r,i=cde){this.replaceRangeWithNodes(e,lde(e,t,n,i),r,i)}nodeHasTrailingComment(e,t,n=cde){return!!ude(e,t,n)}nextCommaToken(e,t){const n=_Q(t,t.parent,e);return n&&28===n.kind?n:void 0}replacePropertyAssignment(e,t,n){const r=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,n,{suffix:r})}insertNodeAt(e,t,n,r={}){this.replaceRange(e,Ob(t),n,r)}insertNodesAt(e,t,n,r={}){this.replaceRangeWithNodes(e,Ob(t),n,r)}insertNodeAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertNodesAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertAtTopOfFile(e,t,n){const r=function(e){let t;for(const n of e.statements){if(!pf(n))break;t=n}let n=0;const r=e.text;if(t)return n=t.end,c(),n;const i=ps(r);void 0!==i&&(n=i.length,c());const o=us(r,n);if(!o)return n;let a,s;for(const t of o){if(3===t.kind){if(Jd(r,t.pos)){a={range:t,pinnedOrTripleSlash:!0};continue}}else if(Bd(r,t.pos,t.end)){a={range:t,pinnedOrTripleSlash:!0};continue}if(a){if(a.pinnedOrTripleSlash)break;if(e.getLineAndCharacterOfPosition(t.pos).line>=e.getLineAndCharacterOfPosition(a.range.end).line+2)break}if(e.statements.length){void 0===s&&(s=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);if(sYe(e.comment)?vw.createJSDocText(e.comment):e.comment)),r=ve(t.jsDoc);return r&&Kb(r.pos,r.end,e)&&0===l(n)?void 0:vw.createNodeArray(g(n,vw.createJSDocText("\n")))}replaceJSDocComment(e,t,n){this.insertJsdocCommentBefore(e,function(e){if(220!==e.kind)return e;const t=173===e.parent.kind?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}(t),vw.createJSDocComment(this.createJSDocText(e,t),vw.createNodeArray(n)))}addJSDocTags(e,t,n){const r=I(t.jsDoc,(e=>e.tags)),i=n.filter((e=>!r.some(((t,n)=>{const i=function(e,t){if(e.kind!==t.kind)return;switch(e.kind){case 342:{const n=e,r=t;return _N(n.name)&&_N(r.name)&&n.name.escapedText===r.name.escapedText?vw.createJSDocParameterTag(void 0,r.name,!1,r.typeExpression,r.isNameFirst,n.comment):void 0}case 343:return vw.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 345:return vw.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}(t,e);return i&&(r[n]=i),!!i}))));this.replaceJSDocComment(e,t,[...r,...i])}filterJSDocTags(e,t,n){this.replaceJSDocComment(e,t,C(I(t.jsDoc,(e=>e.tags)),n))}replaceRangeWithText(e,t,n){this.changes.push({kind:3,sourceFile:e,range:t,text:n})}insertText(e,t,n){this.replaceRangeWithText(e,Ob(t),n)}tryInsertTypeAnnotation(e,t,n){let r;if(i_(t)){if(r=$X(t,22,e),!r){if(!TF(t))return!1;r=me(t.parameters)}}else r=(261===t.kind?t.exclamationToken:t.questionToken)??t.name;return this.insertNodeAt(e,r.end,n,{prefix:": "}),!0}tryInsertThisTypeAnnotation(e,t,n){const r=$X(t,21,e).getStart(e)+1,i=t.parameters.length?", ":"";this.insertNodeAt(e,r,n,{prefix:"this: ",suffix:i})}insertTypeParameters(e,t,n){const r=($X(t,21,e)||me(t.parameters)).getStart(e);this.insertNodesAt(e,r,n,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(e,t,n){return fu(e)||u_(e)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:pE(e)?{suffix:", "}:NN(e)?NN(t)?{suffix:", "}:{}:HD(e)&&CE(e.parent)||OE(e)?{suffix:", "}:LE(e)?{suffix:","+(n?this.newLineCharacter:" ")}:_n.failBadSyntaxKind(e)}insertNodeAtConstructorStart(e,t,n){const r=pe(t.body.statements);r&&t.body.multiLine?this.insertNodeBefore(e,r,n):this.replaceConstructorBody(e,t,[n,...t.body.statements])}insertNodeAtConstructorStartAfterSuperCall(e,t,n){const r=y(t.body.statements,(e=>QF(e)&&lf(e.expression)));r&&t.body.multiLine?this.insertNodeAfter(e,r,n):this.replaceConstructorBody(e,t,[...t.body.statements,n])}insertNodeAtConstructorEnd(e,t,n){const r=he(t.body.statements);r&&t.body.multiLine?this.insertNodeAfter(e,r,n):this.replaceConstructorBody(e,t,[...t.body.statements,n])}replaceConstructorBody(e,t,n){this.replaceNode(e,t.body,vw.createBlock(n,!0))}insertNodeAtEndOfScope(e,t,n){const r=_de(e,t.getLastToken(),{});this.insertNodeAt(e,r,n,{prefix:Wa(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtObjectStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtStartWorker(e,t,n){const r=this.guessIndentationFromExistingMembers(e,t)??this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,vde(t).pos,n,this.getInsertNodeAtStartInsertOptions(e,t,r))}guessIndentationFromExistingMembers(e,t){let n,r=t;for(const i of vde(t)){if(zb(r,i,e))return;const t=i.getStart(e),o=Fde.SmartIndenter.findFirstNonWhitespaceColumn(IX(t,e),t,e,this.formatContext.options);if(void 0===n)n=o;else if(o!==n)return;r=i}return n}computeIndentationForNewMember(e,t){const n=t.getStart(e);return Fde.SmartIndenter.findFirstNonWhitespaceColumn(IX(n,e),n,e,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(e,t,n){const r=0===vde(t).length,i=!this.classesWithNodesInsertedAtStart.has(cJ(t));i&&this.classesWithNodesInsertedAtStart.set(cJ(t),{node:t,sourceFile:e});const o=mF(t)&&(!ef(e)||!r);return{indentation:n,prefix:(mF(t)&&ef(e)&&r&&!i?",":"")+this.newLineCharacter,suffix:o?",":hE(t)&&r?";":""}}insertNodeAfterComma(e,t,n){const r=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfter(e,t,n){const r=this.insertNodeAfterWorker(e,t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAtEndOfList(e,t,n){this.insertNodeAt(e,t.end,n,{prefix:", "})}insertNodesAfter(e,t,n){const r=this.insertNodeAfterWorker(e,t,me(n));this.insertNodesAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfterWorker(e,t,n){var r,i;i=n,((EN(r=t)||PN(r))&&v_(i)&&168===i.name.kind||pu(r)&&pu(i))&&59!==e.text.charCodeAt(t.end-1)&&this.replaceRange(e,Ob(t.end),vw.createToken(27));return dde(e,t,{})}getInsertNodeAfterOptions(e,t){const n=this.getInsertNodeAfterOptionsWorker(t);return{...n,prefix:t.end===e.end&&fu(t)?n.prefix?`\n${n.prefix}`:"\n":n.prefix}}getInsertNodeAfterOptionsWorker(e){switch(e.kind){case 264:case 268:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 261:case 11:case 80:return{prefix:", "};case 304:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 170:return{};default:return _n.assert(fu(e)||v_(e)),{suffix:this.newLineCharacter}}}insertName(e,t,n){if(_n.assert(!t.name),220===t.kind){const r=$X(t,39,e),i=$X(t,21,e);i?(this.insertNodesAt(e,i.getStart(e),[vw.createToken(100),vw.createIdentifier(n)],{joiner:" "}),Dde(this,e,r)):(this.insertText(e,me(t.parameters).getStart(e),`function ${n}(`),this.replaceRange(e,r,vw.createToken(22))),242!==t.body.kind&&(this.insertNodesAt(e,t.body.getStart(e),[vw.createToken(19),vw.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,t.body.end,[vw.createToken(27),vw.createToken(20)],{joiner:" "}))}else{const r=$X(t,219===t.kind?100:86,e).end;this.insertNodeAt(e,r,vw.createIdentifier(n),{prefix:" "})}}insertExportModifier(e,t){this.insertText(e,t.getStart(e),"export ")}insertImportSpecifierAtIndex(e,t,n,r){const i=n.elements[r-1];i?this.insertNodeInListAfter(e,i,t):this.insertNodeBefore(e,n.elements[0],t,!Kb(n.elements[0].getStart(),n.parent.parent.getStart(),e))}insertNodeInListAfter(e,t,n,r=Fde.SmartIndenter.getContainingList(t,e)){if(!r)return void _n.fail("node is not a list element");const i=Yd(r,t);if(i<0)return;const o=t.getEnd();if(i!==r.length-1){const o=aQ(e,t.end);if(o&&pde(t,o)){const t=r[i+1],a=sde(e.text,t.getFullStart()),s=`${Ea(o.kind)}${e.text.substring(o.end,a)}`;this.insertNodesAt(e,a,[n],{suffix:s})}}else{const a=t.getStart(e),s=IX(a,e);let c,l=!1;if(1===r.length)c=28;else{const n=uQ(t.pos,e);c=pde(t,n)?n.kind:28;l=IX(r[i-1].getStart(e),e)!==s}if(!function(e,t){let n=t;for(;n{const[n,r]=function(e,t){const n=$X(e,19,t),r=$X(e,20,t);return[null==n?void 0:n.end,null==r?void 0:r.end]}(e,t);if(void 0!==n&&void 0!==r){const i=0===vde(e).length,o=Kb(n,r,t);i&&o&&n!==r-1&&this.deleteRange(t,Ob(n,r-1)),o&&this.insertText(t,r-1,this.newLineCharacter)}}))}finishDeleteDeclarations(){const e=new Set;for(const{sourceFile:t,node:n}of this.deletedNodes)this.deletedNodes.some((e=>e.sourceFile===t&&OX(e.node,n)))||(Xe(n)?this.deleteRange(t,uT(t,n)):xde.deleteDeclaration(this,e,t,n));e.forEach((t=>{const n=t.getSourceFile(),r=Fde.SmartIndenter.getContainingList(t,n);if(t!==ye(r))return;const i=x(r,(t=>!e.has(t)),r.length-2);-1!==i&&this.deleteRange(n,{pos:r[i].end,end:hde(n,r[i+1])})}))}getChanges(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const t=mde.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e);return this.newFileChanges&&this.newFileChanges.forEach(((e,n)=>{t.push(mde.newFileChanges(n,e,this.newLineCharacter,this.formatContext))})),t}createNewFile(e,t,n){this.insertStatementsInNewFile(t,n,e)}};function hde(e,t){return Ya(e.text,_de(e,t,{leadingTriviaOption:1}),!1,!0)}function yde(e,t,n,r){const i=hde(e,r);if(void 0===n||Kb(dde(e,t,{}),i,e))return i;const o=uQ(r.getStart(e),e);if(pde(t,o)){const r=uQ(t.getStart(e),e);if(pde(n,r)){const t=Ya(e.text,o.getEnd(),!0,!0);if(Kb(r.getStart(e),o.getStart(e),e))return Wa(e.text.charCodeAt(t-1))?t-1:t;if(Wa(e.text.charCodeAt(t)))return t}}return i}function vde(e){return mF(e)?e.properties:e.members}function bde(e,t){for(let n=t.length-1;n>=0;n--){const{span:r,newText:i}=t[n];e=`${e.substring(0,r.start)}${i}${e.substring(Es(r))}`}return e}(e=>{function t(e,t,r,i){const o=A(t,(e=>e.statements.map((t=>4===t?"":n(t,e.oldFile,r).text)))).join(r),a=sO("any file name",o,{languageVersion:99,jsDocParsingMode:1},!0,e);return bde(o,Fde.formatDocument(a,i))+r}function n(e,t,n){const r=Cde(n);return EU({newLine:c0(n),neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},r).writeNode(4,e,t,r),{text:r.getText(),node:Sde(e)}}e.getTextChangesFromChanges=function(e,t,r,i){return R(Be(e,(e=>e.sourceFile.path)),(e=>{const o=e[0].sourceFile,a=le(e,((e,t)=>e.range.pos-t.range.pos||e.range.end-t.range.end));for(let e=0;e`${JSON.stringify(a[e].range)} and ${JSON.stringify(a[e+1].range)}`));const s=R(a,(e=>{const a=WQ(e.range),s=1===e.kind?bd(uc(e.node))??e.sourceFile:2===e.kind?bd(uc(e.nodes[0]))??e.sourceFile:e.sourceFile,c=function(e,t,r,i,o,a){var s;if(0===e.kind)return"";if(3===e.kind)return e.text;const{options:c={},range:{pos:l}}=e,_=e=>function(e,t,r,i,{indentation:o,prefix:a,delta:s},c,l,_){const{node:u,text:d}=n(e,t,c);_&&_(u,d);const p=_0(l,t),f=void 0!==o?o:Fde.SmartIndenter.getIndentation(i,r,p,a===c||IX(i,t)===i);void 0===s&&(s=Fde.SmartIndenter.shouldIndentChildNode(p,e)&&p.indentSize||0);const m={text:d,getLineAndCharacterOfPosition(e){return qa(this,e)}},g=Fde.formatNodeGivenIndentation(u,m,t.languageVariant,f,s,{...l,options:p});return bde(d,g)}(e,t,r,l,c,i,o,a),u=2===e.kind?e.nodes.map((e=>Rt(_(e),i))).join((null==(s=e.options)?void 0:s.joiner)||i):_(e.node),d=void 0!==c.indentation||IX(l,t)===l?u:u.replace(/^\s+/,"");return(c.prefix||"")+d+(!c.suffix||jt(d,c.suffix)?"":c.suffix)}(e,s,o,t,r,i);if(a.length!==c.length||!i0(s.text,c,a.start))return KQ(a,c)}));return s.length>0?{fileName:o.fileName,textChanges:s}:void 0}))},e.newFileChanges=function(e,n,r,i){const o=t(SS(e),n,r,i);return{fileName:e,textChanges:[KQ($s(0,0),o)],isNewFile:!0}},e.newFileChangesWorker=t,e.getNonformattedText=n})(mde||(mde={}));var xde,kde={...Yq,factory:cw(1|Yq.factory.flags,Yq.factory.baseFactory)};function Sde(e){const t=NJ(e,Sde,kde,Tde,Sde),n=ty(t)?t:Object.create(t);return DT(n,tde(e),rde(e)),n}function Tde(e,t,n,r,i){const o=vJ(e,t,n,r,i);if(!o)return o;_n.assert(e);const a=o===e?vw.createNodeArray(o.slice(0)):o;return DT(a,tde(e),rde(e)),a}function Cde(e){let t=0;const n=Ly(e);function r(e,r){if(r||!function(e){return Ya(e,0)===e.length}(e)){t=n.getTextPos();let r=0;for(;Ua(e.charCodeAt(e.length-r-1));)r++;t-=r}}return{onBeforeEmitNode:e=>{e&&nde(e,t)},onAfterEmitNode:e=>{e&&ide(e,t)},onBeforeEmitNodeArray:e=>{e&&nde(e,t)},onAfterEmitNodeArray:e=>{e&&ide(e,t)},onBeforeEmitToken:e=>{e&&nde(e,t)},onAfterEmitToken:e=>{e&&ide(e,t)},write:function(e){n.write(e),r(e,!1)},writeComment:function(e){n.writeComment(e)},writeKeyword:function(e){n.writeKeyword(e),r(e,!1)},writeOperator:function(e){n.writeOperator(e),r(e,!1)},writePunctuation:function(e){n.writePunctuation(e),r(e,!1)},writeTrailingSemicolon:function(e){n.writeTrailingSemicolon(e),r(e,!1)},writeParameter:function(e){n.writeParameter(e),r(e,!1)},writeProperty:function(e){n.writeProperty(e),r(e,!1)},writeSpace:function(e){n.writeSpace(e),r(e,!1)},writeStringLiteral:function(e){n.writeStringLiteral(e),r(e,!1)},writeSymbol:function(e,t){n.writeSymbol(e,t),r(e,!1)},writeLine:function(e){n.writeLine(e)},increaseIndent:function(){n.increaseIndent()},decreaseIndent:function(){n.decreaseIndent()},getText:function(){return n.getText()},rawWrite:function(e){n.rawWrite(e),r(e,!1)},writeLiteral:function(e){n.writeLiteral(e),r(e,!0)},getTextPos:function(){return n.getTextPos()},getLine:function(){return n.getLine()},getColumn:function(){return n.getColumn()},getIndent:function(){return n.getIndent()},isAtStartOfLine:function(){return n.isAtStartOfLine()},hasTrailingComment:()=>n.hasTrailingComment(),hasTrailingWhitespace:()=>n.hasTrailingWhitespace(),clear:function(){n.clear(),t=0}}}function wde(e,t){return!(CQ(e,t)||mQ(e,t)||yQ(e,t)||vQ(e,t))}function Dde(e,t,n,r={leadingTriviaOption:1}){const i=_de(t,n,r),o=dde(t,n,r);e.deleteRange(t,{pos:i,end:o})}function Nde(e,t,n,r){const i=_n.checkDefined(Fde.SmartIndenter.getContainingList(r,n)),o=Yd(i,r);_n.assert(-1!==o),1!==i.length?(_n.assert(!t.has(r),"Deleting a node twice"),t.add(r),e.deleteRange(n,{pos:hde(n,r),end:o===i.length-1?dde(n,r,{}):yde(n,r,i[o-1],i[o+1])})):Dde(e,n,r)}(e=>{function t(e,t,n){if(n.parent.name){const r=_n.checkDefined(aQ(t,n.pos-1));e.deleteRange(t,{pos:r.getStart(t),end:n.end})}else{Dde(e,t,Ch(n,273))}}e.deleteDeclaration=function(e,n,r,i){switch(i.kind){case 170:{const t=i.parent;TF(t)&&1===t.parameters.length&&!$X(t,21,r)?e.replaceNodeWithText(r,i,"()"):Nde(e,n,r,i);break}case 273:case 272:Dde(e,r,i,{leadingTriviaOption:r.imports.length&&i===me(r.imports).parent||i===y(r.statements,Sp)?0:Fu(i)?2:3});break;case 209:const o=i.parent;208===o.kind&&i!==ye(o.elements)?Dde(e,r,i):Nde(e,n,r,i);break;case 261:!function(e,t,n,r){const{parent:i}=r;if(300===i.kind)return void e.deleteNodeRange(n,$X(i,21,n),$X(i,22,n));if(1!==i.declarations.length)return void Nde(e,t,n,r);const o=i.parent;switch(o.kind){case 251:case 250:e.replaceNode(n,r,vw.createObjectLiteralExpression());break;case 249:Dde(e,n,i);break;case 244:Dde(e,n,o,{leadingTriviaOption:Fu(o)?2:3});break;default:_n.assertNever(o)}}(e,n,r,i);break;case 169:Nde(e,n,r,i);break;case 277:const a=i.parent;1===a.elements.length?t(e,r,a):Nde(e,n,r,i);break;case 275:t(e,r,i);break;case 27:Dde(e,r,i,{trailingTriviaOption:0});break;case 100:Dde(e,r,i,{leadingTriviaOption:0});break;case 264:case 263:Dde(e,r,i,{leadingTriviaOption:Fu(i)?2:3});break;default:i.parent?wE(i.parent)&&i.parent.name===i?function(e,t,n){if(n.namedBindings){const r=n.name.getStart(t),i=aQ(t,n.name.end);if(i&&28===i.kind){const n=Ya(t.text,i.end,!1,!0);e.deleteRange(t,{pos:r,end:n})}else Dde(e,t,n.name)}else Dde(e,t,n.parent)}(e,r,i.parent):yF(i.parent)&&k(i.parent.arguments,i)?Nde(e,n,r,i):Dde(e,r,i):Dde(e,r,i)}}})(xde||(xde={}));var Fde={};n(Fde,{FormattingContext:()=>Pde,FormattingRequestKind:()=>Ede,RuleAction:()=>Rde,RuleFlags:()=>Mde,SmartIndenter:()=>sfe,anyContext:()=>jde,createTextRangeWithKind:()=>pfe,formatDocument:()=>yfe,formatNodeGivenIndentation:()=>Sfe,formatOnClosingCurly:()=>hfe,formatOnEnter:()=>ffe,formatOnOpeningCurly:()=>gfe,formatOnSemicolon:()=>mfe,formatSelection:()=>vfe,getAllRules:()=>Bde,getFormatContext:()=>Zpe,getFormattingScanner:()=>Ode,getIndentationString:()=>Nfe,getRangeOfEnclosingComment:()=>Dfe});var Ede=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(Ede||{}),Pde=class{constructor(e,t,n){this.sourceFile=e,this.formattingRequestKind=t,this.options=n}updateContext(e,t,n,r,i){this.currentTokenSpan=_n.checkDefined(e),this.currentTokenParent=_n.checkDefined(t),this.nextTokenSpan=_n.checkDefined(n),this.nextTokenParent=_n.checkDefined(r),this.contextNode=_n.checkDefined(i),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(void 0===this.tokensAreOnSameLine){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line}BlockIsOnOneLine(e){const t=$X(e,19,this.sourceFile),n=$X(e,20,this.sourceFile);if(t&&n){return this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line}return!1}},Ade=hs(99,!1,0),Ide=hs(99,!1,1);function Ode(e,t,n,r,i){const o=1===t?Ide:Ade;o.setText(e),o.resetTokenState(n);let a,s,c,l,_,u=!0;const d=i({advance:function(){_=void 0;o.getTokenFullStart()!==n?u=!!s&&4===ye(s).kind:o.scan();a=void 0,s=void 0;let e=o.getTokenFullStart();for(;ea,lastTrailingTriviaWasNewLine:()=>u,skipToEndOf:function(e){o.resetTokenState(e.end),c=o.getTokenFullStart(),l=void 0,_=void 0,u=!1,a=void 0,s=void 0},skipToStartOf:function(e){o.resetTokenState(e.pos),c=o.getTokenFullStart(),l=void 0,_=void 0,u=!1,a=void 0,s=void 0},getTokenFullStart:()=>(null==_?void 0:_.token.pos)??o.getTokenStart(),getStartPos:()=>(null==_?void 0:_.token.pos)??o.getTokenStart()});return _=void 0,o.setText(void 0),d;function p(){const e=_?_.token.kind:o.getToken();return 1!==e&&!Ih(e)}function f(){return 1===(_?_.token.kind:o.getToken())}function m(e,t){return Pl(t)&&e.token.kind!==t.kind&&(e.token.kind=t.kind),e}}var Lde,jde=s,Rde=(e=>(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(Rde||{}),Mde=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(Mde||{});function Bde(){const e=[];for(let t=0;t<=166;t++)1!==t&&e.push(t);function t(...t){return{tokens:e.filter((e=>!t.some((t=>t===e)))),isSpecific:!1}}const n={tokens:e,isSpecific:!1},r=zde([...e,3]),i=zde([...e,1]),o=Ude(83,166),a=Ude(30,79),s=[103,104,165,130,142,152],c=[80,...GQ],l=r,_=zde([80,32,3,86,95,102]),u=zde([22,3,92,113,98,93,85]);return[...[Jde("IgnoreBeforeComment",n,[2,3],jde,1),Jde("IgnoreAfterLineComment",2,n,jde,1),Jde("NotSpaceBeforeColon",n,59,[Cpe,Zde,epe],16),Jde("SpaceAfterColon",59,n,[Cpe,Zde,Ppe],4),Jde("NoSpaceBeforeQuestionMark",n,58,[Cpe,Zde,epe],16),Jde("SpaceAfterQuestionMarkInConditionalOperator",58,n,[Cpe,rpe],4),Jde("NoSpaceAfterQuestionMark",58,n,[Cpe,npe],16),Jde("NoSpaceBeforeDot",n,[25,29],[Cpe,Ype],16),Jde("NoSpaceAfterDot",[25,29],n,[Cpe],16),Jde("NoSpaceBetweenImportParenInImportType",102,21,[Cpe,Tpe],16),Jde("NoSpaceAfterUnaryPrefixOperator",[46,47,55,54],[9,10,80,21,23,19,110,105],[Cpe,Zde],16),Jde("NoSpaceAfterUnaryPreincrementOperator",46,[80,21,110,105],[Cpe],16),Jde("NoSpaceAfterUnaryPredecrementOperator",47,[80,21,110,105],[Cpe],16),Jde("NoSpaceBeforeUnaryPostincrementOperator",[80,22,24,105],46,[Cpe,Gpe],16),Jde("NoSpaceBeforeUnaryPostdecrementOperator",[80,22,24,105],47,[Cpe,Gpe],16),Jde("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Cpe,Yde],4),Jde("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Cpe,Yde],4),Jde("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Cpe,Yde],4),Jde("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Cpe,Yde],4),Jde("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Cpe,Yde],4),Jde("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Cpe,Yde],4),Jde("NoSpaceAfterCloseBrace",20,[28,27],[Cpe],16),Jde("NewLineBeforeCloseBraceInBlockContext",r,20,[spe],8),Jde("SpaceAfterCloseBrace",20,t(22),[Cpe,gpe],4),Jde("SpaceBetweenCloseBraceAndElse",20,93,[Cpe],4),Jde("SpaceBetweenCloseBraceAndWhile",20,117,[Cpe],4),Jde("NoSpaceBetweenEmptyBraceBrackets",19,20,[Cpe,ype],16),Jde("SpaceAfterConditionalClosingParen",22,23,[hpe],4),Jde("NoSpaceBetweenFunctionKeywordAndStar",100,42,[ppe],16),Jde("SpaceAfterStarInGeneratorDeclaration",42,80,[ppe],4),Jde("SpaceAfterFunctionInFuncDecl",100,n,[upe],4),Jde("NewLineAfterOpenBraceInBlockContext",19,n,[spe],8),Jde("SpaceAfterGetSetInMember",[139,153],80,[upe],4),Jde("NoSpaceBetweenYieldKeywordAndStar",127,42,[Cpe,Hpe],16),Jde("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],n,[Cpe,Hpe],4),Jde("NoSpaceBetweenReturnAndSemicolon",107,27,[Cpe],16),Jde("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],n,[Cpe],4),Jde("SpaceAfterLetConstInVariableDeclaration",[121,87],n,[Cpe,Rpe],4),Jde("NoSpaceBeforeOpenParenInFuncCall",n,21,[Cpe,vpe,bpe],16),Jde("SpaceBeforeBinaryKeywordOperator",n,s,[Cpe,Yde],4),Jde("SpaceAfterBinaryKeywordOperator",s,n,[Cpe,Yde],4),Jde("SpaceAfterVoidOperator",116,n,[Cpe,$pe],4),Jde("SpaceBetweenAsyncAndOpenParen",134,21,[Spe,Cpe],4),Jde("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Cpe],4),Jde("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Cpe],16),Jde("SpaceBeforeJsxAttribute",n,80,[Fpe,Cpe],4),Jde("SpaceBeforeSlashInJsxOpeningElement",n,44,[Ipe,Cpe],4),Jde("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[Ipe,Cpe],16),Jde("NoSpaceBeforeEqualInJsxAttribute",n,64,[Epe,Cpe],16),Jde("NoSpaceAfterEqualInJsxAttribute",64,n,[Epe,Cpe],16),Jde("NoSpaceBeforeJsxNamespaceColon",80,59,[Ape],16),Jde("NoSpaceAfterJsxNamespaceColon",59,80,[Ape],16),Jde("NoSpaceAfterModuleImport",[144,149],21,[Cpe],16),Jde("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],n,[Cpe],4),Jde("SpaceBeforeCertainTypeScriptKeywords",n,[96,119,161],[Cpe],4),Jde("SpaceAfterModuleName",11,19,[Bpe],4),Jde("SpaceBeforeArrow",n,39,[Cpe],4),Jde("SpaceAfterArrow",39,n,[Cpe],4),Jde("NoSpaceAfterEllipsis",26,80,[Cpe],16),Jde("NoSpaceAfterOptionalParameters",58,[22,28],[Cpe,Zde],16),Jde("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Cpe,Jpe],16),Jde("NoSpaceBeforeOpenAngularBracket",c,30,[Cpe,Upe],16),Jde("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Cpe,Upe],16),Jde("NoSpaceAfterOpenAngularBracket",30,n,[Cpe,Upe],16),Jde("NoSpaceBeforeCloseAngularBracket",n,32,[Cpe,Upe],16),Jde("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Cpe,Upe,dpe,Wpe],16),Jde("SpaceBeforeAt",[22,80],60,[Cpe],4),Jde("NoSpaceAfterAt",60,n,[Cpe],16),Jde("SpaceAfterDecorator",n,[128,80,95,90,86,126,125,123,124,139,153,23,42],[Lpe],4),Jde("NoSpaceBeforeNonNullAssertionOperator",n,54,[Cpe,Kpe],16),Jde("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Cpe,zpe],16),Jde("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Cpe],4)],...[Jde("SpaceAfterConstructor",137,21,[Wde("insertSpaceAfterConstructor"),Cpe],4),Jde("NoSpaceAfterConstructor",137,21,[Hde("insertSpaceAfterConstructor"),Cpe],16),Jde("SpaceAfterComma",28,n,[Wde("insertSpaceAfterCommaDelimiter"),Cpe,Dpe,xpe,kpe],4),Jde("NoSpaceAfterComma",28,n,[Hde("insertSpaceAfterCommaDelimiter"),Cpe,Dpe],16),Jde("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[Wde("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),upe],4),Jde("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[Hde("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),upe],16),Jde("SpaceAfterKeywordInControl",o,21,[Wde("insertSpaceAfterKeywordsInControlFlowStatements"),hpe],4),Jde("NoSpaceAfterKeywordInControl",o,21,[Hde("insertSpaceAfterKeywordsInControlFlowStatements"),hpe],16),Jde("SpaceAfterOpenParen",21,n,[Wde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Cpe],4),Jde("SpaceBeforeCloseParen",n,22,[Wde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Cpe],4),Jde("SpaceBetweenOpenParens",21,21,[Wde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Cpe],4),Jde("NoSpaceBetweenParens",21,22,[Cpe],16),Jde("NoSpaceAfterOpenParen",21,n,[Hde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Cpe],16),Jde("NoSpaceBeforeCloseParen",n,22,[Hde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Cpe],16),Jde("SpaceAfterOpenBracket",23,n,[Wde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Cpe],4),Jde("SpaceBeforeCloseBracket",n,24,[Wde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Cpe],4),Jde("NoSpaceBetweenBrackets",23,24,[Cpe],16),Jde("NoSpaceAfterOpenBracket",23,n,[Hde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Cpe],16),Jde("NoSpaceBeforeCloseBracket",n,24,[Hde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Cpe],16),Jde("SpaceAfterOpenBrace",19,n,[Gde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ope],4),Jde("SpaceBeforeCloseBrace",n,20,[Gde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ope],4),Jde("NoSpaceBetweenEmptyBraceBrackets",19,20,[Cpe,ype],16),Jde("NoSpaceAfterOpenBrace",19,n,[$de("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Cpe],16),Jde("NoSpaceBeforeCloseBrace",n,20,[$de("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Cpe],16),Jde("SpaceBetweenEmptyBraceBrackets",19,20,[Wde("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Jde("NoSpaceBetweenEmptyBraceBrackets",19,20,[$de("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Cpe],16),Jde("SpaceAfterTemplateHeadAndMiddle",[16,17],n,[Wde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),wpe],4,1),Jde("SpaceBeforeTemplateMiddleAndTail",n,[17,18],[Wde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Cpe],4),Jde("NoSpaceAfterTemplateHeadAndMiddle",[16,17],n,[Hde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),wpe],16,1),Jde("NoSpaceBeforeTemplateMiddleAndTail",n,[17,18],[Hde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Cpe],16),Jde("SpaceAfterOpenBraceInJsxExpression",19,n,[Wde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Cpe,Npe],4),Jde("SpaceBeforeCloseBraceInJsxExpression",n,20,[Wde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Cpe,Npe],4),Jde("NoSpaceAfterOpenBraceInJsxExpression",19,n,[Hde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Cpe,Npe],16),Jde("NoSpaceBeforeCloseBraceInJsxExpression",n,20,[Hde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Cpe,Npe],16),Jde("SpaceAfterSemicolonInFor",27,n,[Wde("insertSpaceAfterSemicolonInForStatements"),Cpe,Xde],4),Jde("NoSpaceAfterSemicolonInFor",27,n,[Hde("insertSpaceAfterSemicolonInForStatements"),Cpe,Xde],16),Jde("SpaceBeforeBinaryOperator",n,a,[Wde("insertSpaceBeforeAndAfterBinaryOperators"),Cpe,Yde],4),Jde("SpaceAfterBinaryOperator",a,n,[Wde("insertSpaceBeforeAndAfterBinaryOperators"),Cpe,Yde],4),Jde("NoSpaceBeforeBinaryOperator",n,a,[Hde("insertSpaceBeforeAndAfterBinaryOperators"),Cpe,Yde],16),Jde("NoSpaceAfterBinaryOperator",a,n,[Hde("insertSpaceBeforeAndAfterBinaryOperators"),Cpe,Yde],16),Jde("SpaceBeforeOpenParenInFuncDecl",n,21,[Wde("insertSpaceBeforeFunctionParenthesis"),Cpe,upe],4),Jde("NoSpaceBeforeOpenParenInFuncDecl",n,21,[Hde("insertSpaceBeforeFunctionParenthesis"),Cpe,upe],16),Jde("NewLineBeforeOpenBraceInControl",u,19,[Wde("placeOpenBraceOnNewLineForControlBlocks"),hpe,ape],8,1),Jde("NewLineBeforeOpenBraceInFunction",l,19,[Wde("placeOpenBraceOnNewLineForFunctions"),upe,ape],8,1),Jde("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",_,19,[Wde("placeOpenBraceOnNewLineForFunctions"),fpe,ape],8,1),Jde("SpaceAfterTypeAssertion",32,n,[Wde("insertSpaceAfterTypeAssertion"),Cpe,Vpe],4),Jde("NoSpaceAfterTypeAssertion",32,n,[Hde("insertSpaceAfterTypeAssertion"),Cpe,Vpe],16),Jde("SpaceBeforeTypeAnnotation",n,[58,59],[Wde("insertSpaceBeforeTypeAnnotation"),Cpe,tpe],4),Jde("NoSpaceBeforeTypeAnnotation",n,[58,59],[Hde("insertSpaceBeforeTypeAnnotation"),Cpe,tpe],16),Jde("NoOptionalSemicolon",27,i,[Vde("semicolons","remove"),Xpe],32),Jde("OptionalSemicolon",n,i,[Vde("semicolons","insert"),Qpe],64)],...[Jde("NoSpaceBeforeSemicolon",n,27,[Cpe],16),Jde("SpaceBeforeOpenBraceInControl",u,19,[Kde("placeOpenBraceOnNewLineForControlBlocks"),hpe,Mpe,ipe],4,1),Jde("SpaceBeforeOpenBraceInFunction",l,19,[Kde("placeOpenBraceOnNewLineForFunctions"),upe,lpe,Mpe,ipe],4,1),Jde("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",_,19,[Kde("placeOpenBraceOnNewLineForFunctions"),fpe,Mpe,ipe],4,1),Jde("NoSpaceBeforeComma",n,28,[Cpe],16),Jde("NoSpaceBeforeOpenBracket",t(134,84),23,[Cpe],16),Jde("NoSpaceAfterCloseBracket",24,n,[Cpe,Ope],16),Jde("SpaceAfterSemicolon",27,n,[Cpe],4),Jde("SpaceBetweenForAndAwaitKeyword",99,135,[Cpe],4),Jde("SpaceBetweenDotDotDotAndTypeName",26,c,[Cpe],16),Jde("SpaceBetweenStatements",[22,92,93,84],n,[Cpe,Dpe,Qde],4),Jde("SpaceAfterTryCatchFinally",[113,85,98],19,[Cpe],4)]]}function Jde(e,t,n,r,i,o=0){return{leftTokenRange:qde(t),rightTokenRange:qde(n),rule:{debugName:e,context:r,action:i,flags:o}}}function zde(e){return{tokens:e,isSpecific:!0}}function qde(e){return"number"==typeof e?zde([e]):Xe(e)?zde(e):e}function Ude(e,t,n=[]){const r=[];for(let i=e;i<=t;i++)k(n,i)||r.push(i);return zde(r)}function Vde(e,t){return n=>n.options&&n.options[e]===t}function Wde(e){return t=>t.options&&De(t.options,e)&&!!t.options[e]}function $de(e){return t=>t.options&&De(t.options,e)&&!t.options[e]}function Hde(e){return t=>!t.options||!De(t.options,e)||!t.options[e]}function Kde(e){return t=>!t.options||!De(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function Gde(e){return t=>!t.options||!De(t.options,e)||!!t.options[e]}function Xde(e){return 249===e.contextNode.kind}function Qde(e){return!Xde(e)}function Yde(e){switch(e.contextNode.kind){case 227:return 28!==e.contextNode.operatorToken.kind;case 228:case 195:case 235:case 282:case 277:case 183:case 193:case 194:case 239:return!0;case 209:case 266:case 272:case 278:case 261:case 170:case 307:case 173:case 172:return 64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 250:case 169:return 103===e.currentTokenSpan.kind||103===e.nextTokenSpan.kind||64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 251:return 165===e.currentTokenSpan.kind||165===e.nextTokenSpan.kind}return!1}function Zde(e){return!Yde(e)}function epe(e){return!tpe(e)}function tpe(e){const t=e.contextNode.kind;return 173===t||172===t||170===t||261===t||l_(t)}function npe(e){return!function(e){return PN(e.contextNode)&&e.contextNode.questionToken}(e)}function rpe(e){return 228===e.contextNode.kind||195===e.contextNode.kind}function ipe(e){return e.TokensAreOnSameLine()||lpe(e)}function ope(e){return 207===e.contextNode.kind||201===e.contextNode.kind||function(e){return cpe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function ape(e){return lpe(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function spe(e){return cpe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function cpe(e){return _pe(e.contextNode)}function lpe(e){return _pe(e.nextTokenParent)}function _pe(e){if(mpe(e))return!0;switch(e.kind){case 242:case 270:case 211:case 269:return!0}return!1}function upe(e){switch(e.contextNode.kind){case 263:case 175:case 174:case 178:case 179:case 180:case 219:case 177:case 220:case 265:return!0}return!1}function dpe(e){return!upe(e)}function ppe(e){return 263===e.contextNode.kind||219===e.contextNode.kind}function fpe(e){return mpe(e.contextNode)}function mpe(e){switch(e.kind){case 264:case 232:case 265:case 267:case 188:case 268:case 279:case 280:case 273:case 276:return!0}return!1}function gpe(e){switch(e.currentTokenParent.kind){case 264:case 268:case 267:case 300:case 269:case 256:return!0;case 242:{const t=e.currentTokenParent.parent;if(!t||220!==t.kind&&219!==t.kind)return!0}}return!1}function hpe(e){switch(e.contextNode.kind){case 246:case 256:case 249:case 250:case 251:case 248:case 259:case 247:case 255:case 300:return!0;default:return!1}}function ype(e){return 211===e.contextNode.kind}function vpe(e){return function(e){return 214===e.contextNode.kind}(e)||function(e){return 215===e.contextNode.kind}(e)}function bpe(e){return 28!==e.currentTokenSpan.kind}function xpe(e){return 24!==e.nextTokenSpan.kind}function kpe(e){return 22!==e.nextTokenSpan.kind}function Spe(e){return 220===e.contextNode.kind}function Tpe(e){return 206===e.contextNode.kind}function Cpe(e){return e.TokensAreOnSameLine()&&12!==e.contextNode.kind}function wpe(e){return 12!==e.contextNode.kind}function Dpe(e){return 285!==e.contextNode.kind&&289!==e.contextNode.kind}function Npe(e){return 295===e.contextNode.kind||294===e.contextNode.kind}function Fpe(e){return 292===e.nextTokenParent.kind||296===e.nextTokenParent.kind&&292===e.nextTokenParent.parent.kind}function Epe(e){return 292===e.contextNode.kind}function Ppe(e){return 296!==e.nextTokenParent.kind}function Ape(e){return 296===e.nextTokenParent.kind}function Ipe(e){return 286===e.contextNode.kind}function Ope(e){return!upe(e)&&!lpe(e)}function Lpe(e){return e.TokensAreOnSameLine()&&Rv(e.contextNode)&&jpe(e.currentTokenParent)&&!jpe(e.nextTokenParent)}function jpe(e){for(;e&&W_(e);)e=e.parent;return e&&171===e.kind}function Rpe(e){return 262===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Mpe(e){return 2!==e.formattingRequestKind}function Bpe(e){return 268===e.contextNode.kind}function Jpe(e){return 188===e.contextNode.kind}function zpe(e){return 181===e.contextNode.kind}function qpe(e,t){if(30!==e.kind&&32!==e.kind)return!1;switch(t.kind){case 184:case 217:case 266:case 264:case 232:case 265:case 263:case 219:case 220:case 175:case 174:case 180:case 181:case 214:case 215:case 234:return!0;default:return!1}}function Upe(e){return qpe(e.currentTokenSpan,e.currentTokenParent)||qpe(e.nextTokenSpan,e.nextTokenParent)}function Vpe(e){return 217===e.contextNode.kind}function Wpe(e){return!Vpe(e)}function $pe(e){return 116===e.currentTokenSpan.kind&&223===e.currentTokenParent.kind}function Hpe(e){return 230===e.contextNode.kind&&void 0!==e.contextNode.expression}function Kpe(e){return 236===e.contextNode.kind}function Gpe(e){return!function(e){switch(e.contextNode.kind){case 246:case 249:case 250:case 251:case 247:case 248:return!0;default:return!1}}(e)}function Xpe(e){let t=e.nextTokenSpan.kind,n=e.nextTokenSpan.pos;if(Ih(t)){const r=e.nextTokenParent===e.currentTokenParent?_Q(e.currentTokenParent,dc(e.currentTokenParent,(e=>!e.parent)),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!r)return!0;t=r.kind,n=r.getStart(e.sourceFile)}return e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line===e.sourceFile.getLineAndCharacterOfPosition(n).line?20===t||1===t:27===t&&27===e.currentTokenSpan.kind||241!==t&&27!==t&&(265===e.contextNode.kind||266===e.contextNode.kind?!EN(e.currentTokenParent)||!!e.currentTokenParent.type||21!==t:PN(e.currentTokenParent)?!e.currentTokenParent.initializer:249!==e.currentTokenParent.kind&&243!==e.currentTokenParent.kind&&241!==e.currentTokenParent.kind&&23!==t&&21!==t&&40!==t&&41!==t&&44!==t&&14!==t&&28!==t&&229!==t&&16!==t&&15!==t&&25!==t)}function Qpe(e){return IZ(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function Ype(e){return!gF(e.contextNode)||!WD(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}function Zpe(e,t){return{options:e,getRules:efe(),host:t}}function efe(){return void 0===Lde&&(Lde=function(e){const t=function(e){const t=new Array(_fe*_fe),n=new Array(t.length);for(const r of e){const e=r.leftTokenRange.isSpecific&&r.rightTokenRange.isSpecific;for(const i of r.leftTokenRange.tokens)for(const o of r.rightTokenRange.tokens){const a=nfe(i,o);let s=t[a];void 0===s&&(s=t[a]=[]),dfe(s,r.rule,e,n,a)}}return t}(e);return e=>{const n=t[nfe(e.currentTokenSpan.kind,e.nextTokenSpan.kind)];if(n){const t=[];let r=0;for(const i of n){const n=~tfe(r);i.action&n&&h(i.context,(t=>t(e)))&&(t.push(i),r|=i.action)}if(t.length)return t}}}(Bde())),Lde}function tfe(e){let t=0;return 1&e&&(t|=28),2&e&&(t|=96),28&e&&(t|=28),96&e&&(t|=96),t}function nfe(e,t){return _n.assert(e<=166&&t<=166,"Must compute formatting context from tokens"),e*_fe+t}var rfe,ife,ofe,afe,sfe,cfe=5,lfe=31,_fe=167,ufe=((rfe=ufe||{})[rfe.StopRulesSpecific=0]="StopRulesSpecific",rfe[rfe.StopRulesAny=1*cfe]="StopRulesAny",rfe[rfe.ContextRulesSpecific=2*cfe]="ContextRulesSpecific",rfe[rfe.ContextRulesAny=3*cfe]="ContextRulesAny",rfe[rfe.NoContextRulesSpecific=4*cfe]="NoContextRulesSpecific",rfe[rfe.NoContextRulesAny=5*cfe]="NoContextRulesAny",rfe);function dfe(e,t,n,r,i){const o=3&t.action?n?0:ufe.StopRulesAny:t.context!==jde?n?ufe.ContextRulesSpecific:ufe.ContextRulesAny:n?ufe.NoContextRulesSpecific:ufe.NoContextRulesAny,a=r[i]||0;e.splice(function(e,t){let n=0;for(let r=0;r<=t;r+=cfe)n+=e&lfe,e>>=cfe;return n}(a,o),0,t),r[i]=function(e,t){const n=1+(e>>t&lfe);return _n.assert((n&lfe)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(lfe<_n.formatSyntaxKind(n)}),r}function ffe(e,t,n){const r=t.getLineAndCharacterOfPosition(e).line;if(0===r)return[];let i=wd(r,t);for(;Va(t.text.charCodeAt(i));)i--;Wa(t.text.charCodeAt(i))&&i--;return Cfe({pos:Td(r-1,t),end:i+1},t,n,2)}function mfe(e,t,n){return Tfe(xfe(bfe(e,27,t)),t,n,3)}function gfe(e,t,n){const r=bfe(e,19,t);if(!r)return[];return Cfe({pos:IX(xfe(r.parent).getStart(t),t),end:e},t,n,4)}function hfe(e,t,n){return Tfe(xfe(bfe(e,20,t)),t,n,5)}function yfe(e,t){return Cfe({pos:0,end:e.text.length},e,t,0)}function vfe(e,t,n,r){return Cfe({pos:IX(e,n),end:t},n,r,1)}function bfe(e,t,n){const r=uQ(e,n);return r&&r.kind===t&&e===r.getEnd()?r:void 0}function xfe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!kfe(t.parent,t);)t=t.parent;return t}function kfe(e,t){switch(e.kind){case 264:case 265:return Yb(e.members,t);case 268:const n=e.body;return!!n&&269===n.kind&&Yb(n.statements,t);case 308:case 242:case 269:return Yb(e.statements,t);case 300:return Yb(e.block.statements,t)}return!1}function Sfe(e,t,n,r,i,o){const a={pos:e.pos,end:e.end};return Ode(t.text,n,a.pos,a.end,(n=>wfe(a,e,r,i,n,o,1,(e=>!1),t)))}function Tfe(e,t,n,r){if(!e)return[];return Cfe({pos:IX(e.getStart(t),t),end:e.end},t,n,r)}function Cfe(e,t,n,r){const i=function(e,t){return function n(r){const i=rO(r,(n=>Zb(n.getStart(t),n.end,e)&&n));if(i){const e=n(i);if(e)return e}return r}(t)}(e,t);return Ode(t.text,t.languageVariant,function(e,t,n){const r=e.getStart(n);if(r===t.pos&&e.end===t.end)return r;const i=uQ(t.pos,n);return i?i.end>=t.pos?e.pos:i.end:e.pos}(i,e,t),e.end,(o=>wfe(e,i,sfe.getIndentationForNode(i,e,t,n.options),function(e,t,n){let r,i=-1;for(;e;){const o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==i&&o!==i)break;if(sfe.shouldIndentChildNode(t,e,r,n))return t.indentSize;i=o,r=e,e=e.parent}return 0}(i,n.options,t),o,n,r,function(e,t){if(!e.length)return i;const n=e.filter((e=>MX(t,e.start,e.start+e.length))).sort(((e,t)=>e.start-t.start));if(!n.length)return i;let r=0;return e=>{for(;;){if(r>=n.length)return!1;const t=n[r];if(e.end<=t.start)return!1;if(JX(e.pos,e.end,t.start,t.start+t.length))return!0;r++}};function i(){return!1}}(t.parseDiagnostics,e),t)))}function wfe(e,t,n,r,i,{options:o,getRules:a,host:s},c,l,_){var d;const p=new Pde(_,c,o);let f,m,g,h,v,x=-1;const k=[];if(i.advance(),i.isOnToken()){const a=_.getLineAndCharacterOfPosition(t.getStart(_)).line;let s=a;Rv(t)&&(s=_.getLineAndCharacterOfPosition(Ud(t,_)).line),function t(n,r,a,s,c,u){if(!MX(e,n.getStart(_),n.getEnd()))return;const d=T(n,a,c,u);let p=r;rO(n,(e=>{g(e,-1,n,d,a,s,!1)}),(e=>{h(e,n,a,d)}));for(;i.isOnToken()&&i.getTokenFullStart()Math.min(n.end,e.end))break;y(t,n,d,n)}function g(r,a,s,c,l,u,d,f){if(_n.assert(!ty(r)),Nd(r)||Ed(s,r))return a;const m=r.getStart(_),g=_.getLineAndCharacterOfPosition(m).line;let h=g;Rv(r)&&(h=_.getLineAndCharacterOfPosition(Ud(r,_)).line);let b=-1;if(d&&Yb(e,s)&&(b=function(e,t,n,r,i){if(MX(r,e,t)||RX(r,e,t)){if(-1!==i)return i}else{const t=_.getLineAndCharacterOfPosition(e).line,r=IX(e,_),i=sfe.findFirstNonWhitespaceColumn(r,e,_,o);if(t!==n||e===i){const e=sfe.getBaseIndentation(o);return e>i?e:i}}return-1}(m,r.end,l,e,a),-1!==b&&(a=b)),!MX(e,r.pos,r.end))return r.ende.end)return a;if(t.token.end>m){t.token.pos>m&&i.skipToStartOf(r);break}y(t,n,c,n)}if(!i.isOnToken()||i.getTokenFullStart()>=e.end)return a;if(Pl(r)){const e=i.readTokenInfo(r);if(12!==r.kind)return _n.assert(e.token.end===r.end,"Token end is child end"),y(e,n,c,r),a}const k=171===r.kind?g:u,S=function(e,t,n,r,i,a){const s=sfe.shouldIndentChildNode(o,e)?o.indentSize:0;return a===t?{indentation:t===v?x:i.getIndentation(),delta:Math.min(o.indentSize,i.getDelta(e)+s)}:-1===n?21===e.kind&&t===v?{indentation:x,delta:i.getDelta(e)}:sfe.childStartsOnTheSameLineWithElseInIfStatement(r,e,t,_)||sfe.childIsUnindentedBranchOfConditionalExpression(r,e,t,_)||sfe.argumentStartsOnSameLineAsPreviousArgument(r,e,t,_)?{indentation:i.getIndentation(),delta:s}:{indentation:i.getIndentation()+i.getDelta(e),delta:s}:{indentation:n,delta:s}}(r,g,b,n,c,k);return t(r,p,g,h,S.indentation,S.delta),p=n,f&&210===s.kind&&-1===a&&(a=S.indentation),a}function h(t,r,a,s){_n.assert(Al(t)),_n.assert(!ty(t));const c=function(e,t){switch(e.kind){case 177:case 263:case 219:case 175:case 174:case 220:case 180:case 181:case 185:case 186:case 178:case 179:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 214:case 215:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 264:case 232:case 265:case 266:if(e.typeParameters===t)return 30;break;case 184:case 216:case 187:case 234:case 206:if(e.typeArguments===t)return 30;break;case 188:return 19}return 0}(r,t);let l=s,u=a;if(!MX(e,t.pos,t.end))return void(t.endt.pos)break;if(e.token.kind===c){let t;if(u=_.getLineAndCharacterOfPosition(e.token.pos).line,y(e,r,s,r),-1!==x)t=x;else{const n=IX(e.token.pos,_);t=sfe.findFirstNonWhitespaceColumn(n,e.token.pos,_,o)}l=T(r,a,t,o.indentSize)}else y(e,r,s,r)}let d=-1;for(let e=0;eF(e.pos,i,!1)))}-1!==e&&n&&(F(t.token.pos,e,1===u),v=g.line,x=e)}i.advance(),p=n}}(t,t,a,s,n,r)}const S=i.getCurrentLeadingTrivia();if(S){const r=sfe.nodeWillIndentChild(o,t,void 0,_,!1)?n+o.indentSize:n;C(S,r,!0,(e=>{D(e,_.getLineAndCharacterOfPosition(e.pos),t,t,void 0),F(e.pos,r,!1)})),!1!==o.trimTrailingWhitespace&&function(t){let n=m?m.end:e.pos;for(const e of t)EQ(e.kind)&&(n=e.end){const e=i.isOnEOF()?i.readEOFTokenRange():i.isOnToken()?i.readTokenInfo(t).token:void 0;if(e&&e.pos===f){const n=(null==(d=uQ(e.end,_,t))?void 0:d.parent)||g;N(e,_.getLineAndCharacterOfPosition(e.pos).line,n,m,h,g,n,void 0)}}return k;function T(e,t,n,r){return{getIndentationForComment:(e,t,r)=>{switch(e){case 20:case 24:case 22:return n+i(r)}return-1!==t?t:n},getIndentationForToken:(r,o,a,s)=>!s&&function(n,r,i){switch(r){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(i.kind){case 287:case 288:case 286:return!1}break;case 23:case 24:if(201!==i.kind)return!1}return t!==n&&!(Rv(e)&&r===function(e){if(FI(e)){const t=y(e.modifiers,e_,b(e.modifiers,FN));if(t)return t.kind}switch(e.kind){case 264:return 86;case 265:return 120;case 263:return 100;case 267:return 267;case 178:return 139;case 179:return 153;case 175:if(e.asteriskToken)return 42;case 173:case 170:const t=wc(e);if(t)return t.kind}}(e))}(r,o,a)?n+i(a):n,getIndentation:()=>n,getDelta:i,recomputeIndentation:(t,i)=>{sfe.shouldIndentChildNode(o,i,e,_)&&(n+=t?o.indentSize:-o.indentSize,r=sfe.shouldIndentChildNode(o,e)?o.indentSize:0)}};function i(t){return sfe.nodeWillIndentChild(o,e,t,_,!0)?r:0}}function C(t,n,r,i){for(const o of t){const t=Yb(e,o);switch(o.kind){case 3:t&&E(o,n,!r),r=!1;break;case 2:r&&t&&i(o),r=!1;break;case 4:r=!0}}return r}function w(t,n,r,i){for(const o of t)if(EQ(o.kind)&&Yb(e,o)){D(o,_.getLineAndCharacterOfPosition(o.pos),n,r,i)}}function D(t,n,r,i,o){let a=0;if(!l(t))if(m)a=N(t,n.line,r,m,h,g,i,o);else{P(_.getLineAndCharacterOfPosition(e.pos).line,n.line)}return m=t,f=t.end,g=r,h=n.line,a}function N(e,t,n,r,i,c,l,d){p.updateContext(r,c,e,n,l);const f=a(p);let m=!1!==p.options.trimTrailingWhitespace,g=0;return f?u(f,(a=>{if(g=function(e,t,n,r,i){const a=i!==n;switch(e.action){case 1:return 0;case 16:if(t.end!==r.pos)return O(t.end,r.pos-t.end),a?2:0;break;case 32:O(t.pos,t.end-t.pos);break;case 8:if(1!==e.flags&&n!==i)return 0;if(1!==i-n)return L(t.end,r.pos-t.end,YY(s,o)),a?0:1;break;case 4:if(1!==e.flags&&n!==i)return 0;if(1!==r.pos-t.end||32!==_.text.charCodeAt(t.end))return L(t.end,r.pos-t.end," "),a?2:0;break;case 64:c=t.end,(l=";")&&k.push(HQ(c,0,l))}var c,l;return 0}(a,r,i,e,t),d)switch(g){case 2:n.getStart(_)===e.pos&&d.recomputeIndentation(!1,l);break;case 1:n.getStart(_)===e.pos&&d.recomputeIndentation(!0,l);break;default:_n.assert(0===g)}m=m&&!(16&a.action)&&1!==a.flags})):m=m&&1!==e.kind,t!==i&&m&&P(i,t,r),g}function F(e,t,n){const r=Nfe(t,o);if(n)L(e,0,r);else{const n=_.getLineAndCharacterOfPosition(e),i=Td(n.line,_);(t!==function(e,t){let n=0;for(let r=0;r0){const e=Nfe(r,o);L(t,n.character,e)}else O(t,n.character)}}function P(e,t,n){for(let r=e;rt)continue;const i=A(e,t);-1!==i&&(_n.assert(i===e||!Va(_.text.charCodeAt(i-1))),O(i,t+1-i))}}function A(e,t){let n=t;for(;n>=e&&Va(_.text.charCodeAt(n));)n--;return n!==t?n+1:-1}function I(e,t,n){P(_.getLineAndCharacterOfPosition(e).line,_.getLineAndCharacterOfPosition(t).line+1,n)}function O(e,t){t&&k.push(HQ(e,t,""))}function L(e,t,n){(t||n)&&k.push(HQ(e,t,n))}}function Dfe(e,t,n,r=aQ(e,t)){const i=dc(r,DP);i&&(r=i.parent);if(r.getStart(e)<=t&&tjX(n,t)||t===n.end&&(2===n.kind||t===e.getFullWidth())))}function Nfe(e,t){if((!ife||ife.tabSize!==t.tabSize||ife.indentSize!==t.indentSize)&&(ife={tabSize:t.tabSize,indentSize:t.indentSize},ofe=afe=void 0),t.convertTabsToSpaces){let n;const r=Math.floor(e/t.indentSize),i=e%t.indentSize;return afe||(afe=[]),void 0===afe[r]?(n=tY(" ",t.indentSize*r),afe[r]=n):n=afe[r],i?n+tY(" ",i):n}{const n=Math.floor(e/t.tabSize),r=e-n*t.tabSize;let i;return ofe||(ofe=[]),void 0===ofe[n]?ofe[n]=i=tY("\t",n):i=ofe[n],r?i+tY(" ",r):i}}(e=>{let t;var n;function r(e){return e.baseIndentSize||0}function i(e,t,n,i,s,c,l){var f;let m=e.parent;for(;m;){let r=!0;if(n){const t=e.getStart(s);r=tn.end}const h=o(m,e,s),y=h.line===t.line||d(m,e,t.line,s);if(r){const n=null==(f=p(e,s))?void 0:f[0];let r=g(e,s,l,!!n&&_(n,s).line>h.line);if(-1!==r)return r+i;if(r=a(e,m,t,y,s,l),-1!==r)return r+i}T(l,m,e,s,c)&&!y&&(i+=l.indentSize);const v=u(m,e,t.line,s);m=(e=m).parent,t=v?s.getLineAndCharacterOfPosition(e.getStart(s)):h}return i+r(l)}function o(e,t,n){const r=p(t,n),i=r?r.pos:e.getStart(n);return n.getLineAndCharacterOfPosition(i)}function a(e,t,n,r,i,o){return(uu(e)||pu(e))&&(308===t.kind||!r)?v(n,i,o):-1}let s;var c;function l(e,t,n,r){const i=_Q(e,t,r);if(!i)return 0;if(19===i.kind)return 1;if(20===i.kind){return n===_(i,r).line?2:0}return 0}function _(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function u(e,t,n,r){if(!yF(e)||!k(e.arguments,t))return!1;return qa(r,e.expression.getEnd()).line===n}function d(e,t,n,r){if(246===e.kind&&e.elseStatement===t){const t=$X(e,93,r);_n.assert(void 0!==t);return _(t,r).line===n}return!1}function p(e,t){return e.parent&&f(e.getStart(t),e.getEnd(),e.parent,t)}function f(e,t,n,r){switch(n.kind){case 184:return i(n.typeArguments);case 211:return i(n.properties);case 210:case 276:case 280:case 207:case 208:return i(n.elements);case 188:return i(n.members);case 263:case 219:case 220:case 175:case 174:case 180:case 177:case 186:case 181:return i(n.typeParameters)||i(n.parameters);case 178:return i(n.parameters);case 264:case 232:case 265:case 266:case 346:return i(n.typeParameters);case 215:case 214:return i(n.typeArguments)||i(n.arguments);case 262:return i(n.declarations)}function i(i){return i&&RX(function(e,t,n){const r=e.getChildren(n);for(let e=1;e=0&&t=0;o--){if(28===e[o].kind)continue;if(n.getLineAndCharacterOfPosition(e[o].end).line!==i.line)return v(i,n,r);i=_(e[o],n)}return-1}function v(e,t,n){const r=t.getPositionOfLineAndCharacter(e.line,0);return x(r,r+e.character,t,n)}function b(e,t,n,r){let i=0,o=0;for(let a=e;at.text.length)return r(n);if(0===n.indentStyle)return 0;const a=uQ(e,t,void 0,!0),s=Dfe(t,e,a||null);if(s&&3===s.kind)return function(e,t,n,r){const i=qa(e,t).line-1,o=qa(e,r.pos).line;if(_n.assert(o>=0),i<=o)return x(Td(o,e),t,e,n);const a=Td(i,e),{column:s,character:c}=b(a,t,e,n);if(0===s)return s;const l=e.text.charCodeAt(a+c);return 42===l?s-1:s}(t,e,n,s);if(!a)return r(n);if(PQ(a.kind)&&a.getStart(t)<=e&&e0;){if(!Ua(e.text.charCodeAt(r)))break;r--}const i=IX(r,e);return x(i,r,e,n)}(t,e,n);if(28===a.kind&&227!==a.parent.kind){const e=function(e,t,n){const r=VX(e);return r&&r.listItemIndex>0?h(r.list.getChildren(),r.listItemIndex-1,t,n):-1}(a,t,n);if(-1!==e)return e}const p=function(e,t,n){return t&&f(e,e,t,n)}(e,a.parent,t);if(p&&!Yb(p,a)){const e=[219,220].includes(u.parent.kind)?0:n.indentSize;return m(p,t,n)+e}return function(e,t,n,o,a,s){let c,u=n;for(;u;){if(zX(u,t,e)&&T(s,u,c,e,!0)){const t=_(u,e),r=l(n,u,o,e);return i(u,t,void 0,0!==r?a&&2===r?s.indentSize:0:o!==t.line?s.indentSize:0,e,!0,s)}const r=g(u,e,s,!0);if(-1!==r)return r;c=u,u=u.parent}return r(s)}(t,e,a,c,o,n)},e.getIndentationForNode=function(e,t,n,r){const o=n.getLineAndCharacterOfPosition(e.getStart(n));return i(e,o,t,0,n,!1,r)},e.getBaseIndentation=r,(c=s||(s={}))[c.Unknown=0]="Unknown",c[c.OpenBrace=1]="OpenBrace",c[c.CloseBrace=2]="CloseBrace",e.isArgumentAndStartLineOverlapsExpressionBeingCalled=u,e.childStartsOnTheSameLineWithElseInIfStatement=d,e.childIsUnindentedBranchOfConditionalExpression=function(e,t,n,r){if(AF(e)&&(t===e.whenTrue||t===e.whenFalse)){const i=qa(r,e.condition.end).line;if(t===e.whenTrue)return n===i;{const t=_(e.whenTrue,r).line,o=qa(r,e.whenTrue.end).line;return i===t&&o===n}}return!1},e.argumentStartsOnSameLineAsPreviousArgument=function(e,t,n,r){if(R_(e)){if(!e.arguments)return!1;const i=y(e.arguments,(e=>e.pos===t.pos));if(!i)return!1;const o=e.arguments.indexOf(i);if(0===o)return!1;if(n===qa(r,e.arguments[o-1].getEnd()).line)return!0}return!1},e.getContainingList=p,e.findFirstNonWhitespaceCharacterAndColumn=b,e.findFirstNonWhitespaceColumn=x,e.nodeWillIndentChild=S,e.shouldIndentChildNode=T})(sfe||(sfe={}));var Ffe={};function Efe(e,t,n){let r=!1;return t.forEach((t=>{const i=dc(aQ(e,t.pos),(e=>Yb(e,t)));i&&rO(i,(function i(o){var a;if(!r){if(_N(o)&&LX(t,o.getStart(e))){const t=n.resolveName(o.text,o,-1,!1);if(t&&t.declarations)for(const n of t.declarations)if(f6(n)||o.text&&e.symbol&&(null==(a=e.symbol.exports)?void 0:a.has(o.escapedText)))return void(r=!0)}o.forEachChild(i)}}))})),r}n(Ffe,{preparePasteEdits:()=>Efe});var Pfe={};n(Pfe,{pasteEditsProvider:()=>Ife});var Afe="providePostPasteEdits";function Ife(e,t,n,r,i,o,a,s){return{edits:ede.ChangeTracker.with({host:i,formatContext:a,preferences:o},(c=>Ofe(e,t,n,r,i,o,a,s,c))),fixId:Afe}}function Ofe(e,t,n,r,i,o,a,s,c){let l;t.length!==n.length&&(l=1===t.length?t[0]:t.join(YY(a.host,a.options)));const _=[];let u,d=e.text;for(let e=n.length-1;e>=0;e--){const{pos:r,end:i}=n[e];d=l?d.slice(0,r)+l+d.slice(i):d.slice(0,r)+t[e]+d.slice(i)}_n.checkDefined(i.runWithTemporaryFileUpdate).call(i,e.fileName,d,((d,p,f)=>{if(u=M7.createImportAdder(f,d,o,i),null==r?void 0:r.range){_n.assert(r.range.length===t.length),r.range.forEach((e=>{const t=r.file.statements,n=b(t,(t=>t.end>e.pos));if(-1===n)return;let i=b(t,(t=>t.end>=e.end),n);-1!==i&&e.end<=t[i].getStart()&&i--,_.push(...t.slice(n,-1===i?t.length:i+1))})),_n.assertIsDefined(p,"no original program found");const n=p.getTypeChecker(),o=function({file:e,range:t}){const n=t[0].pos,r=t[t.length-1].end,i=aQ(e,n),o=lQ(e,n)??aQ(e,r);return{pos:_N(i)&&n<=i.getStart(e)?i.getFullStart():n,end:_N(o)&&r===o.getEnd()?ede.getAdjustedEndPosition(e,o,{}):r}}(r),a=u6(r.file,_,n,b6(f,_,n),o),s=!f0(e.fileName,p,i,!!r.file.commonJsModuleIndicator);V3(r.file,a.targetFileImportsFromOldFile,c,s),T6(r.file,a.oldImportsNeededByTargetFile,a.targetFileImportsFromOldFile,n,d,u)}else{const e={sourceFile:f,program:p,cancellationToken:s,host:i,preferences:o,formatContext:a};let r=0;n.forEach(((n,i)=>{const o=n.end-n.pos,a=l??t[i],s=n.pos+r,c={pos:s,end:s+a.length};r+=a.length-o;const _=dc(aQ(e.sourceFile,c.pos),(e=>Yb(e,c)));_&&rO(_,(function t(n){if(_N(n)&&LX(c,n.getStart(f))&&!(null==d?void 0:d.getTypeChecker().resolveName(n.text,n,-1,!1)))return u.addImportForUnresolvedIdentifier(e,n,!0);n.forEachChild(t)}))}))}u.writeFixes(c,fY(r?r.file:e,o))})),u.hasFixes()&&n.forEach(((n,r)=>{c.replaceRangeWithText(e,{pos:n.pos,end:n.end},l??t[r])}))}var Lfe={};n(Lfe,{ANONYMOUS:()=>wZ,AccessFlags:()=>Gr,AssertionLevel:()=>pt,AssignmentDeclarationKind:()=>oi,AssignmentKind:()=>Gg,Associativity:()=>ny,BreakpointResolver:()=>m7,BuilderFileEmit:()=>aW,BuilderProgramKind:()=>LW,BuilderState:()=>iW,CallHierarchy:()=>h7,CharacterCodes:()=>xi,CheckFlags:()=>qr,CheckMode:()=>nJ,ClassificationType:()=>ZG,ClassificationTypeNames:()=>YG,CommentDirectiveType:()=>Sr,Comparison:()=>a,CompletionInfoFlags:()=>WG,CompletionTriggerKind:()=>RG,Completions:()=>Fae,ContainerFlags:()=>nB,ContextFlags:()=>Ir,Debug:()=>_n,DiagnosticCategory:()=>ai,Diagnostics:()=>ua,DocumentHighlights:()=>A0,ElementFlags:()=>Kr,EmitFlags:()=>Ci,EmitHint:()=>Fi,EmitOnly:()=>Dr,EndOfLineState:()=>KG,ExitStatus:()=>Fr,ExportKind:()=>y0,Extension:()=>ki,ExternalEmitHelpers:()=>Ni,FileIncludeKind:()=>Cr,FilePreprocessingDiagnosticsKind:()=>wr,FileSystemEntryKind:()=>ro,FileWatcherEventKind:()=>Mi,FindAllReferences:()=>Ace,FlattenLevel:()=>Pz,FlowFlags:()=>kr,ForegroundColorEscapeSequences:()=>iV,FunctionFlags:()=>Oh,GeneratedIdentifierFlags:()=>vr,GetLiteralTextFlags:()=>np,GoToDefinition:()=>vle,HighlightSpanKind:()=>BG,IdentifierNameMap:()=>az,ImportKind:()=>h0,ImportsNotUsedAsValues:()=>mi,IndentStyle:()=>JG,IndexFlags:()=>Xr,IndexKind:()=>ei,InferenceFlags:()=>ri,InferencePriority:()=>ni,InlayHintKind:()=>MG,InlayHints:()=>Rle,InternalEmitFlags:()=>wi,InternalNodeBuilderFlags:()=>Lr,InternalSymbolName:()=>Ur,IntersectionFlags:()=>Ar,InvalidatedProjectKind:()=>NH,JSDocParsingMode:()=>Li,JsDoc:()=>qle,JsTyping:()=>nG,JsxEmit:()=>fi,JsxFlags:()=>gr,JsxReferenceKind:()=>Qr,LanguageFeatureMinimumTarget:()=>Di,LanguageServiceMode:()=>IG,LanguageVariant:()=>vi,LexicalEnvironmentFlags:()=>Pi,ListFormat:()=>Ai,LogLevel:()=>un,MapCode:()=>c_e,MemberOverrideStatus:()=>Er,ModifierFlags:()=>mr,ModuleDetectionKind:()=>li,ModuleInstanceState:()=>YM,ModuleKind:()=>pi,ModuleResolutionKind:()=>ci,ModuleSpecifierEnding:()=>BS,NavigateTo:()=>i2,NavigationBar:()=>m2,NewLineKind:()=>gi,NodeBuilderFlags:()=>Or,NodeCheckFlags:()=>Vr,NodeFactoryFlags:()=>ow,NodeFlags:()=>fr,NodeResolutionFeatures:()=>GR,ObjectFlags:()=>$r,OperationCanceledException:()=>Tr,OperatorPrecedence:()=>sy,OrganizeImports:()=>f_e,OrganizeImportsMode:()=>jG,OuterExpressionKinds:()=>Ei,OutliningElementsCollector:()=>$_e,OutliningSpanKind:()=>$G,OutputFileType:()=>HG,PackageJsonAutoImportPreference:()=>AG,PackageJsonDependencyGroup:()=>PG,PatternMatchKind:()=>o1,PollingInterval:()=>Bi,PollingWatchKind:()=>di,PragmaKindFlags:()=>Ii,PredicateSemantics:()=>yr,PreparePasteEdits:()=>Ffe,PrivateIdentifierKind:()=>cD,ProcessLevel:()=>Yz,ProgramUpdateLevel:()=>LU,QuotePreference:()=>dY,RegularExpressionFlags:()=>br,RelationComparisonResult:()=>hr,Rename:()=>tue,ScriptElementKind:()=>XG,ScriptElementKindModifier:()=>QG,ScriptKind:()=>hi,ScriptSnapshot:()=>TG,ScriptTarget:()=>yi,SemanticClassificationFormat:()=>LG,SemanticMeaning:()=>tX,SemicolonPreference:()=>zG,SignatureCheckMode:()=>rJ,SignatureFlags:()=>Zr,SignatureHelp:()=>cue,SignatureInfo:()=>oW,SignatureKind:()=>Yr,SmartSelectionRange:()=>Oue,SnippetKind:()=>Ti,StatisticType:()=>fK,StructureIsReused:()=>Nr,SymbolAccessibility:()=>Mr,SymbolDisplay:()=>Wue,SymbolDisplayPartKind:()=>VG,SymbolFlags:()=>zr,SymbolFormatFlags:()=>Rr,SyntaxKind:()=>pr,Ternary:()=>ii,ThrottledCancellationToken:()=>a7,TokenClass:()=>GG,TokenFlags:()=>xr,TransformFlags:()=>Si,TypeFacts:()=>eJ,TypeFlags:()=>Wr,TypeFormatFlags:()=>jr,TypeMapKind:()=>ti,TypePredicateKind:()=>Br,TypeReferenceSerializationKind:()=>Jr,UnionReduction:()=>Pr,UpToDateStatusType:()=>eH,VarianceFlags:()=>Hr,Version:()=>vn,VersionRange:()=>xn,WatchDirectoryFlags:()=>bi,WatchDirectoryKind:()=>ui,WatchFileKind:()=>_i,WatchLogLevel:()=>UU,WatchType:()=>M$,accessPrivateIdentifier:()=>Dz,addEmitFlags:()=>ww,addEmitHelper:()=>$w,addEmitHelpers:()=>Hw,addInternalEmitFlags:()=>Nw,addNodeFactoryPatcher:()=>sw,addObjectAllocatorPatcher:()=>zx,addRange:()=>ae,addRelatedInfo:()=>cT,addSyntheticLeadingComment:()=>Bw,addSyntheticTrailingComment:()=>qw,addToSeen:()=>kx,advancedAsyncSuperHelper:()=>UD,affectsDeclarationPathOptionDeclarations:()=>UO,affectsEmitOptionDeclarations:()=>qO,allKeysStartWithDot:()=>wM,altDirectorySeparator:()=>uo,and:()=>Yt,append:()=>re,appendIfUnique:()=>ce,arrayFrom:()=>Ie,arrayIsEqualTo:()=>ee,arrayIsHomogeneous:()=>TT,arrayOf:()=>Ae,arrayReverseIterator:()=>_e,arrayToMap:()=>je,arrayToMultiMap:()=>Me,arrayToNumericMap:()=>Re,assertType:()=>tn,assign:()=>Oe,asyncSuperHelper:()=>qD,attachFileToDiagnostics:()=>Xx,base64decode:()=>wb,base64encode:()=>Cb,binarySearch:()=>Se,binarySearchKey:()=>Te,bindSourceFile:()=>oB,breakIntoCharacterSpans:()=>k1,breakIntoWordSpans:()=>S1,buildLinkParts:()=>XY,buildOpts:()=>eL,buildOverload:()=>zfe,bundlerModuleNameResolver:()=>QR,canBeConvertedToAsync:()=>H1,canHaveDecorators:()=>EI,canHaveExportModifier:()=>HT,canHaveFlowNode:()=>Lg,canHaveIllegalDecorators:()=>XA,canHaveIllegalModifiers:()=>QA,canHaveIllegalType:()=>KA,canHaveIllegalTypeParameters:()=>GA,canHaveJSDoc:()=>jg,canHaveLocals:()=>cu,canHaveModifiers:()=>FI,canHaveModuleSpecifier:()=>yg,canHaveStatements:()=>XC,canHaveSymbol:()=>su,canIncludeBindAndCheckDiagnostics:()=>mT,canJsonReportNoInputFiles:()=>Sj,canProduceDiagnostics:()=>Aq,canUsePropertyAccess:()=>GT,canWatchAffectingLocation:()=>i$,canWatchAtTypes:()=>t$,canWatchDirectoryOrFile:()=>ZW,canWatchDirectoryOrFilePath:()=>e$,cartesianProduct:()=>on,cast:()=>tt,chainBundle:()=>ZJ,chainDiagnosticMessages:()=>tk,changeAnyExtension:()=>Ko,changeCompilerHostLikeToUseCache:()=>eV,changeExtension:()=>KS,changeFullExtension:()=>Go,changesAffectModuleResolution:()=>ed,changesAffectingProgramStructure:()=>td,characterCodeToRegularExpressionFlag:()=>Oa,childIsDecorated:()=>mm,classElementOrClassElementParameterIsDecorated:()=>hm,classHasClassThisAssignment:()=>qz,classHasDeclaredOrExplicitlyAssignedName:()=>Kz,classHasExplicitlyAssignedName:()=>Hz,classOrConstructorParameterIsDecorated:()=>gm,classicNameResolver:()=>WM,classifier:()=>j7,cleanExtendedConfigCache:()=>MU,clear:()=>D,clearMap:()=>px,clearSharedExtendedConfigFileWatcher:()=>RU,climbPastPropertyAccess:()=>mX,clone:()=>ze,cloneCompilerOptions:()=>jQ,closeFileWatcher:()=>ix,closeFileWatcherOf:()=>$U,codefix:()=>M7,collapseTextChangeRangesAcrossMultipleVersions:()=>Ys,collectExternalModuleInfo:()=>rz,combine:()=>ie,combinePaths:()=>Ro,commandLineOptionOfCustomType:()=>XO,commentPragmas:()=>Oi,commonOptionsWithBuild:()=>jO,compact:()=>te,compareBooleans:()=>It,compareComparableValues:()=>ht,compareDataObjects:()=>dx,compareDiagnostics:()=>ik,compareEmitHelpers:()=>_D,compareNumberOfDirectorySeparators:()=>US,comparePaths:()=>ea,comparePathsCaseInsensitive:()=>Zo,comparePathsCaseSensitive:()=>Yo,comparePatternKeys:()=>NM,compareProperties:()=>At,compareStringsCaseInsensitive:()=>kt,compareStringsCaseInsensitiveEslintCompatible:()=>St,compareStringsCaseSensitive:()=>Tt,compareStringsCaseSensitiveUI:()=>Pt,compareTextSpans:()=>vt,compareValues:()=>yt,compilerOptionsAffectDeclarationPath:()=>Hk,compilerOptionsAffectEmit:()=>$k,compilerOptionsAffectSemanticDiagnostics:()=>Wk,compilerOptionsDidYouMeanDiagnostics:()=>mL,compilerOptionsIndicateEsModules:()=>aY,computeCommonSourceDirectoryOfFilenames:()=>GU,computeLineAndCharacterOfPosition:()=>Ba,computeLineOfPosition:()=>Ja,computeLineStarts:()=>La,computePositionOfLineAndCharacter:()=>Ra,computeSignatureWithDiagnostics:()=>MW,computeSuggestionDiagnostics:()=>R1,computedOptions:()=>vk,concatenate:()=>$,concatenateDiagnosticMessageChains:()=>nk,consumesNodeCoreModules:()=>WZ,contains:()=>k,containsIgnoredPath:()=>LT,containsObjectRestOrSpread:()=>DI,containsParseError:()=>vd,containsPath:()=>ta,convertCompilerOptionsForTelemetry:()=>tR,convertCompilerOptionsFromJson:()=>Nj,convertJsonOption:()=>jj,convertToBase64:()=>Tb,convertToJson:()=>$L,convertToObject:()=>WL,convertToOptionsWithAbsolutePaths:()=>ij,convertToRelativePath:()=>oa,convertToTSConfig:()=>GL,convertTypeAcquisitionFromJson:()=>Fj,copyComments:()=>uZ,copyEntries:()=>ad,copyLeadingComments:()=>fZ,copyProperties:()=>Ue,copyTrailingAsLeadingComments:()=>gZ,copyTrailingComments:()=>mZ,couldStartTrivia:()=>Qa,countWhere:()=>T,createAbstractBuilder:()=>XW,createAccessorPropertyBackingField:()=>xI,createAccessorPropertyGetRedirector:()=>kI,createAccessorPropertySetRedirector:()=>SI,createBaseNodeFactory:()=>YC,createBinaryExpressionTrampoline:()=>fI,createBuilderProgram:()=>BW,createBuilderProgramUsingIncrementalBuildInfo:()=>VW,createBuilderStatusReporter:()=>sH,createCacheableExportInfoMap:()=>v0,createCachedDirectoryStructureHost:()=>OU,createClassifier:()=>P0,createCommentDirectivesMap:()=>zd,createCompilerDiagnostic:()=>Zx,createCompilerDiagnosticForInvalidCustomType:()=>aL,createCompilerDiagnosticFromMessageChain:()=>ek,createCompilerHost:()=>XU,createCompilerHostFromProgramHost:()=>J$,createCompilerHostWorker:()=>ZU,createDetachedDiagnostic:()=>Hx,createDiagnosticCollection:()=>uy,createDiagnosticForFileFromMessageChain:()=>Wp,createDiagnosticForNode:()=>Mp,createDiagnosticForNodeArray:()=>Bp,createDiagnosticForNodeArrayFromMessageChain:()=>qp,createDiagnosticForNodeFromMessageChain:()=>zp,createDiagnosticForNodeInSourceFile:()=>Jp,createDiagnosticForRange:()=>Hp,createDiagnosticMessageChainFromDiagnostic:()=>$p,createDiagnosticReporter:()=>m$,createDocumentPositionMapper:()=>KJ,createDocumentRegistry:()=>H0,createDocumentRegistryInternal:()=>K0,createEmitAndSemanticDiagnosticsBuilderProgram:()=>GW,createEmitHelperFactory:()=>lD,createEmptyExports:()=>cA,createEvaluator:()=>yC,createExpressionForJsxElement:()=>pA,createExpressionForJsxFragment:()=>fA,createExpressionForObjectLiteralElementLike:()=>yA,createExpressionForPropertyName:()=>hA,createExpressionFromEntityName:()=>gA,createExternalHelpersImportDeclarationIfNeeded:()=>jA,createFileDiagnostic:()=>Qx,createFileDiagnosticFromMessageChain:()=>Vp,createFlowNode:()=>rB,createForOfBindingStatement:()=>mA,createFutureSourceFile:()=>g0,createGetCanonicalFileName:()=>Vt,createGetIsolatedDeclarationErrors:()=>Lq,createGetSourceFile:()=>QU,createGetSymbolAccessibilityDiagnosticForNode:()=>Oq,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Iq,createGetSymbolWalker:()=>_B,createIncrementalCompilerHost:()=>X$,createIncrementalProgram:()=>Q$,createJsxFactoryExpression:()=>dA,createLanguageService:()=>l7,createLanguageServiceSourceFile:()=>n7,createMemberAccessForPropertyName:()=>lA,createModeAwareCache:()=>jR,createModeAwareCacheKey:()=>LR,createModeMismatchDetails:()=>fd,createModuleNotFoundChain:()=>pd,createModuleResolutionCache:()=>zR,createModuleResolutionLoader:()=>DV,createModuleResolutionLoaderUsingGlobalCache:()=>u$,createModuleSpecifierResolutionHost:()=>sY,createMultiMap:()=>We,createNameResolver:()=>xC,createNodeConverters:()=>tw,createNodeFactory:()=>cw,createOptionNameMap:()=>nL,createOverload:()=>Jfe,createPackageJsonImportFilter:()=>VZ,createPackageJsonInfo:()=>UZ,createParenthesizerRules:()=>ZC,createPatternMatcher:()=>s1,createPrinter:()=>EU,createPrinterWithDefaults:()=>wU,createPrinterWithRemoveComments:()=>DU,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>NU,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>FU,createProgram:()=>UV,createProgramDiagnostics:()=>nW,createProgramHost:()=>U$,createPropertyNameNodeForIdentifierOrLiteral:()=>UT,createQueue:()=>Ke,createRange:()=>Ob,createRedirectedBuilderProgram:()=>HW,createResolutionCache:()=>d$,createRuntimeTypeSerializer:()=>aq,createScanner:()=>hs,createSemanticDiagnosticsBuilderProgram:()=>KW,createSet:()=>Ge,createSolutionBuilder:()=>uH,createSolutionBuilderHost:()=>lH,createSolutionBuilderWithWatch:()=>dH,createSolutionBuilderWithWatchHost:()=>_H,createSortedArray:()=>Q,createSourceFile:()=>sO,createSourceMapGenerator:()=>PJ,createSourceMapSource:()=>bw,createSuperAccessVariableStatement:()=>_q,createSymbolTable:()=>Xu,createSymlinkCache:()=>Zk,createSyntacticTypeNodeBuilder:()=>tG,createSystemWatchFunctions:()=>ao,createTextChange:()=>KQ,createTextChangeFromStartLength:()=>HQ,createTextChangeRange:()=>Xs,createTextRangeFromNode:()=>VQ,createTextRangeFromSpan:()=>$Q,createTextSpan:()=>$s,createTextSpanFromBounds:()=>Hs,createTextSpanFromNode:()=>qQ,createTextSpanFromRange:()=>WQ,createTextSpanFromStringLiteralLikeContent:()=>UQ,createTextWriter:()=>Ly,createTokenRange:()=>Bb,createTypeChecker:()=>uJ,createTypeReferenceDirectiveResolutionCache:()=>qR,createTypeReferenceResolutionLoader:()=>EV,createWatchCompilerHost:()=>Y$,createWatchCompilerHostOfConfigFile:()=>$$,createWatchCompilerHostOfFilesAndCompilerOptions:()=>H$,createWatchFactory:()=>B$,createWatchHost:()=>R$,createWatchProgram:()=>Z$,createWatchStatusReporter:()=>v$,createWriteFileMeasuringIO:()=>YU,declarationNameToString:()=>Ap,decodeMappings:()=>BJ,decodedTextSpanIntersectsWith:()=>zs,deduplicate:()=>X,defaultHoverMaximumTruncationLength:()=>Hu,defaultInitCompilerOptions:()=>oL,defaultMaximumTruncationLength:()=>Wu,diagnosticCategoryName:()=>si,diagnosticToString:()=>l0,diagnosticsEqualityComparer:()=>ck,directoryProbablyExists:()=>Eb,directorySeparator:()=>_o,displayPart:()=>RY,displayPartsToString:()=>Q8,disposeEmitNodes:()=>Sw,documentSpansEqual:()=>DY,dumpTracingLegend:()=>dr,elementAt:()=>de,elideNodes:()=>gI,emitDetachedComments:()=>kv,emitFiles:()=>kU,emitFilesAndReportErrors:()=>I$,emitFilesAndReportErrorsAndGetExitStatus:()=>O$,emitModuleKindIsNonNodeESM:()=>Mk,emitNewLineBeforeLeadingCommentOfPosition:()=>xv,emitResolverSkipsTypeChecking:()=>xU,emitSkippedWithNoDiagnostics:()=>KV,emptyArray:()=>s,emptyFileSystemEntries:()=>oT,emptyMap:()=>c,emptyOptions:()=>OG,endsWith:()=>jt,ensurePathIsNonModuleName:()=>Ho,ensureScriptKind:()=>kS,ensureTrailingDirectorySeparator:()=>$o,entityNameToString:()=>Rp,enumerateInsertsAndDeletes:()=>rn,equalOwnProperties:()=>Le,equateStringsCaseInsensitive:()=>mt,equateStringsCaseSensitive:()=>gt,equateValues:()=>ft,escapeJsxAttributeString:()=>Fy,escapeLeadingUnderscores:()=>mc,escapeNonAsciiString:()=>Ty,escapeSnippetText:()=>zT,escapeString:()=>ky,escapeTemplateSubstitution:()=>py,evaluatorResult:()=>hC,every:()=>h,exclusivelyPrefixedNodeCoreModules:()=>NC,executeCommandLine:()=>PK,expandPreOrPostfixIncrementOrDecrementExpression:()=>vA,explainFiles:()=>D$,explainIfFileIsRedirectAndImpliedFormat:()=>N$,exportAssignmentIsAlias:()=>gh,expressionResultIsUnused:()=>OT,extend:()=>qe,extensionFromPath:()=>tT,extensionIsTS:()=>ZS,extensionsNotSupportingExtensionlessResolution:()=>IS,externalHelpersModuleNameText:()=>Vu,factory:()=>vw,fileExtensionIs:()=>So,fileExtensionIsOneOf:()=>To,fileIncludeReasonToDiagnostics:()=>P$,fileShouldUseJavaScriptRequire:()=>f0,filter:()=>C,filterMutate:()=>w,filterSemanticDiagnostics:()=>XV,find:()=>y,findAncestor:()=>dc,findBestPatternMatch:()=>Ht,findChildOfKind:()=>$X,findComputedPropertyNameCacheAssignment:()=>TI,findConfigFile:()=>HU,findConstructorDeclaration:()=>bC,findContainingList:()=>HX,findDiagnosticForNode:()=>KZ,findFirstNonJsxWhitespaceToken:()=>cQ,findIndex:()=>b,findLast:()=>v,findLastIndex:()=>x,findListItemInfo:()=>VX,findModifier:()=>SY,findNextToken:()=>_Q,findPackageJson:()=>qZ,findPackageJsons:()=>zZ,findPrecedingMatchingToken:()=>xQ,findPrecedingToken:()=>uQ,findSuperStatementIndexPath:()=>fz,findTokenOnLeftOfPosition:()=>lQ,findUseStrictPrologue:()=>TA,first:()=>me,firstDefined:()=>d,firstDefinedIterator:()=>p,firstIterator:()=>ge,firstOrOnly:()=>ZZ,firstOrUndefined:()=>pe,firstOrUndefinedIterator:()=>fe,fixupCompilerOptions:()=>r2,flatMap:()=>A,flatMapIterator:()=>O,flatMapToMutable:()=>I,flatten:()=>P,flattenCommaList:()=>wI,flattenDestructuringAssignment:()=>Az,flattenDestructuringBinding:()=>Lz,flattenDiagnosticMessageText:()=>gV,forEach:()=>_,forEachAncestor:()=>rd,forEachAncestorDirectory:()=>ca,forEachAncestorDirectoryStoppingAtGlobalCache:()=>OM,forEachChild:()=>rO,forEachChildRecursively:()=>iO,forEachDynamicImportOrRequireCall:()=>EC,forEachEmittedFile:()=>tU,forEachEnclosingBlockScopeContainer:()=>Pp,forEachEntry:()=>id,forEachExternalModuleToImportFrom:()=>k0,forEachImportClauseDeclaration:()=>wg,forEachKey:()=>od,forEachLeadingCommentRange:()=>as,forEachNameInAccessChainWalkingLeft:()=>Fx,forEachNameOfDefaultExport:()=>E0,forEachOptionsSyntaxByName:()=>BC,forEachProjectReference:()=>jC,forEachPropertyAssignment:()=>Vf,forEachResolvedProjectReference:()=>LC,forEachReturnStatement:()=>Nf,forEachRight:()=>u,forEachTrailingCommentRange:()=>ss,forEachTsConfigPropArray:()=>Hf,forEachUnique:()=>FY,forEachYieldExpression:()=>Ff,formatColorAndReset:()=>dV,formatDiagnostic:()=>rV,formatDiagnostics:()=>nV,formatDiagnosticsWithColorAndContext:()=>mV,formatGeneratedName:()=>bI,formatGeneratedNamePart:()=>yI,formatLocation:()=>fV,formatMessage:()=>Yx,formatStringFromArgs:()=>Ux,formatting:()=>Fde,generateDjb2Hash:()=>ji,generateTSConfig:()=>rj,getAdjustedReferenceLocation:()=>nQ,getAdjustedRenameLocation:()=>rQ,getAliasDeclarationFromName:()=>fh,getAllAccessorDeclarations:()=>fv,getAllDecoratorsOfClass:()=>xz,getAllDecoratorsOfClassElement:()=>kz,getAllJSDocTags:()=>cl,getAllJSDocTagsOfKind:()=>ll,getAllKeys:()=>Ee,getAllProjectOutputs:()=>yU,getAllSuperTypeNodes:()=>kh,getAllowImportingTsExtensions:()=>bk,getAllowJSCompilerOption:()=>Lk,getAllowSyntheticDefaultImports:()=>Dk,getAlwaysStrict:()=>Rk,getAncestor:()=>Ch,getAnyExtensionFromPath:()=>Ao,getAreDeclarationMapsEnabled:()=>Ok,getAssignedExpandoInitializer:()=>Hm,getAssignedName:()=>Dc,getAssignmentDeclarationKind:()=>ng,getAssignmentDeclarationPropertyAccessKind:()=>dg,getAssignmentTargetKind:()=>Qg,getAutomaticTypeDirectiveNames:()=>NR,getBaseFileName:()=>Eo,getBinaryOperatorPrecedence:()=>ly,getBuildInfo:()=>TU,getBuildInfoFileVersionMap:()=>WW,getBuildInfoText:()=>SU,getBuildOrderFromAnyBuildOrder:()=>aH,getBuilderCreationParameters:()=>jW,getBuilderFileEmit:()=>cW,getCanonicalDiagnostic:()=>Kp,getCheckFlags:()=>ox,getClassExtendsHeritageElement:()=>bh,getClassLikeDeclarationOfSymbol:()=>hx,getCombinedLocalAndExportSymbolFlags:()=>cx,getCombinedModifierFlags:()=>oc,getCombinedNodeFlags:()=>sc,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>ac,getCommentRange:()=>Lw,getCommonSourceDirectory:()=>mU,getCommonSourceDirectoryOfConfig:()=>hU,getCompilerOptionValue:()=>Kk,getComputedCommonSourceDirectory:()=>gU,getConditions:()=>wR,getConfigFileParsingDiagnostics:()=>BV,getConstantValue:()=>Vw,getContainerFlags:()=>cB,getContainerNode:()=>FX,getContainingClass:()=>Xf,getContainingClassExcludingClassDecorators:()=>Zf,getContainingClassStaticBlock:()=>Qf,getContainingFunction:()=>Kf,getContainingFunctionDeclaration:()=>Gf,getContainingFunctionOrClassStaticBlock:()=>Yf,getContainingNodeArray:()=>jT,getContainingObjectLiteralElement:()=>u7,getContextualTypeFromParent:()=>bZ,getContextualTypeFromParentOrAncestorTypeNode:()=>QX,getDeclarationDiagnostics:()=>jq,getDeclarationEmitExtensionForPath:()=>$y,getDeclarationEmitOutputFilePath:()=>Vy,getDeclarationEmitOutputFilePathWorker:()=>Wy,getDeclarationFileExtension:()=>vO,getDeclarationFromName:()=>uh,getDeclarationModifierFlagsFromSymbol:()=>ax,getDeclarationOfKind:()=>Ku,getDeclarationsOfKind:()=>Gu,getDeclaredExpandoInitializer:()=>$m,getDecorators:()=>Nc,getDefaultCompilerOptions:()=>Y8,getDefaultFormatCodeSettings:()=>qG,getDefaultLibFileName:()=>Fs,getDefaultLibFilePath:()=>p7,getDefaultLikeExportInfo:()=>N0,getDefaultLikeExportNameFromDeclaration:()=>t0,getDefaultResolutionModeForFileWorker:()=>HV,getDiagnosticText:()=>kL,getDiagnosticsWithinSpan:()=>GZ,getDirectoryPath:()=>Fo,getDirectoryToWatchFailedLookupLocation:()=>o$,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>c$,getDocumentPositionMapper:()=>O1,getDocumentSpansEqualityComparer:()=>NY,getESModuleInterop:()=>wk,getEditsForFileRename:()=>Q0,getEffectiveBaseTypeNode:()=>vh,getEffectiveConstraintOfTypeParameter:()=>dl,getEffectiveContainerForJSDocTemplateTag:()=>zg,getEffectiveImplementsTypeNodes:()=>xh,getEffectiveInitializer:()=>Wm,getEffectiveJSDocHost:()=>Vg,getEffectiveModifierFlags:()=>zv,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>qv,getEffectiveModifierFlagsNoCache:()=>$v,getEffectiveReturnTypeNode:()=>hv,getEffectiveSetAccessorTypeAnnotationNode:()=>vv,getEffectiveTypeAnnotationNode:()=>mv,getEffectiveTypeParameterDeclarations:()=>ul,getEffectiveTypeRoots:()=>vR,getElementOrPropertyAccessArgumentExpressionOrName:()=>_g,getElementOrPropertyAccessName:()=>ug,getElementsOfBindingOrAssignmentPattern:()=>$A,getEmitDeclarations:()=>Pk,getEmitFlags:()=>Zd,getEmitHelpers:()=>Gw,getEmitModuleDetectionKind:()=>Tk,getEmitModuleFormatOfFileWorker:()=>WV,getEmitModuleKind:()=>kk,getEmitModuleResolutionKind:()=>Sk,getEmitScriptTarget:()=>xk,getEmitStandardClassFields:()=>Vk,getEnclosingBlockScopeContainer:()=>Ep,getEnclosingContainer:()=>Fp,getEncodedSemanticClassifications:()=>J0,getEncodedSyntacticClassifications:()=>W0,getEndLinePosition:()=>wd,getEntityNameFromTypeNode:()=>_m,getEntrypointsFromPackageJsonInfo:()=>gM,getErrorCountForSummary:()=>x$,getErrorSpanForNode:()=>Qp,getErrorSummaryText:()=>C$,getEscapedTextOfIdentifierOrLiteral:()=>Vh,getEscapedTextOfJsxAttributeName:()=>rC,getEscapedTextOfJsxNamespacedName:()=>aC,getExpandoInitializer:()=>Km,getExportAssignmentExpression:()=>hh,getExportInfoMap:()=>D0,getExportNeedsImportStarHelper:()=>ez,getExpressionAssociativity:()=>ry,getExpressionPrecedence:()=>oy,getExternalHelpersModuleName:()=>OA,getExternalModuleImportEqualsDeclarationExpression:()=>Cm,getExternalModuleName:()=>Sg,getExternalModuleNameFromDeclaration:()=>zy,getExternalModuleNameFromPath:()=>qy,getExternalModuleNameLiteral:()=>MA,getExternalModuleRequireArgument:()=>wm,getFallbackOptions:()=>WU,getFileEmitOutput:()=>rW,getFileMatcherPatterns:()=>hS,getFileNamesFromConfigSpecs:()=>Uj,getFileWatcherEventKind:()=>Qi,getFilesInErrorForSummary:()=>k$,getFirstConstructorWithBody:()=>ov,getFirstIdentifier:()=>lb,getFirstNonSpaceCharacterPosition:()=>lZ,getFirstProjectOutput:()=>bU,getFixableErrorSpanExpression:()=>QZ,getFormatCodeSettingsForWriting:()=>_0,getFullWidth:()=>cd,getFunctionFlags:()=>Lh,getHeritageClause:()=>Th,getHostSignatureFromJSDoc:()=>Ug,getIdentifierAutoGenerate:()=>oD,getIdentifierGeneratedImportReference:()=>sD,getIdentifierTypeArguments:()=>rD,getImmediatelyInvokedFunctionExpression:()=>om,getImpliedNodeFormatForEmitWorker:()=>$V,getImpliedNodeFormatForFile:()=>JV,getImpliedNodeFormatForFileWorker:()=>zV,getImportNeedsImportDefaultHelper:()=>nz,getImportNeedsImportStarHelper:()=>tz,getIndentString:()=>Iy,getInferredLibraryNameResolveFrom:()=>IV,getInitializedVariables:()=>tx,getInitializerOfBinaryExpression:()=>pg,getInitializerOfBindingOrAssignmentElement:()=>JA,getInterfaceBaseTypeNodes:()=>Sh,getInternalEmitFlags:()=>ep,getInvokedExpression:()=>um,getIsFileExcluded:()=>w0,getIsolatedModules:()=>Ck,getJSDocAugmentsTag:()=>Rc,getJSDocClassTag:()=>Bc,getJSDocCommentRanges:()=>vf,getJSDocCommentsAndTags:()=>Rg,getJSDocDeprecatedTag:()=>Gc,getJSDocDeprecatedTagNoCache:()=>Xc,getJSDocEnumTag:()=>Qc,getJSDocHost:()=>Wg,getJSDocImplementsTags:()=>Mc,getJSDocOverloadTags:()=>qg,getJSDocOverrideTagNoCache:()=>Kc,getJSDocParameterTags:()=>Pc,getJSDocParameterTagsNoCache:()=>Ac,getJSDocPrivateTag:()=>qc,getJSDocPrivateTagNoCache:()=>Uc,getJSDocProtectedTag:()=>Vc,getJSDocProtectedTagNoCache:()=>Wc,getJSDocPublicTag:()=>Jc,getJSDocPublicTagNoCache:()=>zc,getJSDocReadonlyTag:()=>$c,getJSDocReadonlyTagNoCache:()=>Hc,getJSDocReturnTag:()=>Zc,getJSDocReturnType:()=>il,getJSDocRoot:()=>$g,getJSDocSatisfiesExpressionType:()=>tC,getJSDocSatisfiesTag:()=>tl,getJSDocTags:()=>al,getJSDocTemplateTag:()=>el,getJSDocThisTag:()=>Yc,getJSDocType:()=>rl,getJSDocTypeAliasName:()=>HA,getJSDocTypeAssertionType:()=>FA,getJSDocTypeParameterDeclarations:()=>yv,getJSDocTypeParameterTags:()=>Oc,getJSDocTypeParameterTagsNoCache:()=>Lc,getJSDocTypeTag:()=>nl,getJSXImplicitImportBase:()=>Xk,getJSXRuntimeImport:()=>Qk,getJSXTransformEnabled:()=>Gk,getKeyForCompilerOptions:()=>AR,getLanguageVariant:()=>uk,getLastChild:()=>xx,getLeadingCommentRanges:()=>us,getLeadingCommentRangesOfNode:()=>yf,getLeftmostAccessExpression:()=>Nx,getLeftmostExpression:()=>Ex,getLibFileNameFromLibReference:()=>OC,getLibNameFromLibReference:()=>IC,getLibraryNameFromLibFileName:()=>OV,getLineAndCharacterOfPosition:()=>qa,getLineInfo:()=>LJ,getLineOfLocalPosition:()=>rv,getLineStartPositionForPosition:()=>IX,getLineStarts:()=>Ma,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Qb,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Xb,getLinesBetweenPositions:()=>za,getLinesBetweenRangeEndAndRangeStart:()=>Wb,getLinesBetweenRangeEndPositions:()=>$b,getLiteralText:()=>rp,getLocalNameForExternalImport:()=>RA,getLocalSymbolForExportDefault:()=>xb,getLocaleSpecificMessage:()=>$x,getLocaleTimeString:()=>y$,getMappedContextSpan:()=>IY,getMappedDocumentSpan:()=>AY,getMappedLocation:()=>PY,getMatchedFileSpec:()=>F$,getMatchedIncludeSpec:()=>E$,getMeaningFromDeclaration:()=>nX,getMeaningFromLocation:()=>rX,getMembersOfDeclaration:()=>Pf,getModeForFileReference:()=>hV,getModeForResolutionAtIndex:()=>yV,getModeForUsageLocation:()=>bV,getModifiedTime:()=>zi,getModifiers:()=>Fc,getModuleInstanceState:()=>ZM,getModuleNameStringLiteralAt:()=>tW,getModuleSpecifierEndingPreference:()=>JS,getModuleSpecifierOfBareOrAccessedRequire:()=>Bm,getModuleSpecifierResolverHost:()=>cY,getNameForExportedSymbol:()=>e0,getNameFromImportAttribute:()=>mC,getNameFromIndexInfo:()=>Ip,getNameFromPropertyName:()=>rY,getNameOfAccessExpression:()=>wx,getNameOfCompilerOptionValue:()=>ej,getNameOfDeclaration:()=>wc,getNameOfExpando:()=>Xm,getNameOfJSDocTypedef:()=>Sc,getNameOfScriptTarget:()=>Uk,getNameOrArgument:()=>lg,getNameTable:()=>_7,getNamespaceDeclarationNode:()=>Tg,getNewLineCharacter:()=>Ib,getNewLineKind:()=>c0,getNewLineOrDefaultFromHost:()=>YY,getNewTargetContainer:()=>rm,getNextJSDocCommentLocation:()=>Bg,getNodeChildren:()=>iA,getNodeForGeneratedName:()=>hI,getNodeId:()=>cJ,getNodeKind:()=>EX,getNodeModifiers:()=>NQ,getNodeModulePathParts:()=>WT,getNonAssignedNameOfDeclaration:()=>Cc,getNonAssignmentOperatorForCompoundAssignment:()=>uz,getNonAugmentationDeclaration:()=>gp,getNonDecoratorTokenPosOfNode:()=>Ud,getNonIncrementalBuildInfoRoots:()=>$W,getNormalizedAbsolutePath:()=>Jo,getNormalizedAbsolutePathWithoutRoot:()=>Uo,getNormalizedPathComponents:()=>Bo,getObjectFlags:()=>yx,getOperatorAssociativity:()=>iy,getOperatorPrecedence:()=>cy,getOptionFromName:()=>hL,getOptionsForLibraryResolution:()=>UR,getOptionsNameMap:()=>rL,getOptionsSyntaxByArrayElementValue:()=>RC,getOptionsSyntaxByValue:()=>MC,getOrCreateEmitNode:()=>kw,getOrUpdate:()=>B,getOriginalNode:()=>uc,getOriginalNodeId:()=>XJ,getOutputDeclarationFileName:()=>cU,getOutputDeclarationFileNameWorker:()=>lU,getOutputExtension:()=>aU,getOutputFileNames:()=>vU,getOutputJSFileNameWorker:()=>uU,getOutputPathsFor:()=>iU,getOwnEmitOutputFilePath:()=>Uy,getOwnKeys:()=>Fe,getOwnValues:()=>Pe,getPackageJsonTypesVersionsPaths:()=>yR,getPackageNameFromTypesPackageName:()=>qM,getPackageScopeForPath:()=>vM,getParameterSymbolFromJSDoc:()=>Jg,getParentNodeInSpan:()=>xY,getParseTreeNode:()=>fc,getParsedCommandLineOfConfigFile:()=>SL,getPathComponents:()=>Io,getPathFromPathComponents:()=>Oo,getPathUpdater:()=>Y0,getPathsBasePath:()=>Gy,getPatternFromSpec:()=>fS,getPendingEmitKindWithSeen:()=>bW,getPositionOfLineAndCharacter:()=>ja,getPossibleGenericSignatures:()=>SQ,getPossibleOriginalInputExtensionForExtension:()=>Hy,getPossibleOriginalInputPathWithoutChangingExt:()=>Ky,getPossibleTypeArgumentsInfo:()=>TQ,getPreEmitDiagnostics:()=>tV,getPrecedingNonSpaceCharacterPosition:()=>_Z,getPrivateIdentifier:()=>Cz,getProperties:()=>mz,getProperty:()=>Ne,getPropertyAssignmentAliasLikeExpression:()=>yh,getPropertyNameForPropertyNameNode:()=>zh,getPropertyNameFromType:()=>_C,getPropertyNameOfBindingOrAssignmentElement:()=>UA,getPropertySymbolFromBindingElement:()=>bY,getPropertySymbolsFromContextualType:()=>d7,getQuoteFromPreference:()=>mY,getQuotePreference:()=>fY,getRangesWhere:()=>W,getRefactorContextSpan:()=>XZ,getReferencedFileLocation:()=>RV,getRegexFromPattern:()=>yS,getRegularExpressionForWildcard:()=>uS,getRegularExpressionsForWildcards:()=>dS,getRelativePathFromDirectory:()=>ia,getRelativePathFromFile:()=>aa,getRelativePathToDirectoryOrUrl:()=>sa,getRenameLocation:()=>pZ,getReplacementSpanForContextToken:()=>zQ,getResolutionDiagnostic:()=>ZV,getResolutionModeOverride:()=>SV,getResolveJsonModule:()=>Ek,getResolvePackageJsonExports:()=>Nk,getResolvePackageJsonImports:()=>Fk,getResolvedExternalModuleName:()=>By,getResolvedModuleFromResolution:()=>ud,getResolvedTypeReferenceDirectiveFromResolution:()=>dd,getRestIndicatorOfBindingOrAssignmentElement:()=>qA,getRestParameterElementType:()=>Ef,getRightMostAssignedExpression:()=>Ym,getRootDeclaration:()=>Zh,getRootDirectoryOfResolutionCache:()=>l$,getRootLength:()=>No,getScriptKind:()=>oZ,getScriptKindFromFileName:()=>SS,getScriptTargetFeatures:()=>tp,getSelectedEffectiveModifierFlags:()=>Mv,getSelectedSyntacticModifierFlags:()=>Bv,getSemanticClassifications:()=>M0,getSemanticJsxChildren:()=>_y,getSetAccessorTypeAnnotationNode:()=>sv,getSetAccessorValueParameter:()=>av,getSetExternalModuleIndicator:()=>mk,getShebang:()=>ps,getSingleVariableOfVariableStatement:()=>Ig,getSnapshotText:()=>eY,getSnippetElement:()=>Qw,getSourceFileOfModule:()=>xd,getSourceFileOfNode:()=>bd,getSourceFilePathInNewDir:()=>Yy,getSourceFileVersionAsHashFromText:()=>z$,getSourceFilesToEmit:()=>Xy,getSourceMapRange:()=>Fw,getSourceMapper:()=>I1,getSourceTextOfNodeFromSourceFile:()=>Vd,getSpanOfTokenAtPosition:()=>Gp,getSpellingSuggestion:()=>Ot,getStartPositionOfLine:()=>Td,getStartPositionOfRange:()=>Gb,getStartsOnNewLine:()=>Iw,getStaticPropertiesAndClassStaticBlock:()=>hz,getStrictOptionValue:()=>qk,getStringComparer:()=>Ct,getSubPatternFromSpec:()=>mS,getSuperCallFromStatement:()=>dz,getSuperContainer:()=>im,getSupportedCodeFixes:()=>Z8,getSupportedExtensions:()=>OS,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>LS,getSwitchedType:()=>CZ,getSymbolId:()=>lJ,getSymbolNameForPrivateIdentifier:()=>Wh,getSymbolTarget:()=>aZ,getSyntacticClassifications:()=>V0,getSyntacticModifierFlags:()=>Uv,getSyntacticModifierFlagsNoCache:()=>Hv,getSynthesizedDeepClone:()=>JC,getSynthesizedDeepCloneWithReplacements:()=>zC,getSynthesizedDeepClones:()=>UC,getSynthesizedDeepClonesWithReplacements:()=>VC,getSyntheticLeadingComments:()=>Rw,getSyntheticTrailingComments:()=>Jw,getTargetLabel:()=>gX,getTargetOfBindingOrAssignmentElement:()=>zA,getTemporaryModuleResolutionState:()=>yM,getTextOfConstantValue:()=>ip,getTextOfIdentifierOrLiteral:()=>Uh,getTextOfJSDocComment:()=>_l,getTextOfJsxAttributeName:()=>iC,getTextOfJsxNamespacedName:()=>sC,getTextOfNode:()=>Xd,getTextOfNodeFromSourceText:()=>Gd,getTextOfPropertyName:()=>jp,getThisContainer:()=>em,getThisParameter:()=>cv,getTokenAtPosition:()=>aQ,getTokenPosOfNode:()=>qd,getTokenSourceMapRange:()=>Pw,getTouchingPropertyName:()=>iQ,getTouchingToken:()=>oQ,getTrailingCommentRanges:()=>ds,getTrailingSemicolonDeferringWriter:()=>jy,getTransformers:()=>Uq,getTsBuildInfoEmitOutputFilePath:()=>nU,getTsConfigObjectLiteralExpression:()=>Wf,getTsConfigPropArrayElementValue:()=>$f,getTypeAnnotationNode:()=>gv,getTypeArgumentOrTypeParameterList:()=>FQ,getTypeKeywordOfTypeOnlyImport:()=>CY,getTypeNode:()=>tD,getTypeNodeIfAccessible:()=>DZ,getTypeParameterFromJsDoc:()=>Hg,getTypeParameterOwner:()=>Zs,getTypesPackageName:()=>JM,getUILocale:()=>Ft,getUniqueName:()=>dZ,getUniqueSymbolId:()=>cZ,getUseDefineForClassFields:()=>jk,getWatchErrorSummaryDiagnosticMessage:()=>S$,getWatchFactory:()=>VU,group:()=>Be,groupBy:()=>Je,guessIndentation:()=>ju,handleNoEmitOptions:()=>GV,handleWatchOptionsConfigDirTemplateSubstitution:()=>pj,hasAbstractModifier:()=>Iv,hasAccessorModifier:()=>Lv,hasAmbientModifier:()=>Ov,hasChangesInResolutions:()=>yd,hasContextSensitiveParameters:()=>RT,hasDecorators:()=>Rv,hasDocComment:()=>wQ,hasDynamicName:()=>Bh,hasEffectiveModifier:()=>Nv,hasEffectiveModifiers:()=>wv,hasEffectiveReadonlyModifier:()=>jv,hasExtension:()=>ko,hasImplementationTSFileExtension:()=>MS,hasIndexSignature:()=>TZ,hasInferredType:()=>TC,hasInitializer:()=>Pu,hasInvalidEscape:()=>my,hasJSDocNodes:()=>Fu,hasJSDocParameterTags:()=>jc,hasJSFileExtension:()=>jS,hasJsonModuleEmitEnabled:()=>Bk,hasOnlyExpressionInitializer:()=>Au,hasOverrideModifier:()=>Av,hasPossibleExternalModuleReference:()=>Dp,hasProperty:()=>De,hasPropertyAccessExpressionWithName:()=>hX,hasQuestionToken:()=>Dg,hasRecordedExternalHelpers:()=>LA,hasResolutionModeOverride:()=>dC,hasRestParameter:()=>Bu,hasScopeMarker:()=>G_,hasStaticModifier:()=>Pv,hasSyntacticModifier:()=>Fv,hasSyntacticModifiers:()=>Dv,hasTSFileExtension:()=>RS,hasTabstop:()=>XT,hasTrailingDirectorySeparator:()=>Co,hasType:()=>Eu,hasTypeArguments:()=>Kg,hasZeroOrOneAsteriskCharacter:()=>Yk,hostGetCanonicalFileName:()=>My,hostUsesCaseSensitiveFileNames:()=>Ry,idText:()=>hc,identifierIsThisKeyword:()=>pv,identifierToKeywordKind:()=>yc,identity:()=>at,identitySourceMapConsumer:()=>GJ,ignoreSourceNewlines:()=>Zw,ignoredPaths:()=>Yi,importFromModuleSpecifier:()=>bg,importSyntaxAffectsModuleResolution:()=>gk,indexOfAnyCharCode:()=>S,indexOfNode:()=>Yd,indicesOf:()=>K,inferredTypesContainingFile:()=>AV,injectClassNamedEvaluationHelperBlockIfMissing:()=>Gz,injectClassThisAssignmentIfMissing:()=>Uz,insertImports:()=>TY,insertSorted:()=>Y,insertStatementAfterCustomPrologue:()=>Md,insertStatementAfterStandardPrologue:()=>Rd,insertStatementsAfterCustomPrologue:()=>jd,insertStatementsAfterStandardPrologue:()=>Ld,intersperse:()=>g,intrinsicTagNameToString:()=>cC,introducesArgumentsExoticObject:()=>Rf,inverseJsxOptionMap:()=>PO,isAbstractConstructorSymbol:()=>gx,isAbstractModifier:()=>vN,isAccessExpression:()=>Cx,isAccessibilityModifier:()=>LQ,isAccessor:()=>p_,isAccessorModifier:()=>xN,isAliasableExpression:()=>mh,isAmbientModule:()=>cp,isAmbientPropertyDeclaration:()=>vp,isAnyDirectorySeparator:()=>mo,isAnyImportOrBareOrAccessedRequire:()=>Tp,isAnyImportOrReExport:()=>Np,isAnyImportOrRequireStatement:()=>Cp,isAnyImportSyntax:()=>Sp,isAnySupportedFileExtension:()=>nT,isApplicableVersionedTypesKey:()=>PM,isArgumentExpressionOfElementAccess:()=>TX,isArray:()=>Xe,isArrayBindingElement:()=>C_,isArrayBindingOrAssignmentElement:()=>A_,isArrayBindingOrAssignmentPattern:()=>P_,isArrayBindingPattern:()=>dF,isArrayLiteralExpression:()=>fF,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>RQ,isArrayTypeNode:()=>HN,isArrowFunction:()=>TF,isAsExpression:()=>BF,isAssertClause:()=>NE,isAssertEntry:()=>FE,isAssertionExpression:()=>$_,isAssertsKeyword:()=>mN,isAssignmentDeclaration:()=>Vm,isAssignmentExpression:()=>ob,isAssignmentOperator:()=>nb,isAssignmentPattern:()=>T_,isAssignmentTarget:()=>Yg,isAsteriskToken:()=>iN,isAsyncFunction:()=>jh,isAsyncModifier:()=>fN,isAutoAccessorPropertyDeclaration:()=>f_,isAwaitExpression:()=>NF,isAwaitKeyword:()=>gN,isBigIntLiteral:()=>$D,isBinaryExpression:()=>PF,isBinaryLogicalOperator:()=>Xv,isBinaryOperatorToken:()=>sI,isBindableObjectDefinePropertyCall:()=>rg,isBindableStaticAccessExpression:()=>ag,isBindableStaticElementAccessExpression:()=>sg,isBindableStaticNameExpression:()=>cg,isBindingElement:()=>pF,isBindingElementOfBareOrAccessedRequire:()=>Mm,isBindingName:()=>r_,isBindingOrAssignmentElement:()=>D_,isBindingOrAssignmentPattern:()=>N_,isBindingPattern:()=>S_,isBlock:()=>KF,isBlockLike:()=>m0,isBlockOrCatchScoped:()=>ap,isBlockScope:()=>bp,isBlockScopedContainerTopLevel:()=>dp,isBooleanLiteral:()=>s_,isBreakOrContinueStatement:()=>wl,isBreakStatement:()=>oE,isBuildCommand:()=>EK,isBuildInfoFile:()=>eU,isBuilderProgram:()=>w$,isBundle:()=>dP,isCallChain:()=>hl,isCallExpression:()=>yF,isCallExpressionTarget:()=>oX,isCallLikeExpression:()=>j_,isCallLikeOrFunctionLikeExpression:()=>L_,isCallOrNewExpression:()=>R_,isCallOrNewExpressionTarget:()=>sX,isCallSignatureDeclaration:()=>MN,isCallToHelper:()=>VD,isCaseBlock:()=>kE,isCaseClause:()=>rP,isCaseKeyword:()=>TN,isCaseOrDefaultClause:()=>Su,isCatchClause:()=>aP,isCatchClauseVariableDeclaration:()=>BT,isCatchClauseVariableDeclarationOrBindingElement:()=>sp,isCheckJsEnabledForFile:()=>iT,isCircularBuildOrder:()=>oH,isClassDeclaration:()=>gE,isClassElement:()=>u_,isClassExpression:()=>jF,isClassInstanceProperty:()=>m_,isClassLike:()=>d_,isClassMemberModifier:()=>Zl,isClassNamedEvaluationHelperBlock:()=>$z,isClassOrTypeElement:()=>v_,isClassStaticBlockDeclaration:()=>ON,isClassThisAssignmentBlock:()=>zz,isColonToken:()=>sN,isCommaExpression:()=>wA,isCommaListExpression:()=>WF,isCommaSequence:()=>DA,isCommaToken:()=>tN,isComment:()=>EQ,isCommonJsExportPropertyAssignment:()=>Lf,isCommonJsExportedExpression:()=>Of,isCompoundAssignment:()=>_z,isComputedNonLiteralName:()=>Op,isComputedPropertyName:()=>wN,isConciseBody:()=>Z_,isConditionalExpression:()=>AF,isConditionalTypeNode:()=>eF,isConstAssertion:()=>vC,isConstTypeReference:()=>Sl,isConstructSignatureDeclaration:()=>BN,isConstructorDeclaration:()=>LN,isConstructorTypeNode:()=>VN,isContextualKeyword:()=>Fh,isContinueStatement:()=>iE,isCustomPrologue:()=>ff,isDebuggerStatement:()=>dE,isDeclaration:()=>uu,isDeclarationBindingElement:()=>w_,isDeclarationFileName:()=>yO,isDeclarationName:()=>_h,isDeclarationNameOfEnumOrNamespace:()=>ex,isDeclarationReadonly:()=>nf,isDeclarationStatement:()=>du,isDeclarationWithTypeParameterChildren:()=>kp,isDeclarationWithTypeParameters:()=>xp,isDecorator:()=>FN,isDecoratorTarget:()=>lX,isDefaultClause:()=>iP,isDefaultImport:()=>Cg,isDefaultModifier:()=>pN,isDefaultedExpandoInitializer:()=>Gm,isDeleteExpression:()=>CF,isDeleteTarget:()=>ch,isDeprecatedDeclaration:()=>a0,isDestructuringAssignment:()=>ab,isDiskPathRoot:()=>yo,isDoStatement:()=>ZF,isDocumentRegistryEntry:()=>$0,isDotDotDotToken:()=>eN,isDottedName:()=>_b,isDynamicName:()=>Jh,isEffectiveExternalModule:()=>hp,isEffectiveStrictModeSourceFile:()=>yp,isElementAccessChain:()=>gl,isElementAccessExpression:()=>hF,isEmittedFileOfProgram:()=>qU,isEmptyArrayLiteral:()=>bb,isEmptyBindingElement:()=>nc,isEmptyBindingPattern:()=>tc,isEmptyObjectLiteral:()=>vb,isEmptyStatement:()=>XF,isEmptyStringLiteral:()=>ym,isEntityName:()=>t_,isEntityNameExpression:()=>cb,isEnumConst:()=>tf,isEnumDeclaration:()=>vE,isEnumMember:()=>_P,isEqualityOperatorKind:()=>kZ,isEqualsGreaterThanToken:()=>lN,isExclamationToken:()=>oN,isExcludedFile:()=>Vj,isExclusivelyTypeOnlyImportOrExport:()=>vV,isExpandoPropertyDeclaration:()=>uC,isExportAssignment:()=>jE,isExportDeclaration:()=>RE,isExportModifier:()=>dN,isExportName:()=>kA,isExportNamespaceAsDefaultDeclaration:()=>Wd,isExportOrDefaultModifier:()=>mI,isExportSpecifier:()=>BE,isExportsIdentifier:()=>Zm,isExportsOrModuleExportsOrAlias:()=>sB,isExpression:()=>W_,isExpressionNode:()=>bm,isExpressionOfExternalModuleImportEqualsDeclaration:()=>NX,isExpressionOfOptionalChainRoot:()=>bl,isExpressionStatement:()=>QF,isExpressionWithTypeArguments:()=>MF,isExpressionWithTypeArgumentsInClassExtendsClause:()=>sb,isExternalModule:()=>_O,isExternalModuleAugmentation:()=>fp,isExternalModuleImportEqualsDeclaration:()=>Tm,isExternalModuleIndicator:()=>Q_,isExternalModuleNameRelative:()=>ws,isExternalModuleReference:()=>VE,isExternalModuleSymbol:()=>Yu,isExternalOrCommonJsModule:()=>Zp,isFileLevelReservedGeneratedIdentifier:()=>Kl,isFileLevelUniqueName:()=>Dd,isFileProbablyExternalModule:()=>jI,isFirstDeclarationOfSymbolParameter:()=>OY,isFixablePromiseHandler:()=>q1,isForInOrOfStatement:()=>Y_,isForInStatement:()=>nE,isForInitializer:()=>tu,isForOfStatement:()=>rE,isForStatement:()=>tE,isFullSourceFile:()=>Nm,isFunctionBlock:()=>Bf,isFunctionBody:()=>eu,isFunctionDeclaration:()=>mE,isFunctionExpression:()=>SF,isFunctionExpressionOrArrowFunction:()=>JT,isFunctionLike:()=>i_,isFunctionLikeDeclaration:()=>a_,isFunctionLikeKind:()=>l_,isFunctionLikeOrClassStaticBlockDeclaration:()=>o_,isFunctionOrConstructorTypeNode:()=>k_,isFunctionOrModuleBlock:()=>__,isFunctionSymbol:()=>hg,isFunctionTypeNode:()=>UN,isGeneratedIdentifier:()=>$l,isGeneratedPrivateIdentifier:()=>Hl,isGetAccessor:()=>Nu,isGetAccessorDeclaration:()=>jN,isGetOrSetAccessorDeclaration:()=>fl,isGlobalScopeAugmentation:()=>pp,isGlobalSourceFile:()=>Yp,isGrammarError:()=>Ed,isHeritageClause:()=>oP,isHoistedFunction:()=>mf,isHoistedVariableStatement:()=>hf,isIdentifier:()=>_N,isIdentifierANonContextualKeyword:()=>Ah,isIdentifierName:()=>ph,isIdentifierOrThisTypeNode:()=>ZA,isIdentifierPart:()=>ms,isIdentifierStart:()=>fs,isIdentifierText:()=>gs,isIdentifierTypePredicate:()=>qf,isIdentifierTypeReference:()=>ST,isIfStatement:()=>YF,isIgnoredFileFromWildCardWatching:()=>zU,isImplicitGlob:()=>pS,isImportAttribute:()=>PE,isImportAttributeName:()=>Wl,isImportAttributes:()=>EE,isImportCall:()=>_f,isImportClause:()=>wE,isImportDeclaration:()=>CE,isImportEqualsDeclaration:()=>TE,isImportKeyword:()=>SN,isImportMeta:()=>uf,isImportOrExportSpecifier:()=>Bl,isImportOrExportSpecifierName:()=>iZ,isImportSpecifier:()=>LE,isImportTypeAssertionContainer:()=>DE,isImportTypeNode:()=>cF,isImportable:()=>b0,isInComment:()=>CQ,isInCompoundLikeAssignment:()=>Zg,isInExpressionContext:()=>xm,isInJSDoc:()=>Im,isInJSFile:()=>Em,isInJSXText:()=>vQ,isInJsonFile:()=>Pm,isInNonReferenceComment:()=>BQ,isInReferenceComment:()=>MQ,isInRightSideOfInternalImportEqualsDeclaration:()=>iX,isInString:()=>mQ,isInTemplateString:()=>yQ,isInTopLevelContext:()=>nm,isInTypeQuery:()=>uv,isIncrementalBuildInfo:()=>PW,isIncrementalBundleEmitBuildInfo:()=>EW,isIncrementalCompilation:()=>Ik,isIndexSignatureDeclaration:()=>JN,isIndexedAccessTypeNode:()=>oF,isInferTypeNode:()=>tF,isInfinityOrNaNString:()=>MT,isInitializedProperty:()=>yz,isInitializedVariable:()=>nx,isInsideJsxElement:()=>bQ,isInsideJsxElementOrAttribute:()=>gQ,isInsideNodeModules:()=>$Z,isInsideTemplateLiteral:()=>OQ,isInstanceOfExpression:()=>hb,isInstantiatedModule:()=>_J,isInterfaceDeclaration:()=>hE,isInternalDeclaration:()=>qu,isInternalModuleImportEqualsDeclaration:()=>Dm,isInternalName:()=>bA,isIntersectionTypeNode:()=>ZN,isIntrinsicJsxName:()=>Py,isIterationStatement:()=>H_,isJSDoc:()=>DP,isJSDocAllType:()=>vP,isJSDocAugmentsTag:()=>EP,isJSDocAuthorTag:()=>PP,isJSDocCallbackTag:()=>IP,isJSDocClassTag:()=>AP,isJSDocCommentContainingNode:()=>Cu,isJSDocConstructSignature:()=>Ng,isJSDocDeprecatedTag:()=>JP,isJSDocEnumTag:()=>qP,isJSDocFunctionType:()=>TP,isJSDocImplementsTag:()=>QP,isJSDocImportTag:()=>eA,isJSDocIndexSignature:()=>Om,isJSDocLikeText:()=>LI,isJSDocLink:()=>gP,isJSDocLinkCode:()=>hP,isJSDocLinkLike:()=>Mu,isJSDocLinkPlain:()=>yP,isJSDocMemberName:()=>mP,isJSDocNameReference:()=>fP,isJSDocNamepathType:()=>wP,isJSDocNamespaceBody:()=>iu,isJSDocNode:()=>Tu,isJSDocNonNullableType:()=>kP,isJSDocNullableType:()=>xP,isJSDocOptionalParameter:()=>QT,isJSDocOptionalType:()=>SP,isJSDocOverloadTag:()=>BP,isJSDocOverrideTag:()=>MP,isJSDocParameterTag:()=>UP,isJSDocPrivateTag:()=>LP,isJSDocPropertyLikeTag:()=>Nl,isJSDocPropertyTag:()=>XP,isJSDocProtectedTag:()=>jP,isJSDocPublicTag:()=>OP,isJSDocReadonlyTag:()=>RP,isJSDocReturnTag:()=>VP,isJSDocSatisfiesExpression:()=>eC,isJSDocSatisfiesTag:()=>YP,isJSDocSeeTag:()=>zP,isJSDocSignature:()=>FP,isJSDocTag:()=>wu,isJSDocTemplateTag:()=>HP,isJSDocThisTag:()=>WP,isJSDocThrowsTag:()=>ZP,isJSDocTypeAlias:()=>Fg,isJSDocTypeAssertion:()=>NA,isJSDocTypeExpression:()=>pP,isJSDocTypeLiteral:()=>NP,isJSDocTypeTag:()=>$P,isJSDocTypedefTag:()=>KP,isJSDocUnknownTag:()=>GP,isJSDocUnknownType:()=>bP,isJSDocVariadicType:()=>CP,isJSXTagName:()=>vm,isJsonEqual:()=>gT,isJsonSourceFile:()=>ef,isJsxAttribute:()=>YE,isJsxAttributeLike:()=>vu,isJsxAttributeName:()=>oC,isJsxAttributes:()=>ZE,isJsxCallLike:()=>ku,isJsxChild:()=>yu,isJsxClosingElement:()=>KE,isJsxClosingFragment:()=>QE,isJsxElement:()=>WE,isJsxExpression:()=>tP,isJsxFragment:()=>GE,isJsxNamespacedName:()=>nP,isJsxOpeningElement:()=>HE,isJsxOpeningFragment:()=>XE,isJsxOpeningLikeElement:()=>xu,isJsxOpeningLikeElementTagName:()=>_X,isJsxSelfClosingElement:()=>$E,isJsxSpreadAttribute:()=>eP,isJsxTagNameExpression:()=>hu,isJsxText:()=>KD,isJumpStatementTarget:()=>yX,isKeyword:()=>wh,isKeywordOrPunctuation:()=>Nh,isKnownSymbol:()=>$h,isLabelName:()=>bX,isLabelOfLabeledStatement:()=>vX,isLabeledStatement:()=>lE,isLateVisibilityPaintedStatement:()=>wp,isLeftHandSideExpression:()=>B_,isLet:()=>cf,isLineBreak:()=>Wa,isLiteralComputedPropertyDeclarationName:()=>dh,isLiteralExpression:()=>Ol,isLiteralExpressionOfObject:()=>Ll,isLiteralImportTypeNode:()=>df,isLiteralKind:()=>Il,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>DX,isLiteralTypeLiteral:()=>V_,isLiteralTypeNode:()=>sF,isLocalName:()=>xA,isLogicalOperator:()=>Qv,isLogicalOrCoalescingAssignmentExpression:()=>Zv,isLogicalOrCoalescingAssignmentOperator:()=>Yv,isLogicalOrCoalescingBinaryExpression:()=>tb,isLogicalOrCoalescingBinaryOperator:()=>eb,isMappedTypeNode:()=>aF,isMemberName:()=>pl,isMetaProperty:()=>qF,isMethodDeclaration:()=>IN,isMethodOrAccessor:()=>g_,isMethodSignature:()=>AN,isMinusToken:()=>rN,isMissingDeclaration:()=>zE,isMissingPackageJsonInfo:()=>ER,isModifier:()=>e_,isModifierKind:()=>Ql,isModifierLike:()=>h_,isModuleAugmentationExternal:()=>mp,isModuleBlock:()=>xE,isModuleBody:()=>nu,isModuleDeclaration:()=>bE,isModuleExportName:()=>JE,isModuleExportsAccessExpression:()=>tg,isModuleIdentifier:()=>eg,isModuleName:()=>nI,isModuleOrEnumDeclaration:()=>au,isModuleReference:()=>gu,isModuleSpecifierLike:()=>yY,isModuleWithStringLiteralName:()=>lp,isNameOfFunctionDeclaration:()=>wX,isNameOfModuleDeclaration:()=>CX,isNamedDeclaration:()=>Tc,isNamedEvaluation:()=>Xh,isNamedEvaluationSource:()=>Gh,isNamedExportBindings:()=>Dl,isNamedExports:()=>ME,isNamedImportBindings:()=>ou,isNamedImports:()=>OE,isNamedImportsOrExports:()=>Dx,isNamedTupleMember:()=>GN,isNamespaceBody:()=>ru,isNamespaceExport:()=>IE,isNamespaceExportDeclaration:()=>SE,isNamespaceImport:()=>AE,isNamespaceReexportDeclaration:()=>Sm,isNewExpression:()=>vF,isNewExpressionTarget:()=>aX,isNewScopeNode:()=>AC,isNoSubstitutionTemplateLiteral:()=>XD,isNodeArray:()=>Al,isNodeArrayMultiLine:()=>Hb,isNodeDescendantOf:()=>lh,isNodeKind:()=>Fl,isNodeLikeSystem:()=>ln,isNodeModulesDirectory:()=>la,isNodeWithPossibleHoistedDeclaration:()=>eh,isNonContextualKeyword:()=>Eh,isNonGlobalAmbientModule:()=>_p,isNonNullAccess:()=>ZT,isNonNullChain:()=>Cl,isNonNullExpression:()=>zF,isNonStaticMethodOrAccessorWithPrivateName:()=>vz,isNotEmittedStatement:()=>qE,isNullishCoalesce:()=>kl,isNumber:()=>Ze,isNumericLiteral:()=>WD,isNumericLiteralName:()=>qT,isObjectBindingElementWithoutPropertyName:()=>vY,isObjectBindingOrAssignmentElement:()=>E_,isObjectBindingOrAssignmentPattern:()=>F_,isObjectBindingPattern:()=>uF,isObjectLiteralElement:()=>Iu,isObjectLiteralElementLike:()=>b_,isObjectLiteralExpression:()=>mF,isObjectLiteralMethod:()=>Jf,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>zf,isObjectTypeDeclaration:()=>Sx,isOmittedExpression:()=>RF,isOptionalChain:()=>yl,isOptionalChainRoot:()=>vl,isOptionalDeclaration:()=>YT,isOptionalJSDocPropertyLikeTag:()=>KT,isOptionalTypeNode:()=>XN,isOuterExpression:()=>EA,isOutermostOptionalChain:()=>xl,isOverrideModifier:()=>bN,isPackageJsonInfo:()=>FR,isPackedArrayLiteral:()=>IT,isParameter:()=>NN,isParameterPropertyDeclaration:()=>ec,isParameterPropertyModifier:()=>Yl,isParenthesizedExpression:()=>kF,isParenthesizedTypeNode:()=>nF,isParseTreeNode:()=>pc,isPartOfParameterDeclaration:()=>Yh,isPartOfTypeNode:()=>wf,isPartOfTypeOnlyImportOrExportDeclaration:()=>Ul,isPartOfTypeQuery:()=>km,isPartiallyEmittedExpression:()=>VF,isPatternMatch:()=>Qt,isPinnedComment:()=>Jd,isPlainJsFile:()=>kd,isPlusToken:()=>nN,isPossiblyTypeArgumentPosition:()=>kQ,isPostfixUnaryExpression:()=>EF,isPotentiallyExecutableNode:()=>QC,isPrefixUnaryExpression:()=>FF,isPrimitiveLiteralValue:()=>kC,isPrivateIdentifier:()=>uN,isPrivateIdentifierClassElementDeclaration:()=>Gl,isPrivateIdentifierPropertyAccessExpression:()=>Xl,isPrivateIdentifierSymbol:()=>Hh,isProgramUptoDate:()=>MV,isPrologueDirective:()=>pf,isPropertyAccessChain:()=>ml,isPropertyAccessEntityNameExpression:()=>ub,isPropertyAccessExpression:()=>gF,isPropertyAccessOrQualifiedName:()=>O_,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>I_,isPropertyAssignment:()=>sP,isPropertyDeclaration:()=>PN,isPropertyName:()=>n_,isPropertyNameLiteral:()=>qh,isPropertySignature:()=>EN,isPrototypeAccess:()=>pb,isPrototypePropertyAssignment:()=>fg,isPunctuation:()=>Dh,isPushOrUnshiftIdentifier:()=>Qh,isQualifiedName:()=>CN,isQuestionDotToken:()=>cN,isQuestionOrExclamationToken:()=>YA,isQuestionOrPlusOrMinusToken:()=>tI,isQuestionToken:()=>aN,isReadonlyKeyword:()=>hN,isReadonlyKeywordOrPlusOrMinusToken:()=>eI,isRecognizedTripleSlashComment:()=>Bd,isReferenceFileLocation:()=>jV,isReferencedFile:()=>LV,isRegularExpressionLiteral:()=>GD,isRequireCall:()=>Lm,isRequireVariableStatement:()=>zm,isRestParameter:()=>Ju,isRestTypeNode:()=>QN,isReturnStatement:()=>aE,isReturnStatementWithFixablePromiseHandler:()=>z1,isRightSideOfAccessExpression:()=>mb,isRightSideOfInstanceofExpression:()=>yb,isRightSideOfPropertyAccess:()=>SX,isRightSideOfQualifiedName:()=>kX,isRightSideOfQualifiedNameOrPropertyAccess:()=>fb,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>gb,isRootedDiskPath:()=>ho,isSameEntityName:()=>Qm,isSatisfiesExpression:()=>JF,isSemicolonClassElement:()=>HF,isSetAccessor:()=>Du,isSetAccessorDeclaration:()=>RN,isShiftOperatorOrHigher:()=>rI,isShorthandAmbientModuleSymbol:()=>up,isShorthandPropertyAssignment:()=>cP,isSideEffectImport:()=>CC,isSignedNumericLiteral:()=>Mh,isSimpleCopiableExpression:()=>cz,isSimpleInlineableExpression:()=>lz,isSimpleParameterList:()=>Fz,isSingleOrDoubleQuote:()=>qm,isSolutionConfig:()=>kj,isSourceElement:()=>gC,isSourceFile:()=>uP,isSourceFileFromLibrary:()=>d0,isSourceFileJS:()=>Fm,isSourceFileNotJson:()=>Am,isSourceMapping:()=>zJ,isSpecialPropertyDeclaration:()=>mg,isSpreadAssignment:()=>lP,isSpreadElement:()=>LF,isStatement:()=>fu,isStatementButNotDeclaration:()=>pu,isStatementOrBlock:()=>mu,isStatementWithLocals:()=>Sd,isStatic:()=>Ev,isStaticModifier:()=>yN,isString:()=>Ye,isStringANonContextualKeyword:()=>Ph,isStringAndEmptyAnonymousObjectIntersection:()=>IQ,isStringDoubleQuoted:()=>Um,isStringLiteral:()=>HD,isStringLiteralLike:()=>Ru,isStringLiteralOrJsxExpression:()=>bu,isStringLiteralOrTemplate:()=>SZ,isStringOrNumericLiteralLike:()=>Rh,isStringOrRegularExpressionOrTemplateLiteral:()=>PQ,isStringTextContainingNode:()=>Vl,isSuperCall:()=>lf,isSuperKeyword:()=>kN,isSuperProperty:()=>am,isSupportedSourceFileName:()=>zS,isSwitchStatement:()=>cE,isSyntaxList:()=>tA,isSyntheticExpression:()=>UF,isSyntheticReference:()=>UE,isTagName:()=>xX,isTaggedTemplateExpression:()=>bF,isTaggedTemplateTag:()=>cX,isTemplateExpression:()=>IF,isTemplateHead:()=>QD,isTemplateLiteral:()=>M_,isTemplateLiteralKind:()=>jl,isTemplateLiteralToken:()=>Rl,isTemplateLiteralTypeNode:()=>_F,isTemplateLiteralTypeSpan:()=>lF,isTemplateMiddle:()=>YD,isTemplateMiddleOrTemplateTail:()=>Ml,isTemplateSpan:()=>$F,isTemplateTail:()=>ZD,isTextWhiteSpaceLike:()=>EY,isThis:()=>PX,isThisContainerOrFunctionBlock:()=>tm,isThisIdentifier:()=>_v,isThisInTypeQuery:()=>dv,isThisInitializedDeclaration:()=>cm,isThisInitializedObjectBindingExpression:()=>lm,isThisProperty:()=>sm,isThisTypeNode:()=>rF,isThisTypeParameter:()=>VT,isThisTypePredicate:()=>Uf,isThrowStatement:()=>_E,isToken:()=>Pl,isTokenKind:()=>El,isTraceEnabled:()=>iR,isTransientSymbol:()=>Qu,isTrivia:()=>Ih,isTryStatement:()=>uE,isTupleTypeNode:()=>KN,isTypeAlias:()=>Eg,isTypeAliasDeclaration:()=>yE,isTypeAssertionExpression:()=>xF,isTypeDeclaration:()=>$T,isTypeElement:()=>y_,isTypeKeyword:()=>XQ,isTypeKeywordTokenOrIdentifier:()=>YQ,isTypeLiteralNode:()=>$N,isTypeNode:()=>x_,isTypeNodeKind:()=>Tx,isTypeOfExpression:()=>wF,isTypeOnlyExportDeclaration:()=>zl,isTypeOnlyImportDeclaration:()=>Jl,isTypeOnlyImportOrExportDeclaration:()=>ql,isTypeOperatorNode:()=>iF,isTypeParameterDeclaration:()=>DN,isTypePredicateNode:()=>zN,isTypeQueryNode:()=>WN,isTypeReferenceNode:()=>qN,isTypeReferenceType:()=>Ou,isTypeUsableAsPropertyName:()=>lC,isUMDExportSymbol:()=>vx,isUnaryExpression:()=>z_,isUnaryExpressionWithWrite:()=>U_,isUnicodeIdentifierStart:()=>Da,isUnionTypeNode:()=>YN,isUrl:()=>go,isValidBigIntString:()=>xT,isValidESSymbolDeclaration:()=>jf,isValidTypeOnlyAliasUseSite:()=>kT,isValueSignatureDeclaration:()=>th,isVarAwaitUsing:()=>rf,isVarConst:()=>af,isVarConstLike:()=>sf,isVarUsing:()=>of,isVariableDeclaration:()=>pE,isVariableDeclarationInVariableStatement:()=>If,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Rm,isVariableDeclarationInitializedToRequire:()=>jm,isVariableDeclarationList:()=>fE,isVariableLike:()=>Af,isVariableStatement:()=>GF,isVoidExpression:()=>DF,isWatchSet:()=>rx,isWhileStatement:()=>eE,isWhiteSpaceLike:()=>Ua,isWhiteSpaceSingleLine:()=>Va,isWithStatement:()=>sE,isWriteAccess:()=>_x,isWriteOnlyAccess:()=>lx,isYieldExpression:()=>OF,jsxModeNeedsExplicitImport:()=>u0,keywordPart:()=>BY,last:()=>ye,lastOrUndefined:()=>he,length:()=>l,libMap:()=>OO,libs:()=>IO,lineBreakPart:()=>ZY,loadModuleFromGlobalCache:()=>KM,loadWithModeAwareCache:()=>PV,makeIdentifierFromModuleName:()=>op,makeImport:()=>_Y,makeStringLiteral:()=>uY,mangleScopedPackageName:()=>zM,map:()=>N,mapAllOrFail:()=>j,mapDefined:()=>R,mapDefinedIterator:()=>M,mapEntries:()=>U,mapIterator:()=>F,mapOneOrMany:()=>YZ,mapToDisplayParts:()=>eZ,matchFiles:()=>vS,matchPatternOrExact:()=>aT,matchedText:()=>$t,matchesExclude:()=>$j,matchesExcludeWorker:()=>Hj,maxBy:()=>bt,maybeBind:()=>Ve,maybeSetLocalizedDiagnosticMessages:()=>Wx,memoize:()=>ut,memoizeOne:()=>dt,min:()=>xt,minAndMax:()=>lT,missingFileModifiedTime:()=>Ji,modifierToFlag:()=>Gv,modifiersToFlags:()=>Kv,moduleExportNameIsDefault:()=>Kd,moduleExportNameTextEscaped:()=>Hd,moduleExportNameTextUnescaped:()=>$d,moduleOptionDeclaration:()=>MO,moduleResolutionIsEqualTo:()=>_d,moduleResolutionNameAndModeGetter:()=>wV,moduleResolutionOptionDeclarations:()=>VO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Jk,moduleResolutionUsesNodeModules:()=>lY,moduleSpecifierToValidIdentifier:()=>r0,moduleSpecifiers:()=>uB,moduleSupportsImportAttributes:()=>zk,moduleSymbolToValidIdentifier:()=>n0,moveEmitHelpers:()=>Xw,moveRangeEnd:()=>Lb,moveRangePastDecorators:()=>Rb,moveRangePastModifiers:()=>Mb,moveRangePos:()=>jb,moveSyntheticComments:()=>Uw,mutateMap:()=>mx,mutateMapSkippingNewValues:()=>fx,needsParentheses:()=>vZ,needsScopeMarker:()=>X_,newCaseClauseTracker:()=>p0,newPrivateEnvironment:()=>Tz,noEmitNotification:()=>Xq,noEmitSubstitution:()=>Gq,noTransformers:()=>qq,noTruncationMaximumTruncationLength:()=>$u,nodeCanBeDecorated:()=>dm,nodeCoreModules:()=>FC,nodeHasName:()=>kc,nodeIsDecorated:()=>pm,nodeIsMissing:()=>Nd,nodeIsPresent:()=>Fd,nodeIsSynthesized:()=>ty,nodeModuleNameResolver:()=>YR,nodeModulesPathPart:()=>iM,nodeNextJsonConfigResolver:()=>ZR,nodeOrChildIsDecorated:()=>fm,nodeOverlapsWithStartEnd:()=>BX,nodePosToString:()=>Cd,nodeSeenTracker:()=>ZQ,nodeStartsNewLexicalEnvironment:()=>ey,noop:()=>nt,noopFileWatcher:()=>L$,normalizePath:()=>zo,normalizeSlashes:()=>Lo,normalizeSpans:()=>Ws,not:()=>en,notImplemented:()=>_t,notImplementedResolver:()=>CU,nullNodeConverters:()=>rw,nullParenthesizerRules:()=>ew,nullTransformationContext:()=>Yq,objectAllocator:()=>Bx,operatorPart:()=>zY,optionDeclarations:()=>JO,optionMapToObject:()=>QL,optionsAffectingProgramStructure:()=>$O,optionsForBuild:()=>ZO,optionsForWatch:()=>LO,optionsHaveChanges:()=>nd,or:()=>Zt,orderedRemoveItem:()=>Jt,orderedRemoveItemAt:()=>zt,packageIdToPackageName:()=>md,packageIdToString:()=>gd,parameterIsThisKeyword:()=>lv,parameterNamePart:()=>qY,parseBaseNodeFactory:()=>PI,parseBigInt:()=>vT,parseBuildCommand:()=>xL,parseCommandLine:()=>gL,parseCommandLineWorker:()=>dL,parseConfigFileTextToJson:()=>CL,parseConfigFileWithSystem:()=>b$,parseConfigHostFromCompilerHostLike:()=>QV,parseCustomTypeOption:()=>cL,parseIsolatedEntityName:()=>cO,parseIsolatedJSDocComment:()=>dO,parseJSDocTypeExpressionForTests:()=>pO,parseJsonConfigFileContent:()=>aj,parseJsonSourceFileConfigFileContent:()=>sj,parseJsonText:()=>lO,parseListTypeOption:()=>lL,parseNodeFactory:()=>AI,parseNodeModuleFromPath:()=>aM,parsePackageName:()=>CM,parsePseudoBigInt:()=>hT,parseValidBigInt:()=>bT,pasteEdits:()=>Pfe,patchWriteFileEnsuringDirectory:()=>so,pathContainsNodeModules:()=>oM,pathIsAbsolute:()=>vo,pathIsBareSpecifier:()=>xo,pathIsRelative:()=>bo,patternText:()=>Wt,performIncrementalCompilation:()=>K$,performance:()=>Un,positionBelongsToNode:()=>zX,positionIsASICandidate:()=>IZ,positionIsSynthesized:()=>YS,positionsAreOnSameLine:()=>Kb,preProcessFile:()=>P1,probablyUsesSemicolons:()=>OZ,processCommentPragmas:()=>bO,processPragmasIntoFields:()=>xO,processTaggedTemplateExpression:()=>Zz,programContainsEsModules:()=>oY,programContainsModules:()=>iY,projectReferenceIsEqualTo:()=>ld,propertyNamePart:()=>UY,pseudoBigIntToString:()=>yT,punctuationPart:()=>JY,pushIfUnique:()=>se,quote:()=>xZ,quotePreferenceFromString:()=>pY,rangeContainsPosition:()=>LX,rangeContainsPositionExclusive:()=>jX,rangeContainsRange:()=>Yb,rangeContainsRangeExclusive:()=>OX,rangeContainsStartEnd:()=>RX,rangeEndIsOnSameLineAsRangeStart:()=>Vb,rangeEndPositionsAreOnSameLine:()=>qb,rangeEquals:()=>ue,rangeIsOnSingleLine:()=>Jb,rangeOfNode:()=>_T,rangeOfTypeParameters:()=>uT,rangeOverlapsWithStartEnd:()=>MX,rangeStartIsOnSameLineAsRangeEnd:()=>Ub,rangeStartPositionsAreOnSameLine:()=>zb,readBuilderProgram:()=>G$,readConfigFile:()=>TL,readJson:()=>Nb,readJsonConfigFile:()=>wL,readJsonOrUndefined:()=>Db,reduceEachLeadingCommentRange:()=>cs,reduceEachTrailingCommentRange:()=>ls,reduceLeft:()=>Ce,reduceLeftIterator:()=>f,reducePathComponents:()=>jo,refactor:()=>u3,regExpEscape:()=>rS,regularExpressionFlagToCharacterCode:()=>Ia,relativeComplement:()=>ne,removeAllComments:()=>Tw,removeEmitHelper:()=>Kw,removeExtension:()=>HS,removeFileExtension:()=>WS,removeIgnoredPath:()=>QW,removeMinAndVersionNumbers:()=>Bt,removePrefix:()=>Gt,removeSuffix:()=>Rt,removeTrailingDirectorySeparator:()=>Wo,repeatString:()=>tY,replaceElement:()=>ke,replaceFirstStar:()=>fC,resolutionExtensionIsTSOrJson:()=>eT,resolveConfigFileProjectName:()=>tH,resolveJSModule:()=>KR,resolveLibrary:()=>VR,resolveModuleName:()=>$R,resolveModuleNameFromCache:()=>WR,resolvePackageNameToPackageJson:()=>DR,resolvePath:()=>Mo,resolveProjectReferencePath:()=>YV,resolveTripleslashReference:()=>KU,resolveTypeReferenceDirective:()=>TR,resolvingEmptyArray:()=>Uu,returnFalse:()=>rt,returnNoopFileWatcher:()=>j$,returnTrue:()=>it,returnUndefined:()=>ot,returnsPromise:()=>J1,rewriteModuleSpecifier:()=>Ez,sameFlatMap:()=>L,sameMap:()=>E,sameMapping:()=>JJ,scanTokenAtPosition:()=>Xp,scanner:()=>eX,semanticDiagnosticsOptionDeclarations:()=>zO,serializeCompilerOptions:()=>tj,server:()=>qfe,servicesVersion:()=>A8,setCommentRange:()=>jw,setConfigFileInOptions:()=>cj,setConstantValue:()=>Ww,setEmitFlags:()=>Cw,setGetSourceFileAsHashVersioned:()=>q$,setIdentifierAutoGenerate:()=>iD,setIdentifierGeneratedImportReference:()=>aD,setIdentifierTypeArguments:()=>nD,setInternalEmitFlags:()=>Dw,setLocalizedDiagnosticMessages:()=>Vx,setNodeChildren:()=>oA,setNodeFlags:()=>FT,setObjectAllocator:()=>qx,setOriginalNode:()=>xw,setParent:()=>ET,setParentRecursive:()=>PT,setPrivateIdentifier:()=>wz,setSnippetElement:()=>Yw,setSourceMapRange:()=>Ew,setStackTraceLimit:()=>Ri,setStartsOnNewLine:()=>Ow,setSyntheticLeadingComments:()=>Mw,setSyntheticTrailingComments:()=>zw,setSys:()=>lo,setSysLog:()=>to,setTextRange:()=>NI,setTextRangeEnd:()=>wT,setTextRangePos:()=>CT,setTextRangePosEnd:()=>DT,setTextRangePosWidth:()=>NT,setTokenSourceMapRange:()=>Aw,setTypeNode:()=>eD,setUILocale:()=>Et,setValueDeclaration:()=>gg,shouldAllowImportingTsExtension:()=>HM,shouldPreserveConstEnums:()=>Ak,shouldRewriteModuleSpecifier:()=>kg,shouldUseUriStyleNodeCoreModules:()=>s0,showModuleSpecifier:()=>bx,signatureHasRestParameter:()=>mJ,signatureToDisplayParts:()=>rZ,single:()=>be,singleElementArray:()=>nn,singleIterator:()=>z,singleOrMany:()=>xe,singleOrUndefined:()=>ve,skipAlias:()=>sx,skipConstraint:()=>nY,skipOuterExpressions:()=>PA,skipParentheses:()=>sh,skipPartiallyEmittedExpressions:()=>Tl,skipTrivia:()=>Ya,skipTypeChecking:()=>dT,skipTypeCheckingIgnoringNoCheck:()=>pT,skipTypeParentheses:()=>ah,skipWhile:()=>cn,sliceAfter:()=>sT,some:()=>V,sortAndDeduplicate:()=>Z,sortAndDeduplicateDiagnostics:()=>Ds,sourceFileAffectingCompilerOptions:()=>WO,sourceFileMayBeEmitted:()=>Qy,sourceMapCommentRegExp:()=>IJ,sourceMapCommentRegExpDontCareLineStart:()=>AJ,spacePart:()=>MY,spanMap:()=>q,startEndContainsRange:()=>Zb,startEndOverlapsWithStartEnd:()=>JX,startOnNewLine:()=>IA,startTracing:()=>ur,startsWith:()=>Kt,startsWithDirectory:()=>na,startsWithUnderscore:()=>o0,startsWithUseStrict:()=>CA,stringContainsAt:()=>i0,stringToToken:()=>Pa,stripQuotes:()=>Ey,supportedDeclarationExtensions:()=>PS,supportedJSExtensionsFlat:()=>NS,supportedLocaleDirectories:()=>lc,supportedTSExtensionsFlat:()=>CS,supportedTSImplementationExtensions:()=>AS,suppressLeadingAndTrailingTrivia:()=>WC,suppressLeadingTrivia:()=>$C,suppressTrailingTrivia:()=>HC,symbolEscapedNameNoDefault:()=>hY,symbolName:()=>vc,symbolNameNoDefault:()=>gY,symbolToDisplayParts:()=>nZ,sys:()=>co,sysLog:()=>eo,tagNamesAreEquivalent:()=>NO,takeWhile:()=>sn,targetOptionDeclaration:()=>RO,targetToLibMap:()=>Ns,testFormatSettings:()=>UG,textChangeRangeIsUnchanged:()=>Gs,textChangeRangeNewSpan:()=>Ks,textChanges:()=>ede,textOrKeywordPart:()=>VY,textPart:()=>WY,textRangeContainsPositionInclusive:()=>Is,textRangeContainsTextSpan:()=>js,textRangeIntersectsWithTextSpan:()=>Us,textSpanContainsPosition:()=>As,textSpanContainsTextRange:()=>Ls,textSpanContainsTextSpan:()=>Os,textSpanEnd:()=>Es,textSpanIntersection:()=>Vs,textSpanIntersectsWith:()=>Js,textSpanIntersectsWithPosition:()=>qs,textSpanIntersectsWithTextSpan:()=>Bs,textSpanIsEmpty:()=>Ps,textSpanOverlap:()=>Ms,textSpanOverlapsWith:()=>Rs,textSpansEqual:()=>wY,textToKeywordObj:()=>fa,timestamp:()=>qn,toArray:()=>Qe,toBuilderFileEmit:()=>qW,toBuilderStateFileInfoForMultiEmit:()=>zW,toEditorSettings:()=>G8,toFileNameLowerCase:()=>lt,toPath:()=>Vo,toProgramEmitPending:()=>UW,toSorted:()=>le,tokenIsIdentifierOrKeyword:()=>da,tokenIsIdentifierOrKeywordOrGreaterThan:()=>pa,tokenToString:()=>Ea,trace:()=>rR,tracing:()=>$n,tracingEnabled:()=>Hn,transferSourceFileChildren:()=>sA,transform:()=>f7,transformClassFields:()=>iq,transformDeclarations:()=>Bq,transformECMAScriptModule:()=>Eq,transformES2015:()=>Cq,transformES2016:()=>Sq,transformES2017:()=>lq,transformES2018:()=>uq,transformES2019:()=>dq,transformES2020:()=>pq,transformES2021:()=>fq,transformESDecorators:()=>cq,transformESNext:()=>mq,transformGenerators:()=>wq,transformImpliedNodeFormatDependentModule:()=>Pq,transformJsx:()=>xq,transformLegacyDecorators:()=>sq,transformModule:()=>Dq,transformNamedEvaluation:()=>Qz,transformNodes:()=>Qq,transformSystemModule:()=>Fq,transformTypeScript:()=>rq,transpile:()=>n2,transpileDeclaration:()=>X1,transpileModule:()=>G1,transpileOptionValueCompilerOptions:()=>HO,tryAddToSet:()=>J,tryAndIgnoreErrors:()=>BZ,tryCast:()=>et,tryDirectoryExists:()=>MZ,tryExtractTSExtension:()=>kb,tryFileExists:()=>RZ,tryGetClassExtendingExpressionWithTypeArguments:()=>rb,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>ib,tryGetDirectories:()=>LZ,tryGetExtensionFromPath:()=>rT,tryGetImportFromModuleSpecifier:()=>xg,tryGetJSDocSatisfiesTypeNode:()=>nC,tryGetModuleNameFromFile:()=>BA,tryGetModuleSpecifierFromDeclaration:()=>vg,tryGetNativePerformanceHooks:()=>Bn,tryGetPropertyAccessOrIdentifierToString:()=>db,tryGetPropertyNameOfBindingOrAssignmentElement:()=>VA,tryGetSourceMappingURL:()=>jJ,tryGetTextOfPropertyName:()=>Lp,tryParseJson:()=>Fb,tryParsePattern:()=>GS,tryParsePatterns:()=>QS,tryParseRawSourceMap:()=>MJ,tryReadDirectory:()=>jZ,tryReadFile:()=>DL,tryRemoveDirectoryPrefix:()=>tS,tryRemoveExtension:()=>$S,tryRemovePrefix:()=>Xt,tryRemoveSuffix:()=>Mt,tscBuildOption:()=>YO,typeAcquisitionDeclarations:()=>tL,typeAliasNamePart:()=>$Y,typeDirectiveIsEqualTo:()=>hd,typeKeywords:()=>GQ,typeParameterNamePart:()=>HY,typeToDisplayParts:()=>tZ,unchangedPollThresholds:()=>Wi,unchangedTextChangeRange:()=>Qs,unescapeLeadingUnderscores:()=>gc,unmangleScopedPackageName:()=>UM,unorderedRemoveItem:()=>Ut,unprefixedNodeCoreModules:()=>DC,unsetNodeChildren:()=>aA,unwrapInnermostStatementOfLabel:()=>Mf,unwrapParenthesizedExpression:()=>SC,updateErrorForNoInputFiles:()=>Tj,updateLanguageServiceSourceFile:()=>r7,updateMissingFilePathsWatch:()=>BU,updateResolutionField:()=>pR,updateSharedExtendedConfigFileWatcher:()=>jU,updateSourceFile:()=>uO,updateWatchingWildcardDirectories:()=>JU,usesWildcardTypes:()=>hk,usingSingleLineStringWriter:()=>sd,utf16EncodeAsString:()=>xs,validateLocaleAndSetLanguage:()=>_c,version:()=>o,versionMajorMinor:()=>i,visitArray:()=>bJ,visitCommaListElements:()=>DJ,visitEachChild:()=>NJ,visitFunctionBody:()=>CJ,visitIterationBody:()=>wJ,visitLexicalEnvironment:()=>kJ,visitNode:()=>yJ,visitNodes:()=>vJ,visitParameterList:()=>SJ,walkUpBindingElementsAndPatterns:()=>rc,walkUpOuterExpressions:()=>AA,walkUpParenthesizedExpressions:()=>ih,walkUpParenthesizedTypes:()=>rh,walkUpParenthesizedTypesAndGetParentAndChild:()=>oh,whitespaceOrMapCommentRegExp:()=>OJ,writeCommentRange:()=>Sv,writeFile:()=>ev,writeFileEnsuringDirectories:()=>nv,zipWith:()=>m});var jfe,Rfe=!0;function Mfe(e,t,n,r,i){let o=t?"DeprecationError: ":"DeprecationWarning: ";return o+=`'${e}' `,o+=r?`has been deprecated since v${r}`:"is deprecated",o+=t?" and can no longer be used.":n?` and will no longer be usable after v${n}.`:".",o+=i?` ${Ux(i,[e])}`:"",o}function Bfe(e,t={}){const n="string"==typeof t.typeScriptVersion?new vn(t.typeScriptVersion):t.typeScriptVersion??jfe??(jfe=new vn(o)),r="string"==typeof t.errorAfter?new vn(t.errorAfter):t.errorAfter,i="string"==typeof t.warnAfter?new vn(t.warnAfter):t.warnAfter,a="string"==typeof t.since?new vn(t.since):t.since??i,s=t.error||r&&n.compareTo(r)>=0,c=!i||n.compareTo(i)>=0;return s?function(e,t,n,r){const i=Mfe(e,!0,t,n,r);return()=>{throw new TypeError(i)}}(e,r,a,t.message):c?function(e,t,n,r){let i=!1;return()=>{Rfe&&!i&&(_n.log.warn(Mfe(e,!1,t,n,r)),i=!0)}}(e,r,a,t.message):nt}function Jfe(e,t,n,r){if(Object.defineProperty(s,"name",{...Object.getOwnPropertyDescriptor(s,"name"),value:e}),r)for(const n of Object.keys(r)){const a=+n;!isNaN(a)&&De(t,`${a}`)&&(t[a]=(i=t[a],function(e,t){return function(){return e(),t.apply(this,arguments)}}(Bfe((null==(o={...r[a],name:e})?void 0:o.name)??_n.getFunctionName(i),o),i)))}var i,o;const a=function(e,t){return n=>{for(let r=0;De(e,`${r}`)&&De(t,`${r}`);r++){if((0,t[r])(n))return r}}}(t,n);return s;function s(...e){const n=a(e),r=void 0!==n?t[n]:void 0;if("function"==typeof r)return r(...e);throw new TypeError("Invalid arguments")}}function zfe(e){return{overload:t=>({bind:n=>({finish:()=>Jfe(e,t,n),deprecate:r=>({finish:()=>Jfe(e,t,n,r)})})})}}var qfe={};n(qfe,{ActionInvalidate:()=>aG,ActionPackageInstalled:()=>sG,ActionSet:()=>oG,ActionWatchTypingLocations:()=>dG,Arguments:()=>rG,AutoImportProviderProject:()=>zme,AuxiliaryProject:()=>Bme,CharRangeSection:()=>Ihe,CloseFileWatcherEvent:()=>sge,CommandNames:()=>she,ConfigFileDiagEvent:()=>tge,ConfiguredProject:()=>qme,ConfiguredProjectLoadKind:()=>Fge,CreateDirectoryWatcherEvent:()=>age,CreateFileWatcherEvent:()=>oge,Errors:()=>Xfe,EventBeginInstallTypes:()=>lG,EventEndInstallTypes:()=>_G,EventInitializationFailed:()=>uG,EventTypesRegistry:()=>cG,ExternalProject:()=>Ume,GcTimer:()=>dme,InferredProject:()=>Mme,LargeFileReferencedEvent:()=>ege,LineIndex:()=>Bhe,LineLeaf:()=>zhe,LineNode:()=>Jhe,LogLevel:()=>Yfe,Msg:()=>eme,OpenFileInfoTelemetryEvent:()=>ige,Project:()=>Rme,ProjectInfoTelemetryEvent:()=>rge,ProjectKind:()=>Eme,ProjectLanguageServiceStateEvent:()=>nge,ProjectLoadingFinishEvent:()=>Zme,ProjectLoadingStartEvent:()=>Yme,ProjectService:()=>Xge,ProjectsUpdatedInBackgroundEvent:()=>Qme,ScriptInfo:()=>Dme,ScriptVersionCache:()=>Rhe,Session:()=>Che,TextStorage:()=>Cme,ThrottledOperations:()=>ume,TypingsInstallerAdapter:()=>Uhe,allFilesAreJsOrDts:()=>Ime,allRootFilesAreJsOrDts:()=>Ame,asNormalizedPath:()=>ime,convertCompilerOptions:()=>mge,convertFormatOptions:()=>fge,convertScriptKindName:()=>vge,convertTypeAcquisition:()=>hge,convertUserPreferences:()=>bge,convertWatchOptions:()=>gge,countEachFileTypes:()=>Pme,createInstallTypingsRequest:()=>tme,createModuleSpecifierCache:()=>Zge,createNormalizedPathMap:()=>ome,createPackageJsonCache:()=>ehe,createSortedArray:()=>_me,emptyArray:()=>Zfe,findArgument:()=>fG,formatDiagnosticToProtocol:()=>ahe,formatMessage:()=>che,getBaseConfigFileName:()=>pme,getDetailWatchInfo:()=>Rge,getLocationInNewDocument:()=>Ehe,hasArgument:()=>pG,hasNoTypeScriptSource:()=>Ome,indent:()=>hG,isBackgroundProject:()=>Hme,isConfigFile:()=>Qge,isConfiguredProject:()=>Wme,isDynamicFileName:()=>wme,isExternalProject:()=>$me,isInferredProject:()=>Vme,isInferredProjectName:()=>ame,isProjectDeferredClose:()=>Kme,makeAutoImportProviderProjectName:()=>cme,makeAuxiliaryProjectName:()=>lme,makeInferredProjectName:()=>sme,maxFileSize:()=>Xme,maxProgramSizeForNonTsFiles:()=>Gme,normalizedPathToPath:()=>rme,nowString:()=>mG,nullCancellationToken:()=>the,nullTypingsInstaller:()=>Tge,protocol:()=>fme,scriptInfoIsContainedByBackgroundProject:()=>Nme,scriptInfoIsContainedByDeferredClosedProject:()=>Fme,stringifyIndented:()=>yG,toEvent:()=>_he,toNormalizedPath:()=>nme,tryConvertScriptKindName:()=>yge,typingsInstaller:()=>Ufe,updateProjectIfDirty:()=>Bge});var Ufe={};n(Ufe,{TypingsInstaller:()=>Kfe,getNpmCommandForInstallation:()=>Hfe,installNpmPackages:()=>$fe,typingsName:()=>Gfe});var Vfe={isEnabled:()=>!1,writeLine:nt};function Wfe(e,t,n,r){try{const r=$R(t,Ro(e,"index.d.ts"),{moduleResolution:2},n);return r.resolvedModule&&r.resolvedModule.resolvedFileName}catch(n){return void(r.isEnabled()&&r.writeLine(`Failed to resolve ${t} in folder '${e}': ${n.message}`))}}function $fe(e,t,n,r){let i=!1;for(let o=n.length;o>0;){const a=Hfe(e,t,n,o);o=a.remaining,i=r(a.command)||i}return i}function Hfe(e,t,n,r){const i=n.length-r;let o,a=r;for(;o=`${e} install --ignore-scripts ${(a===n.length?n:n.slice(i,i+a)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(o.length<8e3);)a-=Math.floor(a/2);return{command:o,remaining:r-a}}var Kfe=class{constructor(e,t,n,r,i,o=Vfe){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=n,this.typesMapLocation=r,this.throttleLimit=i,this.log=o,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest";this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${n}', types map path ${r}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{const e={};this.typesRegistry.forEach(((t,n)=>{e[n]=t}));const t={kind:cG,typesRegistry:e};this.sendResponse(t);break}case"installPackage":this.installPackage(e);break;default:_n.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`);this.projectWatchers.get(e)?(this.projectWatchers.delete(e),this.sendResponse({kind:dG,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)):this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${yG(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),void 0===this.safeList&&this.initializeSafeList();const t=nG.discoverTypings(this.installTypingHost,this.log.isEnabled()?e=>this.log.writeLine(e):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){const{fileName:t,packageName:n,projectName:r,projectRootPath:i,id:o}=e,a=nG.validatePackageName(n);if(a!==nG.NameValidationResult.Ok){const e=nG.renderPackageNameValidationFailure(a,n);this.log.isEnabled()&&this.log.writeLine(e);const t={kind:sG,projectName:r,id:o,success:!1,message:e};return void this.sendResponse(t)}const s=ca(Fo(t),(e=>{if(this.installTypingHost.fileExists(Ro(e,"package.json")))return e}))||i;if(s)this.installWorker(-1,[n],s,(e=>{const t={kind:sG,projectName:r,id:o,success:e,message:e?`Package ${n} installed.`:`There was an error installing ${n}.`};this.sendResponse(t)}));else{const e={kind:sG,projectName:r,id:o,success:!1,message:"Could not determine a project root path."};this.sendResponse(e)}}initializeSafeList(){if(this.typesMapLocation){const e=nG.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e)return this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),void(this.safeList=e);this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=nG.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e))return void(this.log.isEnabled()&&this.log.writeLine("Cache location was already processed..."));const t=Ro(e,"package.json"),n=Ro(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(n)){const r=JSON.parse(this.installTypingHost.readFile(t)),i=JSON.parse(this.installTypingHost.readFile(n));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${yG(r)}`),this.log.writeLine(`Loaded content of '${n}':${yG(i)}`)),r.devDependencies&&(i.packages||i.dependencies))for(const t in r.devDependencies){if(i.packages&&!De(i.packages,`node_modules/${t}`)||i.dependencies&&!De(i.dependencies,t))continue;const n=Eo(t);if(!n)continue;const r=Wfe(e,n,this.installTypingHost,this.log);if(!r){this.missingTypingsSet.add(n);continue}const o=this.packageNameToTypingLocation.get(n);if(o){if(o.typingLocation===r)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${n} from '${r}' conflicts with existing typing file '${o}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${n}' => '${r}'`);const a=i.packages&&Ne(i.packages,`node_modules/${t}`)||Ne(i.dependencies,t),s=a&&a.version;if(!s)continue;const c={typingLocation:r,version:new vn(s)};this.packageNameToTypingLocation.set(n,c)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return R(e,(e=>{const t=zM(e);if(this.missingTypingsSet.has(t))return void(this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${t}' is in missingTypingsSet - skipping...`));const n=nG.validatePackageName(e);if(n!==nG.NameValidationResult.Ok)return this.missingTypingsSet.add(t),void(this.log.isEnabled()&&this.log.writeLine(nG.renderPackageNameValidationFailure(n,e)));if(this.typesRegistry.has(t)){if(!this.packageNameToTypingLocation.get(t)||!nG.isTypingUpToDate(this.packageNameToTypingLocation.get(t),this.typesRegistry.get(t)))return t;this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${t}' already has an up-to-date typing - skipping...`)}else this.log.isEnabled()&&this.log.writeLine(`'${e}':: Entry for package '${t}' does not exist in local types registry - skipping...`)}))}ensurePackageDirectoryExists(e){const t=Ro(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,n,r){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(r)}`);const a=this.filterTypings(r);if(0===a.length)return this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),void this.sendResponse(this.createSetTypings(e,n));this.ensurePackageDirectoryExists(t);const s=this.installRunCount;this.installRunCount++,this.sendResponse({kind:lG,eventId:s,typingsInstallerVersion:o,projectName:e.projectName});const c=a.map(Gfe);this.installTypingsAsync(s,c,t,(r=>{try{if(!r){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(a)}`);for(const e of a)this.missingTypingsSet.add(e);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(c)}`);const o=[];for(const e of a){const n=Wfe(t,e,this.installTypingHost,this.log);if(!n){this.missingTypingsSet.add(e);continue}const r=this.typesRegistry.get(e),a={typingLocation:n,version:new vn(r[`ts${i}`]||r[this.latestDistTag])};this.packageNameToTypingLocation.set(e,a),o.push(n)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(o)}`),this.sendResponse(this.createSetTypings(e,n.concat(o)))}finally{const t={kind:_G,eventId:s,projectName:e.projectName,packagesToInstall:c,installSuccess:r,typingsInstallerVersion:o};this.sendResponse(t)}}))}ensureDirectoryExists(e,t){const n=Fo(e);t.directoryExists(n)||this.ensureDirectoryExists(n,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length)return void this.closeWatchers(e);const n=this.projectWatchers.get(e),r=new Set(t);!n||od(r,(e=>!n.has(e)))||od(n,(e=>!r.has(e)))?(this.projectWatchers.set(e,r),this.sendResponse({kind:dG,projectName:e,files:t})):this.sendResponse({kind:dG,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:oG}}installTypingsAsync(e,t,n,r){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:n,onRequestCompleted:r}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()}))}}};function Gfe(e){return`@types/${e}@ts${i}`}var Xfe,Qfe,Yfe=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(Yfe||{}),Zfe=[],eme=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(eme||{});function tme(e,t,n,r){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:n,projectRootPath:e.getCurrentDirectory(),cachePath:r,kind:"discover"}}function nme(e){return zo(e)}function rme(e,t,n){return n(ho(e)?e:Jo(e,t))}function ime(e){return e}function ome(){const e=new Map;return{get:t=>e.get(t),set(t,n){e.set(t,n)},contains:t=>e.has(t),remove(t){e.delete(t)}}}function ame(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function sme(e){return`/dev/null/inferredProject${e}*`}function cme(e){return`/dev/null/autoImportProviderProject${e}*`}function lme(e){return`/dev/null/auxiliaryProject${e}*`}function _me(){return[]}(Qfe=Xfe||(Xfe={})).ThrowNoProject=function(){throw new Error("No Project.")},Qfe.ThrowProjectLanguageServiceDisabled=function(){throw new Error("The project's language service is disabled.")},Qfe.ThrowProjectDoesNotContainDocument=function(e,t){throw new Error(`Project '${t.getProjectName()}' does not contain document '${e}'`)};var ume=class e{constructor(e,t){this.host=e,this.pendingTimeouts=new Map,this.logger=t.hasLevel(3)?t:void 0}schedule(t,n,r){const i=this.pendingTimeouts.get(t);i&&this.host.clearTimeout(i),this.pendingTimeouts.set(t,this.host.setTimeout(e.run,n,t,this,r)),this.logger&&this.logger.info(`Scheduled: ${t}${i?", Cancelled earlier one":""}`)}cancel(e){const t=this.pendingTimeouts.get(e);return!!t&&(this.host.clearTimeout(t),this.pendingTimeouts.delete(e))}static run(e,t,n){t.pendingTimeouts.delete(e),t.logger&&t.logger.info(`Running: ${e}`),n()}},dme=class e{constructor(e,t,n){this.host=e,this.delay=t,this.logger=n}scheduleCollect(){this.host.gc&&void 0===this.timerId&&(this.timerId=this.host.setTimeout(e.run,this.delay,this))}static run(e){e.timerId=void 0;const t=e.logger.hasLevel(2),n=t&&e.host.getMemoryUsage();if(e.host.gc(),t){const t=e.host.getMemoryUsage();e.logger.perftrc(`GC::before ${n}, after ${t}`)}}};function pme(e){const t=Eo(e);return"tsconfig.json"===t||"jsconfig.json"===t?t:void 0}var fme={};n(fme,{ClassificationType:()=>ZG,CommandTypes:()=>mme,CompletionTriggerKind:()=>RG,IndentStyle:()=>vme,JsxEmit:()=>bme,ModuleKind:()=>xme,ModuleResolutionKind:()=>kme,NewLineKind:()=>Sme,OrganizeImportsMode:()=>jG,PollingWatchKind:()=>yme,ScriptTarget:()=>Tme,SemicolonPreference:()=>zG,WatchDirectoryKind:()=>hme,WatchFileKind:()=>gme});var mme=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.PreparePasteEdits="preparePasteEdits",e.GetPasteEdits="getPasteEdits",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e.MapCode="mapCode",e.CopilotRelated="copilotRelated",e))(mme||{}),gme=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(gme||{}),hme=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(hme||{}),yme=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(yme||{}),vme=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(vme||{}),bme=(e=>(e.None="none",e.Preserve="preserve",e.ReactNative="react-native",e.React="react",e.ReactJSX="react-jsx",e.ReactJSXDev="react-jsxdev",e))(bme||{}),xme=(e=>(e.None="none",e.CommonJS="commonjs",e.AMD="amd",e.UMD="umd",e.System="system",e.ES6="es6",e.ES2015="es2015",e.ES2020="es2020",e.ES2022="es2022",e.ESNext="esnext",e.Node16="node16",e.Node18="node18",e.Node20="node20",e.NodeNext="nodenext",e.Preserve="preserve",e))(xme||{}),kme=(e=>(e.Classic="classic",e.Node="node",e.NodeJs="node",e.Node10="node10",e.Node16="node16",e.NodeNext="nodenext",e.Bundler="bundler",e))(kme||{}),Sme=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(Sme||{}),Tme=(e=>(e.ES3="es3",e.ES5="es5",e.ES6="es6",e.ES2015="es2015",e.ES2016="es2016",e.ES2017="es2017",e.ES2018="es2018",e.ES2019="es2019",e.ES2020="es2020",e.ES2021="es2021",e.ES2022="es2022",e.ES2023="es2023",e.ES2024="es2024",e.ES2025="es2025",e.ESNext="esnext",e.JSON="json",e.Latest="esnext",e.LatestStandard="es2025",e))(Tme||{}),Cme=class{constructor(e,t,n){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=n||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return void 0!==this.svc}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,n){this.switchToScriptVersionCache().edit(e,t-e,n),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return _n.assert(void 0!==e),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=eY(this.svc.getSnapshot())),this.text!==e&&(this.useText(e),this.ownFileText=!1,!0)}reloadWithFileText(e){const{text:t,fileSize:n}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},r=this.reload(t);return this.fileSize=n,this.ownFileText=!e||e===this.info.fileName,this.ownFileText&&this.info.mTime===Ji.getTime()&&(this.info.mTime=(this.host.getModifiedTime(this.info.fileName)||Ji).getTime()),r}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText&&(this.pendingReloadFromDisk=!0)}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return(null==(e=this.tryUseScriptVersionCache())?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=TG.fromString(_n.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){const t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);const n=this.getLineMap();return e<=n.length?{absolutePosition:n[e-1],lineText:this.text.substring(n[e-1],n[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){const t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);const n=this.getLineMap();return Hs(n[e],e+1void 0===t?t=this.host.readFile(n)||"":t;if(!RS(this.info.fileName)){const e=this.host.getFileSize?this.host.getFileSize(n):r().length;if(e>Xme){_n.assert(!!this.info.containingProjects.length);return this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${n} for info ${this.info.fileName}: fileSize: ${e}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(n,e),{text:"",fileSize:e}}}return{text:r()}}switchToScriptVersionCache(){return this.svc&&!this.pendingReloadFromDisk||(this.svc=Rhe.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return this.svc&&!this.pendingReloadFromDisk||this.getOrLoadText(),this.isOpen?(this.svc||this.textSnapshot||(this.svc=Rhe.fromString(_n.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(void 0===this.text||this.pendingReloadFromDisk)&&(_n.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return _n.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=La(_n.checkDefined(this.text)))}getLineInfo(){const e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:t=>e.getAbsolutePositionAndLineText(t+1).lineText};const t=this.getLineMap();return LJ(this.text,t)}};function wme(e){return"^"===e[0]||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&"^"===Eo(e)[0]||e.includes(":^")&&!e.includes(_o)}var Dme=class{constructor(e,t,n,r,i,o){this.host=e,this.fileName=t,this.scriptKind=n,this.hasMixedContent=r,this.path=i,this.containingProjects=[],this.isDynamic=wme(t),this.textStorage=new Cme(e,this,o),(r||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=n||SS(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,void 0!==e&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(void 0===this.realpath&&(this.realpath=this.path,this.host.realpath)){_n.assert(!!this.containingProjects.length);const e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){const t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return k(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:Jt(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink())}}detachAllProjects(){for(const e of this.containingProjects){Wme(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!Vme(e)&&e.addMissingFileRoot(t.fileName)}D(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return Xfe.ThrowNoProject();case 1:return Kme(this.containingProjects[0])||Hme(this.containingProjects[0])?Xfe.ThrowNoProject():this.containingProjects[0];default:let e,t,n,r;for(let i=0;i!e.isOrphan()))}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,n){return this.textStorage.lineOffsetToPosition(e,t,n)}positionToLineOffset(e){!function(e){_n.assert("number"==typeof e,`Expected position ${e} to be a number.`),_n.assert(e>=0,"Expected position to be non-negative.")}(e);const t=this.textStorage.positionToLineOffset(e);return function(e){_n.assert("number"==typeof e.line,`Expected line ${e.line} to be a number.`),_n.assert("number"==typeof e.offset,`Expected offset ${e.offset} to be a number.`),_n.assert(e.line>0,"Expected line to be non-"+(0===e.line?"zero":"negative")),_n.assert(e.offset>0,"Expected offset to be non-"+(0===e.offset?"zero":"negative"))}(t),t}isJavaScript(){return 1===this.scriptKind||2===this.scriptKind}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Ye(this.sourceMapFilePath)&&($U(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}};function Nme(e){return V(e.containingProjects,Hme)}function Fme(e){return V(e.containingProjects,Kme)}var Eme=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(Eme||{});function Pme(e,t=!1){const n={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(const r of e){const e=t?r.textStorage.getTelemetryFileSize():0;switch(r.scriptKind){case 1:n.js+=1,n.jsSize+=e;break;case 2:n.jsx+=1,n.jsxSize+=e;break;case 3:yO(r.fileName)?(n.dts+=1,n.dtsSize+=e):(n.ts+=1,n.tsSize+=e);break;case 4:n.tsx+=1,n.tsxSize+=e;break;case 7:n.deferred+=1,n.deferredSize+=e}}return n}function Ame(e){const t=Pme(e.getRootScriptInfos());return 0===t.ts&&0===t.tsx}function Ime(e){const t=Pme(e.getScriptInfos());return 0===t.ts&&0===t.tsx}function Ome(e){return!e.some((e=>So(e,".ts")&&!yO(e)||So(e,".tsx")))}function Lme(e){return void 0!==e.generatedFilePath}function jme(e,t){if(e===t)return!0;if(0===(e||Zfe).length&&0===(t||Zfe).length)return!0;const n=new Map;let r=0;for(const t of e)!0!==n.get(t)&&(n.set(t,!0),r++);for(const e of t){const t=n.get(e);if(void 0===t)return!1;!0===t&&(n.set(e,!1),r--)}return 0===r}var Rme=class e{constructor(e,t,n,r,i,o,a,s,c,l){switch(this.projectKind=t,this.projectService=n,this.compilerOptions=o,this.compileOnSaveEnabled=a,this.watchOptions=s,this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.initialLoadPending=!1,this.dirty=!1,this.typingFiles=Zfe,this.moduleSpecifierCache=Zge(this),this.createHash=Ve(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=nG.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,n.logger.info(`Creating ${Eme[t]}Project: ${e}, currentDirectory: ${l}`),this.projectName=e,this.directoryStructureHost=c,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(l),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new a7(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(r||Lk(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions={target:12,jsx:1},this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),n.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:_n.assertNever(n.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const _=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=e=>this.writeLog(e):_.trace&&(this.trace=e=>_.trace(e)),this.realpath=Ve(_,_.realpath),this.preferNonRecursiveWatch=this.projectService.canUseWatchEvents||_.preferNonRecursiveWatch,this.resolutionCache=d$(this,this.currentDirectory,!0),this.languageService=l7(this,this.projectService.documentRegistry,this.projectService.serverMode),i&&this.disableLanguageService(i),this.markAsDirty(),Hme(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getRedirectFromSourceFile(e){}isNonTsProject(){return Bge(this),Ime(this)}isJsOnlyProject(){return Bge(this),function(e){const t=Pme(e.getScriptInfos());return t.js>0&&0===t.ts&&0===t.tsx}(this)}static resolveModule(t,n,r,i){return e.importServicePluginSync({name:t},[n],r,i).resolvedModule}static importServicePluginSync(e,t,n,r){let i,o;_n.assertIsDefined(n.require);for(const a of t){const t=Lo(n.resolvePath(Ro(a,"node_modules")));r(`Loading ${e.name} from ${a} (resolved to ${t})`);const s=n.require(t,e.name);if(!s.error){o=s.module;break}const c=s.error.stack||s.error.message||JSON.stringify(s.error);(i??(i=[])).push(`Failed to load module '${e.name}' from ${t}: ${c}`)}return{pluginConfigEntry:e,resolvedModule:o,errorLogs:i}}static async importServicePluginAsync(e,t,n,r){let i,o;_n.assertIsDefined(n.importPlugin);for(const a of t){const t=Ro(a,"node_modules");let s;r(`Dynamically importing ${e.name} from ${a} (resolved to ${t})`);try{s=await n.importPlugin(t,e.name)}catch(e){s={module:void 0,error:e}}if(!s.error){o=s.module;break}const c=s.error.stack||s.error.message||JSON.stringify(s.error);(i??(i=[])).push(`Failed to dynamically import module '${e.name}' from ${t}: ${c}`)}return{pluginConfigEntry:e,resolvedModule:o,errorLogs:i}}isKnownTypesPackageName(e){return this.projectService.typingsInstaller.isKnownTypesPackageName(e)}installPackage(e){return this.projectService.typingsInstaller.installPackage({...e,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}getSymlinkCache(){return this.symlinks||(this.symlinks=Zk(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFilesMap.size)return s;let e;return this.rootFilesMap.forEach((t=>{(this.languageServiceEnabled||t.info&&t.info.isScriptOpen())&&(e||(e=[])).push(t.fileName)})),ae(e,this.typingFiles)||s}getOrCreateScriptInfoAndAttachToProject(e){const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);if(t){const e=this.rootFilesMap.get(t.path);e&&e.info!==t&&(e.info=t),t.attachToProject(this)}return t}getScriptKind(e){const t=this.projectService.getScriptInfoForPath(this.toPath(e));return t&&t.scriptKind}getScriptVersion(e){const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);return t&&t.getLatestVersion()}getScriptSnapshot(e){const t=this.getOrCreateScriptInfoAndAttachToProject(e);if(t)return t.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){return Ro(Fo(zo(this.projectService.getExecutingFilePath())),Fs(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(e,t,n,r,i){return this.directoryStructureHost.readDirectory(e,t,n,r,i)}readFile(e){return this.projectService.host.readFile(e)}writeFile(e,t){return this.projectService.host.writeFile(e,t)}fileExists(e){const t=this.toPath(e);return!!this.projectService.getScriptInfoForPath(t)||!this.isWatchedMissingFile(t)&&this.directoryStructureHost.fileExists(e)}resolveModuleNameLiterals(e,t,n,r,i,o){return this.resolutionCache.resolveModuleNameLiterals(e,t,n,r,i,o)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(e,t,n,r,i,o){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(e,t,n,r,i,o)}resolveLibrary(e,t,n,r){return this.resolutionCache.resolveLibrary(e,t,n,r)}directoryExists(e){return this.directoryStructureHost.directoryExists(e)}getDirectories(e){return this.directoryStructureHost.getDirectories(e)}getCachedDirectoryStructureHost(){}toPath(e){return Vo(e,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(e,t,n){return this.projectService.watchFactory.watchDirectory(e,t,n,this.projectService.getWatchOptions(this),M$.FailedLookupLocations,this)}watchAffectingFileLocation(e,t){return this.projectService.watchFactory.watchFile(e,t,2e3,this.projectService.getWatchOptions(this),M$.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,(()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}))}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(e,t,n){return this.projectService.watchFactory.watchDirectory(e,t,n,this.projectService.getWatchOptions(this),M$.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}fileIsOpen(e){return this.projectService.openFiles.has(e)}writeLog(e){this.projectService.logger.info(e)}log(e){this.writeLog(e)}error(e){this.projectService.logger.msg(e,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){0!==this.projectKind&&2!==this.projectKind||(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return C(this.projectErrors,(e=>!e.file))||Zfe}getAllProjectErrors(){return this.projectErrors||Zfe}setProjectErrors(e){this.projectErrors=e}getLanguageService(e=!0){return e&&Bge(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(e,t){return this.projectService.getDocumentPositionMapper(this,e,t)}getSourceFileLike(e){return this.projectService.getSourceFileLike(e,this)}shouldEmitFile(e){return e&&!e.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(e.path)}getCompileOnSaveAffectedFileList(e){return this.languageServiceEnabled?(Bge(this),this.builderState=iW.create(this.program,this.builderState,!0),R(iW.getFilesAffectedBy(this.builderState,this.program,e.path,this.cancellationToken,this.projectService.host),(e=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(e.path))?e.fileName:void 0))):[]}emitFile(e,t){if(!this.languageServiceEnabled||!this.shouldEmitFile(e))return{emitSkipped:!0,diagnostics:Zfe};const{emitSkipped:n,diagnostics:r,outputFiles:i}=this.getLanguageService().getEmitOutput(e.fileName);if(!n){for(const e of i){t(Jo(e.name,this.currentDirectory),e.text,e.writeByteOrderMark)}if(this.builderState&&Pk(this.compilerOptions)){const t=i.filter((e=>yO(e.name)));if(1===t.length){const n=this.program.getSourceFile(e.fileName),r=this.projectService.host.createHash?this.projectService.host.createHash(t[0].text):ji(t[0].text);iW.updateSignatureOfFile(this.builderState,r,n.resolvedPath)}}}return{emitSkipped:n,diagnostics:r}}enableLanguageService(){this.languageServiceEnabled||2===this.projectService.serverMode||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(const e of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(e.fileName);this.program.forEachResolvedProjectReference((e=>this.detachScriptInfoFromProject(e.sourceFile.fileName))),this.program=void 0}}disableLanguageService(e){this.languageServiceEnabled&&(_n.assert(2!==this.projectService.serverMode),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=e,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(e){return e.enable&&e.include?{...e,include:this.removeExistingTypings(e.include)}:e}getExternalFiles(e){return le(A(this.plugins,(t=>{if("function"==typeof t.module.getExternalFiles)try{return t.module.getExternalFiles(this,e||0)}catch(e){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${e}`),e.stack&&this.projectService.logger.info(e.stack)}})))}getSourceFile(e){if(this.program)return this.program.getSourceFileByPath(e)}getSourceFileOrConfigFile(e){const t=this.program.getCompilerOptions();return e===t.configFilePath?t.configFile:this.getSourceFile(e)}close(){var e;this.typingsCache&&this.projectService.typingsInstaller.onProjectClosed(this),this.typingsCache=void 0,this.closeWatchingTypingLocations(),this.cleanupProgram(),_(this.externalFiles,(e=>this.detachScriptInfoIfNotRoot(e))),this.rootFilesMap.forEach((e=>{var t;return null==(t=e.info)?void 0:t.detachFromProject(this)})),this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,null==(e=this.packageJsonWatches)||e.forEach((e=>{e.projects.delete(this),e.close()})),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(px(this.missingFilesMap,ix),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(e){const t=this.projectService.getScriptInfo(e);t&&!this.isRoot(t)&&t.detachFromProject(this)}isClosed(){return void 0===this.rootFilesMap}hasRoots(){var e;return!!(null==(e=this.rootFilesMap)?void 0:e.size)}isOrphan(){return!1}getRootFiles(){return this.rootFilesMap&&Ie(M(this.rootFilesMap.values(),(e=>{var t;return null==(t=e.info)?void 0:t.fileName})))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return Ie(M(this.rootFilesMap.values(),(e=>e.info)))}getScriptInfos(){return this.languageServiceEnabled?N(this.program.getSourceFiles(),(e=>{const t=this.projectService.getScriptInfoForPath(e.resolvedPath);return _n.assert(!!t,"getScriptInfo",(()=>`scriptInfo for a file '${e.fileName}' Path: '${e.path}' / '${e.resolvedPath}' is missing.`)),t})):this.getRootScriptInfos()}getExcludedFiles(){return Zfe}getFileNames(e,t){if(!this.program)return[];if(!this.languageServiceEnabled){let e=this.getRootFiles();if(this.compilerOptions){const t=p7(this.compilerOptions);t&&(e||(e=[])).push(t)}return e}const n=[];for(const t of this.program.getSourceFiles())e&&this.program.isSourceFileFromExternalLibrary(t)||n.push(t.fileName);if(!t){const e=this.program.getCompilerOptions().configFile;if(e&&(n.push(e.fileName),e.extendedSourceFiles))for(const t of e.extendedSourceFiles)n.push(t)}return n}getFileNamesWithRedirectInfo(e){return this.getFileNames().map((t=>({fileName:t,isSourceOfProjectReferenceRedirect:e&&this.isSourceOfProjectReferenceRedirect(t)})))}hasConfigFile(e){if(this.program&&this.languageServiceEnabled){const t=this.program.getCompilerOptions().configFile;if(t){if(e===t.fileName)return!0;if(t.extendedSourceFiles)for(const n of t.extendedSourceFiles)if(e===n)return!0}}return!1}containsScriptInfo(e){if(this.isRoot(e))return!0;if(!this.program)return!1;const t=this.program.getSourceFileByPath(e.path);return!!t&&t.resolvedPath===e.path}containsFile(e,t){const n=this.projectService.getScriptInfoForNormalizedPath(e);return!(!n||!n.isScriptOpen()&&t)&&this.containsScriptInfo(n)}isRoot(e){var t,n;return(null==(n=null==(t=this.rootFilesMap)?void 0:t.get(e.path))?void 0:n.info)===e}addRoot(e,t){_n.assert(!this.isRoot(e)),this.rootFilesMap.set(e.path,{fileName:t||e.fileName,info:e}),e.attachToProject(this),this.markAsDirty()}addMissingFileRoot(e){const t=this.projectService.toPath(e);this.rootFilesMap.set(t,{fileName:e}),this.markAsDirty()}removeFile(e,t,n){this.isRoot(e)&&this.removeRoot(e),t?this.resolutionCache.removeResolutionsOfFile(e.path):this.resolutionCache.invalidateResolutionOfFile(e.path),this.cachedUnresolvedImportsPerFile.delete(e.path),n&&e.detachFromProject(this),this.markAsDirty()}registerFileUpdate(e){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(e)}markFileAsDirty(e){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(e)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}markAutoImportProviderAsDirty(){var e;this.autoImportProviderHost||(this.autoImportProviderHost=void 0),null==(e=this.autoImportProviderHost)||e.markAsDirty()}onAutoImportProviderSettingsChanged(){this.markAutoImportProviderAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.markAutoImportProviderAsDirty()}onFileAddedOrRemoved(e){this.hasAddedorRemovedFiles=!0,e&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}onReleaseOldSourceFile(e,t,n,r){(!r||e.resolvedPath===e.path&&r.resolvedPath!==e.path)&&this.detachScriptInfoFromProject(e.fileName,n)}updateFromProject(){Bge(this)}updateGraph(){var e,t;null==(e=$n)||e.push($n.Phase.Session,"updateGraph",{name:this.projectName,kind:Eme[this.projectKind]}),this.resolutionCache.startRecordingFilesWithChangedResolutions();const n=this.updateGraphWorker(),r=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const i=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||Zfe;for(const e of i)this.cachedUnresolvedImportsPerFile.delete(e);this.languageServiceEnabled&&0===this.projectService.serverMode&&!this.isOrphan()?((n||i.length)&&(this.lastCachedUnresolvedImportsList=function(e,t){var n,r;const i=e.getSourceFiles();null==(n=$n)||n.push($n.Phase.Session,"getUnresolvedImports",{count:i.length});const o=e.getTypeChecker().getAmbientModules().map((e=>Ey(e.getName()))),a=Z(A(i,(n=>function(e,t,n,r){return B(r,t.path,(()=>{let r;return e.forEachResolvedModule((({resolvedModule:e},t)=>{e&&eT(e.extension)||ws(t)||n.some((e=>e===t))||(r=re(r,CM(t).packageName))}),t),r||Zfe}))}(e,n,o,t))));return null==(r=$n)||r.pop(),a}(this.program,this.cachedUnresolvedImportsPerFile)),this.enqueueInstallTypingsForProject(r)):this.lastCachedUnresolvedImportsList=void 0;const o=0===this.projectProgramVersion&&n;return n&&this.projectProgramVersion++,r&&this.markAutoImportProviderAsDirty(),o&&this.getPackageJsonAutoImportProvider(),null==(t=$n)||t.pop(),!n}enqueueInstallTypingsForProject(e){const t=this.getTypeAcquisition();if(!t||!t.enable||this.projectService.typingsInstaller===Tge)return;const n=this.typingsCache;var r,i,o,a;!e&&n&&(o=t,a=n.typeAcquisition,o.enable===a.enable&&jme(o.include,a.include)&&jme(o.exclude,a.exclude))&&!function(e,t){return Lk(e)!==Lk(t)}(this.getCompilationSettings(),n.compilerOptions)&&(r=this.lastCachedUnresolvedImportsList,i=n.unresolvedImports,r===i||ee(r,i))||(this.typingsCache={compilerOptions:this.getCompilationSettings(),typeAcquisition:t,unresolvedImports:this.lastCachedUnresolvedImportsList},this.projectService.typingsInstaller.enqueueInstallTypingsRequest(this,t,this.lastCachedUnresolvedImportsList))}updateTypingFiles(e,t,n,r){this.typingsCache={compilerOptions:e,typeAcquisition:t,unresolvedImports:n};const i=t&&t.enable?le(r):Zfe;rn(i,this.typingFiles,Ct(!this.useCaseSensitiveFileNames()),nt,(e=>this.detachScriptInfoFromProject(e)))&&(this.typingFiles=i,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&px(this.typingWatchers,ix),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:aG})}watchTypingLocations(e){if(this.currentDirectory===this.projectService.currentDirectory||!e$(this.toPath(this.currentDirectory)))return;if(!e)return void(this.typingWatchers.isInvoked=!1);if(!e.length)return void this.closeWatchingTypingLocations();const t=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const n=(e,n)=>{const r=this.toPath(e);if(t.delete(r),!this.typingWatchers.has(r)){const t="FileWatcher"===n?M$.TypingInstallerLocationFile:M$.TypingInstallerLocationDirectory;this.typingWatchers.set(r,e$(r)?"FileWatcher"===n?this.projectService.watchFactory.watchFile(e,(()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke()),2e3,this.projectService.getWatchOptions(this),t,this):this.projectService.watchFactory.watchDirectory(e,(e=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):So(e,".json")?ea(e,Ro(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames())?this.writeLog("Ignoring package.json change at global typings location"):void this.onTypingInstallerWatchInvoke():this.writeLog("Ignoring files that are not *.json")),1,this.projectService.getWatchOptions(this),t,this):(this.writeLog(`Skipping watcher creation at ${e}:: ${Rge(t,this)}`),L$))}};for(const t of e){const e=Eo(t);if("package.json"!==e&&"bower.json"!==e)if(ta(this.currentDirectory,t,this.currentDirectory,!this.useCaseSensitiveFileNames())){const e=t.indexOf(_o,this.currentDirectory.length+1);n(-1!==e?t.substr(0,e):t,"DirectoryWatcher")}else ta(this.projectService.typingsInstaller.globalTypingsCacheLocation,t,this.currentDirectory,!this.useCaseSensitiveFileNames())?n(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher"):n(t,"DirectoryWatcher");else n(t,"FileWatcher")}t.forEach(((e,t)=>{e.close(),this.typingWatchers.delete(t)}))}skipWatchingFailedLookups(e){const t=this.projectService.getScriptInfoForPath(e);return null==t?void 0:t.isDynamic}skipWatchingTypeRoots(){return Vme(this)&&this.currentDirectory===this.projectService.currentDirectory}getCurrentProgram(){return this.program}removeExistingTypings(e){if(!e.length)return e;const t=NR(this.getCompilerOptions(),this);return C(e,(e=>!t.includes(e)))}updateGraphWorker(){var e,t;const n=this.languageService.getCurrentProgram();_n.assert(n===this.program),_n.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const r=qn(),{hasInvalidatedResolutions:i,hasInvalidatedLibResolutions:o}=this.resolutionCache.createHasInvalidatedResolutions(rt,rt);this.hasInvalidatedResolutions=i,this.hasInvalidatedLibResolutions=o,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,null==(e=$n)||e.push($n.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,n),null==(t=$n)||t.pop(),_n.assert(void 0===n||void 0!==this.program);let a=!1;if(this.program&&(!n||this.program!==n&&2!==this.program.structureIsReused)){if(a=!0,this.rootFilesMap.forEach(((e,t)=>{var n;const r=this.program.getSourceFileByPath(t),i=e.info;r&&(null==(n=e.info)?void 0:n.path)!==r.resolvedPath&&(e.info=this.projectService.getScriptInfo(r.fileName),_n.assert(e.info.isAttached(this)),null==i||i.detachFromProject(this))})),BU(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),((e,t)=>this.addMissingFileWatcher(e,t))),this.generatedFilesMap){const e=this.compilerOptions.outFile;Lme(this.generatedFilesMap)?e&&this.isValidGeneratedFileWatcher(WS(e)+".d.ts",this.generatedFilesMap)||this.clearGeneratedFileWatch():e?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach(((e,t)=>{const n=this.program.getSourceFileByPath(t);n&&n.resolvedPath===t&&this.isValidGeneratedFileWatcher(Wy(n.fileName,this.compilerOptions,this.program),e)||($U(e),this.generatedFilesMap.delete(t))}))}this.languageServiceEnabled&&0===this.projectService.serverMode&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||n&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&n&&this.program&&od(this.changedFilesForExportMapCache,(e=>{const t=n.getSourceFileByPath(e),r=this.program.getSourceFileByPath(e);return t&&r?this.exportMapCache.onFileChanged(t,r,!!this.getTypeAcquisition().enable):(this.exportMapCache.clear(),!0)}))),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());const s=this.externalFiles||Zfe;this.externalFiles=this.getExternalFiles(),rn(this.externalFiles,s,Ct(!this.useCaseSensitiveFileNames()),(e=>{const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);null==t||t.attachToProject(this)}),(e=>this.detachScriptInfoFromProject(e)));const c=qn()-r;return this.sendPerformanceEvent("UpdateGraph",c),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${a}${this.program?` structureIsReused:: ${Nr[this.program.structureIsReused]}`:""} Elapsed: ${c}ms`),this.projectService.logger.isTestLogger?this.program!==n?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==n&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),a}sendPerformanceEvent(e,t){this.projectService.sendPerformanceEvent(e,t)}detachScriptInfoFromProject(e,t){const n=this.projectService.getScriptInfo(e);n&&(n.detachFromProject(this),t||this.resolutionCache.removeResolutionsOfFile(n.path))}addMissingFileWatcher(e,t){var n;if(Wme(this)){const t=this.projectService.configFileExistenceInfoCache.get(e);if(null==(n=null==t?void 0:t.config)?void 0:n.projects.has(this.canonicalConfigFilePath))return L$}const r=this.projectService.watchFactory.watchFile(Jo(t,this.currentDirectory),((t,n)=>{Wme(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(t,e,n),0===n&&this.missingFilesMap.has(e)&&(this.missingFilesMap.delete(e),r.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}),500,this.projectService.getWatchOptions(this),M$.MissingFile,this);return r}isWatchedMissingFile(e){return!!this.missingFilesMap&&this.missingFilesMap.has(e)}addGeneratedFileWatch(e,t){if(this.compilerOptions.outFile)this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(e));else{const n=this.toPath(t);if(this.generatedFilesMap){if(Lme(this.generatedFilesMap))return void _n.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);if(this.generatedFilesMap.has(n))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(n,this.createGeneratedFileWatcher(e))}}createGeneratedFileWatcher(e){return{generatedFilePath:this.toPath(e),watcher:this.projectService.watchFactory.watchFile(e,(()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}),2e3,this.projectService.getWatchOptions(this),M$.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(e,t){return this.toPath(e)===t.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(Lme(this.generatedFilesMap)?$U(this.generatedFilesMap):px(this.generatedFilesMap,$U),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(e){const t=this.projectService.getScriptInfoForPath(this.toPath(e));return t&&!t.isAttached(this)?Xfe.ThrowProjectDoesNotContainDocument(e,this):t}getScriptInfo(e){return this.projectService.getScriptInfo(e)}filesToString(e){return this.filesToStringWorker(e,!0,!1)}filesToStringWorker(e,t,n){if(this.initialLoadPending)return"\tFiles (0) InitialLoadPending\n";if(!this.program)return"\tFiles (0) NoProgram\n";const r=this.program.getSourceFiles();let i=`\tFiles (${r.length})\n`;if(e){for(const e of r)i+=`\t${e.fileName}${n?` ${e.version} ${JSON.stringify(e.text)}`:""}\n`;t&&(i+="\n\n",D$(this.program,(e=>i+=`\t${e}\n`)))}return i}print(e,t,n){var r;this.writeLog(`Project '${this.projectName}' (${Eme[this.projectKind]})`),this.writeLog(this.filesToStringWorker(e&&this.projectService.logger.hasLevel(3),t&&this.projectService.logger.hasLevel(3),n&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),null==(r=this.noDtsResolutionProject)||r.print(!1,!1,!1)}setCompilerOptions(e){var t;if(e){e.allowNonTsExtensions=!0;const n=this.compilerOptions;this.compilerOptions=e,this.setInternalCompilerOptionsForEmittingJsFiles(),null==(t=this.noDtsResolutionProject)||t.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),ed(n,e)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(e){this.watchOptions=e}getWatchOptions(){return this.watchOptions}setTypeAcquisition(e){e&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(e))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(e,t){var n,r;const i=t?e=>Ie(e.entries(),(([e,t])=>({fileName:e,isSourceOfProjectReferenceRedirect:t}))):e=>Ie(e.keys());this.initialLoadPending||Bge(this);const o={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:Vme(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},a=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&e===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!a)return{info:o,projectErrors:this.getGlobalProjectErrors()};const e=this.lastReportedFileNames,r=(null==(n=this.externalFiles)?void 0:n.map((e=>({fileName:nme(e),isSourceOfProjectReferenceRedirect:!1}))))||Zfe,s=je(this.getFileNamesWithRedirectInfo(!!t).concat(r),(e=>e.fileName),(e=>e.isSourceOfProjectReferenceRedirect)),c=new Map,l=new Map,_=a?Ie(a.keys()):[],u=[];return id(s,((n,r)=>{e.has(r)?t&&n!==e.get(r)&&u.push({fileName:r,isSourceOfProjectReferenceRedirect:n}):c.set(r,n)})),id(e,((e,t)=>{s.has(t)||l.set(t,e)})),this.lastReportedFileNames=s,this.lastReportedVersion=this.projectProgramVersion,{info:o,changes:{added:i(c),removed:i(l),updated:t?_.map((e=>({fileName:e,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(e)}))):_,updatedRedirects:t?u:void 0},projectErrors:this.getGlobalProjectErrors()}}{const e=this.getFileNamesWithRedirectInfo(!!t),n=(null==(r=this.externalFiles)?void 0:r.map((e=>({fileName:nme(e),isSourceOfProjectReferenceRedirect:!1}))))||Zfe,i=e.concat(n);return this.lastReportedFileNames=je(i,(e=>e.fileName),(e=>e.isSourceOfProjectReferenceRedirect)),this.lastReportedVersion=this.projectProgramVersion,{info:o,files:t?i:i.map((e=>e.fileName)),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(e){this.rootFilesMap.delete(e.path)}isSourceOfProjectReferenceRedirect(e){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(e)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,Ro(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(e){if(!this.projectService.globalPlugins.length)return;const t=this.projectService.host;if(!t.require&&!t.importPlugin)return void this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");const n=this.getGlobalPluginSearchPaths();for(const t of this.projectService.globalPlugins)t&&(e.plugins&&e.plugins.some((e=>e.name===t))||(this.projectService.logger.info(`Loading global plugin ${t}`),this.enablePlugin({name:t,global:!0},n)))}enablePlugin(e,t){this.projectService.requestEnablePlugin(this,e,t)}enableProxy(e,t){try{if("function"!=typeof e)return void this.projectService.logger.info(`Skipped loading plugin ${t.name} because it did not expose a proper factory function`);const n={config:t,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},r=e({typescript:Lfe}),i=r.create(n);for(const e of Object.keys(this.languageService))e in i||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${e} in created LS. Patching.`),i[e]=this.languageService[e]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=i,this.plugins.push({name:t.name,module:r})}catch(e){this.projectService.logger.info(`Plugin activation failed: ${e}`)}}onPluginConfigurationChanged(e,t){this.plugins.filter((t=>t.name===e)).forEach((e=>{e.module.onConfigurationChanged&&e.module.onConfigurationChanged(t)}))}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(e,t){return 0!==this.projectService.serverMode?Zfe:this.projectService.getPackageJsonsVisibleToFile(e,this,t)}getNearestAncestorDirectoryWithPackageJson(e){return this.projectService.getNearestAncestorDirectoryWithPackageJson(e,this)}getPackageJsonsForAutoImport(e){return this.getPackageJsonsVisibleToFile(Ro(this.currentDirectory,AV),e)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=v0(this))}clearCachedExportInfoMap(){var e;null==(e=this.exportMapCache)||e.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return 0!==this.projectService.includePackageJsonAutoImports()&&this.languageServiceEnabled&&!$Z(this.currentDirectory)&&this.isDefaultProjectForOpenFiles()?this.projectService.includePackageJsonAutoImports():0}getHostForAutoImportProvider(){var e,t;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||(null==(e=this.projectService.host.realpath)?void 0:e.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:null==(t=this.projectService.host.trace)?void 0:t.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var e,t,n;if(!1===this.autoImportProviderHost)return;if(0!==this.projectService.serverMode)return void(this.autoImportProviderHost=!1);if(this.autoImportProviderHost)return Bge(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()?(this.autoImportProviderHost.close(),void(this.autoImportProviderHost=void 0)):this.autoImportProviderHost.getCurrentProgram();const r=this.includePackageJsonAutoImports();if(r){null==(e=$n)||e.push($n.Phase.Session,"getPackageJsonAutoImportProvider");const i=qn();if(this.autoImportProviderHost=zme.create(r,this,this.getHostForAutoImportProvider())??!1,this.autoImportProviderHost)return Bge(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",qn()-i),null==(t=$n)||t.pop(),this.autoImportProviderHost.getCurrentProgram();null==(n=$n)||n.pop()}}isDefaultProjectForOpenFiles(){return!!id(this.projectService.openFiles,((e,t)=>this.projectService.tryGetDefaultProjectForFile(this.projectService.getScriptInfoForPath(t))===this))}watchNodeModulesForPackageJsonChanges(e){return this.projectService.watchPackageJsonsInNodeModules(e,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(e){return _n.assert(0===this.projectService.serverMode),this.noDtsResolutionProject??(this.noDtsResolutionProject=new Bme(this)),this.noDtsResolutionProject.rootFile!==e&&(this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[e]),this.noDtsResolutionProject.rootFile=e),this.noDtsResolutionProject}runWithTemporaryFileUpdate(e,t,n){var r,i,o,a;const s=this.program,c=_n.checkDefined(null==(r=this.program)?void 0:r.getSourceFile(e),"Expected file to be part of program"),l=_n.checkDefined(c.getFullText());null==(i=this.getScriptInfo(e))||i.editContent(0,l.length,t),this.updateGraph();try{n(this.program,s,null==(o=this.program)?void 0:o.getSourceFile(e))}finally{null==(a=this.getScriptInfo(e))||a.editContent(0,t.length,l)}}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:s,lib:s,noLib:!0}}};var Mme=class extends Rme{constructor(e,t,n,r,i,o){super(e.newInferredProjectName(),0,e,!1,void 0,t,!1,n,e.host,i),this._isJsInferredProject=!1,this.typeAcquisition=o,this.projectRootPath=r&&e.toCanonicalFileName(r),r||e.useSingleInferredProject||(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;const t=jQ(e||this.getCompilationSettings());this._isJsInferredProject&&"number"!=typeof t.maxNodeModuleJsDepth?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){_n.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForScriptInfo(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&h(this.getRootScriptInfos(),(e=>!e.isJavaScript()))&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||1===this.getRootScriptInfos().length}close(){_(this.getRootScriptInfos(),(e=>this.projectService.stopWatchingConfigFilesForScriptInfo(e))),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:Ame(this),include:s,exclude:s}}},Bme=class extends Rme{constructor(e){super(e.projectService.newAuxiliaryProjectName(),4,e.projectService,!1,void 0,e.getCompilerOptionsForNoDtsResolutionProject(),!1,void 0,e.projectService.host,e.currentDirectory)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},Jme=class e extends Rme{constructor(e,t,n){super(e.projectService.newAutoImportProviderProjectName(),3,e.projectService,!1,void 0,n,!1,e.getWatchOptions(),e.projectService.host,e.currentDirectory),this.hostProject=e,this.rootFileNames=t,this.useSourceOfProjectReferenceRedirect=Ve(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=Ve(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(e,t,n,r){var i,o;if(!e)return s;const a=t.getCurrentProgram();if(!a)return s;const c=qn();let l,u;const d=Ro(t.currentDirectory,AV),p=t.getPackageJsonsForAutoImport(Ro(t.currentDirectory,d));for(const e of p)null==(i=e.dependencies)||i.forEach(((e,t)=>y(t))),null==(o=e.peerDependencies)||o.forEach(((e,t)=>y(t)));let f=0;if(l){const i=t.getSymlinkCache();for(const o of Ie(l.keys())){if(2===e&&f>=this.maxDependencies)return t.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),s;const c=DR(o,t.currentDirectory,r,n,a.getModuleResolutionCache());if(c){const e=v(c,a,i);if(e){f+=h(e);continue}}if(!_([t.currentDirectory,t.getGlobalTypingsCacheLocation()],(e=>{if(e){const t=DR(`@types/${o}`,e,r,n,a.getModuleResolutionCache());if(t){const e=v(t,a,i);return f+=h(e),!0}}}))&&(c&&r.allowJs&&r.maxNodeModuleJsDepth)){const e=v(c,a,i,!0);f+=h(e)}}}const m=a.getResolvedProjectReferences();let g=0;return(null==m?void 0:m.length)&&t.projectService.getHostPreferences().includeCompletionsForModuleExports&&m.forEach((e=>{if(null==e?void 0:e.commandLine.options.outFile)g+=h(b([KS(e.commandLine.options.outFile,".d.ts")]));else if(e){const n=ut((()=>hU(e.commandLine,!t.useCaseSensitiveFileNames())));g+=h(b(R(e.commandLine.fileNames,(r=>yO(r)||So(r,".json")||a.getSourceFile(r)?void 0:cU(r,e.commandLine,!t.useCaseSensitiveFileNames(),n)))))}})),(null==u?void 0:u.size)&&t.log(`AutoImportProviderProject: found ${u.size} root files in ${f} dependencies ${g} referenced projects in ${qn()-c} ms`),u?Ie(u.values()):s;function h(e){return(null==e?void 0:e.length)?(u??(u=new Set),e.forEach((e=>u.add(e))),1):0}function y(e){Kt(e,"@types/")||(l||(l=new Set)).add(e)}function v(e,i,o,a){var s;const c=gM(e,r,n,i.getModuleResolutionCache(),a);if(c){const r=null==(s=n.realpath)?void 0:s.call(n,e.packageDirectory),i=r?t.toPath(r):void 0,a=i&&i!==t.toPath(e.packageDirectory);return a&&o.setSymlinkedDirectory(e.packageDirectory,{real:$o(r),realPath:$o(i)}),b(c,a?t=>t.replace(e.packageDirectory,r):void 0)}}function b(e,t){return R(e,(e=>{const n=t?t(e):e;if(!(a.getSourceFile(n)||t&&a.getSourceFile(e)))return n}))}}static create(t,n,r){if(0===t)return;const i={...n.getCompilerOptions(),...this.compilerOptionsOverrides},o=this.getRootFileNames(t,n,r,i);return o.length?new e(n,o,i):void 0}isEmpty(){return!V(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=e.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;const n=this.getCurrentProgram(),r=super.updateGraph();return n&&n!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),r}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var e;return!!(null==(e=this.rootFileNames)?void 0:e.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||s}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var e;return null==(e=this.hostProject.getCurrentProgram())?void 0:e.getModuleResolutionCache()}};Jme.maxDependencies=10,Jme.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:s,lib:s,noLib:!0};var zme=Jme,qme=class extends Rme{constructor(e,t,n,r,i){super(e,1,n,!1,void 0,{},!1,void 0,r,Fo(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.initialLoadPending=!0,this.sendLoadingProjectFinish=!1,this.pendingUpdateLevel=2,this.pendingUpdateReason=i}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){const t=nme(e),n=this.projectService.toCanonicalFileName(t);let r=this.projectService.configFileExistenceInfoCache.get(n);return r||this.projectService.configFileExistenceInfoCache.set(n,r={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,n,r,this),this.languageServiceEnabled&&0===this.projectService.serverMode&&this.projectService.watchWildcards(t,r,this),r.exists?r.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(nme(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){if(this.deferredClose)return!1;const e=this.dirty;this.initialLoadPending=!1;const t=this.pendingUpdateLevel;let n;switch(this.pendingUpdateLevel=0,t){case 1:this.openFileWatchTriggered.clear(),n=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const e=_n.checkDefined(this.pendingUpdateReason);this.projectService.reloadConfiguredProject(this,e),n=!0;break;default:n=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),2!==t&&(!n||e&&this.triggerFileForConfigFileDiag&&2!==this.getCurrentProgram().structureIsReused)?this.triggerFileForConfigFileDiag||this.projectService.sendConfigFileDiagEvent(this,void 0,!1):this.triggerFileForConfigFileDiag=void 0,n}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){_n.assert(this.initialLoadPending),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getRedirectFromSourceFile(e){const t=this.getCurrentProgram();return t&&t.getRedirectFromSourceFile(e)}forEachResolvedProjectReference(e){var t;return null==(t=this.getCurrentProgram())?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!(null==(t=e.plugins)?void 0:t.length)&&!this.projectService.globalPlugins.length)return;const n=this.projectService.host;if(!n.require&&!n.importPlugin)return void this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");const r=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const e=Fo(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${e} to search paths`),r.unshift(e)}if(e.plugins)for(const t of e.plugins)this.enablePlugin(t,r);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return C(this.projectErrors,(e=>!e.file))||Zfe}getAllProjectErrors(){return this.projectErrors||Zfe}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach(((e,t)=>this.releaseParsedConfig(t))),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}markAsDirty(){this.deferredClose||super.markAsDirty()}isOrphan(){return!!this.deferredClose}getEffectiveTypeRoots(){return vR(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){this.parsedCommandLine=e,Tj(e.fileNames,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,Sj(e.raw))}},Ume=class extends Rme{constructor(e,t,n,r,i,o,a){super(e,2,t,!0,r,n,i,a,t.host,Fo(o||Lo(e))),this.externalProjectName=e,this.compileOnSaveEnabled=i,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}};function Vme(e){return 0===e.projectKind}function Wme(e){return 1===e.projectKind}function $me(e){return 2===e.projectKind}function Hme(e){return 3===e.projectKind||4===e.projectKind}function Kme(e){return Wme(e)&&!!e.deferredClose}var Gme=20971520,Xme=4194304,Qme="projectsUpdatedInBackground",Yme="projectLoadingStart",Zme="projectLoadingFinish",ege="largeFileReferenced",tge="configFileDiag",nge="projectLanguageServiceState",rge="projectInfo",ige="openFileInfo",oge="createFileWatcher",age="createDirectoryWatcher",sge="closeFileWatcher",cge="*ensureProjectForOpenFiles*";function lge(e){const t=new Map;for(const n of e)if("object"==typeof n.type){const e=n.type;e.forEach((e=>{_n.assert("number"==typeof e)})),t.set(n.name,e)}return t}var _ge=lge(JO),uge=lge(LO),dge=new Map(Object.entries({none:0,block:1,smart:2})),pge={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}};function fge(e){return Ye(e.indentStyle)&&(e.indentStyle=dge.get(e.indentStyle.toLowerCase()),_n.assert(void 0!==e.indentStyle)),e}function mge(e){return _ge.forEach(((t,n)=>{const r=e[n];Ye(r)&&(e[n]=t.get(r.toLowerCase()))})),Xe(e.lib)&&(e.lib=e.lib.map((e=>OO.get(e)??e))),e}function gge(e,t){let n,r;return LO.forEach((i=>{const o=e[i.name];if(void 0===o)return;const a=uge.get(i.name);(n||(n={}))[i.name]=a?Ye(o)?a.get(o.toLowerCase()):o:jj(i,o,t||"",r||(r=[]))})),n&&{watchOptions:n,errors:r}}function hge(e){let t;return tL.forEach((n=>{const r=e[n.name];void 0!==r&&((t||(t={}))[n.name]=r)})),t}function yge(e){return Ye(e)?vge(e):e}function vge(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function bge(e){const{lazyConfiguredProjectsFromExternalProject:t,...n}=e;return n}var xge={getFileName:e=>e,getScriptKind:(e,t)=>{let n;if(t){const r=Ao(e);r&&V(t,(e=>e.extension===r&&(n=e.scriptKind,!0)))}return n},hasMixedContent:(e,t)=>V(t,(t=>t.isMixedContent&&So(e,t.extension)))},kge={getFileName:e=>e.fileName,getScriptKind:e=>yge(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent};function Sge(e,t){for(const n of t)if(n.getProjectName()===e)return n}var Tge={isKnownTypesPackageName:rt,installPackage:_t,enqueueInstallTypingsRequest:nt,attach:nt,onProjectClosed:nt,globalTypingsCacheLocation:void 0},Cge={close:nt};function wge(e,t){if(!t)return;const n=t.get(e.path);return void 0!==n?Nge(e)?n&&!Ye(n)?n.get(e.fileName):void 0:Ye(n)||!n?n:n.get(!1):void 0}function Dge(e){return!!e.containingProjects}function Nge(e){return!!e.configFileInfo}var Fge=(e=>(e[e.FindOptimized=0]="FindOptimized",e[e.Find=1]="Find",e[e.CreateReplayOptimized=2]="CreateReplayOptimized",e[e.CreateReplay=3]="CreateReplay",e[e.CreateOptimized=4]="CreateOptimized",e[e.Create=5]="Create",e[e.ReloadOptimized=6]="ReloadOptimized",e[e.Reload=7]="Reload",e))(Fge||{});function Ege(e){return e-1}function Pge(e,t,n,r,i,o,a,s,c){for(var l;;){if(t.parsedCommandLine&&(s&&!t.parsedCommandLine.options.composite||t.parsedCommandLine.options.disableSolutionSearching))return;const _=t.projectService.getConfigFileNameForFile({fileName:t.getConfigFilePath(),path:e.path,configFileInfo:!0,isForDefaultProject:!s},r<=3);if(!_)return;const u=t.projectService.findCreateOrReloadConfiguredProject(_,r,i,o,s?void 0:e.fileName,a,s,c);if(!u)return;!u.project.parsedCommandLine&&(null==(l=t.parsedCommandLine)?void 0:l.options.composite)&&u.project.setPotentialProjectReference(t.canonicalConfigFilePath);const d=n(u);if(d)return d;t=u.project}}function Age(e,t,n,r,i,o,a,s){const c=t.options.disableReferencedProjectLoad?0:r;let l;return _(t.projectReferences,(t=>{var _;const u=nme(YV(t)),d=e.projectService.toCanonicalFileName(u),p=null==s?void 0:s.get(d);if(void 0!==p&&p>=c)return;const f=e.projectService.configFileExistenceInfoCache.get(d);let m=0===c?(null==f?void 0:f.exists)||(null==(_=e.resolvedChildConfigs)?void 0:_.has(d))?f.config.parsedCommandLine:void 0:e.getParsedCommandLine(u);if(m&&c!==r&&c>2&&(m=e.getParsedCommandLine(u)),!m)return;const g=e.projectService.findConfiguredProjectByProjectName(u,o);if(2!==c||f||g){switch(c){case 6:g&&g.projectService.reloadConfiguredProjectOptimized(g,i,a);case 4:(e.resolvedChildConfigs??(e.resolvedChildConfigs=new Set)).add(d);case 2:case 0:if(g||0!==c){const t=n(f??e.projectService.configFileExistenceInfoCache.get(d),g,u,i,e,d);if(t)return t}break;default:_n.assertNever(c)}(s??(s=new Map)).set(d,c),(l??(l=[])).push(m)}}))||_(l,(t=>t.projectReferences&&Age(e,t,n,c,i,o,a,s)))}function Ige(e,t,n,r,i){let o,a=!1;switch(t){case 2:case 3:qge(e)&&(o=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath));break;case 4:if(o=zge(e),o)break;case 5:a=function(e,t){if(t){if(Jge(e,t,!1))return!0}else Bge(e);return!1}(e,n);break;case 6:if(e.projectService.reloadConfiguredProjectOptimized(e,r,i),o=zge(e),o)break;case 7:a=e.projectService.reloadConfiguredProjectClearingSemanticCache(e,r,i);break;case 0:case 1:break;default:_n.assertNever(t)}return{project:e,sentConfigFileDiag:a,configFileExistenceInfo:o,reason:r}}function Oge(e,t){return e.initialLoadPending?(e.potentialProjectReferences&&od(e.potentialProjectReferences,t))??(e.resolvedChildConfigs&&od(e.resolvedChildConfigs,t)):void 0}function Lge(e,t,n){const r=n&&e.projectService.configuredProjects.get(n);return r&&t(r)}function jge(e,t){return function(e,t,n,r){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.initialLoadPending?Oge(e,r):_(e.getProjectReferences(),n)}(e,(n=>Lge(e,t,n.sourceFile.path)),(n=>Lge(e,t,e.toPath(YV(n)))),(n=>Lge(e,t,n)))}function Rge(e,t){return`${Ye(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function Mge(e){return!e.isScriptOpen()&&void 0!==e.mTime}function Bge(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&!e.updateGraph()}function Jge(e,t,n){if(!n&&(e.invalidateResolutionsOfFailedLookupLocations(),!e.dirty))return!1;e.triggerFileForConfigFileDiag=t;const r=e.pendingUpdateLevel;if(e.updateGraph(),!e.triggerFileForConfigFileDiag&&!n)return 2===r;const i=e.projectService.sendConfigFileDiagEvent(e,t,n);return e.triggerFileForConfigFileDiag=void 0,i}function zge(e){const t=nme(e.getConfigFilePath()),n=e.projectService.ensureParsedConfigUptoDate(t,e.canonicalConfigFilePath,e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),r=n.config.parsedCommandLine;if(e.parsedCommandLine=r,e.resolvedChildConfigs=void 0,e.updateReferences(r.projectReferences),qge(e))return n}function qge(e){return!(!e.parsedCommandLine||!e.parsedCommandLine.options.composite&&!kj(e.parsedCommandLine))}function Uge(e){return`User requested reload projects: ${e}`}function Vge(e){Wme(e)&&(e.projectOptions=!0)}function Wge(e){let t=1;return()=>e(t++)}function $ge(){return{idToCallbacks:new Map,pathToId:new Map}}function Hge(e,t){return!!t&&!!e.eventHandler&&!!e.session}function Kge(e,t){if(!Hge(e,t))return;const n=$ge(),r=$ge(),i=$ge();let o=1;return e.session.addProtocolHandler("watchChange",(e=>{var t;return Xe(t=e.arguments)?t.forEach(s):s(t),{responseRequired:!1}})),{watchFile:function(e,t){return a(n,e,t,(t=>({eventName:oge,data:{id:t,path:e}})))},watchDirectory:function(e,t,n){return a(n?i:r,e,t,(t=>({eventName:age,data:{id:t,path:e,recursive:!!n,ignoreUpdate:!e.endsWith("/node_modules")||void 0}})))},getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function a({pathToId:t,idToCallbacks:n},r,i,a){const s=e.toPath(r);let c=t.get(s);c||t.set(s,c=o++);let l=n.get(c);return l||(n.set(c,l=new Set),e.eventHandler(a(c))),l.add(i),{close(){const r=n.get(c);(null==r?void 0:r.delete(i))&&(r.size||(n.delete(c),t.delete(s),e.eventHandler({eventName:sge,data:{id:c}})))}}}function s({id:e,created:t,deleted:n,updated:r}){c(e,t,0),c(e,n,2),c(e,r,1)}function c(e,t,o){(null==t?void 0:t.length)&&(l(n,e,t,((e,t)=>e(t,o))),l(r,e,t,((e,t)=>e(t))),l(i,e,t,((e,t)=>e(t))))}function l(e,t,n,r){var i;null==(i=e.idToCallbacks.get(t))||i.forEach((e=>{n.forEach((t=>r(e,Lo(t))))}))}}var Gge=class e{constructor(e){var t;this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Set,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=Wge(sme),this.newAutoImportProviderProjectName=Wge(cme),this.newAuxiliaryProjectName=Wge(lme),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.rootOfInferredProjects=new Set,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=pge,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=nt,this.verifyDocumentRegistry=nt,this.verifyProgram=nt,this.onProjectCreation=nt,this.host=e.host,this.logger=e.logger,this.cancellationToken=e.cancellationToken,this.useSingleInferredProject=e.useSingleInferredProject,this.useInferredProjectPerProjectRoot=e.useInferredProjectPerProjectRoot,this.typingsInstaller=e.typingsInstaller||Tge,this.throttleWaitMilliseconds=e.throttleWaitMilliseconds,this.eventHandler=e.eventHandler,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.globalPlugins=e.globalPlugins||Zfe,this.pluginProbeLocations=e.pluginProbeLocations||Zfe,this.allowLocalPluginLoads=!!e.allowLocalPluginLoads,this.typesMapLocation=void 0===e.typesMapLocation?Ro(Fo(this.getExecutingFilePath()),"typesMap.json"):e.typesMapLocation,this.session=e.session,this.jsDocParsingMode=e.jsDocParsingMode,void 0!==e.serverMode?this.serverMode=e.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=We()),this.currentDirectory=nme(this.host.getCurrentDirectory()),this.toCanonicalFileName=Vt(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?$o(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new ume(this.host,this.logger),this.logger.info(`currentDirectory:: ${this.host.getCurrentDirectory()} useCaseSensitiveFileNames:: ${this.host.useCaseSensitiveFileNames}`),this.logger.info(`libs Location:: ${Fo(this.host.getExecutingFilePath())}`),this.logger.info(`globalTypingsCacheLocation:: ${this.typingsInstaller.globalTypingsCacheLocation}`),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.hostConfiguration={formatCodeOptions:qG(this.host.newLine),preferences:OG,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=K0(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const n=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,r=0!==n?e=>this.logger.info(e):nt;this.packageJsonCache=ehe(this),this.watchFactory=0!==this.serverMode?{watchFile:j$,watchDirectory:j$}:VU(Kge(this,e.canUseWatchEvents)||this.host,n,r,Rge),this.canUseWatchEvents=Hge(this,e.canUseWatchEvents),null==(t=e.incrementalVerifier)||t.call(e,this)}toPath(e){return Vo(e,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(e){return Jo(e,this.host.getCurrentDirectory())}setDocument(e,t,n){_n.checkDefined(this.getScriptInfoForPath(t)).cacheSourceFile={key:e,sourceFile:n}}getDocument(e,t){const n=this.getScriptInfoForPath(t);return n&&n.cacheSourceFile&&n.cacheSourceFile.key===e?n.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(e,t){if(!this.eventHandler)return;const n={eventName:nge,data:{project:e,languageServiceEnabled:t}};this.eventHandler(n)}loadTypesMap(){try{const e=this.host.readFile(this.typesMapLocation);if(void 0===e)return void this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);const t=JSON.parse(e);for(const e of Object.keys(t.typesMap))t.typesMap[e].match=new RegExp(t.typesMap[e].match,"i");this.safelist=t.typesMap;for(const e in t.simpleMap)De(t.simpleMap,e)&&this.legacySafelist.set(e,t.simpleMap[e].toLowerCase())}catch(e){this.logger.info(`Error loading types map: ${e}`),this.safelist=pge,this.legacySafelist.clear()}}updateTypingsForProject(e){const t=this.findProject(e.projectName);if(t)switch(e.kind){case oG:return void t.updateTypingFiles(e.compilerOptions,e.typeAcquisition,e.unresolvedImports,e.typings);case aG:return void t.enqueueInstallTypingsForProject(!0)}}watchTypingLocations(e){var t;null==(t=this.findProject(e.projectName))||t.watchTypingLocations(e.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(cge,2500,(()=>{0!==this.pendingProjectUpdates.size?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())})))}delayUpdateProjectGraph(e){if(Kme(e))return;if(e.markAsDirty(),Hme(e))return;const t=e.getProjectName();this.pendingProjectUpdates.set(t,e),this.throttledOperations.schedule(t,250,(()=>{this.pendingProjectUpdates.delete(t)&&Bge(e)}))}hasPendingProjectUpdate(e){return this.pendingProjectUpdates.has(e.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const e={eventName:Qme,data:{openFiles:Ie(this.openFiles.keys(),(e=>this.getScriptInfoForPath(e).fileName))}};this.eventHandler(e)}sendLargeFileReferencedEvent(e,t){if(!this.eventHandler)return;const n={eventName:ege,data:{file:e,fileSize:t,maxFileSize:Xme}};this.eventHandler(n)}sendProjectLoadingStartEvent(e,t){if(!this.eventHandler)return;e.sendLoadingProjectFinish=!0;const n={eventName:Yme,data:{project:e,reason:t}};this.eventHandler(n)}sendProjectLoadingFinishEvent(e){if(!this.eventHandler||!e.sendLoadingProjectFinish)return;e.sendLoadingProjectFinish=!1;const t={eventName:Zme,data:{project:e}};this.eventHandler(t)}sendPerformanceEvent(e,t){this.performanceEventHandler&&this.performanceEventHandler({kind:e,durationMs:t})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(e){this.delayUpdateProjectGraph(e),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(e,t){if(e.length){for(const n of e)t&&n.clearSourceMapperCache(),this.delayUpdateProjectGraph(n);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(e,t){_n.assert(void 0===t||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const n=mge(e),r=gge(e,t),i=hge(e);n.allowNonTsExtensions=!0;const o=t&&this.toCanonicalFileName(t);o?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(o,n),this.watchOptionsForInferredProjectsPerProjectRoot.set(o,r||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(o,i)):(this.compilerOptionsForInferredProjects=n,this.watchOptionsForInferredProjects=r,this.typeAcquisitionForInferredProjects=i);for(const e of this.inferredProjects)(o?e.projectRootPath!==o:e.projectRootPath&&this.compilerOptionsForInferredProjectsPerProjectRoot.has(e.projectRootPath))||(e.setCompilerOptions(n),e.setTypeAcquisition(i),e.setWatchOptions(null==r?void 0:r.watchOptions),e.setProjectErrors(null==r?void 0:r.errors),e.compileOnSaveEnabled=n.compileOnSave,e.markAsDirty(),this.delayUpdateProjectGraph(e));this.delayEnsureProjectForOpenFiles()}findProject(e){if(void 0!==e)return ame(e)?Sge(e,this.inferredProjects):this.findExternalProjectByProjectName(e)||this.findConfiguredProjectByProjectName(nme(e))}forEachProject(e){this.externalProjects.forEach(e),this.configuredProjects.forEach(e),this.inferredProjects.forEach(e)}forEachEnabledProject(e){this.forEachProject((t=>{!t.isOrphan()&&t.languageServiceEnabled&&e(t)}))}getDefaultProjectForFile(e,t){return t?this.ensureDefaultProjectForFile(e):this.tryGetDefaultProjectForFile(e)}tryGetDefaultProjectForFile(e){const t=Ye(e)?this.getScriptInfoForNormalizedPath(e):e;return t&&!t.isOrphan()?t.getDefaultProject():void 0}tryGetDefaultProjectForEnsuringConfiguredProjectForFile(e){var t;const n=Ye(e)?this.getScriptInfoForNormalizedPath(e):e;if(n)return(null==(t=this.pendingOpenFileProjectUpdates)?void 0:t.delete(n.path))&&(this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(n,5),n.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(n,this.openFiles.get(n.path))),this.tryGetDefaultProjectForFile(n)}ensureDefaultProjectForFile(e){return this.tryGetDefaultProjectForEnsuringConfiguredProjectForFile(e)||this.doEnsureDefaultProjectForFile(e)}doEnsureDefaultProjectForFile(e){this.ensureProjectStructuresUptoDate();const t=Ye(e)?this.getScriptInfoForNormalizedPath(e):e;return t?t.getDefaultProject():(this.logErrorForScriptInfoNotFound(Ye(e)?e:e.fileName),Xfe.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(e){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(e)}ensureProjectStructuresUptoDate(){let e=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const t=t=>{e=Bge(t)||e};this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t),e&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(e){const t=this.getScriptInfoForNormalizedPath(e);return t&&t.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(e){const t=this.getScriptInfoForNormalizedPath(e);return{...this.hostConfiguration.preferences,...t&&t.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(e,t){_n.assert(!e.isScriptOpen()),2===t?this.handleDeletedFile(e,!0):(e.deferredDelete&&(e.deferredDelete=void 0),e.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(e.containingProjects,!1),this.handleSourceMapProjects(e))}handleSourceMapProjects(e){if(e.sourceMapFilePath)if(Ye(e.sourceMapFilePath)){const t=this.getScriptInfoForPath(e.sourceMapFilePath);this.delayUpdateSourceInfoProjects(null==t?void 0:t.sourceInfos)}else this.delayUpdateSourceInfoProjects(e.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(e.sourceInfos),e.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(e.declarationInfoPath)}delayUpdateSourceInfoProjects(e){e&&e.forEach(((e,t)=>this.delayUpdateProjectsOfScriptInfoPath(t)))}delayUpdateProjectsOfScriptInfoPath(e){const t=this.getScriptInfoForPath(e);t&&this.delayUpdateProjectGraphs(t.containingProjects,!0)}handleDeletedFile(e,t){_n.assert(!e.isScriptOpen()),this.delayUpdateProjectGraphs(e.containingProjects,!1),this.handleSourceMapProjects(e),e.detachAllProjects(),t?(e.delayReloadNonMixedContentFile(),e.deferredDelete=!0):this.deleteScriptInfo(e)}watchWildcardDirectory(e,t,n,r){let i=this.watchFactory.watchDirectory(e,(t=>this.onWildCardDirectoryWatcherInvoke(e,n,r,o,t)),t,this.getWatchOptionsFromProjectWatchOptions(r.parsedCommandLine.watchOptions,Fo(n)),M$.WildcardDirectory,n);const o={packageJsonWatches:void 0,close(){var e;i&&(i.close(),i=void 0,null==(e=o.packageJsonWatches)||e.forEach((e=>{e.projects.delete(o),e.close()})),o.packageJsonWatches=void 0)}};return o}onWildCardDirectoryWatcherInvoke(e,t,n,r,i){const o=this.toPath(i),a=n.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(i,o);if("package.json"===Eo(o)&&!$Z(o)&&(a&&a.fileExists||!a&&this.host.fileExists(i))){const e=this.getNormalizedAbsolutePath(i);this.logger.info(`Config: ${t} Detected new package.json: ${e}`),this.packageJsonCache.addOrUpdate(e,o),this.watchPackageJsonFile(e,o,r)}(null==a?void 0:a.fileExists)||this.sendSourceFileChange(o);const s=this.findConfiguredProjectByProjectName(t);zU({watchedDirPath:this.toPath(e),fileOrDirectory:i,fileOrDirectoryPath:o,configFileName:t,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:n.parsedCommandLine.options,program:(null==s?void 0:s.getCurrentProgram())||n.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:e=>this.logger.info(e),toPath:e=>this.toPath(e),getScriptKind:s?e=>s.getScriptKind(e):void 0})||(2!==n.updateLevel&&(n.updateLevel=1),n.projects.forEach(((e,n)=>{var r;if(!e)return;const i=this.getConfiguredProjectByCanonicalConfigFilePath(n);if(!i)return;if(s!==i&&this.getHostPreferences().includeCompletionsForModuleExports){const e=this.toPath(t);y(null==(r=i.getCurrentProgram())?void 0:r.getResolvedProjectReferences(),(t=>(null==t?void 0:t.sourceFile.path)===e))&&i.markAutoImportProviderAsDirty()}const a=s===i?1:0;if(!(i.pendingUpdateLevel>a))if(this.openFiles.has(o)){if(_n.checkDefined(this.getScriptInfoForPath(o)).isAttached(i)){const e=Math.max(a,i.openFileWatchTriggered.get(o)||0);i.openFileWatchTriggered.set(o,e)}else i.pendingUpdateLevel=a,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(i)}else i.pendingUpdateLevel=a,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(i)})))}delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,t){const n=this.configFileExistenceInfoCache.get(e);if(!(null==n?void 0:n.config))return!1;let r=!1;return n.config.updateLevel=2,n.config.cachedDirectoryStructureHost.clearCache(),n.config.projects.forEach(((n,i)=>{var o,a,s;const c=this.getConfiguredProjectByCanonicalConfigFilePath(i);if(c)if(r=!0,i===e){if(c.initialLoadPending)return;c.pendingUpdateLevel=2,c.pendingUpdateReason=t,this.delayUpdateProjectGraph(c),c.markAutoImportProviderAsDirty()}else{if(c.initialLoadPending)return void(null==(a=null==(o=this.configFileExistenceInfoCache.get(i))?void 0:o.openFilesImpactedByConfigFile)||a.forEach((e=>{var t;(null==(t=this.pendingOpenFileProjectUpdates)?void 0:t.has(e))||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(e,this.configFileForOpenFiles.get(e))})));const t=this.toPath(e);c.resolutionCache.removeResolutionsFromProjectReferenceRedirects(t),this.delayUpdateProjectGraph(c),this.getHostPreferences().includeCompletionsForModuleExports&&y(null==(s=c.getCurrentProgram())?void 0:s.getResolvedProjectReferences(),(e=>(null==e?void 0:e.sourceFile.path)===t))&&c.markAutoImportProviderAsDirty()}})),r}onConfigFileChanged(e,t,n){const r=this.configFileExistenceInfoCache.get(t),i=this.getConfiguredProjectByCanonicalConfigFilePath(t),o=null==i?void 0:i.deferredClose;2===n?(r.exists=!1,i&&(i.deferredClose=!0)):(r.exists=!0,o&&(i.deferredClose=void 0,i.markAsDirty())),this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,"Change in config file detected"),this.openFiles.forEach(((e,t)=>{var n,i;const o=this.configFileForOpenFiles.get(t);if(!(null==(n=r.openFilesImpactedByConfigFile)?void 0:n.has(t)))return;this.configFileForOpenFiles.delete(t);const a=this.getScriptInfoForPath(t);this.getConfigFileNameForFile(a,!1)&&((null==(i=this.pendingOpenFileProjectUpdates)?void 0:i.has(t))||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(t,o))})),this.delayEnsureProjectForOpenFiles()}removeProject(e){switch(this.logger.info("`remove Project::"),e.print(!0,!0,!1),e.close(),_n.shouldAssert(1)&&this.filenameToScriptInfo.forEach((t=>_n.assert(!t.isAttached(e),"Found script Info still attached to project",(()=>`${e.projectName}: ScriptInfos still attached: ${JSON.stringify(Ie(M(this.filenameToScriptInfo.values(),(t=>t.isAttached(e)?{fileName:t.fileName,projects:t.containingProjects.map((e=>e.projectName)),hasMixedContent:t.hasMixedContent}:void 0))),void 0," ")}`)))),this.pendingProjectUpdates.delete(e.getProjectName()),e.projectKind){case 2:Ut(this.externalProjects,e),this.projectToSizeMap.delete(e.getProjectName());break;case 1:this.configuredProjects.delete(e.canonicalConfigFilePath),this.projectToSizeMap.delete(e.canonicalConfigFilePath);break;case 0:Ut(this.inferredProjects,e)}}assignOrphanScriptInfoToInferredProject(e,t){_n.assert(e.isOrphan());const n=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(e,t)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(e.isDynamic?t||this.currentDirectory:Fo(ho(e.fileName)?e.fileName:Jo(e.fileName,t?this.getNormalizedAbsolutePath(t):this.currentDirectory)));if(n.addRoot(e),e.containingProjects[0]!==n&&(Jt(e.containingProjects,n),e.containingProjects.unshift(n)),n.updateGraph(),!this.useSingleInferredProject&&!n.projectRootPath)for(const e of this.inferredProjects){if(e===n||e.isOrphan())continue;const t=e.getRootScriptInfos();_n.assert(1===t.length||!!e.projectRootPath),1===t.length&&_(t[0].containingProjects,(e=>e!==t[0].containingProjects[0]&&!e.isOrphan()))&&e.removeFile(t[0],!0,!0)}return n}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach(((e,t)=>{const n=this.getScriptInfoForPath(t);n.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(n,e)}))}closeOpenFile(e,t){var n;const r=!e.isDynamic&&this.host.fileExists(e.fileName);e.close(r),this.stopWatchingConfigFilesForScriptInfo(e);const i=this.toCanonicalFileName(e.fileName);this.openFilesWithNonRootedDiskPath.get(i)===e&&this.openFilesWithNonRootedDiskPath.delete(i);let o=!1;for(const t of e.containingProjects){if(Wme(t)){e.hasMixedContent&&e.registerFileUpdate();const n=t.openFileWatchTriggered.get(e.path);void 0!==n&&(t.openFileWatchTriggered.delete(e.path),t.pendingUpdateLevelthis.onConfigFileChanged(e,t,r)),2e3,this.getWatchOptionsFromProjectWatchOptions(null==(i=null==(r=null==o?void 0:o.config)?void 0:r.parsedCommandLine)?void 0:i.watchOptions,Fo(e)),M$.ConfigFile,n)),this.ensureConfigFileWatcherForProject(o,n)}ensureConfigFileWatcherForProject(e,t){const n=e.config.projects;n.set(t.canonicalConfigFilePath,n.get(t.canonicalConfigFilePath)||!1)}releaseParsedConfig(e,t){var n,r,i;const o=this.configFileExistenceInfoCache.get(e);(null==(n=o.config)?void 0:n.projects.delete(t.canonicalConfigFilePath))&&((null==(r=o.config)?void 0:r.projects.size)||(o.config=void 0,RU(e,this.sharedExtendedConfigFileWatchers),_n.checkDefined(o.watcher),(null==(i=o.openFilesImpactedByConfigFile)?void 0:i.size)?o.inferredProjectRoots?e$(Fo(e))||(o.watcher.close(),o.watcher=Cge):(o.watcher.close(),o.watcher=void 0):(o.watcher.close(),this.configFileExistenceInfoCache.delete(e))))}stopWatchingConfigFilesForScriptInfo(e){if(0!==this.serverMode)return;const t=this.rootOfInferredProjects.delete(e),n=e.isScriptOpen();n&&!t||this.forEachConfigFileLocation(e,(r=>{var i,o,a;const s=this.configFileExistenceInfoCache.get(r);if(s){if(n){if(!(null==(i=null==s?void 0:s.openFilesImpactedByConfigFile)?void 0:i.has(e.path)))return}else if(!(null==(o=s.openFilesImpactedByConfigFile)?void 0:o.delete(e.path)))return;t&&(s.inferredProjectRoots--,!s.watcher||s.config||s.inferredProjectRoots||(s.watcher.close(),s.watcher=void 0)),(null==(a=s.openFilesImpactedByConfigFile)?void 0:a.size)||s.config||(_n.assert(!s.watcher),this.configFileExistenceInfoCache.delete(r))}}))}startWatchingConfigFilesForInferredProjectRoot(e){0===this.serverMode&&(_n.assert(e.isScriptOpen()),this.rootOfInferredProjects.add(e),this.forEachConfigFileLocation(e,((t,n)=>{let r=this.configFileExistenceInfoCache.get(t);r?r.inferredProjectRoots=(r.inferredProjectRoots??0)+1:(r={exists:this.host.fileExists(n),inferredProjectRoots:1},this.configFileExistenceInfoCache.set(t,r)),(r.openFilesImpactedByConfigFile??(r.openFilesImpactedByConfigFile=new Set)).add(e.path),r.watcher||(r.watcher=e$(Fo(t))?this.watchFactory.watchFile(n,((e,r)=>this.onConfigFileChanged(n,t,r)),2e3,this.hostConfiguration.watchOptions,M$.ConfigFileForInferredRoot):Cge)})))}forEachConfigFileLocation(e,t){if(0!==this.serverMode)return;_n.assert(!Dge(e)||this.openFiles.has(e.path));const n=this.openFiles.get(e.path);if(_n.checkDefined(this.getScriptInfo(e.path)).isDynamic)return;let r=Fo(e.fileName);const i=()=>ta(n,r,this.currentDirectory,!this.host.useCaseSensitiveFileNames),o=!n||!i();let a=!0,s=!0;Nge(e)&&(a=!jt(e.fileName,"tsconfig.json")&&(s=!1));do{const e=rme(r,this.currentDirectory,this.toCanonicalFileName);if(a){const n=Ro(r,"tsconfig.json");if(t(Ro(e,"tsconfig.json"),n))return n}if(s){const n=Ro(r,"jsconfig.json");if(t(Ro(e,"jsconfig.json"),n))return n}if(la(e))break;const n=Fo(r);if(n===r)break;r=n,a=s=!0}while(o||i())}findDefaultConfiguredProject(e){var t;return null==(t=this.findDefaultConfiguredProjectWorker(e,1))?void 0:t.defaultProject}findDefaultConfiguredProjectWorker(e,t){return e.isScriptOpen()?this.tryFindDefaultConfiguredProjectForOpenScriptInfo(e,t):void 0}getConfigFileNameForFileFromCache(e,t){if(t){const t=wge(e,this.pendingOpenFileProjectUpdates);if(void 0!==t)return t}return wge(e,this.configFileForOpenFiles)}setConfigFileNameForFileInCache(e,t){if(!this.openFiles.has(e.path))return;const n=t||!1;if(Nge(e)){let t=this.configFileForOpenFiles.get(e.path);t&&!Ye(t)||this.configFileForOpenFiles.set(e.path,t=(new Map).set(!1,t)),t.set(e.fileName,n)}else this.configFileForOpenFiles.set(e.path,n)}getConfigFileNameForFile(e,t){const n=this.getConfigFileNameForFileFromCache(e,t);if(void 0!==n)return n||void 0;if(t)return;const r=this.forEachConfigFileLocation(e,((t,n)=>this.configFileExists(n,t,e)));return this.logger.info(`getConfigFileNameForFile:: File: ${e.fileName} ProjectRootPath: ${this.openFiles.get(e.path)}:: Result: ${r}`),this.setConfigFileNameForFileInCache(e,r),r}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(Yge),this.configuredProjects.forEach(Yge),this.inferredProjects.forEach(Yge),this.logger.info("Open files: "),this.openFiles.forEach(((e,t)=>{const n=this.getScriptInfoForPath(t);this.logger.info(`\tFileName: ${n.fileName} ProjectRootPath: ${e}`),this.logger.info(`\t\tProjects: ${n.containingProjects.map((e=>e.getProjectName()))}`)})),this.logger.endGroup())}findConfiguredProjectByProjectName(e,t){const n=this.toCanonicalFileName(e),r=this.getConfiguredProjectByCanonicalConfigFilePath(n);return t?r:(null==r?void 0:r.deferredClose)?void 0:r}getConfiguredProjectByCanonicalConfigFilePath(e){return this.configuredProjects.get(e)}findExternalProjectByProjectName(e){return Sge(e,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(e,t,n,r){if(t&&t.disableSizeLimit||!this.host.getFileSize)return;let i=Gme;this.projectToSizeMap.set(e,0),this.projectToSizeMap.forEach((e=>i-=e||0));let o=0;for(const e of n){const t=r.getFileName(e);if(!RS(t)&&(o+=this.host.getFileSize(t),o>Gme||o>i)){const e=n.map((e=>r.getFileName(e))).filter((e=>!RS(e))).map((e=>({name:e,size:this.host.getFileSize(e)}))).sort(((e,t)=>t.size-e.size)).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${o}). Largest files: ${e.map((e=>`${e.name}:${e.size}`)).join(", ")}`),t}}this.projectToSizeMap.set(e,o)}createExternalProject(e,t,n,r,i){const o=mge(n),a=gge(n,Fo(Lo(e))),s=new Ume(e,this,o,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e,o,t,kge),void 0===n.compileOnSave||n.compileOnSave,void 0,null==a?void 0:a.watchOptions);return s.setProjectErrors(null==a?void 0:a.errors),s.excludedFiles=i,this.addFilesToNonInferredProject(s,t,kge,r),this.externalProjects.push(s),s}sendProjectTelemetry(e){if(this.seenProjects.has(e.projectName))return void Vge(e);if(this.seenProjects.set(e.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash)return void Vge(e);const t=Wme(e)?e.projectOptions:void 0;Vge(e);const n={projectId:this.host.createSHA256Hash(e.projectName),fileStats:Pme(e.getScriptInfos(),!0),compilerOptions:tR(e.getCompilationSettings()),typeAcquisition:function({enable:e,include:t,exclude:n}){return{enable:e,include:void 0!==t&&0!==t.length,exclude:void 0!==n&&0!==n.length}}(e.getTypeAcquisition()),extends:t&&t.configHasExtendsProperty,files:t&&t.configHasFilesProperty,include:t&&t.configHasIncludeProperty,exclude:t&&t.configHasExcludeProperty,compileOnSave:e.compileOnSaveEnabled,configFileName:function(){if(!Wme(e))return"other";return pme(e.getConfigFilePath())||"other"}(),projectType:e instanceof Ume?"external":"configured",languageServiceEnabled:e.languageServiceEnabled,version:o};this.eventHandler({eventName:rge,data:n})}addFilesToNonInferredProject(e,t,n,r){this.updateNonInferredProjectFiles(e,t,n),e.setTypeAcquisition(r),e.markAsDirty()}createConfiguredProject(e,t){var n;null==(n=$n)||n.instant($n.Phase.Session,"createConfiguredProject",{configFilePath:e});const r=this.toCanonicalFileName(e);let i=this.configFileExistenceInfoCache.get(r);i?i.exists=!0:this.configFileExistenceInfoCache.set(r,i={exists:!0}),i.config||(i.config={cachedDirectoryStructureHost:OU(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const o=new qme(e,r,this,i.config.cachedDirectoryStructureHost,t);return _n.assert(!this.configuredProjects.has(r)),this.configuredProjects.set(r,o),this.createConfigFileWatcherForParsedConfig(e,r,o),o}loadConfiguredProject(e,t){var n,r;null==(n=$n)||n.push($n.Phase.Session,"loadConfiguredProject",{configFilePath:e.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(e,t);const i=nme(e.getConfigFilePath()),o=this.ensureParsedConfigUptoDate(i,e.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),a=o.config.parsedCommandLine;_n.assert(!!a.fileNames);const s=a.options;e.projectOptions||(e.projectOptions={configHasExtendsProperty:void 0!==a.raw.extends,configHasFilesProperty:void 0!==a.raw.files,configHasIncludeProperty:void 0!==a.raw.include,configHasExcludeProperty:void 0!==a.raw.exclude}),e.parsedCommandLine=a,e.setProjectErrors(a.options.configFile.parseDiagnostics),e.updateReferences(a.projectReferences);const c=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e.canonicalConfigFilePath,s,a.fileNames,xge);c?(e.disableLanguageService(c),this.configFileExistenceInfoCache.forEach(((t,n)=>this.stopWatchingWildCards(n,e)))):(e.setCompilerOptions(s),e.setWatchOptions(a.watchOptions),e.enableLanguageService(),this.watchWildcards(i,o,e)),e.enablePluginsWithOptions(s);const l=a.fileNames.concat(e.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(e,l,xge,s,a.typeAcquisition,a.compileOnSave,a.watchOptions),null==(r=$n)||r.pop()}ensureParsedConfigUptoDate(e,t,n,r){var i,o,a;if(n.config&&(1===n.config.updateLevel&&this.reloadFileNamesOfParsedConfig(e,n.config),!n.config.updateLevel))return this.ensureConfigFileWatcherForProject(n,r),n;if(!n.exists&&n.config)return n.config.updateLevel=void 0,this.ensureConfigFileWatcherForProject(n,r),n;const s=(null==(i=n.config)?void 0:i.cachedDirectoryStructureHost)||OU(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),c=DL(e,(e=>this.host.readFile(e))),l=lO(e,Ye(c)?c:""),_=l.parseDiagnostics;Ye(c)||_.push(c);const u=Fo(e),d=sj(l,s,u,void 0,e,void 0,this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);d.errors.length&&_.push(...d.errors),this.logger.info(`Config: ${e} : ${JSON.stringify({rootNames:d.fileNames,options:d.options,watchOptions:d.watchOptions,projectReferences:d.projectReferences},void 0," ")}`);const p=null==(o=n.config)?void 0:o.parsedCommandLine;return n.config?(n.config.parsedCommandLine=d,n.config.watchedDirectoriesStale=!0,n.config.updateLevel=void 0):n.config={parsedCommandLine:d,cachedDirectoryStructureHost:s,projects:new Map},p||gT(this.getWatchOptionsFromProjectWatchOptions(void 0,u),this.getWatchOptionsFromProjectWatchOptions(d.watchOptions,u))||(null==(a=n.watcher)||a.close(),n.watcher=void 0),this.createConfigFileWatcherForParsedConfig(e,t,r),jU(t,d.options,this.sharedExtendedConfigFileWatchers,((t,n)=>this.watchFactory.watchFile(t,(()=>{var e;MU(this.extendedConfigCache,n,(e=>this.toPath(e)));let r=!1;null==(e=this.sharedExtendedConfigFileWatchers.get(n))||e.projects.forEach((e=>{r=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,`Change in extended config file ${t} detected`)||r})),r&&this.delayEnsureProjectForOpenFiles()}),2e3,this.hostConfiguration.watchOptions,M$.ExtendedConfigFile,e)),(e=>this.toPath(e))),n}watchWildcards(e,{exists:t,config:n},r){if(n.projects.set(r.canonicalConfigFilePath,!0),t){if(n.watchedDirectories&&!n.watchedDirectoriesStale)return;n.watchedDirectoriesStale=!1,JU(n.watchedDirectories||(n.watchedDirectories=new Map),n.parsedCommandLine.wildcardDirectories,((t,r)=>this.watchWildcardDirectory(t,r,e,n)))}else{if(n.watchedDirectoriesStale=!1,!n.watchedDirectories)return;px(n.watchedDirectories,$U),n.watchedDirectories=void 0}}stopWatchingWildCards(e,t){const n=this.configFileExistenceInfoCache.get(e);n.config&&n.config.projects.get(t.canonicalConfigFilePath)&&(n.config.projects.set(t.canonicalConfigFilePath,!1),id(n.config.projects,at)||(n.config.watchedDirectories&&(px(n.config.watchedDirectories,$U),n.config.watchedDirectories=void 0),n.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(e,t,n){var r;const i=e.getRootFilesMap(),o=new Map;for(const a of t){const t=n.getFileName(a),s=nme(t);let c;if(wme(s)||e.fileExists(t)){const t=n.getScriptKind(a,this.hostConfiguration.extraFileExtensions),r=n.hasMixedContent(a,this.hostConfiguration.extraFileExtensions),o=_n.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(s,e.currentDirectory,t,r,e.directoryStructureHost,!1));c=o.path;const l=i.get(c);l&&l.info===o?l.fileName=s:(e.addRoot(o,s),o.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(o))}else{c=rme(s,this.currentDirectory,this.toCanonicalFileName);const t=i.get(c);t?((null==(r=t.info)?void 0:r.path)===c&&(e.removeFile(t.info,!1,!0),t.info=void 0),t.fileName=s):i.set(c,{fileName:s})}o.set(c,!0)}i.size>o.size&&i.forEach(((t,n)=>{o.has(n)||(t.info?e.removeFile(t.info,e.fileExists(t.info.fileName),!0):i.delete(n))}))}updateRootAndOptionsOfNonInferredProject(e,t,n,r,i,o,a){e.setCompilerOptions(r),e.setWatchOptions(a),void 0!==o&&(e.compileOnSaveEnabled=o),this.addFilesToNonInferredProject(e,t,n,i)}reloadFileNamesOfConfiguredProject(e){const t=this.reloadFileNamesOfParsedConfig(e.getConfigFilePath(),this.configFileExistenceInfoCache.get(e.canonicalConfigFilePath).config);return e.updateErrorOnNoInputFiles(t),this.updateNonInferredProjectFiles(e,t.fileNames.concat(e.getExternalFiles(1)),xge),e.markAsDirty(),e.updateGraph()}reloadFileNamesOfParsedConfig(e,t){if(void 0===t.updateLevel)return t.parsedCommandLine;_n.assert(1===t.updateLevel);const n=Uj(t.parsedCommandLine.options.configFile.configFileSpecs,Fo(e),t.parsedCommandLine.options,t.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return t.parsedCommandLine={...t.parsedCommandLine,fileNames:n},t.updateLevel=void 0,t.parsedCommandLine}setFileNamesOfAutoImportProviderOrAuxillaryProject(e,t){this.updateNonInferredProjectFiles(e,t,xge)}reloadConfiguredProjectOptimized(e,t,n){n.has(e)||(n.set(e,6),e.initialLoadPending||this.setProjectForReload(e,2,t))}reloadConfiguredProjectClearingSemanticCache(e,t,n){return 7!==n.get(e)&&(n.set(e,7),this.clearSemanticCache(e),this.reloadConfiguredProject(e,Uge(t)),!0)}setProjectForReload(e,t,n){2===t&&this.clearSemanticCache(e),e.pendingUpdateReason=n&&Uge(n),e.pendingUpdateLevel=t}reloadConfiguredProject(e,t){e.initialLoadPending=!1,this.setProjectForReload(e,0),this.loadConfiguredProject(e,t),Jge(e,e.triggerFileForConfigFileDiag??e.getConfigFilePath(),!0)}clearSemanticCache(e){e.originalConfiguredProjects=void 0,e.resolutionCache.clear(),e.getLanguageService(!1).cleanupSemanticCache(),e.cleanupProgram(),e.markAsDirty()}sendConfigFileDiagEvent(e,t,n){if(!this.eventHandler||this.suppressDiagnosticEvents)return!1;const r=e.getLanguageService().getCompilerOptionsDiagnostics();return r.push(...e.getAllProjectErrors()),!(!n&&r.length===(e.configDiagDiagnosticsReported??0))&&(e.configDiagDiagnosticsReported=r.length,this.eventHandler({eventName:tge,data:{configFileName:e.getConfigFilePath(),diagnostics:r,triggerFile:t??e.getConfigFilePath()}}),!0)}getOrCreateInferredProjectForProjectRootPathIfEnabled(e,t){if(!this.useInferredProjectPerProjectRoot||e.isDynamic&&void 0===t)return;if(t){const e=this.toCanonicalFileName(t);for(const t of this.inferredProjects)if(t.projectRootPath===e)return t;return this.createInferredProject(t,!1,t)}let n;for(const t of this.inferredProjects)t.projectRootPath&&ta(t.projectRootPath,e.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(n&&n.projectRootPath.length>t.projectRootPath.length||(n=t));return n}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&void 0===this.inferredProjects[0].projectRootPath?this.inferredProjects[0]:this.createInferredProject(this.currentDirectory,!0,void 0)}getOrCreateSingleInferredWithoutProjectRoot(e){_n.assert(!this.useSingleInferredProject);const t=this.toCanonicalFileName(this.getNormalizedAbsolutePath(e));for(const e of this.inferredProjects)if(!e.projectRootPath&&e.isOrphan()&&e.canonicalCurrentDirectory===t)return e;return this.createInferredProject(e,!1,void 0)}createInferredProject(e,t,n){const r=n&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(n)||this.compilerOptionsForInferredProjects;let i,o;n&&(i=this.watchOptionsForInferredProjectsPerProjectRoot.get(n),o=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(n)),void 0===i&&(i=this.watchOptionsForInferredProjects),void 0===o&&(o=this.typeAcquisitionForInferredProjects),i=i||void 0;const a=new Mme(this,r,null==i?void 0:i.watchOptions,n,e,o);return a.setProjectErrors(null==i?void 0:i.errors),t?this.inferredProjects.unshift(a):this.inferredProjects.push(a),a}getOrCreateScriptInfoNotOpenedByClient(e,t,n,r){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(nme(e),t,void 0,void 0,n,r)}getScriptInfo(e){return this.getScriptInfoForNormalizedPath(nme(e))}getScriptInfoOrConfig(e){const t=nme(e),n=this.getScriptInfoForNormalizedPath(t);if(n)return n;const r=this.configuredProjects.get(this.toPath(e));return r&&r.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(e){const t=Ie(M(this.filenameToScriptInfo.entries(),(e=>e[1].deferredDelete?void 0:e)),(([e,t])=>({path:e,fileName:t.fileName})));this.logger.msg(`Could not find file ${JSON.stringify(e)}.\nAll files are: ${JSON.stringify(t)}`,"Err")}getSymlinkedProjects(e){let t;if(this.realpathToScriptInfos){const t=e.getRealpathIfDifferent();t&&_(this.realpathToScriptInfos.get(t),n),_(this.realpathToScriptInfos.get(e.path),n)}return t;function n(n){if(n!==e)for(const r of n.containingProjects)!r.languageServiceEnabled||r.isOrphan()||r.getCompilerOptions().preserveSymlinks||e.isAttached(r)||(t?id(t,((e,t)=>t!==n.path&&k(e,r)))||t.add(n.path,r):(t=We(),t.add(n.path,r)))}}watchClosedScriptInfo(e){if(_n.assert(!e.fileWatcher),!(e.isDynamicOrHasMixedContent()||this.globalCacheLocationDirectoryPath&&Kt(e.path,this.globalCacheLocationDirectoryPath))){const t=e.fileName.indexOf("/node_modules/");this.host.getModifiedTime&&-1!==t?(e.mTime=this.getModifiedTime(e),e.fileWatcher=this.watchClosedScriptInfoInNodeModules(e.fileName.substring(0,t))):e.fileWatcher=this.watchFactory.watchFile(e.fileName,((t,n)=>this.onSourceFileChanged(e,n)),500,this.hostConfiguration.watchOptions,M$.ClosedScriptInfo)}}createNodeModulesWatcher(e,t){let n=this.watchFactory.watchDirectory(e,(e=>{var n;const i=QW(this.toPath(e));if(!i)return;const o=Eo(i);if(!(null==(n=r.affectedModuleSpecifierCacheProjects)?void 0:n.size)||"package.json"!==o&&"node_modules"!==o||r.affectedModuleSpecifierCacheProjects.forEach((e=>{var t;null==(t=e.getModuleSpecifierCache())||t.clear()})),r.refreshScriptInfoRefCount)if(t===i)this.refreshScriptInfosInDirectory(t);else{const e=this.filenameToScriptInfo.get(i);e?Mge(e)&&this.refreshScriptInfo(e):ko(i)||this.refreshScriptInfosInDirectory(i)}}),1,this.hostConfiguration.watchOptions,M$.NodeModules);const r={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var e;!n||r.refreshScriptInfoRefCount||(null==(e=r.affectedModuleSpecifierCacheProjects)?void 0:e.size)||(n.close(),n=void 0,this.nodeModulesWatchers.delete(t))}};return this.nodeModulesWatchers.set(t,r),r}watchPackageJsonsInNodeModules(e,t){var n;const r=this.toPath(e),i=this.nodeModulesWatchers.get(r)||this.createNodeModulesWatcher(e,r);return _n.assert(!(null==(n=i.affectedModuleSpecifierCacheProjects)?void 0:n.has(t))),(i.affectedModuleSpecifierCacheProjects||(i.affectedModuleSpecifierCacheProjects=new Set)).add(t),{close:()=>{var e;null==(e=i.affectedModuleSpecifierCacheProjects)||e.delete(t),i.close()}}}watchClosedScriptInfoInNodeModules(e){const t=e+"/node_modules",n=this.toPath(t),r=this.nodeModulesWatchers.get(n)||this.createNodeModulesWatcher(t,n);return r.refreshScriptInfoRefCount++,{close:()=>{r.refreshScriptInfoRefCount--,r.close()}}}getModifiedTime(e){return(this.host.getModifiedTime(e.fileName)||Ji).getTime()}refreshScriptInfo(e){const t=this.getModifiedTime(e);if(t!==e.mTime){const n=Qi(e.mTime,t);e.mTime=t,this.onSourceFileChanged(e,n)}}refreshScriptInfosInDirectory(e){e+=_o,this.filenameToScriptInfo.forEach((t=>{Mge(t)&&Kt(t.path,e)&&this.refreshScriptInfo(t)}))}stopWatchingScriptInfo(e){e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(e,t,n,r,i,o){if(ho(e)||wme(e))return this.getOrCreateScriptInfoWorker(e,t,!1,void 0,n,!!r,i,o);const a=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e));return a||void 0}getOrCreateScriptInfoForNormalizedPath(e,t,n,r,i,o){return this.getOrCreateScriptInfoWorker(e,this.currentDirectory,t,n,r,!!i,o,!1)}getOrCreateScriptInfoWorker(e,t,n,r,i,o,a,s){_n.assert(void 0===r||n,"ScriptInfo needs to be opened by client to be able to set its user defined content");const c=rme(e,t,this.toCanonicalFileName);let l=this.filenameToScriptInfo.get(c);if(l){if(l.deferredDelete){if(_n.assert(!l.isDynamic),!n&&!(a||this.host).fileExists(e))return s?l:void 0;l.deferredDelete=void 0}}else{const r=wme(e);if(_n.assert(ho(e)||r||n,"",(()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Ie(this.openFilesWithNonRootedDiskPath.keys())})}\nScript info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`)),_n.assert(!ho(e)||this.currentDirectory===t||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(e)),"",(()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Ie(this.openFilesWithNonRootedDiskPath.keys())})}\nOpen script files with non rooted disk path opened with current directory context cannot have same canonical names`)),_n.assert(!r||this.currentDirectory===t||this.useInferredProjectPerProjectRoot,"",(()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Ie(this.openFilesWithNonRootedDiskPath.keys())})}\nDynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`)),!n&&!r&&!(a||this.host).fileExists(e))return;l=new Dme(this.host,e,i,o,c,this.filenameToScriptInfoVersion.get(c)),this.filenameToScriptInfo.set(l.path,l),this.filenameToScriptInfoVersion.delete(l.path),n?ho(e)||r&&this.currentDirectory===t||this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(e),l):this.watchClosedScriptInfo(l)}return n&&(this.stopWatchingScriptInfo(l),l.open(r),o&&l.registerFileUpdate()),l}getScriptInfoForNormalizedPath(e){return!ho(e)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e))||this.getScriptInfoForPath(rme(e,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(e){const t=this.filenameToScriptInfo.get(e);return t&&t.deferredDelete?void 0:t}getDocumentPositionMapper(e,t,n){const r=this.getOrCreateScriptInfoNotOpenedByClient(t,e.currentDirectory,this.host,!1);if(!r)return void(n&&e.addGeneratedFileWatch(t,n));if(r.getSnapshot(),Ye(r.sourceMapFilePath)){const t=this.getScriptInfoForPath(r.sourceMapFilePath);if(t&&(t.getSnapshot(),void 0!==t.documentPositionMapper))return t.sourceInfos=this.addSourceInfoToSourceMap(n,e,t.sourceInfos),t.documentPositionMapper?t.documentPositionMapper:void 0;r.sourceMapFilePath=void 0}else{if(r.sourceMapFilePath)return void(r.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(n,e,r.sourceMapFilePath.sourceInfos));if(void 0!==r.sourceMapFilePath)return}let i,o=(t,n)=>{const r=this.getOrCreateScriptInfoNotOpenedByClient(t,e.currentDirectory,this.host,!0);if(i=r||n,!r||r.deferredDelete)return;const o=r.getSnapshot();return void 0!==r.documentPositionMapper?r.documentPositionMapper:eY(o)};const a=e.projectName,s=O1({getCanonicalFileName:this.toCanonicalFileName,log:e=>this.logger.info(e),getSourceFileLike:e=>this.getSourceFileLike(e,a,r)},r.fileName,r.textStorage.getLineInfo(),o);return o=void 0,i?Ye(i)?r.sourceMapFilePath={watcher:this.addMissingSourceMapFile(e.currentDirectory===this.currentDirectory?i:Jo(i,e.currentDirectory),r.path),sourceInfos:this.addSourceInfoToSourceMap(n,e)}:(r.sourceMapFilePath=i.path,i.declarationInfoPath=r.path,i.deferredDelete||(i.documentPositionMapper=s||!1),i.sourceInfos=this.addSourceInfoToSourceMap(n,e,i.sourceInfos)):r.sourceMapFilePath=!1,s}addSourceInfoToSourceMap(e,t,n){if(e){const r=this.getOrCreateScriptInfoNotOpenedByClient(e,t.currentDirectory,t.directoryStructureHost,!1);(n||(n=new Set)).add(r.path)}return n}addMissingSourceMapFile(e,t){return this.watchFactory.watchFile(e,(()=>{const e=this.getScriptInfoForPath(t);e&&e.sourceMapFilePath&&!Ye(e.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(e.containingProjects,!0),this.delayUpdateSourceInfoProjects(e.sourceMapFilePath.sourceInfos),e.closeSourceMapFileWatcher())}),2e3,this.hostConfiguration.watchOptions,M$.MissingSourceMapFile)}getSourceFileLike(e,t,n){const r=t.projectName?t:this.findProject(t);if(r){const t=r.toPath(e),n=r.getSourceFile(t);if(n&&n.resolvedPath===t)return n}const i=this.getOrCreateScriptInfoNotOpenedByClient(e,(r||this).currentDirectory,r?r.directoryStructureHost:this.host,!1);if(i){if(n&&Ye(n.sourceMapFilePath)&&i!==n){const e=this.getScriptInfoForPath(n.sourceMapFilePath);e&&(e.sourceInfos??(e.sourceInfos=new Set)).add(i.path)}return i.cacheSourceFile?i.cacheSourceFile.sourceFile:(i.sourceFileLike||(i.sourceFileLike={get text(){return _n.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:e=>{const t=i.positionToLineOffset(e);return{line:t.line-1,character:t.offset-1}},getPositionOfLineAndCharacter:(e,t,n)=>i.lineOffsetToPosition(e+1,t+1,n)}),i.sourceFileLike)}}setPerformanceEventHandler(e){this.performanceEventHandler=e}setHostConfiguration(e){var t;if(e.file){const t=this.getScriptInfoForNormalizedPath(nme(e.file));t&&(t.setOptions(fge(e.formatOptions),e.preferences),this.logger.info(`Host configuration update for file ${e.file}`))}else{if(void 0!==e.hostInfo&&(this.hostConfiguration.hostInfo=e.hostInfo,this.logger.info(`Host information ${e.hostInfo}`)),e.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...fge(e.formatOptions)},this.logger.info("Format host information updated")),e.preferences){const{lazyConfiguredProjectsFromExternalProject:t,includePackageJsonAutoImports:n,includeCompletionsForModuleExports:r}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...e.preferences},t&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach((e=>e.forEach((e=>{e.deferredClose||e.isClosed()||2!==e.pendingUpdateLevel||this.hasPendingProjectUpdate(e)||e.updateGraph()})))),n===e.preferences.includePackageJsonAutoImports&&!!r==!!e.preferences.includeCompletionsForModuleExports||this.forEachProject((e=>{e.onAutoImportProviderSettingsChanged()}))}if(e.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=e.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),e.watchOptions){const n=null==(t=gge(e.watchOptions))?void 0:t.watchOptions,r=pj(n,this.currentDirectory);this.hostConfiguration.watchOptions=r,this.hostConfiguration.beforeSubstitution=r===n?void 0:n,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`)}}}getWatchOptions(e){return this.getWatchOptionsFromProjectWatchOptions(e.getWatchOptions(),e.getCurrentDirectory())}getWatchOptionsFromProjectWatchOptions(e,t){const n=this.hostConfiguration.beforeSubstitution?pj(this.hostConfiguration.beforeSubstitution,t):this.hostConfiguration.watchOptions;return e&&n?{...n,...e}:e||n}closeLog(){this.logger.close()}sendSourceFileChange(e){this.filenameToScriptInfo.forEach((t=>{if(this.openFiles.has(t.path))return;if(!t.fileWatcher)return;const n=ut((()=>this.host.fileExists(t.fileName)?t.deferredDelete?0:1:2));if(e){if(Mge(t)||!t.path.startsWith(e))return;if(2===n()&&t.deferredDelete)return;this.logger.info(`Invoking sourceFileChange on ${t.fileName}:: ${n()}`)}this.onSourceFileChanged(t,n())}))}reloadProjects(){this.logger.info("reload projects."),this.sendSourceFileChange(void 0),this.pendingProjectUpdates.forEach(((e,t)=>{this.throttledOperations.cancel(t),this.pendingProjectUpdates.delete(t)})),this.throttledOperations.cancel(cge),this.pendingOpenFileProjectUpdates=void 0,this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach((e=>{e.config&&(e.config.updateLevel=2,e.config.cachedDirectoryStructureHost.clearCache())})),this.configFileForOpenFiles.clear(),this.externalProjects.forEach((e=>{this.clearSemanticCache(e),e.updateGraph()}));const e=new Map,t=new Set;this.externalProjectToConfiguredProjectMap.forEach(((t,n)=>{const r=`Reloading configured project in external project: ${n}`;t.forEach((t=>{this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.reloadConfiguredProjectOptimized(t,r,e):this.reloadConfiguredProjectClearingSemanticCache(t,r,e)}))})),this.openFiles.forEach(((n,r)=>{const i=this.getScriptInfoForPath(r);y(i.containingProjects,$me)||this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(i,7,e,t)})),t.forEach((t=>e.set(t,7))),this.inferredProjects.forEach((e=>this.clearSemanticCache(e))),this.ensureProjectForOpenFiles(),this.cleanupProjectsAndScriptInfos(e,new Set(this.openFiles.keys()),new Set(this.externalProjectToConfiguredProjectMap.keys())),this.logger.info("After reloading projects.."),this.printProjects()}removeRootOfInferredProjectIfNowPartOfOtherProject(e){_n.assert(e.containingProjects.length>0);const t=e.containingProjects[0];!t.isOrphan()&&Vme(t)&&t.isRoot(e)&&_(e.containingProjects,(e=>e!==t&&!e.isOrphan()))&&t.removeFile(e,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects();const e=this.pendingOpenFileProjectUpdates;this.pendingOpenFileProjectUpdates=void 0,null==e||e.forEach(((e,t)=>this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(this.getScriptInfoForPath(t),5))),this.openFiles.forEach(((e,t)=>{const n=this.getScriptInfoForPath(t);n.isOrphan()?this.assignOrphanScriptInfoToInferredProject(n,e):this.removeRootOfInferredProjectIfNowPartOfOtherProject(n)})),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(Bge),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(e,t,n,r){return this.openClientFileWithNormalizedPath(nme(e),t,n,!1,r?nme(r):void 0)}getOriginalLocationEnsuringConfiguredProject(e,t){const n=e.isSourceOfProjectReferenceRedirect(t.fileName),r=n?t:e.getSourceMapper().tryGetSourcePosition(t);if(!r)return;const{fileName:i}=r,o=this.getScriptInfo(i);if(!o&&!this.host.fileExists(i))return;const a={fileName:nme(i),path:this.toPath(i)},s=this.getConfigFileNameForFile(a,!1);if(!s)return;let c=this.findConfiguredProjectByProjectName(s);if(!c){if(e.getCompilerOptions().disableReferencedProjectLoad)return n?t:(null==o?void 0:o.containingProjects.length)?r:t;c=this.createConfiguredProject(s,`Creating project for original file: ${a.fileName}${t!==r?" for location: "+t.fileName:""}`)}const l=this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(a,5,Ige(c,4),(e=>`Creating project referenced in solution ${e.projectName} to find possible configured project for original file: ${a.fileName}${t!==r?" for location: "+t.fileName:""}`));if(!l.defaultProject)return;if(l.defaultProject===e)return r;u(l.defaultProject);const _=this.getScriptInfo(i);if(_&&_.containingProjects.length)return _.containingProjects.forEach((e=>{Wme(e)&&u(e)})),r;function u(t){(e.originalConfiguredProjects??(e.originalConfiguredProjects=new Set)).add(t.canonicalConfigFilePath)}}fileExists(e){return!!this.getScriptInfoForNormalizedPath(e)||this.host.fileExists(e)}findExternalProjectContainingOpenScriptInfo(e){return y(this.externalProjects,(t=>(Bge(t),t.containsScriptInfo(e))))}getOrCreateOpenScriptInfo(e,t,n,r,i){const o=this.getOrCreateScriptInfoWorker(e,i?this.getNormalizedAbsolutePath(i):this.currentDirectory,!0,t,n,!!r,void 0,!0);return this.openFiles.set(o.path,i),o}assignProjectToOpenedScriptInfo(e){let t,n;let r,i;if(!this.findExternalProjectContainingOpenScriptInfo(e)&&0===this.serverMode){const o=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(e,5);o&&(r=o.seenProjects,i=o.sentConfigDiag,o.defaultProject&&(t=o.defaultProject.getConfigFilePath(),n=o.defaultProject.getAllProjectErrors()))}return e.containingProjects.forEach(Bge),e.isOrphan()&&(null==r||r.forEach(((t,n)=>{4===t||i.has(n)||this.sendConfigFileDiagEvent(n,e.fileName,!0)})),_n.assert(this.openFiles.has(e.path)),this.assignOrphanScriptInfoToInferredProject(e,this.openFiles.get(e.path))),_n.assert(!e.isOrphan()),{configFileName:t,configFileErrors:n,retainProjects:r}}findCreateOrReloadConfiguredProject(e,t,n,r,i,o,a,s,c){let l,_=c??this.findConfiguredProjectByProjectName(e,r),u=!1;switch(t){case 0:case 1:case 3:if(!_)return;break;case 2:if(!_)return;l=function(e){return qge(e)?e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath):void 0}(_);break;case 4:case 5:_??(_=this.createConfiguredProject(e,n)),a||({sentConfigFileDiag:u,configFileExistenceInfo:l}=Ige(_,t,i));break;case 6:if(_??(_=this.createConfiguredProject(e,Uge(n))),_.projectService.reloadConfiguredProjectOptimized(_,n,o),l=zge(_),l)break;case 7:_??(_=this.createConfiguredProject(e,Uge(n))),u=!s&&this.reloadConfiguredProjectClearingSemanticCache(_,n,o),!s||s.has(_)||o.has(_)||(this.setProjectForReload(_,2,n),s.add(_));break;default:_n.assertNever(t)}return{project:_,sentConfigFileDiag:u,configFileExistenceInfo:l,reason:n}}tryFindDefaultConfiguredProjectForOpenScriptInfo(e,t,n,r){const i=this.getConfigFileNameForFile(e,t<=3);if(!i)return;const o=Ege(t),a=this.findCreateOrReloadConfiguredProject(i,o,function(e){return`Creating possible configured project for ${e.fileName} to open`}(e),n,e.fileName,r);return a&&this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(e,t,a,(t=>`Creating project referenced in solution ${t.projectName} to find possible configured project for ${e.fileName} to open`),n,r)}isMatchedByConfig(e,t,n){if(t.fileNames.some((e=>this.toPath(e)===n.path)))return!0;if(zS(n.fileName,t.options,this.hostConfiguration.extraFileExtensions))return!1;const{validatedFilesSpec:r,validatedIncludeSpecs:i,validatedExcludeSpecs:o}=t.options.configFile.configFileSpecs,a=nme(Jo(Fo(e),this.currentDirectory));return!!(null==r?void 0:r.some((e=>this.toPath(Jo(e,a))===n.path)))||!!(null==i?void 0:i.length)&&(!Hj(n.fileName,o,this.host.useCaseSensitiveFileNames,this.currentDirectory,a)&&(null==i?void 0:i.some((e=>{const t=fS(e,a,"files");return!!t&&yS(`(${t})$`,this.host.useCaseSensitiveFileNames).test(n.fileName)}))))}tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(e,t,n,r,i,o){const a=Dge(e),s=Ege(t),c=new Map;let l;const _=new Set;let u,d,p,f;return m(n),{defaultProject:u??d,tsconfigProject:p??f,sentConfigDiag:_,seenProjects:c,seenConfigs:l};function m(t){return function(e,t){e.sentConfigFileDiag&&_.add(e.project);return e.configFileExistenceInfo?g(e.configFileExistenceInfo,e.project,nme(e.project.getConfigFilePath()),e.reason,e.project,e.project.canonicalConfigFilePath):h(e.project,t)}(t,t.project)??((n=t.project).parsedCommandLine&&Age(n,n.parsedCommandLine,g,s,r(n),i,o))??function(t){return a?Pge(e,t,m,s,`Creating possible configured project for ${e.fileName} to open`,i,o,!1):void 0}(t.project);var n}function g(n,r,a,u,d,p){if(r){if(c.has(r))return;c.set(r,s)}else{if(null==l?void 0:l.has(p))return;(l??(l=new Set)).add(p)}if(!d.projectService.isMatchedByConfig(a,n.config.parsedCommandLine,e))return void(d.languageServiceEnabled&&d.projectService.watchWildcards(a,n,d));const f=r?Ige(r,t,e.fileName,u,o):d.projectService.findCreateOrReloadConfiguredProject(a,t,u,i,e.fileName,o);if(f)return c.set(f.project,s),f.sentConfigFileDiag&&_.add(f.project),h(f.project,d);_n.assert(3===t)}function h(n,r){if(c.get(n)===t)return;c.set(n,t);const i=a?e:n.projectService.getScriptInfo(e.fileName),o=i&&n.containsScriptInfo(i);if(o&&!n.isSourceOfProjectReferenceRedirect(i.path))return p=r,u=n;!d&&a&&o&&(f=r,d=n)}}tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(e,t,n,r){const i=1===t,o=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(e,t,i,n);if(!o)return;const{defaultProject:a,tsconfigProject:s,seenProjects:c}=o;return a&&Pge(e,s,(e=>{c.set(e.project,t)}),t,`Creating project possibly referencing default composite project ${a.getProjectName()} of open file ${e.fileName}`,i,n,!0,r),o}loadAncestorProjectTree(e){e??(e=new Set(M(this.configuredProjects.entries(),(([e,t])=>t.initialLoadPending?void 0:e))));const t=new Set,n=Ie(this.configuredProjects.values());for(const r of n)Oge(r,(t=>e.has(t)))&&Bge(r),this.ensureProjectChildren(r,e,t)}ensureProjectChildren(e,t,n){var r;if(!J(n,e.canonicalConfigFilePath))return;if(e.getCompilerOptions().disableReferencedProjectLoad)return;const i=null==(r=e.getCurrentProgram())?void 0:r.getResolvedProjectReferences();if(i)for(const r of i){if(!r)continue;const i=LC(r.references,(e=>t.has(e.sourceFile.path)?e:void 0));if(!i)continue;const o=nme(r.sourceFile.fileName),a=this.findConfiguredProjectByProjectName(o)??this.createConfiguredProject(o,`Creating project referenced by : ${e.projectName} as it references project ${i.sourceFile.fileName}`);Bge(a),this.ensureProjectChildren(a,t,n)}}cleanupConfiguredProjects(e,t,n){this.getOrphanConfiguredProjects(e,n,t).forEach((e=>this.removeProject(e)))}cleanupProjectsAndScriptInfos(e,t,n){this.cleanupConfiguredProjects(e,n,t);for(const e of this.inferredProjects.slice())e.isOrphan()&&this.removeProject(e);this.removeOrphanScriptInfos()}tryInvokeWildCardDirectories(e){this.configFileExistenceInfoCache.forEach(((t,n)=>{var r,i;(null==(r=t.config)?void 0:r.parsedCommandLine)&&!k(t.config.parsedCommandLine.fileNames,e.fileName,this.host.useCaseSensitiveFileNames?gt:mt)&&(null==(i=t.config.watchedDirectories)||i.forEach(((r,i)=>{ta(i,e.fileName,!this.host.useCaseSensitiveFileNames)&&(this.logger.info(`Invoking ${n}:: wildcard for open scriptInfo:: ${e.fileName}`),this.onWildCardDirectoryWatcherInvoke(i,n,t.config,r.watcher,e.fileName))})))}))}openClientFileWithNormalizedPath(e,t,n,r,i){const o=this.getScriptInfoForPath(rme(e,i?this.getNormalizedAbsolutePath(i):this.currentDirectory,this.toCanonicalFileName)),a=this.getOrCreateOpenScriptInfo(e,t,n,r,i);o||!a||a.isDynamic||this.tryInvokeWildCardDirectories(a);const{retainProjects:s,...c}=this.assignProjectToOpenedScriptInfo(a);return this.cleanupProjectsAndScriptInfos(s,new Set([a.path]),void 0),this.telemetryOnOpenFile(a),this.printProjects(),c}getOrphanConfiguredProjects(e,t,n){const r=new Set(this.configuredProjects.values()),i=e=>{!e.originalConfiguredProjects||!Wme(e)&&e.isOrphan()||e.originalConfiguredProjects.forEach(((e,t)=>{const n=this.getConfiguredProjectByCanonicalConfigFilePath(t);return n&&s(n)}))};return null==e||e.forEach(((e,t)=>s(t))),r.size?(this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.externalProjectToConfiguredProjectMap.forEach(((e,t)=>{(null==n?void 0:n.has(t))||e.forEach(s)})),r.size?(id(this.openFiles,((e,n)=>{if(null==t?void 0:t.has(n))return;const i=this.getScriptInfoForPath(n);if(y(i.containingProjects,$me))return;const o=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(i,1);return(null==o?void 0:o.defaultProject)&&(null==o||o.seenProjects.forEach(((e,t)=>s(t))),!r.size)?r:void 0})),r.size?(id(this.configuredProjects,(e=>{if(r.has(e)&&(a(e)||jge(e,o))&&(s(e),!r.size))return r})),r):r):r):r;function o(e){return!r.has(e)||a(e)}function a(e){var t,n;return(e.deferredClose||e.projectService.hasPendingProjectUpdate(e))&&!!(null==(n=null==(t=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath))?void 0:t.openFilesImpactedByConfigFile)?void 0:n.size)}function s(e){r.delete(e)&&(i(e),jge(e,s))}}removeOrphanScriptInfos(){const e=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach((t=>{if(!t.deferredDelete){if(!t.isScriptOpen()&&t.isOrphan()&&!Fme(t)&&!Nme(t)){if(!t.sourceMapFilePath)return;let e;if(Ye(t.sourceMapFilePath)){const n=this.filenameToScriptInfo.get(t.sourceMapFilePath);e=null==n?void 0:n.sourceInfos}else e=t.sourceMapFilePath.sourceInfos;if(!e)return;if(!od(e,(e=>{const t=this.getScriptInfoForPath(e);return!!t&&(t.isScriptOpen()||!t.isOrphan())})))return}if(e.delete(t.path),t.sourceMapFilePath){let n;if(Ye(t.sourceMapFilePath)){const r=this.filenameToScriptInfo.get(t.sourceMapFilePath);(null==r?void 0:r.deferredDelete)?t.sourceMapFilePath={watcher:this.addMissingSourceMapFile(r.fileName,t.path),sourceInfos:r.sourceInfos}:e.delete(t.sourceMapFilePath),n=null==r?void 0:r.sourceInfos}else n=t.sourceMapFilePath.sourceInfos;n&&n.forEach(((t,n)=>e.delete(n)))}}})),e.forEach((e=>this.deleteScriptInfo(e)))}telemetryOnOpenFile(e){if(0!==this.serverMode||!this.eventHandler||!e.isJavaScript()||!kx(this.allJsFilesForOpenFileTelemetry,e.path))return;const t=this.ensureDefaultProjectForFile(e);if(!t.languageServiceEnabled)return;const n=t.getSourceFile(e.path),r=!!n&&!!n.checkJsDirective;this.eventHandler({eventName:ige,data:{info:{checkJs:r}}})}closeClientFile(e,t){const n=this.getScriptInfoForNormalizedPath(nme(e)),r=!!n&&this.closeOpenFile(n,t);return t||this.printProjects(),r}collectChanges(e,t,n,r){for(const i of t){const t=y(e,(e=>e.projectName===i.getProjectName()));r.push(i.getChangesSinceVersion(t&&t.version,n))}}synchronizeProjectList(e,t){const n=[];return this.collectChanges(e,this.externalProjects,t,n),this.collectChanges(e,M(this.configuredProjects.values(),(e=>e.deferredClose?void 0:e)),t,n),this.collectChanges(e,this.inferredProjects,t,n),n}applyChangesInOpenFiles(e,t,n){let r,i,o,a=!1;if(e)for(const t of e){(r??(r=[])).push(this.getScriptInfoForPath(rme(nme(t.fileName),t.projectRootPath?this.getNormalizedAbsolutePath(t.projectRootPath):this.currentDirectory,this.toCanonicalFileName)));const e=this.getOrCreateOpenScriptInfo(nme(t.fileName),t.content,yge(t.scriptKind),t.hasMixedContent,t.projectRootPath?nme(t.projectRootPath):void 0);(i||(i=[])).push(e)}if(t)for(const e of t){const t=this.getScriptInfo(e.fileName);_n.assert(!!t),this.applyChangesToFile(t,e.changes)}if(n)for(const e of n)a=this.closeClientFile(e,!0)||a;_(r,((e,t)=>e||!i[t]||i[t].isDynamic?void 0:this.tryInvokeWildCardDirectories(i[t]))),null==i||i.forEach((e=>{var t;return null==(t=this.assignProjectToOpenedScriptInfo(e).retainProjects)?void 0:t.forEach(((e,t)=>(o??(o=new Map)).set(t,e)))})),a&&this.assignOrphanScriptInfosToInferredProject(),i?(this.cleanupProjectsAndScriptInfos(o,new Set(i.map((e=>e.path))),void 0),i.forEach((e=>this.telemetryOnOpenFile(e))),this.printProjects()):l(n)&&this.printProjects()}applyChangesToFile(e,t){for(const n of t)e.editContent(n.span.start,n.span.start+n.span.length,n.newText)}closeExternalProject(e,t){const n=nme(e);if(this.externalProjectToConfiguredProjectMap.get(n))this.externalProjectToConfiguredProjectMap.delete(n);else{const t=this.findExternalProjectByProjectName(e);t&&this.removeProject(t)}t&&(this.cleanupConfiguredProjects(),this.printProjects())}openExternalProjects(e){const t=new Set(this.externalProjects.map((e=>e.getProjectName())));this.externalProjectToConfiguredProjectMap.forEach(((e,n)=>t.add(n)));for(const n of e)this.openExternalProject(n,!1),t.delete(n.projectFileName);t.forEach((e=>this.closeExternalProject(e,!1))),this.cleanupConfiguredProjects(),this.printProjects()}static escapeFilenameForRegex(e){return e.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=pge}applySafeList(e){const t=e.typeAcquisition;_n.assert(!!t,"proj.typeAcquisition should be set by now");const n=this.applySafeListWorker(e,e.rootFiles,t);return(null==n?void 0:n.excludedFiles)??[]}applySafeListWorker(t,n,r){if(!1===r.enable||r.disableFilenameBasedTypeAcquisition)return;const i=r.include||(r.include=[]),o=[],a=n.map((e=>Lo(e.fileName)));for(const t of Object.keys(this.safelist)){const n=this.safelist[t];for(const r of a)if(n.match.test(r)){if(this.logger.info(`Excluding files based on rule ${t} matching file '${r}'`),n.types)for(const e of n.types)i.includes(e)||i.push(e);if(n.exclude)for(const i of n.exclude){const a=r.replace(n.match,((...n)=>i.map((r=>"number"==typeof r?Ye(n[r])?e.escapeFilenameForRegex(n[r]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${t} - not enough groups`),"\\*"):r)).join("")));o.includes(a)||o.push(a)}else{const t=e.escapeFilenameForRegex(r);o.includes(t)||o.push(t)}}}const s=o.map((e=>new RegExp(e,"i")));let c,l;for(let e=0;et.test(a[e]))))_(e);else{if(r.enable){const t=Eo(lt(a[e]));if(So(t,"js")){const n=Bt(WS(t)),r=this.legacySafelist.get(n);if(void 0!==r){this.logger.info(`Excluded '${a[e]}' because it matched ${n} from the legacy safelist`),_(e),i.includes(r)||i.push(r);continue}}}/^.+[.-]min\.js$/.test(a[e])?_(e):null==c||c.push(n[e])}return l?{rootFiles:c,excludedFiles:l}:void 0;function _(e){l||(_n.assert(!c),c=n.slice(0,e),l=[]),l.push(a[e])}}openExternalProject(e,t){const n=this.findExternalProjectByProjectName(e.projectFileName);let r,i=[];for(const t of e.rootFiles){const n=nme(t.fileName);if(pme(n)){if(0===this.serverMode&&this.host.fileExists(n)){let t=this.findConfiguredProjectByProjectName(n);t||(t=this.createConfiguredProject(n,`Creating configured project in external project: ${e.projectFileName}`),this.getHostPreferences().lazyConfiguredProjectsFromExternalProject||t.updateGraph()),(r??(r=new Set)).add(t),_n.assert(!t.isClosed())}}else i.push(t)}if(r)this.externalProjectToConfiguredProjectMap.set(e.projectFileName,r),n&&this.removeProject(n);else{this.externalProjectToConfiguredProjectMap.delete(e.projectFileName);const t=e.typeAcquisition||{};t.include=t.include||[],t.exclude=t.exclude||[],void 0===t.enable&&(t.enable=Ome(i.map((e=>e.fileName))));const r=this.applySafeListWorker(e,i,t),o=(null==r?void 0:r.excludedFiles)??[];if(i=(null==r?void 0:r.rootFiles)??i,n){n.excludedFiles=o;const r=mge(e.options),a=gge(e.options,n.getCurrentDirectory()),s=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e.projectFileName,r,i,kge);s?n.disableLanguageService(s):n.enableLanguageService(),n.setProjectErrors(null==a?void 0:a.errors),this.updateRootAndOptionsOfNonInferredProject(n,i,kge,r,t,e.options.compileOnSave,null==a?void 0:a.watchOptions),n.updateGraph()}else{this.createExternalProject(e.projectFileName,i,e.options,t,o).updateGraph()}}t&&(this.cleanupConfiguredProjects(r,new Set([e.projectFileName])),this.printProjects())}hasDeferredExtension(){for(const e of this.hostConfiguration.extraFileExtensions)if(7===e.scriptKind)return!0;return!1}requestEnablePlugin(e,t,n){if(this.host.importPlugin||this.host.require)if(this.logger.info(`Enabling plugin ${t.name} from candidate paths: ${n.join(",")}`),!t.name||ws(t.name)||/[\\/]\.\.?(?:$|[\\/])/.test(t.name))this.logger.info(`Skipped loading plugin ${t.name||JSON.stringify(t)} because only package name is allowed plugin name`);else{if(this.host.importPlugin){const r=Rme.importServicePluginAsync(t,n,this.host,(e=>this.logger.info(e)));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let i=this.pendingPluginEnablements.get(e);return i||this.pendingPluginEnablements.set(e,i=[]),void i.push(r)}this.endEnablePlugin(e,Rme.importServicePluginSync(t,n,this.host,(e=>this.logger.info(e))))}else this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded")}endEnablePlugin(e,{pluginConfigEntry:t,resolvedModule:n,errorLogs:r}){var i;if(n){const r=null==(i=this.currentPluginConfigOverrides)?void 0:i.get(t.name);if(r){const e=t.name;(t=r).name=e}e.enableProxy(n,t)}else _(r,(e=>this.logger.info(e))),this.logger.info(`Couldn't find ${t.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;const e=Ie(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(e),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(e){_n.assert(void 0===this.currentPluginEnablementPromise);let t=!1;await Promise.all(N(e,(async([e,n])=>{const r=await Promise.all(n);if(e.isClosed()||Kme(e))this.logger.info(`Cancelling plugin enabling for ${e.getProjectName()} as it is ${e.isClosed()?"closed":"deferred close"}`);else{t=!0;for(const t of r)this.endEnablePlugin(e,t);this.delayUpdateProjectGraph(e)}}))),this.currentPluginEnablementPromise=void 0,t&&this.sendProjectsUpdatedInBackgroundEvent()}configurePlugin(e){this.forEachEnabledProject((t=>t.onPluginConfigurationChanged(e.pluginName,e.configuration))),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(e.pluginName,e.configuration)}getPackageJsonsVisibleToFile(e,t,n){const r=this.packageJsonCache,i=n&&this.toPath(n),o=[],a=e=>{switch(r.directoryHasPackageJson(e)){case 3:return r.searchDirectoryAndAncestors(e,t),a(e);case-1:const n=Ro(e,"package.json");this.watchPackageJsonFile(n,this.toPath(n),t);const i=r.getInDirectory(e);i&&o.push(i)}if(i&&i===e)return!0};return OM(t,Fo(e),a),o}getNearestAncestorDirectoryWithPackageJson(e,t){return OM(t,e,(e=>{switch(this.packageJsonCache.directoryHasPackageJson(e)){case-1:return e;case 0:return;case 3:return this.host.fileExists(Ro(e,"package.json"))?e:void 0}}))}watchPackageJsonFile(e,t,n){_n.assert(void 0!==n);let r=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(t);if(!r){let n=this.watchFactory.watchFile(e,((e,n)=>{switch(n){case 0:case 1:this.packageJsonCache.addOrUpdate(e,t),this.onPackageJsonChange(r);break;case 2:this.packageJsonCache.delete(t),this.onPackageJsonChange(r),r.projects.clear(),r.close()}}),250,this.hostConfiguration.watchOptions,M$.PackageJson);r={projects:new Set,close:()=>{var e;!r.projects.size&&n&&(n.close(),n=void 0,null==(e=this.packageJsonFilesMap)||e.delete(t),this.packageJsonCache.invalidate(t))}},this.packageJsonFilesMap.set(t,r)}r.projects.add(n),(n.packageJsonWatches??(n.packageJsonWatches=new Set)).add(r)}onPackageJsonChange(e){e.projects.forEach((e=>{var t;return null==(t=e.onPackageJsonChange)?void 0:t.call(e)}))}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=function(){let e;return{get:()=>e,set(t){e=t},clear(){e=void 0}}}())}};Gge.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g;var Xge=Gge;function Qge(e){return void 0!==e.kind}function Yge(e){e.print(!1,!1,!1)}function Zge(e){let t,n,r;const i={get(e,t,i,o){if(n&&r===a(e,i,o))return n.get(t)},set(n,r,i,a,c,l,_){if(o(n,i,a).set(r,s(c,l,_,void 0,!1)),_)for(const n of l)if(n.isInNodeModules){const r=n.path.substring(0,n.path.indexOf(iM)+iM.length-1),i=e.toPath(r);(null==t?void 0:t.has(i))||(t||(t=new Map)).set(i,e.watchNodeModulesForPackageJsonChanges(r))}},setModulePaths(e,t,n,r,i){const a=o(e,n,r),c=a.get(t);c?c.modulePaths=i:a.set(t,s(void 0,i,void 0,void 0,void 0))},setBlockedByPackageJsonDependencies(e,t,n,r,i,a){const c=o(e,n,r),l=c.get(t);l?(l.isBlockedByPackageJsonDependencies=a,l.packageName=i):c.set(t,s(void 0,void 0,void 0,i,a))},clear(){null==t||t.forEach(ix),null==n||n.clear(),null==t||t.clear(),r=void 0},count:()=>n?n.size:0};return _n.isDebugging&&Object.defineProperty(i,"__cache",{get:()=>n}),i;function o(e,t,o){const s=a(e,t,o);return n&&r!==s&&i.clear(),r=s,n||(n=new Map)}function a(e,t,n){return`${e},${t.importModuleSpecifierEnding},${t.importModuleSpecifierPreference},${n.overrideImportMode}`}function s(e,t,n,r,i){return{kind:e,modulePaths:t,moduleSpecifiers:n,packageName:r,isBlockedByPackageJsonDependencies:i}}}function ehe(e){const t=new Map,n=new Map;return{addOrUpdate:r,invalidate:function(e){t.delete(e),n.delete(Fo(e))},delete:e=>{t.delete(e),n.set(Fo(e),!0)},getInDirectory:n=>t.get(e.toPath(Ro(n,"package.json")))||void 0,directoryHasPackageJson:t=>i(e.toPath(t)),searchDirectoryAndAncestors:(t,o)=>{OM(o,t,(t=>{const o=e.toPath(t);if(3!==i(o))return!0;const a=Ro(t,"package.json");RZ(e,a)?r(a,Ro(o,"package.json")):n.set(o,!0)}))}};function r(r,i){const o=_n.checkDefined(UZ(r,e.host));t.set(i,o),n.delete(Fo(i))}function i(e){return t.has(Ro(e,"package.json"))?-1:n.has(e)?0:3}}var the={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}};function nhe(e,t){if((Vme(e)||$me(e))&&e.isJsOnlyProject()){const n=e.getScriptInfoForNormalizedPath(t);return n&&!n.isJavaScript()}return!1}function rhe(e,t,n){const r=t.getScriptInfoForNormalizedPath(e);return{start:r.positionToLineOffset(n.start),end:r.positionToLineOffset(n.start+n.length),text:gV(n.messageText,"\n"),code:n.code,category:si(n),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,source:n.source,relatedInformation:N(n.relatedInformation,ihe)}}function ihe(e){return e.file?{span:{start:ohe(qa(e.file,e.start)),end:ohe(qa(e.file,e.start+e.length)),file:e.file.fileName},message:gV(e.messageText,"\n"),category:si(e),code:e.code}:{message:gV(e.messageText,"\n"),category:si(e),code:e.code}}function ohe(e){return{line:e.line+1,offset:e.character+1}}function ahe(e,t){const n=e.file&&ohe(qa(e.file,e.start)),r=e.file&&ohe(qa(e.file,e.start+e.length)),i=gV(e.messageText,"\n"),{code:o,source:a}=e,s={start:n,end:r,text:i,code:o,category:si(e),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:a,relatedInformation:N(e.relatedInformation,ihe)};return t?{...s,fileName:e.file&&e.file.fileName}:s}var she=mme;function che(e,t,n,r){const i=t.hasLevel(3),o=JSON.stringify(e);i&&t.info(`${e.type}:${yG(e)}`);return`Content-Length: ${1+n(o,"utf8")}\r\n\r\n${o}${r}`}var lhe=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){void 0!==this.requestId&&(this.operationHost.sendRequestCompletedEvent(this.requestId,this.performanceData),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0),this.performanceData=void 0}immediate(e,t){const n=this.requestId;_n.assert(n===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate((()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(n,(()=>this.executeAction(t)),this.performanceData)}),e))}delay(e,t,n){const r=this.requestId;_n.assert(r===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout((()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(r,(()=>this.executeAction(n)),this.performanceData)}),t,e))}executeAction(e){var t,n,r,i,o,a;let s=!1;try{this.operationHost.isCancellationRequested()?(s=!0,null==(t=$n)||t.instant($n.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):(null==(n=$n)||n.push($n.Phase.Session,"stepAction",{seq:this.requestId}),e(this),null==(r=$n)||r.pop())}catch(e){null==(i=$n)||i.popAll(),s=!0,e instanceof Tr?null==(o=$n)||o.instant($n.Phase.Session,"stepCanceled",{seq:this.requestId}):(null==(a=$n)||a.instant($n.Phase.Session,"stepError",{seq:this.requestId,message:e.message}),this.operationHost.logError(e,`delayed processing of request ${this.requestId}`))}this.performanceData=this.operationHost.getPerformanceData(),!s&&this.hasPendingWork()||this.complete()}setTimerHandle(e){void 0!==this.timerHandle&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){void 0!==this.immediateId&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}};function _he(e,t){return{seq:0,type:"event",event:e,body:t}}function uhe(e){return Ge((({textSpan:e})=>e.start+100003*e.length),NY(e))}function dhe(e,t,n){const r=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,n),i=r&&pe(r);return i&&!i.isLocal?{fileName:i.fileName,pos:i.textSpan.start}:void 0}function phe(e,t,n){for(const r of Xe(e)?e:e.projects)n(r,t);!Xe(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach(((e,t)=>{for(const r of e)n(r,t)}))}function fhe(e,t,n,r,i,o,a){const s=new Map,c=Ke();c.enqueue({project:t,location:n}),phe(e,n.fileName,((e,t)=>{const r={fileName:t,pos:n.pos};c.enqueue({project:e,location:r})}));const l=t.projectService,_=t.getCancellationToken(),u=ut((()=>t.isSourceOfProjectReferenceRedirect(r.fileName)?r:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(r))),d=ut((()=>t.isSourceOfProjectReferenceRedirect(r.fileName)?r:t.getLanguageService().getSourceMapper().tryGetSourcePosition(r))),p=new Set;e:for(;!c.isEmpty();){for(;!c.isEmpty();){if(_.isCancellationRequested())break e;const{project:e,location:t}=c.dequeue();if(s.has(e))continue;if(hhe(e,t))continue;if(Bge(e),!e.containsFile(nme(t.fileName)))continue;const n=f(e,t);s.set(e,n??Zfe),p.add(yhe(e))}r&&(l.loadAncestorProjectTree(p),l.forEachEnabledProject((e=>{if(_.isCancellationRequested())return;if(s.has(e))return;const t=i(r,e,u,d);t&&c.enqueue({project:e,location:t})})))}return 1===s.size?ge(s.values()):s;function f(e,t){const n=o(e,t);if(!n||!a)return n;for(const t of n)a(t,(t=>{const n=l.getOriginalLocationEnsuringConfiguredProject(e,t);if(!n)return;const r=l.getScriptInfo(n.fileName);for(const e of r.containingProjects)e.isOrphan()||s.has(e)||c.enqueue({project:e,location:n});const i=l.getSymlinkedProjects(r);i&&i.forEach(((e,t)=>{for(const r of e)r.isOrphan()||s.has(r)||c.enqueue({project:r,location:{fileName:t,pos:n.pos}})}))}));return n}}function mhe(e,t){if(t.containsFile(nme(e.fileName))&&!hhe(t,e))return e}function ghe(e,t,n,r){const i=mhe(e,t);if(i)return i;const o=n();if(o&&t.containsFile(nme(o.fileName)))return o;const a=r();return a&&t.containsFile(nme(a.fileName))?a:void 0}function hhe(e,t){if(!t)return!1;const n=e.getLanguageService().getProgram();if(!n)return!1;const r=n.getSourceFile(t.fileName);return!!r&&r.resolvedPath!==r.path&&r.resolvedPath!==e.toPath(t.fileName)}function yhe(e){return Wme(e)?e.canonicalConfigFilePath:e.getProjectName()}function vhe({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function bhe(e,t){return PY(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}function xhe(e,t){return AY(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}function khe(e,t){return IY(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}var She=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","getPasteEdits","copilotRelated"],The=[...She,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full","preparePasteEdits"],Che=class e{constructor(e){this.changeSeq=0,this.regionDiagLineCountThreshold=500,this.handlers=new Map(Object.entries({status:()=>{const e={version:o};return this.requiredResponse(e)},openExternalProject:e=>(this.projectService.openExternalProject(e.arguments,!0),this.requiredResponse(!0)),openExternalProjects:e=>(this.projectService.openExternalProjects(e.arguments.projects),this.requiredResponse(!0)),closeExternalProject:e=>(this.projectService.closeExternalProject(e.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:e=>{const t=this.projectService.synchronizeProjectList(e.arguments.knownProjects,e.arguments.includeProjectReferenceRedirectInfo);if(!t.some((e=>e.projectErrors&&0!==e.projectErrors.length)))return this.requiredResponse(t);const n=N(t,(e=>e.projectErrors&&0!==e.projectErrors.length?{info:e.info,changes:e.changes,files:e.files,projectErrors:this.convertToDiagnosticsWithLinePosition(e.projectErrors,void 0)}:e));return this.requiredResponse(n)},updateOpen:e=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(e.arguments.openFiles&&F(e.arguments.openFiles,(e=>({fileName:e.file,content:e.fileContent,scriptKind:e.scriptKindName,projectRootPath:e.projectRootPath}))),e.arguments.changedFiles&&F(e.arguments.changedFiles,(e=>({fileName:e.fileName,changes:M(_e(e.textChanges),(t=>{const n=_n.checkDefined(this.projectService.getScriptInfo(e.fileName)),r=n.lineOffsetToPosition(t.start.line,t.start.offset),i=n.lineOffsetToPosition(t.end.line,t.end.offset);return r>=0?{span:{start:r,length:i-r},newText:t.newText}:void 0}))}))),e.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:e=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(e.arguments.openFiles,e.arguments.changedFiles&&F(e.arguments.changedFiles,(e=>({fileName:e.fileName,changes:_e(e.changes)}))),e.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired(void 0)),definition:e=>this.requiredResponse(this.getDefinition(e.arguments,!0)),"definition-full":e=>this.requiredResponse(this.getDefinition(e.arguments,!1)),definitionAndBoundSpan:e=>this.requiredResponse(this.getDefinitionAndBoundSpan(e.arguments,!0)),"definitionAndBoundSpan-full":e=>this.requiredResponse(this.getDefinitionAndBoundSpan(e.arguments,!1)),findSourceDefinition:e=>this.requiredResponse(this.findSourceDefinition(e.arguments)),"emit-output":e=>this.requiredResponse(this.getEmitOutput(e.arguments)),typeDefinition:e=>this.requiredResponse(this.getTypeDefinition(e.arguments)),implementation:e=>this.requiredResponse(this.getImplementation(e.arguments,!0)),"implementation-full":e=>this.requiredResponse(this.getImplementation(e.arguments,!1)),references:e=>this.requiredResponse(this.getReferences(e.arguments,!0)),"references-full":e=>this.requiredResponse(this.getReferences(e.arguments,!1)),rename:e=>this.requiredResponse(this.getRenameLocations(e.arguments,!0)),"renameLocations-full":e=>this.requiredResponse(this.getRenameLocations(e.arguments,!1)),"rename-full":e=>this.requiredResponse(this.getRenameInfo(e.arguments)),open:e=>(this.openClientFile(nme(e.arguments.file),e.arguments.fileContent,vge(e.arguments.scriptKindName),e.arguments.projectRootPath?nme(e.arguments.projectRootPath):void 0),this.notRequired(e)),quickinfo:e=>this.requiredResponse(this.getQuickInfoWorker(e.arguments,!0)),"quickinfo-full":e=>this.requiredResponse(this.getQuickInfoWorker(e.arguments,!1)),getOutliningSpans:e=>this.requiredResponse(this.getOutliningSpans(e.arguments,!0)),outliningSpans:e=>this.requiredResponse(this.getOutliningSpans(e.arguments,!1)),todoComments:e=>this.requiredResponse(this.getTodoComments(e.arguments)),indentation:e=>this.requiredResponse(this.getIndentation(e.arguments)),nameOrDottedNameSpan:e=>this.requiredResponse(this.getNameOrDottedNameSpan(e.arguments)),breakpointStatement:e=>this.requiredResponse(this.getBreakpointStatement(e.arguments)),braceCompletion:e=>this.requiredResponse(this.isValidBraceCompletion(e.arguments)),docCommentTemplate:e=>this.requiredResponse(this.getDocCommentTemplate(e.arguments)),getSpanOfEnclosingComment:e=>this.requiredResponse(this.getSpanOfEnclosingComment(e.arguments)),fileReferences:e=>this.requiredResponse(this.getFileReferences(e.arguments,!0)),"fileReferences-full":e=>this.requiredResponse(this.getFileReferences(e.arguments,!1)),format:e=>this.requiredResponse(this.getFormattingEditsForRange(e.arguments)),formatonkey:e=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(e.arguments)),"format-full":e=>this.requiredResponse(this.getFormattingEditsForDocumentFull(e.arguments)),"formatonkey-full":e=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(e.arguments)),"formatRange-full":e=>this.requiredResponse(this.getFormattingEditsForRangeFull(e.arguments)),completionInfo:e=>this.requiredResponse(this.getCompletions(e.arguments,"completionInfo")),completions:e=>this.requiredResponse(this.getCompletions(e.arguments,"completions")),"completions-full":e=>this.requiredResponse(this.getCompletions(e.arguments,"completions-full")),completionEntryDetails:e=>this.requiredResponse(this.getCompletionEntryDetails(e.arguments,!1)),"completionEntryDetails-full":e=>this.requiredResponse(this.getCompletionEntryDetails(e.arguments,!0)),compileOnSaveAffectedFileList:e=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(e.arguments)),compileOnSaveEmitFile:e=>this.requiredResponse(this.emitFile(e.arguments)),signatureHelp:e=>this.requiredResponse(this.getSignatureHelpItems(e.arguments,!0)),"signatureHelp-full":e=>this.requiredResponse(this.getSignatureHelpItems(e.arguments,!1)),"compilerOptionsDiagnostics-full":e=>this.requiredResponse(this.getCompilerOptionsDiagnostics(e.arguments)),"encodedSyntacticClassifications-full":e=>this.requiredResponse(this.getEncodedSyntacticClassifications(e.arguments)),"encodedSemanticClassifications-full":e=>this.requiredResponse(this.getEncodedSemanticClassifications(e.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:e=>this.requiredResponse(this.getSemanticDiagnosticsSync(e.arguments)),syntacticDiagnosticsSync:e=>this.requiredResponse(this.getSyntacticDiagnosticsSync(e.arguments)),suggestionDiagnosticsSync:e=>this.requiredResponse(this.getSuggestionDiagnosticsSync(e.arguments)),geterr:e=>(this.errorCheck.startNew((t=>this.getDiagnostics(t,e.arguments.delay,e.arguments.files))),this.notRequired(void 0)),geterrForProject:e=>(this.errorCheck.startNew((t=>this.getDiagnosticsForProject(t,e.arguments.delay,e.arguments.file))),this.notRequired(void 0)),change:e=>(this.change(e.arguments),this.notRequired(e)),configure:e=>(this.projectService.setHostConfiguration(e.arguments),this.notRequired(e)),reload:e=>(this.reload(e.arguments),this.requiredResponse({reloadFinished:!0})),saveto:e=>{const t=e.arguments;return this.saveToTmp(t.file,t.tmpfile),this.notRequired(e)},close:e=>{const t=e.arguments;return this.closeClientFile(t.file),this.notRequired(e)},navto:e=>this.requiredResponse(this.getNavigateToItems(e.arguments,!0)),"navto-full":e=>this.requiredResponse(this.getNavigateToItems(e.arguments,!1)),brace:e=>this.requiredResponse(this.getBraceMatching(e.arguments,!0)),"brace-full":e=>this.requiredResponse(this.getBraceMatching(e.arguments,!1)),navbar:e=>this.requiredResponse(this.getNavigationBarItems(e.arguments,!0)),"navbar-full":e=>this.requiredResponse(this.getNavigationBarItems(e.arguments,!1)),navtree:e=>this.requiredResponse(this.getNavigationTree(e.arguments,!0)),"navtree-full":e=>this.requiredResponse(this.getNavigationTree(e.arguments,!1)),documentHighlights:e=>this.requiredResponse(this.getDocumentHighlights(e.arguments,!0)),"documentHighlights-full":e=>this.requiredResponse(this.getDocumentHighlights(e.arguments,!1)),compilerOptionsForInferredProjects:e=>(this.setCompilerOptionsForInferredProjects(e.arguments),this.requiredResponse(!0)),projectInfo:e=>this.requiredResponse(this.getProjectInfo(e.arguments)),reloadProjects:e=>(this.projectService.reloadProjects(),this.notRequired(e)),jsxClosingTag:e=>this.requiredResponse(this.getJsxClosingTag(e.arguments)),linkedEditingRange:e=>this.requiredResponse(this.getLinkedEditingRange(e.arguments)),getCodeFixes:e=>this.requiredResponse(this.getCodeFixes(e.arguments,!0)),"getCodeFixes-full":e=>this.requiredResponse(this.getCodeFixes(e.arguments,!1)),getCombinedCodeFix:e=>this.requiredResponse(this.getCombinedCodeFix(e.arguments,!0)),"getCombinedCodeFix-full":e=>this.requiredResponse(this.getCombinedCodeFix(e.arguments,!1)),applyCodeActionCommand:e=>this.requiredResponse(this.applyCodeActionCommand(e.arguments)),getSupportedCodeFixes:e=>this.requiredResponse(this.getSupportedCodeFixes(e.arguments)),getApplicableRefactors:e=>this.requiredResponse(this.getApplicableRefactors(e.arguments)),getEditsForRefactor:e=>this.requiredResponse(this.getEditsForRefactor(e.arguments,!0)),getMoveToRefactoringFileSuggestions:e=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(e.arguments)),preparePasteEdits:e=>this.requiredResponse(this.preparePasteEdits(e.arguments)),getPasteEdits:e=>this.requiredResponse(this.getPasteEdits(e.arguments)),"getEditsForRefactor-full":e=>this.requiredResponse(this.getEditsForRefactor(e.arguments,!1)),organizeImports:e=>this.requiredResponse(this.organizeImports(e.arguments,!0)),"organizeImports-full":e=>this.requiredResponse(this.organizeImports(e.arguments,!1)),getEditsForFileRename:e=>this.requiredResponse(this.getEditsForFileRename(e.arguments,!0)),"getEditsForFileRename-full":e=>this.requiredResponse(this.getEditsForFileRename(e.arguments,!1)),configurePlugin:e=>(this.configurePlugin(e.arguments),this.notRequired(e)),selectionRange:e=>this.requiredResponse(this.getSmartSelectionRange(e.arguments,!0)),"selectionRange-full":e=>this.requiredResponse(this.getSmartSelectionRange(e.arguments,!1)),prepareCallHierarchy:e=>this.requiredResponse(this.prepareCallHierarchy(e.arguments)),provideCallHierarchyIncomingCalls:e=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(e.arguments)),provideCallHierarchyOutgoingCalls:e=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(e.arguments)),toggleLineComment:e=>this.requiredResponse(this.toggleLineComment(e.arguments,!0)),"toggleLineComment-full":e=>this.requiredResponse(this.toggleLineComment(e.arguments,!1)),toggleMultilineComment:e=>this.requiredResponse(this.toggleMultilineComment(e.arguments,!0)),"toggleMultilineComment-full":e=>this.requiredResponse(this.toggleMultilineComment(e.arguments,!1)),commentSelection:e=>this.requiredResponse(this.commentSelection(e.arguments,!0)),"commentSelection-full":e=>this.requiredResponse(this.commentSelection(e.arguments,!1)),uncommentSelection:e=>this.requiredResponse(this.uncommentSelection(e.arguments,!0)),"uncommentSelection-full":e=>this.requiredResponse(this.uncommentSelection(e.arguments,!1)),provideInlayHints:e=>this.requiredResponse(this.provideInlayHints(e.arguments)),mapCode:e=>this.requiredResponse(this.mapCode(e.arguments)),copilotRelated:()=>this.requiredResponse(this.getCopilotRelatedInfo())})),this.host=e.host,this.cancellationToken=e.cancellationToken,this.typingsInstaller=e.typingsInstaller||Tge,this.byteLength=e.byteLength,this.hrtime=e.hrtime,this.logger=e.logger,this.canUseEvents=e.canUseEvents,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=e.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:t}=e;this.eventHandler=this.canUseEvents?e.eventHandler||(e=>this.defaultEventHandler(e)):void 0;const n={executeWithRequestId:(e,t,n)=>this.executeWithRequestId(e,t,n),getCurrentRequestId:()=>this.currentRequestId,getPerformanceData:()=>this.performanceData,getServerHost:()=>this.host,logError:(e,t)=>this.logError(e,t),sendRequestCompletedEvent:(e,t)=>this.sendRequestCompletedEvent(e,t),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new lhe(n);const r={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:e.useSingleInferredProject,useInferredProjectPerProjectRoot:e.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:t,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:e.globalPlugins,pluginProbeLocations:e.pluginProbeLocations,allowLocalPluginLoads:e.allowLocalPluginLoads,typesMapLocation:e.typesMapLocation,serverMode:e.serverMode,session:this,canUseWatchEvents:e.canUseWatchEvents,incrementalVerifier:e.incrementalVerifier};switch(this.projectService=new Xge(r),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new dme(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:She.forEach((e=>this.handlers.set(e,(e=>{throw new Error(`Request: ${e.command} not allowed in LanguageServiceMode.PartialSemantic`)}))));break;case 2:The.forEach((e=>this.handlers.set(e,(e=>{throw new Error(`Request: ${e.command} not allowed in LanguageServiceMode.Syntactic`)}))));break;default:_n.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(e,t){this.event({request_seq:e,performanceData:t&&whe(t)},"requestCompleted")}addPerformanceData(e,t){this.performanceData||(this.performanceData={}),this.performanceData[e]=(this.performanceData[e]??0)+t}addDiagnosticsPerformanceData(e,t,n){var r,i;this.performanceData||(this.performanceData={});let o=null==(r=this.performanceData.diagnosticsDuration)?void 0:r.get(e);o||((i=this.performanceData).diagnosticsDuration??(i.diagnosticsDuration=new Map)).set(e,o={}),o[t]=n}performanceEventHandler(e){switch(e.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",e.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",e.durationMs)}}defaultEventHandler(e){switch(e.eventName){case Qme:this.projectsUpdatedInBackgroundEvent(e.data.openFiles);break;case Yme:this.event({projectName:e.data.project.getProjectName(),reason:e.data.reason},e.eventName);break;case Zme:this.event({projectName:e.data.project.getProjectName()},e.eventName);break;case ege:case oge:case age:case sge:this.event(e.data,e.eventName);break;case tge:this.event({triggerFile:e.data.triggerFile,configFile:e.data.configFileName,diagnostics:N(e.data.diagnostics,(e=>ahe(e,!0)))},e.eventName);break;case nge:this.event({projectName:e.data.project.getProjectName(),languageServiceEnabled:e.data.languageServiceEnabled},e.eventName);break;case rge:{const t="telemetry";this.event({telemetryEventName:e.eventName,payload:e.data},t);break}}}projectsUpdatedInBackgroundEvent(e){this.projectService.logger.info(`got projects updated in background ${e}`),e.length&&(this.suppressDiagnosticEvents||this.noGetErrOnBackgroundUpdate||(this.projectService.logger.info(`Queueing diagnostics update for ${e}`),this.errorCheck.startNew((t=>this.updateErrorCheck(t,e,100,!0)))),this.event({openFiles:e},Qme))}logError(e,t){this.logErrorWorker(e,t)}logErrorWorker(e,t,n){let r="Exception on executing command "+t;if(e.message&&(r+=":\n"+hG(e.message),e.stack&&(r+="\n"+hG(e.stack))),this.logger.hasLevel(3)){if(n)try{const{file:e,project:t}=this.getFileAndProject(n),i=t.getScriptInfoForNormalizedPath(e);if(i){const e=eY(i.getSnapshot());r+=`\n\nFile text of ${n.file}:${hG(e)}\n`}}catch{}if(e.ProgramFiles){r+=`\n\nProgram files: ${JSON.stringify(e.ProgramFiles)}\n`,r+="\n\nProjects::\n";let t=0;const n=e=>{r+=`\nProject '${e.projectName}' (${Eme[e.projectKind]}) ${t}\n`,r+=e.filesToString(!0),r+="\n-----------------------------------------------\n",t++};this.projectService.externalProjects.forEach(n),this.projectService.configuredProjects.forEach(n),this.projectService.inferredProjects.forEach(n)}}this.logger.msg(r,"Err")}send(e){"event"!==e.type||this.canUseEvents?this.writeMessage(e):this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${yG(e)}`)}writeMessage(e){const t=che(e,this.logger,this.byteLength,this.host.newLine);this.host.write(t)}event(e,t){this.send(_he(t,e))}doOutput(e,t,n,r,i,o){const a={seq:0,type:"response",command:t,request_seq:n,success:r,performanceData:i&&whe(i)};if(r){let t;if(Xe(e))a.body=e,t=e.metadata,delete e.metadata;else if("object"==typeof e)if(e.metadata){const{metadata:n,...r}=e;a.body=r,t=n}else a.body=e;else a.body=e;t&&(a.metadata=t)}else _n.assert(void 0===e);o&&(a.message=o),this.send(a)}semanticCheck(e,t){var n,r;const i=qn();null==(n=$n)||n.push($n.Phase.Session,"semanticCheck",{file:e,configFilePath:t.canonicalConfigFilePath});const o=nhe(t,e)?Zfe:t.getLanguageService().getSemanticDiagnostics(e).filter((e=>!!e.file));this.sendDiagnosticsEvent(e,t,o,"semanticDiag",i),null==(r=$n)||r.pop()}syntacticCheck(e,t){var n,r;const i=qn();null==(n=$n)||n.push($n.Phase.Session,"syntacticCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSyntacticDiagnostics(e),"syntaxDiag",i),null==(r=$n)||r.pop()}suggestionCheck(e,t){var n,r;const i=qn();null==(n=$n)||n.push($n.Phase.Session,"suggestionCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSuggestionDiagnostics(e),"suggestionDiag",i),null==(r=$n)||r.pop()}regionSemanticCheck(e,t,n){var r,i,o;const a=qn();let s;null==(r=$n)||r.push($n.Phase.Session,"regionSemanticCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.shouldDoRegionCheck(e)&&(s=t.getLanguageService().getRegionSemanticDiagnostics(e,n))?(this.sendDiagnosticsEvent(e,t,s.diagnostics,"regionSemanticDiag",a,s.spans),null==(o=$n)||o.pop()):null==(i=$n)||i.pop()}shouldDoRegionCheck(e){var t;const n=null==(t=this.projectService.getScriptInfoForNormalizedPath(e))?void 0:t.textStorage.getLineInfo().getLineCount();return!!(n&&n>=this.regionDiagLineCountThreshold)}sendDiagnosticsEvent(e,t,n,r,i,o){try{const a=_n.checkDefined(t.getScriptInfo(e)),s=qn()-i,c={file:e,diagnostics:n.map((n=>rhe(e,t,n))),spans:null==o?void 0:o.map((e=>Dhe(e,a)))};this.event(c,r),this.addDiagnosticsPerformanceData(e,r,s)}catch(e){this.logError(e,r)}}updateErrorCheck(e,t,n,r=!0){if(0===t.length)return;_n.assert(!this.suppressDiagnosticEvents);const i=this.changeSeq,o=Math.min(n,200);let a=0;const s=()=>{if(a++,t.length>a)return e.delay("checkOne",o,l)},c=(t,n)=>{if(this.semanticCheck(t,n),this.changeSeq===i)return this.getPreferences(t).disableSuggestions?s():void e.immediate("suggestionCheck",(()=>{this.suggestionCheck(t,n),s()}))},l=()=>{if(this.changeSeq!==i)return;let n,o=t[a];if(Ye(o)?o=this.toPendingErrorCheck(o):"ranges"in o&&(n=o.ranges,o=this.toPendingErrorCheck(o.file)),!o)return s();const{fileName:l,project:_}=o;return Bge(_),_.containsFile(l,r)&&(this.syntacticCheck(l,_),this.changeSeq===i)?0!==_.projectService.serverMode?s():n?e.immediate("regionSemanticCheck",(()=>{const t=this.projectService.getScriptInfoForNormalizedPath(l);t&&this.regionSemanticCheck(l,_,n.map((e=>this.getRange({file:l,...e},t)))),this.changeSeq===i&&e.immediate("semanticCheck",(()=>c(l,_)))})):void e.immediate("semanticCheck",(()=>c(l,_))):void 0};t.length>a&&this.changeSeq===i&&e.delay("checkOne",n,l)}cleanProjects(e,t){if(t){this.logger.info(`cleaning ${e}`);for(const e of t)e.getLanguageService(!1).cleanupSemanticCache(),e.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Ie(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e);return n.getEncodedSyntacticClassifications(t,e)}getEncodedSemanticClassifications(e){const{file:t,project:n}=this.getFileAndProject(e),r="2020"===e.format?"2020":"original";return n.getLanguageService().getEncodedSemanticClassifications(t,e,r)}getProject(e){return void 0===e?void 0:this.projectService.findProject(e)}getConfigFileAndProject(e){const t=this.getProject(e.projectFileName),n=nme(e.file);return{configFile:t&&t.hasConfigFile(n)?n:void 0,project:t}}getConfigFileDiagnostics(e,t,n){const r=C($(t.getAllProjectErrors(),t.getLanguageService().getCompilerOptionsDiagnostics()),(t=>!!t.file&&t.file.fileName===e));return n?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r):N(r,(e=>ahe(e,!1)))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(e){return e.map((e=>({message:gV(e.messageText,this.host.newLine),start:e.start,length:e.length,category:si(e),code:e.code,source:e.source,startLocation:e.file&&ohe(qa(e.file,e.start)),endLocation:e.file&&ohe(qa(e.file,e.start+e.length)),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:N(e.relatedInformation,ihe)})))}getCompilerOptionsDiagnostics(e){const t=this.getProject(e.projectFileName);return this.convertToDiagnosticsWithLinePosition(C(t.getLanguageService().getCompilerOptionsDiagnostics(),(e=>!e.file)),void 0)}convertToDiagnosticsWithLinePosition(e,t){return e.map((e=>({message:gV(e.messageText,this.host.newLine),start:e.start,length:e.length,category:si(e),code:e.code,source:e.source,startLocation:t&&t.positionToLineOffset(e.start),endLocation:t&&t.positionToLineOffset(e.start+e.length),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:N(e.relatedInformation,ihe)})))}getDiagnosticsWorker(e,t,n,r){const{project:i,file:o}=this.getFileAndProject(e);if(t&&nhe(i,o))return Zfe;const a=i.getScriptInfoForNormalizedPath(o),s=n(i,o);return r?this.convertToDiagnosticsWithLinePosition(s,a):s.map((e=>rhe(o,i,e)))}getDefinition(t,n){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=this.mapDefinitionInfoLocations(i.getLanguageService().getDefinitionAtPosition(r,o)||Zfe,i);return n?this.mapDefinitionInfo(a,i):a.map(e.mapToOriginalLocation)}mapDefinitionInfoLocations(e,t){return e.map((e=>{const n=xhe(e,t);return n?{...n,containerKind:e.containerKind,containerName:e.containerName,kind:e.kind,name:e.name,failedAliasResolution:e.failedAliasResolution,...e.unverified&&{unverified:e.unverified}}:e}))}getDefinitionAndBoundSpan(t,n){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=_n.checkDefined(i.getScriptInfo(r)),s=i.getLanguageService().getDefinitionAndBoundSpan(r,o);if(!s||!s.definitions)return{definitions:Zfe,textSpan:void 0};const c=this.mapDefinitionInfoLocations(s.definitions,i),{textSpan:l}=s;return n?{definitions:this.mapDefinitionInfo(c,i),textSpan:Dhe(l,a)}:{definitions:c.map(e.mapToOriginalLocation),textSpan:l}}findSourceDefinition(e){var t;const{file:n,project:r}=this.getFileAndProject(e),i=this.getPositionInFile(e,n),o=r.getLanguageService().getDefinitionAtPosition(n,i);let a=this.mapDefinitionInfoLocations(o||Zfe,r).slice();if(0===this.projectService.serverMode&&(!V(a,(e=>nme(e.fileName)!==n&&!e.isAmbient))||V(a,(e=>!!e.failedAliasResolution)))){const e=Ge((e=>e.textSpan.start),NY(this.host.useCaseSensitiveFileNames));null==a||a.forEach((t=>e.add(t)));const o=r.getNoDtsResolutionProject(n),_=o.getLanguageService(),u=null==(t=_.getDefinitionAtPosition(n,i,!0,!1))?void 0:t.filter((e=>nme(e.fileName)!==n));if(V(u))for(const t of u){if(t.unverified){const n=c(t,r.getLanguageService().getProgram(),_.getProgram());if(V(n)){for(const t of n)e.add(t);continue}}e.add(t)}else{const t=a.filter((e=>nme(e.fileName)!==n&&e.isAmbient));for(const a of V(t)?t:function(){const e=r.getLanguageService(),t=e.getProgram(),o=iQ(t.getSourceFile(n),i);if((Ru(o)||_N(o))&&Cx(o.parent))return Fx(o,(t=>{var r;if(t===o)return;const i=null==(r=e.getDefinitionAtPosition(n,t.getStart(),!0,!1))?void 0:r.filter((e=>nme(e.fileName)!==n&&e.isAmbient)).map((e=>({fileName:e.fileName,name:Uh(o)})));return V(i)?i:void 0}))||Zfe;return Zfe}()){const t=s(a.fileName,n,o);if(!t)continue;const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,o.currentDirectory,o.directoryStructureHost,!1);if(!r)continue;o.containsScriptInfo(r)||(o.addRoot(r),o.updateGraph());const i=_.getProgram(),c=_n.checkDefined(i.getSourceFile(t));for(const t of l(a.name,c,i))e.add(t)}}a=Ie(e.values())}return a=a.filter((e=>!e.isAmbient&&!e.failedAliasResolution)),this.mapDefinitionInfo(a,r);function s(e,t,n){var i,o,a;const s=WT(e);if(s&&e.lastIndexOf(iM)===s.topLevelNodeModulesIndex){const c=e.substring(0,s.packageRootIndex),l=null==(i=r.getModuleResolutionCache())?void 0:i.getPackageJsonInfoCache(),_=r.getCompilationSettings(),u=vM(Jo(c,r.getCurrentDirectory()),yM(l,r,_));if(!u)return;const d=gM(u,{moduleResolution:2},r,r.getModuleResolutionCache()),p=qM(UM(e.substring(s.topLevelPackageNameIndex+1,s.packageRootIndex))),f=r.toPath(e);if(d&&V(d,(e=>r.toPath(e)===f)))return null==(o=n.resolutionCache.resolveSingleModuleNameWithoutWatching(p,t).resolvedModule)?void 0:o.resolvedFileName;{const r=`${p}/${WS(e.substring(s.packageRootIndex+1))}`;return null==(a=n.resolutionCache.resolveSingleModuleNameWithoutWatching(r,t).resolvedModule)?void 0:a.resolvedFileName}}}function c(e,t,r){var o;const a=r.getSourceFile(e.fileName);if(!a)return;const s=iQ(t.getSourceFile(n),i),c=t.getTypeChecker().getSymbolAtLocation(s),_=c&&Ku(c,277);if(!_)return;return l((null==(o=_.propertyName)?void 0:o.text)||_.name.text,a,r)}function l(e,t,n){return R(Ace.Core.getTopMostDeclarationNamesInFile(e,t),(e=>{const t=n.getTypeChecker().getSymbolAtLocation(e),r=uh(e);if(t&&r)return vle.createDefinitionInfo(r,n.getTypeChecker(),t,r,!0)}))}}getEmitOutput(e){const{file:t,project:n}=this.getFileAndProject(e);if(!n.shouldEmitFile(n.getScriptInfo(t)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const r=n.getLanguageService().getEmitOutput(t);return e.richResponse?{...r,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r.diagnostics):r.diagnostics.map((e=>ahe(e,!0)))}:r}mapJSDocTagInfo(e,t,n){return e?e.map((e=>{var r;return{...e,text:n?this.mapDisplayParts(e.text,t):null==(r=e.text)?void 0:r.map((e=>e.text)).join("")}})):[]}mapDisplayParts(e,t){return e?e.map((e=>"linkName"!==e.kind?e:{...e,target:this.toFileSpan(e.target.fileName,e.target.textSpan,t)})):[]}mapSignatureHelpItems(e,t,n){return e.map((e=>({...e,documentation:this.mapDisplayParts(e.documentation,t),parameters:e.parameters.map((e=>({...e,documentation:this.mapDisplayParts(e.documentation,t)}))),tags:this.mapJSDocTagInfo(e.tags,t,n)})))}mapDefinitionInfo(e,t){return e.map((e=>({...this.toFileSpanWithContext(e.fileName,e.textSpan,e.contextSpan,t),...e.unverified&&{unverified:e.unverified}})))}static mapToOriginalLocation(e){return e.originalFileName?(_n.assert(void 0!==e.originalTextSpan,"originalTextSpan should be present if originalFileName is"),{...e,fileName:e.originalFileName,textSpan:e.originalTextSpan,targetFileName:e.fileName,targetTextSpan:e.textSpan,contextSpan:e.originalContextSpan,targetContextSpan:e.contextSpan}):e}toFileSpan(e,t,n){const r=n.getLanguageService(),i=r.toLineColumnOffset(e,t.start),o=r.toLineColumnOffset(e,Es(t));return{file:e,start:{line:i.line+1,offset:i.character+1},end:{line:o.line+1,offset:o.character+1}}}toFileSpanWithContext(e,t,n,r){const i=this.toFileSpan(e,t,r),o=n&&this.toFileSpan(e,n,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}getTypeDefinition(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getPositionInFile(e,t),i=this.mapDefinitionInfoLocations(n.getLanguageService().getTypeDefinitionAtPosition(t,r)||Zfe,n);return this.mapDefinitionInfo(i,n)}mapImplementationLocations(e,t){return e.map((e=>{const n=xhe(e,t);return n?{...n,kind:e.kind,displayParts:e.displayParts}:e}))}getImplementation(t,n){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=this.mapImplementationLocations(i.getLanguageService().getImplementationAtPosition(r,o)||Zfe,i);return n?a.map((({fileName:e,textSpan:t,contextSpan:n})=>this.toFileSpanWithContext(e,t,n,i))):a.map(e.mapToOriginalLocation)}getSyntacticDiagnosticsSync(e){const{configFile:t}=this.getConfigFileAndProject(e);return t?Zfe:this.getDiagnosticsWorker(e,!1,((e,t)=>e.getLanguageService().getSyntacticDiagnostics(t)),!!e.includeLinePosition)}getSemanticDiagnosticsSync(e){const{configFile:t,project:n}=this.getConfigFileAndProject(e);return t?this.getConfigFileDiagnostics(t,n,!!e.includeLinePosition):this.getDiagnosticsWorker(e,!0,((e,t)=>e.getLanguageService().getSemanticDiagnostics(t).filter((e=>!!e.file))),!!e.includeLinePosition)}getSuggestionDiagnosticsSync(e){const{configFile:t}=this.getConfigFileAndProject(e);return t?Zfe:this.getDiagnosticsWorker(e,!0,((e,t)=>e.getLanguageService().getSuggestionDiagnostics(t)),!!e.includeLinePosition)}getJsxClosingTag(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=n.getJsxClosingTagAtPosition(t,r);return void 0===i?void 0:{newText:i.newText,caretOffset:0}}getLinkedEditingRange(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=n.getLinkedEditingRangeAtPosition(t,r),o=this.projectService.getScriptInfoForNormalizedPath(t);if(void 0!==o&&void 0!==i)return function(e,t){const n=e.ranges.map((e=>({start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(e.start+e.length)})));return e.wordPattern?{ranges:n,wordPattern:e.wordPattern}:{ranges:n}}(i,o)}getDocumentHighlights(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.getPositionInFile(e,n),o=r.getLanguageService().getDocumentHighlights(n,i,e.filesToSearch);return o?t?o.map((({fileName:e,highlightSpans:t})=>{const n=r.getScriptInfo(e);return{file:e,highlightSpans:t.map((({textSpan:e,kind:t,contextSpan:r})=>({...Nhe(e,r,n),kind:t})))}})):o:Zfe}provideInlayHints(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(t);return n.getLanguageService().provideInlayHints(t,e,this.getPreferences(t)).map((e=>{const{position:t,displayParts:n}=e;return{...e,position:r.positionToLineOffset(t),displayParts:null==n?void 0:n.map((({text:e,span:t,file:n})=>{if(t){_n.assertIsDefined(n,"Target file should be defined together with its span.");const r=this.projectService.getScriptInfo(n);return{text:e,span:{start:r.positionToLineOffset(t.start),end:r.positionToLineOffset(t.start+t.length),file:n}}}return{text:e}}))}}))}mapCode(e){var t;const n=this.getHostFormatOptions(),r=this.getHostPreferences(),{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(e),a=this.projectService.getScriptInfoForNormalizedPath(i),s=null==(t=e.mapping.focusLocations)?void 0:t.map((e=>e.map((e=>{const t=a.lineOffsetToPosition(e.start.line,e.start.offset);return{start:t,length:a.lineOffsetToPosition(e.end.line,e.end.offset)-t}})))),c=o.mapCode(i,e.mapping.contents,s,n,r);return this.mapTextChangesToCodeEdits(c)}getCopilotRelatedInfo(){return{relatedFiles:[]}}setCompilerOptionsForInferredProjects(e){this.projectService.setCompilerOptionsForInferredProjects(e.options,e.projectRootPath)}getProjectInfo(e){return this.getProjectInfoWorker(e.file,e.projectFileName,e.needFileNameList,e.needDefaultConfiguredProjectInfo,!1)}getProjectInfoWorker(e,t,n,r,i){const{project:o}=this.getFileAndProjectWorker(e,t);Bge(o);return{configFileName:o.getProjectName(),languageServiceDisabled:!o.languageServiceEnabled,fileNames:n?o.getFileNames(!1,i):void 0,configuredProjectInfo:r?this.getDefaultConfiguredProjectInfo(e):void 0}}getDefaultConfiguredProjectInfo(e){var t;const n=this.projectService.getScriptInfo(e);if(!n)return;const r=this.projectService.findDefaultConfiguredProjectWorker(n,3);if(!r)return;let i,o;return r.seenProjects.forEach(((e,t)=>{t!==r.defaultProject&&(3!==e?(i??(i=[])).push(nme(t.getConfigFilePath())):(o??(o=[])).push(nme(t.getConfigFilePath())))})),null==(t=r.seenConfigs)||t.forEach((e=>(i??(i=[])).push(e))),{notMatchedByConfig:i,notInProject:o,defaultProject:r.defaultProject&&nme(r.defaultProject.getConfigFilePath())}}getRenameInfo(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getPositionInFile(e,t),i=this.getPreferences(t);return n.getLanguageService().getRenameInfo(t,r,i)}getProjects(e,t,n){let r,i;if(e.projectFileName){const t=this.getProject(e.projectFileName);t&&(r=[t])}else{const o=t?this.projectService.getScriptInfoEnsuringProjectsUptoDate(e.file):this.projectService.getScriptInfo(e.file);if(!o)return n?Zfe:(this.projectService.logErrorForScriptInfoNotFound(e.file),Xfe.ThrowNoProject());t||this.projectService.ensureDefaultProjectForFile(o),r=o.containingProjects,i=this.projectService.getSymlinkedProjects(o)}return r=C(r,(e=>e.languageServiceEnabled&&!e.isOrphan())),n||r&&r.length||i?i?{projects:r,symLinkedProjects:i}:r:(this.projectService.logErrorForScriptInfoNotFound(e.file??e.projectFileName),Xfe.ThrowNoProject())}getDefaultProject(e){if(e.projectFileName){const t=this.getProject(e.projectFileName);if(t)return t;if(!e.file)return Xfe.ThrowNoProject()}return this.projectService.getScriptInfo(e.file).getDefaultProject()}getRenameLocations(e,t){const n=nme(e.file),r=this.getPositionInFile(e,n),i=this.getProjects(e),o=this.getDefaultProject(e),a=this.getPreferences(n),s=this.mapRenameInfo(o.getLanguageService().getRenameInfo(n,r,a),_n.checkDefined(this.projectService.getScriptInfo(n)));if(!s.canRename)return t?{info:s,locs:[]}:[];const c=function(e,t,n,r,i,o,a){const s=fhe(e,t,n,dhe(t,n,!0),ghe,((e,t)=>e.getLanguageService().findRenameLocations(t.fileName,t.pos,r,i,o)),((e,t)=>t(vhe(e))));if(Xe(s))return s;const c=[],l=uhe(a);return s.forEach(((e,t)=>{for(const n of e)l.has(n)||bhe(vhe(n),t)||(c.push(n),l.add(n))})),c}(i,o,{fileName:e.file,pos:r},!!e.findInStrings,!!e.findInComments,a,this.host.useCaseSensitiveFileNames);return t?{info:s,locs:this.toSpanGroups(c)}:c}mapRenameInfo(e,t){if(e.canRename){const{canRename:n,fileToRename:r,displayName:i,fullDisplayName:o,kind:a,kindModifiers:s,triggerSpan:c}=e;return{canRename:n,fileToRename:r,displayName:i,fullDisplayName:o,kind:a,kindModifiers:s,triggerSpan:Dhe(c,t)}}return e}toSpanGroups(e){const t=new Map;for(const{fileName:n,textSpan:r,contextSpan:i,originalContextSpan:o,originalTextSpan:a,originalFileName:s,...c}of e){let e=t.get(n);e||t.set(n,e={file:n,locs:[]});const o=_n.checkDefined(this.projectService.getScriptInfo(n));e.locs.push({...Nhe(r,i,o),...c})}return Ie(t.values())}getReferences(e,t){const n=nme(e.file),r=this.getProjects(e),i=this.getPositionInFile(e,n),o=function(e,t,n,r,i){var o,a;const s=fhe(e,t,n,dhe(t,n,!1),ghe,((e,t)=>(i.info(`Finding references to ${t.fileName} position ${t.pos} in project ${e.getProjectName()}`),e.getLanguageService().findReferences(t.fileName,t.pos))),((e,t)=>{t(vhe(e.definition));for(const n of e.references)t(vhe(n))}));if(Xe(s))return s;const c=s.get(t);if(void 0===(null==(a=null==(o=null==c?void 0:c[0])?void 0:o.references[0])?void 0:a.isDefinition))s.forEach((e=>{for(const t of e)for(const e of t.references)delete e.isDefinition}));else{const e=uhe(r);for(const t of c)for(const n of t.references)if(n.isDefinition){e.add(n);break}const t=new Set;for(;;){let n=!1;if(s.forEach(((r,i)=>{t.has(i)||i.getLanguageService().updateIsDefinitionOfReferencedSymbols(r,e)&&(t.add(i),n=!0)})),!n)break}s.forEach(((e,n)=>{if(!t.has(n))for(const t of e)for(const e of t.references)e.isDefinition=!1}))}const l=[],_=uhe(r);return s.forEach(((e,t)=>{for(const n of e){const e=bhe(vhe(n.definition),t),i=void 0===e?n.definition:{...n.definition,textSpan:$s(e.pos,n.definition.textSpan.length),fileName:e.fileName,contextSpan:khe(n.definition,t)};let o=y(l,(e=>DY(e.definition,i,r)));o||(o={definition:i,references:[]},l.push(o));for(const e of n.references)_.has(e)||bhe(vhe(e),t)||(_.add(e),o.references.push(e))}})),l.filter((e=>0!==e.references.length))}(r,this.getDefaultProject(e),{fileName:e.file,pos:i},this.host.useCaseSensitiveFileNames,this.logger);if(!t)return o;const a=this.getPreferences(n),s=this.getDefaultProject(e),c=s.getScriptInfoForNormalizedPath(n),l=s.getLanguageService().getQuickInfoAtPosition(n,i),_=l?Q8(l.displayParts):"",u=l&&l.textSpan,d=u?c.positionToLineOffset(u.start).offset:0,p=u?c.getSnapshot().getText(u.start,Es(u)):"";return{refs:A(o,(e=>e.references.map((e=>Phe(this.projectService,e,a))))),symbolName:p,symbolStartOffset:d,symbolDisplayString:_}}getFileReferences(e,t){const n=this.getProjects(e),r=nme(e.file),i=this.getPreferences(r),o={fileName:r,pos:0},a=fhe(n,this.getDefaultProject(e),o,o,mhe,(e=>(this.logger.info(`Finding references to file ${r} in project ${e.getProjectName()}`),e.getLanguageService().getFileReferences(r))));let s;if(Xe(a))s=a;else{s=[];const e=uhe(this.host.useCaseSensitiveFileNames);a.forEach((t=>{for(const n of t)e.has(n)||(s.push(n),e.add(n))}))}if(!t)return s;return{refs:s.map((e=>Phe(this.projectService,e,i))),symbolName:`"${e.file}"`}}openClientFile(e,t,n,r){this.projectService.openClientFileWithNormalizedPath(e,t,n,!1,r)}getPosition(e,t){return void 0!==e.position?e.position:t.lineOffsetToPosition(e.line,e.offset)}getPositionInFile(e,t){const n=this.projectService.getScriptInfoForNormalizedPath(t);return this.getPosition(e,n)}getFileAndProject(e){return this.getFileAndProjectWorker(e.file,e.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(e){const{file:t,project:n}=this.getFileAndProject(e);return{file:t,languageService:n.getLanguageService(!1)}}getFileAndProjectWorker(e,t){const n=nme(e);return{file:n,project:this.getProject(t)||this.projectService.ensureDefaultProjectForFile(n)}}getOutliningSpans(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getOutliningSpans(n);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return i.map((t=>({textSpan:Dhe(t.textSpan,e),hintSpan:Dhe(t.hintSpan,e),bannerText:t.bannerText,autoCollapse:t.autoCollapse,kind:t.kind})))}return i}getTodoComments(e){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().getTodoComments(t,e.descriptors)}getDocCommentTemplate(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getDocCommentTemplateAtPosition(t,r,this.getPreferences(t),this.getFormatOptions(t))}getSpanOfEnclosingComment(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.onlyMultiLine,i=this.getPositionInFile(e,t);return n.getSpanOfEnclosingComment(t,i,r)}getIndentation(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=e.options?fge(e.options):this.getFormatOptions(t);return{position:r,indentation:n.getIndentationAtPosition(t,r,i)}}getBreakpointStatement(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getBreakpointStatementAtPosition(t,r)}getNameOrDottedNameSpan(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getNameOrDottedNameSpan(t,r,r)}isValidBraceCompletion(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.isValidBraceCompletionAtPosition(t,r,e.openingBrace.charCodeAt(0))}getQuickInfoWorker(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPreferences(n),a=r.getLanguageService().getQuickInfoAtPosition(n,this.getPosition(e,i),o.maximumHoverLength,e.verbosityLevel);if(!a)return;const s=!!o.displayPartsForJSDoc;if(t){const e=Q8(a.displayParts);return{kind:a.kind,kindModifiers:a.kindModifiers,start:i.positionToLineOffset(a.textSpan.start),end:i.positionToLineOffset(Es(a.textSpan)),displayString:e,documentation:s?this.mapDisplayParts(a.documentation,r):Q8(a.documentation),tags:this.mapJSDocTagInfo(a.tags,r,s),canIncreaseVerbosityLevel:a.canIncreaseVerbosityLevel}}return s?a:{...a,tags:this.mapJSDocTagInfo(a.tags,r,!1)}}getFormattingEditsForRange(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(t),i=r.lineOffsetToPosition(e.line,e.offset),o=r.lineOffsetToPosition(e.endLine,e.endOffset),a=n.getFormattingEditsForRange(t,i,o,this.getFormatOptions(t));if(a)return a.map((e=>this.convertTextChangeToCodeEdit(e,r)))}getFormattingEditsForRangeFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?fge(e.options):this.getFormatOptions(t);return n.getFormattingEditsForRange(t,e.position,e.endPosition,r)}getFormattingEditsForDocumentFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?fge(e.options):this.getFormatOptions(t);return n.getFormattingEditsForDocument(t,r)}getFormattingEditsAfterKeystrokeFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?fge(e.options):this.getFormatOptions(t);return n.getFormattingEditsAfterKeystroke(t,e.position,e.key,r)}getFormattingEditsAfterKeystroke(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(t),i=r.lineOffsetToPosition(e.line,e.offset),o=this.getFormatOptions(t),a=n.getFormattingEditsAfterKeystroke(t,i,e.key,o);if("\n"===e.key&&(!a||0===a.length||function(e,t){return e.every((e=>Es(e.span)({start:r.positionToLineOffset(e.span.start),end:r.positionToLineOffset(Es(e.span)),newText:e.newText?e.newText:""})))}getCompletions(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getLanguageService().getCompletionsAtPosition(n,o,{...bge(this.getPreferences(n)),triggerCharacter:e.triggerCharacter,triggerKind:e.triggerKind,includeExternalModuleExports:e.includeExternalModuleExports,includeInsertTextCompletions:e.includeInsertTextCompletions},r.projectService.getFormatCodeOptions(n));if(void 0===a)return;if("completions-full"===t)return a;const s=e.prefix||"",c=R(a.entries,(e=>{if(a.isMemberCompletion||Kt(e.name.toLowerCase(),s.toLowerCase())){const t=e.replacementSpan?Dhe(e.replacementSpan,i):void 0;return{...e,replacementSpan:t,hasAction:e.hasAction||void 0,symbol:void 0}}}));if("completions"===t)return a.metadata&&(c.metadata=a.metadata),c;return{...a,optionalReplacementSpan:a.optionalReplacementSpan&&Dhe(a.optionalReplacementSpan,i),entries:c}}getCompletionEntryDetails(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.projectService.getFormatCodeOptions(n),s=!!this.getPreferences(n).displayPartsForJSDoc,c=R(e.entryNames,(e=>{const{name:t,source:i,data:s}="string"==typeof e?{name:e,source:void 0,data:void 0}:e;return r.getLanguageService().getCompletionEntryDetails(n,o,t,a,i,this.getPreferences(n),s?tt(s,Ahe):void 0)}));return t?s?c:c.map((e=>({...e,tags:this.mapJSDocTagInfo(e.tags,r,!1)}))):c.map((e=>({...e,codeActions:N(e.codeActions,(e=>this.mapCodeAction(e))),documentation:this.mapDisplayParts(e.documentation,r),tags:this.mapJSDocTagInfo(e.tags,r,s)})))}getCompileOnSaveAffectedFileList(e){const t=this.getProjects(e,!0,!0),n=this.projectService.getScriptInfo(e.file);return n?function(e,t,n,r){const i=I(Xe(n)?n:n.projects,(t=>r(t,e)));return!Xe(n)&&n.symLinkedProjects&&n.symLinkedProjects.forEach(((e,n)=>{const o=t(n);i.push(...A(e,(e=>r(e,o))))})),X(i,ft)}(n,(e=>this.projectService.getScriptInfoForPath(e)),t,((e,t)=>{if(!e.compileOnSaveEnabled||!e.languageServiceEnabled||e.isOrphan())return;const n=e.getCompilationSettings();return n.noEmit||yO(t.fileName)&&!function(e){return Pk(e)||!!e.emitDecoratorMetadata}(n)?void 0:{projectFileName:e.getProjectName(),fileNames:e.getCompileOnSaveAffectedFileList(t),projectUsesOutFile:!!n.outFile}})):Zfe}emitFile(e){const{file:t,project:n}=this.getFileAndProject(e);if(n||Xfe.ThrowNoProject(),!n.languageServiceEnabled)return!!e.richResponse&&{emitSkipped:!0,diagnostics:[]};const r=n.getScriptInfo(t),{emitSkipped:i,diagnostics:o}=n.emitFile(r,((e,t,n)=>this.host.writeFile(e,t,n)));return e.richResponse?{emitSkipped:i,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(o):o.map((e=>ahe(e,!0)))}:!i}getSignatureHelpItems(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getLanguageService().getSignatureHelpItems(n,o,e),s=!!this.getPreferences(n).displayPartsForJSDoc;if(a&&t){const e=a.applicableSpan;return{...a,applicableSpan:{start:i.positionToLineOffset(e.start),end:i.positionToLineOffset(e.start+e.length)},items:this.mapSignatureHelpItems(a.items,r,s)}}return s||!a?a:{...a,items:a.items.map((e=>({...e,tags:this.mapJSDocTagInfo(e.tags,r,!1)})))}}toPendingErrorCheck(e){const t=nme(e),n=this.projectService.tryGetDefaultProjectForFile(t);return n&&{fileName:t,project:n}}getDiagnostics(e,t,n){this.suppressDiagnosticEvents||n.length>0&&this.updateErrorCheck(e,n,t)}change(e){const t=this.projectService.getScriptInfo(e.file);_n.assert(!!t),t.textStorage.switchToScriptVersionCache();const n=t.lineOffsetToPosition(e.line,e.offset),r=t.lineOffsetToPosition(e.endLine,e.endOffset);n>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(t,z({span:{start:n,length:r-n},newText:e.insertString})))}reload(e){const t=nme(e.file),n=void 0===e.tmpfile?void 0:nme(e.tmpfile),r=this.projectService.getScriptInfoForNormalizedPath(t);r&&(this.changeSeq++,r.reloadFromFile(n))}saveToTmp(e,t){const n=this.projectService.getScriptInfo(e);n&&n.saveTo(t)}closeClientFile(e){if(!e)return;const t=zo(e);this.projectService.closeClientFile(t)}mapLocationNavigationBarItems(e,t){return N(e,(e=>({text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map((e=>Dhe(e,t))),childItems:this.mapLocationNavigationBarItems(e.childItems,t),indent:e.indent})))}getNavigationBarItems(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getNavigationBarItems(n);return i?t?this.mapLocationNavigationBarItems(i,this.projectService.getScriptInfoForNormalizedPath(n)):i:void 0}toLocationNavigationTree(e,t){return{text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map((e=>Dhe(e,t))),nameSpan:e.nameSpan&&Dhe(e.nameSpan,t),childItems:N(e.childItems,(e=>this.toLocationNavigationTree(e,t)))}}getNavigationTree(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getNavigationTree(n);return i?t?this.toLocationNavigationTree(i,this.projectService.getScriptInfoForNormalizedPath(n)):i:void 0}getNavigateToItems(e,t){const n=this.getFullNavigateToItems(e);return A(n,t?({project:e,navigateToItems:t})=>t.map((t=>{const n=e.getScriptInfo(t.fileName),r={name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,isCaseSensitive:t.isCaseSensitive,matchKind:t.matchKind,file:t.fileName,start:n.positionToLineOffset(t.textSpan.start),end:n.positionToLineOffset(Es(t.textSpan))};return t.kindModifiers&&""!==t.kindModifiers&&(r.kindModifiers=t.kindModifiers),t.containerName&&t.containerName.length>0&&(r.containerName=t.containerName),t.containerKind&&t.containerKind.length>0&&(r.containerKind=t.containerKind),r})):({navigateToItems:e})=>e)}getFullNavigateToItems(e){const{currentFileOnly:t,searchValue:n,maxResultCount:r,projectFileName:i}=e;if(t){_n.assertIsDefined(e.file);const{file:t,project:i}=this.getFileAndProject(e);return[{project:i,navigateToItems:i.getLanguageService().getNavigateToItems(n,r,t)}]}const o=this.getHostPreferences(),a=[],s=new Map;if(e.file||i){phe(this.getProjects(e),void 0,(e=>c(e)))}else this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject((e=>c(e)));return a;function c(e){const t=C(e.getLanguageService().getNavigateToItems(n,r,void 0,e.isNonTsProject(),o.excludeLibrarySymbolsInNavTo),(t=>function(e){const t=e.name;if(!s.has(t))return s.set(t,[e]),!0;const n=s.get(t);for(const t of n)if(l(t,e))return!1;return n.push(e),!0}(t)&&!bhe(vhe(t),e)));t.length&&a.push({project:e,navigateToItems:t})}function l(e,t){return e===t||!(!e||!t)&&(e.containerKind===t.containerKind&&e.containerName===t.containerName&&e.fileName===t.fileName&&e.isCaseSensitive===t.isCaseSensitive&&e.kind===t.kind&&e.kindModifiers===t.kindModifiers&&e.matchKind===t.matchKind&&e.name===t.name&&e.textSpan.start===t.textSpan.start&&e.textSpan.length===t.textSpan.length)}}getSupportedCodeFixes(e){if(!e)return Z8();if(e.file){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().getSupportedCodeFixes(t)}const t=this.getProject(e.projectFileName);return t||Xfe.ThrowNoProject(),t.getLanguageService().getSupportedCodeFixes()}isLocation(e){return void 0!==e.line}extractPositionOrRange(e,t){let n,r;var i;return this.isLocation(e)?n=void 0!==(i=e).position?i.position:t.lineOffsetToPosition(i.line,i.offset):r=this.getRange(e,t),_n.checkDefined(void 0===n?r:n)}getRange(e,t){const{startPosition:n,endPosition:r}=this.getStartAndEndPosition(e,t);return{pos:n,end:r}}getApplicableRefactors(e){const{file:t,project:n}=this.getFileAndProject(e),r=n.getScriptInfoForNormalizedPath(t);return n.getLanguageService().getApplicableRefactors(t,this.extractPositionOrRange(e,r),this.getPreferences(t),e.triggerReason,e.kind,e.includeInteractiveActions).map((e=>({...e,actions:e.actions.map((e=>({...e,range:e.range?{start:ohe({line:e.range.start.line,character:e.range.start.offset}),end:ohe({line:e.range.end.line,character:e.range.end.offset})}:void 0})))})))}getEditsForRefactor(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=r.getScriptInfoForNormalizedPath(n),o=r.getLanguageService().getEditsForRefactor(n,this.getFormatOptions(n),this.extractPositionOrRange(e,i),e.refactor,e.action,this.getPreferences(n),e.interactiveRefactorArguments);if(void 0===o)return{edits:[]};if(t){const{renameFilename:e,renameLocation:t,edits:n}=o;let i;if(void 0!==e&&void 0!==t){i=Ehe(eY(r.getScriptInfoForNormalizedPath(nme(e)).getSnapshot()),e,t,n)}return{renameLocation:i,renameFilename:e,edits:this.mapTextChangesToCodeEdits(n),notApplicableReason:o.notApplicableReason}}return o}getMoveToRefactoringFileSuggestions(e){const{file:t,project:n}=this.getFileAndProject(e),r=n.getScriptInfoForNormalizedPath(t);return n.getLanguageService().getMoveToRefactoringFileSuggestions(t,this.extractPositionOrRange(e,r),this.getPreferences(t))}preparePasteEdits(e){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().preparePasteEditsForFile(t,e.copiedTextSpan.map((e=>this.getRange({file:t,startLine:e.start.line,startOffset:e.start.offset,endLine:e.end.line,endOffset:e.end.offset},this.projectService.getScriptInfoForNormalizedPath(t)))))}getPasteEdits(e){const{file:t,project:n}=this.getFileAndProject(e);if(wme(t))return;const r=e.copiedFrom?{file:e.copiedFrom.file,range:e.copiedFrom.spans.map((t=>this.getRange({file:e.copiedFrom.file,startLine:t.start.line,startOffset:t.start.offset,endLine:t.end.line,endOffset:t.end.offset},n.getScriptInfoForNormalizedPath(nme(e.copiedFrom.file)))))}:void 0,i=n.getLanguageService().getPasteEdits({targetFile:t,pastedText:e.pastedText,pasteLocations:e.pasteLocations.map((e=>this.getRange({file:t,startLine:e.start.line,startOffset:e.start.offset,endLine:e.end.line,endOffset:e.end.offset},n.getScriptInfoForNormalizedPath(t)))),copiedFrom:r,preferences:this.getPreferences(t)},this.getFormatOptions(t));return i&&this.mapPasteEditsAction(i)}organizeImports(e,t){_n.assert("file"===e.scope.type);const{file:n,project:r}=this.getFileAndProject(e.scope.args),i=r.getLanguageService().organizeImports({fileName:n,mode:e.mode??(e.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(n),this.getPreferences(n));return t?this.mapTextChangesToCodeEdits(i):i}getEditsForFileRename(e,t){const n=nme(e.oldFilePath),r=nme(e.newFilePath),i=this.getHostFormatOptions(),o=this.getHostPreferences(),a=new Set,s=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject((e=>{const t=e.getLanguageService().getEditsForFileRename(n,r,i,o),c=[];for(const e of t)a.has(e.fileName)||(s.push(e),c.push(e.fileName));for(const e of c)a.add(e)})),t?s.map((e=>this.mapTextChangeToCodeEdit(e))):s}getCodeFixes(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=r.getScriptInfoForNormalizedPath(n),{startPosition:o,endPosition:a}=this.getStartAndEndPosition(e,i);let s;try{s=r.getLanguageService().getCodeFixesAtPosition(n,o,a,e.errorCodes,this.getFormatOptions(n),this.getPreferences(n))}catch(t){const i=t instanceof Error?t:new Error(t),s=r.getLanguageService(),c=[...s.getSyntacticDiagnostics(n),...s.getSemanticDiagnostics(n),...s.getSuggestionDiagnostics(n)].filter((e=>zs(o,a-o,e.start,e.length))).map((e=>e.code)),l=e.errorCodes.find((e=>!c.includes(e)));throw void 0!==l&&(i.message+=`\nAdditional information: BADCLIENT: Bad error code, ${l} not found in range ${o}..${a} (found: ${c.join(", ")})`),i}return t?s.map((e=>this.mapCodeFixAction(e))):s}getCombinedCodeFix({scope:e,fixId:t},n){_n.assert("file"===e.type);const{file:r,project:i}=this.getFileAndProject(e.args),o=i.getLanguageService().getCombinedCodeFix({type:"file",fileName:r},t,this.getFormatOptions(r),this.getPreferences(r));return n?{changes:this.mapTextChangesToCodeEdits(o.changes),commands:o.commands}:o}applyCodeActionCommand(e){const t=e.command;for(const e of Qe(t)){const{file:t,project:n}=this.getFileAndProject(e);n.getLanguageService().applyCodeActionCommand(e,this.getFormatOptions(t)).then((e=>{}),(e=>{}))}return{}}getStartAndEndPosition(e,t){let n,r;return void 0!==e.startPosition?n=e.startPosition:(n=t.lineOffsetToPosition(e.startLine,e.startOffset),e.startPosition=n),void 0!==e.endPosition?r=e.endPosition:(r=t.lineOffsetToPosition(e.endLine,e.endOffset),e.endPosition=r),{startPosition:n,endPosition:r}}mapCodeAction({description:e,changes:t,commands:n}){return{description:e,changes:this.mapTextChangesToCodeEdits(t),commands:n}}mapCodeFixAction({fixName:e,description:t,changes:n,commands:r,fixId:i,fixAllDescription:o}){return{fixName:e,description:t,changes:this.mapTextChangesToCodeEdits(n),commands:r,fixId:i,fixAllDescription:o}}mapPasteEditsAction({edits:e,fixId:t}){return{edits:this.mapTextChangesToCodeEdits(e),fixId:t}}mapTextChangesToCodeEdits(e){return e.map((e=>this.mapTextChangeToCodeEdit(e)))}mapTextChangeToCodeEdit(e){const t=this.projectService.getScriptInfoOrConfig(e.fileName);return!!e.isNewFile==!!t&&(t||this.projectService.logErrorForScriptInfoNotFound(e.fileName),_n.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!e.isNewFile,hasScriptInfo:!!t}))),t?{fileName:e.fileName,textChanges:e.textChanges.map((e=>function(e,t){return{start:Fhe(t,e.span.start),end:Fhe(t,Es(e.span)),newText:e.newText}}(e,t)))}:function(e){_n.assert(1===e.textChanges.length);const t=me(e.textChanges);return _n.assert(0===t.span.start&&0===t.span.length),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}(e)}convertTextChangeToCodeEdit(e,t){return{start:t.positionToLineOffset(e.span.start),end:t.positionToLineOffset(e.span.start+e.span.length),newText:e.newText?e.newText:""}}getBraceMatching(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getBraceMatchingAtPosition(n,o);return a?t?a.map((e=>Dhe(e,i))):a:void 0}getDiagnosticsForProject(e,t,n){if(this.suppressDiagnosticEvents)return;const{fileNames:r,languageServiceDisabled:i}=this.getProjectInfoWorker(n,void 0,!0,void 0,!0);if(i)return;const o=r.filter((e=>!e.includes("lib.d.ts")));if(0===o.length)return;const a=[],s=[],c=[],l=[],_=nme(n),u=this.projectService.ensureDefaultProjectForFile(_);for(const e of o)if(this.getCanonicalFileName(e)===this.getCanonicalFileName(n))a.push(e);else{this.projectService.getScriptInfo(e).isScriptOpen()?s.push(e):yO(e)?l.push(e):c.push(e)}const d=[...a,...s,...c,...l].map((e=>({fileName:e,project:u})));this.updateErrorCheck(e,d,t,!1)}configurePlugin(e){this.projectService.configurePlugin(e)}getSmartSelectionRange(e,t){const{locations:n}=e,{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=_n.checkDefined(this.projectService.getScriptInfo(r));return N(n,(e=>{const n=this.getPosition(e,o),a=i.getSmartSelectionRange(r,n);return t?this.mapSelectionRange(a,o):a}))}toggleLineComment(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfo(n),o=this.getRange(e,i),a=r.toggleLineComment(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}toggleMultilineComment(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.toggleMultilineComment(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}commentSelection(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.commentSelection(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}uncommentSelection(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.uncommentSelection(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}mapSelectionRange(e,t){const n={textSpan:Dhe(e.textSpan,t)};return e.parent&&(n.parent=this.mapSelectionRange(e.parent,t)),n}getScriptInfoFromProjectService(e){const t=nme(e),n=this.projectService.getScriptInfoForNormalizedPath(t);return n||(this.projectService.logErrorForScriptInfoNotFound(t),Xfe.ThrowNoProject())}toProtocolCallHierarchyItem(e){const t=this.getScriptInfoFromProjectService(e.file);return{name:e.name,kind:e.kind,kindModifiers:e.kindModifiers,file:e.file,containerName:e.containerName,span:Dhe(e.span,t),selectionSpan:Dhe(e.selectionSpan,t)}}toProtocolCallHierarchyIncomingCall(e){const t=this.getScriptInfoFromProjectService(e.from.file);return{from:this.toProtocolCallHierarchyItem(e.from),fromSpans:e.fromSpans.map((e=>Dhe(e,t)))}}toProtocolCallHierarchyOutgoingCall(e,t){return{to:this.toProtocolCallHierarchyItem(e.to),fromSpans:e.fromSpans.map((e=>Dhe(e,t)))}}prepareCallHierarchy(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(t);if(r){const i=this.getPosition(e,r),o=n.getLanguageService().prepareCallHierarchy(t,i);return o&&YZ(o,(e=>this.toProtocolCallHierarchyItem(e)))}}provideCallHierarchyIncomingCalls(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(t);return n.getLanguageService().provideCallHierarchyIncomingCalls(t,this.getPosition(e,r)).map((e=>this.toProtocolCallHierarchyIncomingCall(e)))}provideCallHierarchyOutgoingCalls(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(t);return n.getLanguageService().provideCallHierarchyOutgoingCalls(t,this.getPosition(e,r)).map((e=>this.toProtocolCallHierarchyOutgoingCall(e,r)))}getCanonicalFileName(e){return zo(this.host.useCaseSensitiveFileNames?e:lt(e))}exit(){}notRequired(e){return e&&this.doOutput(void 0,e.command,e.seq,!0,this.performanceData),{responseRequired:!1,performanceData:this.performanceData}}requiredResponse(e){return{response:e,responseRequired:!0,performanceData:this.performanceData}}addProtocolHandler(e,t){if(this.handlers.has(e))throw new Error(`Protocol handler already exists for command "${e}"`);this.handlers.set(e,t)}setCurrentRequest(e){_n.assert(void 0===this.currentRequestId),this.currentRequestId=e,this.cancellationToken.setRequest(e)}resetCurrentRequest(e){_n.assert(this.currentRequestId===e),this.currentRequestId=void 0,this.cancellationToken.resetRequest(e)}executeWithRequestId(e,t,n){const r=this.performanceData;try{return this.performanceData=n,this.setCurrentRequest(e),t()}finally{this.resetCurrentRequest(e),this.performanceData=r}}executeCommand(e){const t=this.handlers.get(e.command);if(t){const n=this.executeWithRequestId(e.seq,(()=>t(e)),void 0);return this.projectService.enableRequestedPlugins(),n}return this.logger.msg(`Unrecognized JSON command:${yG(e)}`,"Err"),this.doOutput(void 0,"unknown",e.seq,!1,void 0,`Unrecognized JSON command: ${e.command}`),{responseRequired:!1}}onMessage(e){var t,n,r,i,o,a,s;let c;this.gcTimer.scheduleCollect();const l=this.performanceData;let _,u;this.logger.hasLevel(2)&&(c=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${hG(this.toStringMessage(e))}`));try{_=this.parseMessage(e),u=_.arguments&&_.arguments.file?_.arguments:void 0,null==(t=$n)||t.instant($n.Phase.Session,"request",{seq:_.seq,command:_.command}),null==(n=$n)||n.push($n.Phase.Session,"executeCommand",{seq:_.seq,command:_.command},!0);const{response:o,responseRequired:a,performanceData:s}=this.executeCommand(_);if(null==(r=$n)||r.pop(),this.logger.hasLevel(2)){const e=(d=this.hrtime(c),(1e9*d[0]+d[1])/1e6).toFixed(4);a?this.logger.perftrc(`${_.seq}::${_.command}: elapsed time (in milliseconds) ${e}`):this.logger.perftrc(`${_.seq}::${_.command}: async elapsed time (in milliseconds) ${e}`)}null==(i=$n)||i.instant($n.Phase.Session,"response",{seq:_.seq,command:_.command,success:!!o}),o?this.doOutput(o,_.command,_.seq,!0,s):a&&this.doOutput(void 0,_.command,_.seq,!1,s,"No content available.")}catch(t){if(null==(o=$n)||o.popAll(),t instanceof Tr)return null==(a=$n)||a.instant($n.Phase.Session,"commandCanceled",{seq:null==_?void 0:_.seq,command:null==_?void 0:_.command}),void this.doOutput({canceled:!0},_.command,_.seq,!0,this.performanceData);this.logErrorWorker(t,this.toStringMessage(e),u),null==(s=$n)||s.instant($n.Phase.Session,"commandError",{seq:null==_?void 0:_.seq,command:null==_?void 0:_.command,message:t.message}),this.doOutput(void 0,_?_.command:"unknown",_?_.seq:0,!1,this.performanceData,"Error processing request. "+t.message+"\n"+t.stack)}finally{this.performanceData=l}var d}parseMessage(e){return JSON.parse(e)}toStringMessage(e){return e}getFormatOptions(e){return this.projectService.getFormatCodeOptions(e)}getPreferences(e){return this.projectService.getPreferences(e)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function whe(e){const t=e.diagnosticsDuration&&Ie(e.diagnosticsDuration,(([e,t])=>({...t,file:e})));return{...e,diagnosticsDuration:t}}function Dhe(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Es(e))}}function Nhe(e,t,n){const r=Dhe(e,n),i=t&&Dhe(t,n);return i?{...r,contextStart:i.start,contextEnd:i.end}:r}function Fhe(e,t){return Qge(e)?{line:(n=e.getLineAndCharacterOfPosition(t)).line+1,offset:n.character+1}:e.positionToLineOffset(t);var n}function Ehe(e,t,n,r){const i=function(e,t,n){for(const{fileName:r,textChanges:i}of n)if(r===t)for(let t=i.length-1;t>=0;t--){const{newText:n,span:{start:r,length:o}}=i[t];e=e.slice(0,r)+n+e.slice(r+o)}return e}(e,t,r),{line:o,character:a}=Ba(La(i),n);return{line:o+1,offset:a+1}}function Phe(e,{fileName:t,textSpan:n,contextSpan:r,isWriteAccess:i,isDefinition:o},{disableLineTextInReferences:a}){const s=_n.checkDefined(e.getScriptInfo(t)),c=Nhe(n,r,s),l=a?void 0:function(e,t){const n=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(n.start,Es(n)).replace(/\r|\n/g,"")}(s,c);return{file:t,...c,lineText:l,isWriteAccess:i,isDefinition:o}}function Ahe(e){return void 0===e||e&&"object"==typeof e&&"string"==typeof e.exportName&&(void 0===e.fileName||"string"==typeof e.fileName)&&(void 0===e.ambientModuleName||"string"==typeof e.ambientModuleName&&(void 0===e.isPackageJsonImport||"boolean"==typeof e.isPackageJsonImport))}var Ihe=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(Ihe||{}),Ohe=class{constructor(){this.goSubtree=!0,this.lineIndex=new Bhe,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new Jhe,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e=e?this.initialText+e+this.trailingText:this.initialText+this.trailingText;const n=Bhe.linesFromText(e).lines;let r,i;n.length>1&&""===n[n.length-1]&&n.pop();for(let e=this.endBranch.length-1;e>=0;e--)this.endBranch[e].updateCounts(),0===this.endBranch[e].charCount()&&(i=this.endBranch[e],r=e>0?this.endBranch[e-1]:this.branchNode);i&&r.remove(i);const o=this.startPath[this.startPath.length-1];if(n.length>0)if(o.text=n[0],n.length>1){let e=new Array(n.length-1),t=o;for(let t=1;t=0;){const n=this.startPath[r];e=n.insertAt(t,e),r--,t=n}let i=e.length;for(;i>0;){const t=new Jhe;t.add(this.lineIndex.root),e=t.insertAt(this.lineIndex.root,e),i=e.length,this.lineIndex.root=t}this.lineIndex.root.updateCounts()}else for(let e=this.startPath.length-2;e>=0;e--)this.startPath[e].updateCounts();else{this.startPath[this.startPath.length-2].remove(o);for(let e=this.startPath.length-2;e>=0;e--)this.startPath[e].updateCounts()}return this.lineIndex}post(e,t,n){n===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,n,r,i){const o=this.stack[this.stack.length-1];let a;function s(e){return e.isLeaf()?new zhe(""):new Jhe}switch(2===this.state&&1===i&&(this.state=1,this.branchNode=o,this.lineCollectionAtBranch=n),i){case 0:this.goSubtree=!1,4!==this.state&&o.add(n);break;case 1:4===this.state?this.goSubtree=!1:(a=s(n),o.add(a),this.startPath.push(a));break;case 2:4!==this.state?(a=s(n),o.add(a),this.startPath.push(a)):n.isLeaf()||(a=s(n),o.add(a),this.endBranch.push(a));break;case 3:this.goSubtree=!1;break;case 4:4!==this.state?this.goSubtree=!1:n.isLeaf()||(a=s(n),o.add(a),this.endBranch.push(a));break;case 5:this.goSubtree=!1,1!==this.state&&o.add(n)}this.goSubtree&&this.stack.push(a)}leaf(e,t,n){1===this.state?this.initialText=n.text.substring(0,e):2===this.state?(this.initialText=n.text.substring(0,e),this.trailingText=n.text.substring(e+t)):this.trailingText=n.text.substring(e+t)}},Lhe=class{constructor(e,t,n){this.pos=e,this.deleteLen=t,this.insertedText=n}getTextChangeRange(){return Xs($s(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},jhe=class e{constructor(){this.changes=[],this.versions=new Array(e.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%e.maxVersions}currentVersionToIndex(){return this.currentVersion%e.maxVersions}edit(t,n,r){this.changes.push(new Lhe(t,n,r)),(this.changes.length>e.changeNumberThreshold||n>e.changeLengthThreshold||r&&r.length>e.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let n=t.index;for(const e of this.changes)n=n.edit(e.pos,e.deleteLen,e.insertedText);t=new Mhe(this.currentVersion+1,this,n,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=e.maxVersions&&(this.minVersion=this.currentVersion-e.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(e){return this._getSnapshot().index.lineNumberToInfo(e)}lineOffsetToPosition(e,t){return this._getSnapshot().index.absolutePositionOfStartOfLine(e)+(t-1)}positionToLineOffset(e){return this._getSnapshot().index.positionToLineOffset(e)}lineToTextSpan(e){const t=this._getSnapshot().index,{lineText:n,absolutePosition:r}=t.lineNumberToInfo(e+1);return $s(r,void 0!==n?n.length:t.absolutePositionOfStartOfLine(e+2)-r)}getTextChangesBetweenVersions(e,t){if(!(e=this.minVersion){const n=[];for(let r=e+1;r<=t;r++){const e=this.versions[this.versionToIndex(r)];for(const t of e.changesSincePreviousVersion)n.push(t.getTextChangeRange())}return Ys(n)}}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){const n=new e,r=new Mhe(0,n,new Bhe);n.versions[n.currentVersion]=r;const i=Bhe.linesFromText(t);return r.index.load(i.lines),n}};jhe.changeNumberThreshold=8,jhe.changeLengthThreshold=256,jhe.maxVersions=8;var Rhe=jhe,Mhe=class e{constructor(e,t,n,r=Zfe){this.version=e,this.cache=t,this.index=n,this.changesSincePreviousVersion=r}getText(e,t){return this.index.getText(e,t-e)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof e&&this.cache===t.cache)return this.version<=t.version?Qs:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},Bhe=class e{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(e){return this.lineNumberToInfo(e).absolutePosition}positionToLineOffset(e){const{oneBasedLine:t,zeroBasedColumn:n}=this.root.charOffsetToLineInfo(1,e);return{line:t,offset:n+1}}positionToColumnAndLineText(e){return this.root.charOffsetToLineInfo(1,e)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(e){if(e<=this.getLineCount()){const{position:t,leaf:n}=this.root.lineNumberToInfo(e,0);return{absolutePosition:t,lineText:n&&n.text}}return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){const n=[];for(let e=0;e0&&e{n=n.concat(r.text.substring(e,e+t))}}),n}getLength(){return this.root.charCount()}every(e,t,n){n||(n=this.root.charCount());const r={goSubtree:!0,done:!1,leaf(t,n,r){e(r,t,n)||(this.done=!0)}};return this.walk(t,n-t,r),!r.done}edit(t,n,r){if(0===this.root.charCount())return _n.assert(0===n),void 0!==r?(this.load(e.linesFromText(r).lines),this):void 0;{let e;if(this.checkEdits){const i=this.getText(0,this.root.charCount());e=i.slice(0,t)+r+i.slice(t+n)}const i=new Ohe;let o=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;const e=this.getText(t,1);r=r?e+r:e,n=0,o=!0}else if(n>0){const e=t+n,{zeroBasedColumn:i,lineText:o}=this.positionToColumnAndLineText(e);0===i&&(n+=o.length,r=r?r+o:o)}if(this.root.walk(t,n,i),i.insertLines(r,o),this.checkEdits){const t=i.lineIndex.getText(0,i.lineIndex.getLength());_n.assert(e===t,"buffer edit mismatch")}return i.lineIndex}}static buildTreeFromBottom(e){if(e.length<4)return new Jhe(e);const t=new Array(Math.ceil(e.length/4));let n=0;for(let r=0;r0?n[r]=i:n.pop(),{lines:n,lineMap:t}}},Jhe=class e{constructor(e=[]){this.children=e,this.totalChars=0,this.totalLines=0,e.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(const e of this.children)this.totalChars+=e.charCount(),this.totalLines+=e.lineCount()}execWalk(e,t,n,r,i){return n.pre&&n.pre(e,t,this.children[r],this,i),n.goSubtree?(this.children[r].walk(e,t,n),n.post&&n.post(e,t,this.children[r],this,i)):n.goSubtree=!0,n.done}skipChild(e,t,n,r,i){r.pre&&!r.done&&(r.pre(e,t,this.children[n],this,i),r.goSubtree=!0)}walk(e,t,n){if(0===this.children.length)return;let r=0,i=this.children[r].charCount(),o=e;for(;o>=i;)this.skipChild(o,t,r,n,0),o-=i,r++,i=this.children[r].charCount();if(o+t<=i){if(this.execWalk(o,t,n,r,2))return}else{if(this.execWalk(o,i-o,n,r,1))return;let e=t-(i-o);r++;for(i=this.children[r].charCount();e>i;){if(this.execWalk(0,i,n,r,3))return;e-=i,r++,i=this.children[r].charCount()}if(e>0&&this.execWalk(0,e,n,r,4))return}if(n.pre){const e=this.children.length;if(rt)return n.isLeaf()?{oneBasedLine:e,zeroBasedColumn:t,lineText:n.text}:n.charOffsetToLineInfo(e,t);t-=n.charCount(),e+=n.lineCount()}const n=this.lineCount();if(0===n)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};return{oneBasedLine:n,zeroBasedColumn:_n.checkDefined(this.lineNumberToInfo(n,0).leaf).charCount(),lineText:void 0}}lineNumberToInfo(e,t){for(const n of this.children){const r=n.lineCount();if(r>=e)return n.isLeaf()?{position:t,leaf:n}:n.lineNumberToInfo(e,t);e-=r,t+=n.charCount()}return{position:t,leaf:void 0}}splitAfter(t){let n;const r=this.children.length,i=++t;if(t=0;e--)0===a[e].children.length&&a.pop()}t&&a.push(t),this.updateCounts();for(let e=0;e{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:e,reject:t})}));return this.installer.send(t),n}attach(e){this.projectService=e,this.installer=this.createInstallerProcess()}onProjectClosed(e){this.installer.send({projectName:e.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(e,t,n){const r=tme(e,t,n);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${yG(r)}`),this.activeRequestCount0?this.activeRequestCount--:_n.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){const e=this.requestQueue.dequeue();if(this.requestMap.get(e.projectName)===e){this.requestMap.delete(e.projectName),this.scheduleRequest(e);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${e.projectName}`)}this.projectService.updateTypingsForProject(e),this.event(e,"setTypings");break;case dG:this.projectService.watchTypingLocations(e)}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout((()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${yG(t)}`),this.installer.send(t)}),e.requestDelayMillis,`${t.projectName}::${t.kind}`)}};qhe.requestDelayMillis=100;var Uhe=qhe,Vhe={};n(Vhe,{ActionInvalidate:()=>aG,ActionPackageInstalled:()=>sG,ActionSet:()=>oG,ActionWatchTypingLocations:()=>dG,Arguments:()=>rG,AutoImportProviderProject:()=>zme,AuxiliaryProject:()=>Bme,CharRangeSection:()=>Ihe,CloseFileWatcherEvent:()=>sge,CommandNames:()=>she,ConfigFileDiagEvent:()=>tge,ConfiguredProject:()=>qme,ConfiguredProjectLoadKind:()=>Fge,CreateDirectoryWatcherEvent:()=>age,CreateFileWatcherEvent:()=>oge,Errors:()=>Xfe,EventBeginInstallTypes:()=>lG,EventEndInstallTypes:()=>_G,EventInitializationFailed:()=>uG,EventTypesRegistry:()=>cG,ExternalProject:()=>Ume,GcTimer:()=>dme,InferredProject:()=>Mme,LargeFileReferencedEvent:()=>ege,LineIndex:()=>Bhe,LineLeaf:()=>zhe,LineNode:()=>Jhe,LogLevel:()=>Yfe,Msg:()=>eme,OpenFileInfoTelemetryEvent:()=>ige,Project:()=>Rme,ProjectInfoTelemetryEvent:()=>rge,ProjectKind:()=>Eme,ProjectLanguageServiceStateEvent:()=>nge,ProjectLoadingFinishEvent:()=>Zme,ProjectLoadingStartEvent:()=>Yme,ProjectService:()=>Xge,ProjectsUpdatedInBackgroundEvent:()=>Qme,ScriptInfo:()=>Dme,ScriptVersionCache:()=>Rhe,Session:()=>Che,TextStorage:()=>Cme,ThrottledOperations:()=>ume,TypingsInstallerAdapter:()=>Uhe,allFilesAreJsOrDts:()=>Ime,allRootFilesAreJsOrDts:()=>Ame,asNormalizedPath:()=>ime,convertCompilerOptions:()=>mge,convertFormatOptions:()=>fge,convertScriptKindName:()=>vge,convertTypeAcquisition:()=>hge,convertUserPreferences:()=>bge,convertWatchOptions:()=>gge,countEachFileTypes:()=>Pme,createInstallTypingsRequest:()=>tme,createModuleSpecifierCache:()=>Zge,createNormalizedPathMap:()=>ome,createPackageJsonCache:()=>ehe,createSortedArray:()=>_me,emptyArray:()=>Zfe,findArgument:()=>fG,formatDiagnosticToProtocol:()=>ahe,formatMessage:()=>che,getBaseConfigFileName:()=>pme,getDetailWatchInfo:()=>Rge,getLocationInNewDocument:()=>Ehe,hasArgument:()=>pG,hasNoTypeScriptSource:()=>Ome,indent:()=>hG,isBackgroundProject:()=>Hme,isConfigFile:()=>Qge,isConfiguredProject:()=>Wme,isDynamicFileName:()=>wme,isExternalProject:()=>$me,isInferredProject:()=>Vme,isInferredProjectName:()=>ame,isProjectDeferredClose:()=>Kme,makeAutoImportProviderProjectName:()=>cme,makeAuxiliaryProjectName:()=>lme,makeInferredProjectName:()=>sme,maxFileSize:()=>Xme,maxProgramSizeForNonTsFiles:()=>Gme,normalizedPathToPath:()=>rme,nowString:()=>mG,nullCancellationToken:()=>the,nullTypingsInstaller:()=>Tge,protocol:()=>fme,scriptInfoIsContainedByBackgroundProject:()=>Nme,scriptInfoIsContainedByDeferredClosedProject:()=>Fme,stringifyIndented:()=>yG,toEvent:()=>_he,toNormalizedPath:()=>nme,tryConvertScriptKindName:()=>yge,typingsInstaller:()=>Ufe,updateProjectIfDirty:()=>Bge}),"undefined"!=typeof console&&(_n.loggingHost={log(e,t){switch(e){case 1:return console.error(t);case 2:return console.warn(t);case 3:case 4:return console.log(t)}}})})({get exports(){return ts},set exports(e){ts=e,"undefined"!=typeof module&&module.exports&&(module.exports=e)}}); +//# sourceMappingURL=/sm/0a3b344b23602ad7075af917a430f051555ddfc59eda6a6dfa028bbd8e29c891.map \ No newline at end of file diff --git a/assets/js/meta.js b/assets/js/meta.js deleted file mode 100644 index 05dce590..00000000 --- a/assets/js/meta.js +++ /dev/null @@ -1,40 +0,0 @@ -(() => { - const pageTitle = document.getElementById("page-title"); - if (pageTitle === null) return; - const header = pageTitle.parentElement; - let metas = header.getElementsByClassName("page__meta")[0]; - if (metas === null) { - metas = document.createElement("div"); - element.className = "page__meta"; - header.append(element); - } - window.appendMeta = (text, icon) => { - if (metas.children.length > 0) { - const sep = document.createElement("span"); - sep.className = "page__meta-sep"; - metas.append(sep); - } - const meta = document.createElement("span"); - if (icon !== undefined) { - const metaIcon = document.createElement("i"); - metaIcon.className = icon; - meta.append(metaIcon, " "); - } - meta.append(text.trim()); - metas.append(meta); - }; - window.hits = (tag) => { - if (settings.get("miscellaneous_hits") === "disable") return; - const hitsUrl = new URL("https://hits.zkitefly.eu.org"); - hitsUrl.searchParams.set("tag", tag); - fetch(hitsUrl, { method: "HEAD" }).then((response) => { - if (response.status !== 200) return; - const { headers } = response; - const total = headers.get("X-Total-Hits"); - const today = headers.get("X-Today-Hits"); - if (total !== null && today !== null) { - appendMeta(today + " / " + total, "far fa-eye"); - } - }); - }; -})(); diff --git a/assets/js/meta.ts b/assets/js/meta.ts new file mode 100644 index 00000000..dff1881f --- /dev/null +++ b/assets/js/meta.ts @@ -0,0 +1,51 @@ +--- +layout: null +--- + +/// +/// + +interface Window { + $: JQueryStatic; + appendMeta: (text: string, icon: string) => void; + hits: (tag: string) => void; + settings: { + get: (key: string) => string; + }; +} + +(() => { + const $header = $("#main article.page div.page__inner-wrap > header"); + if ($header.length !== 0) { + let $metas = $header.children(".page__meta"); + if (!$metas.length) { + $metas = $('
'); + $header.append($metas); + } + window.appendMeta = (text, icon) => { + if ($metas.children().length !== 0) { + $metas.append(''); + } + const $meta = $(""); + if (icon) { + $meta.append($("").addClass(icon), " "); + } + $meta.append(text.trim()); + $metas.append($meta); + }; + window.hits = (tag) => { + if (window.settings.get("miscellaneous_hits") === "disable") return; + const hitsUrl = new URL("https://hits.zkitefly.eu.org"); + hitsUrl.searchParams.set("tag", tag); + fetch(hitsUrl, { method: "HEAD" }).then((response) => { + if (response.status !== 200) return; + const { headers } = response; + const total = headers.get("X-Total-Hits"); + const today = headers.get("X-Today-Hits"); + if (total !== null && today !== null) { + window.appendMeta(today + " / " + total, "far fa-eye"); + } + }); + }; + } +})(); diff --git a/package.json b/package.json new file mode 100644 index 00000000..54ab1725 --- /dev/null +++ b/package.json @@ -0,0 +1,6 @@ +{ + "dependencies": {}, + "devDependencies": { + "@types/jquery": "^3.0.0" + } +} \ No newline at end of file